sym-0.13.0: Permutations, patterns, and statistics

CopyrightAnders Claesson 2014-2016
MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellNone
LanguageHaskell98

Sym.Perm.MeshPattern

Description

 

Synopsis

Documentation

type Mesh = Set Box Source #

A mesh is a, possibly empty, set of shaded boxes.

type Box = (Int, Int) Source #

A box is represented by the coordinates of its southwest corner.

copiesOf :: MeshPattern -> Perm -> [SubSeq] Source #

copiesOf p w is the list of sets that represent copies of p in w.

contains :: Perm -> MeshPattern -> Bool Source #

w contains p is a predicate determining if w contains the pattern p.

avoids :: Perm -> MeshPattern -> Bool Source #

w avoids p is a predicate determining if w avoids the pattern p.

avoidsAll :: Perm -> [MeshPattern] -> Bool Source #

w avoidsAll ps is a predicate determining if w avoids the patterns ps.

avoiders :: [MeshPattern] -> [Perm] -> [Perm] Source #

avoiders ps ws is the list of permutations in ws avoiding the patterns in ps.