sym-0.11: Permutations, patterns, and statistics

MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellNone

Sym.Perm.MeshPattern

Description

 

Synopsis

Documentation

type Box = (Int, Int)Source

type Point = (Int, Int)Source

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

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

contains :: Perm -> MeshPattern -> BoolSource

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

avoids :: Perm -> MeshPattern -> BoolSource

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

avoidsAll :: Perm -> [MeshPattern] -> BoolSource

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.