sym-0.8: Permutations, patterns, and statistics

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

Math.Sym.Class

Description

A permutation class is a downset in the poset of permutations ordered by containment. This module provides definitions of some common classes.

Synopsis

Documentation

inc :: Perm a => Int -> [a]Source

The class of increasing permutations.

dec :: Perm a => Int -> [a]Source

The class of decreasing permutations.

av123 :: Perm a => Int -> [a]Source

Av(123).

av132 :: Perm a => Int -> [a]Source

Av(132).

av213 :: Perm a => Int -> [a]Source

Av(213).

av231 :: Perm a => Int -> [a]Source

Av(231); also know as the stack sortable permutations.

av312 :: Perm a => Int -> [a]Source

Av(312).

av321 :: Perm a => Int -> [a]Source

Av(321).

vee :: Perm a => Int -> [a]Source

The V-class is Av(132, 231). It is so named because the diagram of a typical permutation in this class is shaped like a V.

caret :: Perm a => Int -> [a]Source

The ∧-class is Av(213, 312). It is so named because the diagram of a typical permutation in this class is shaped like a ∧.

gt :: Perm a => Int -> [a]Source

The >-class is Av(132, 312). It is so named because the diagram of a typical permutation in this class is shaped like a >.

lt :: Perm a => Int -> [a]Source

The <-class is Av(213, 231). It is so named because the diagram of a typical permutation in this class is shaped like a <.

wedges :: Perm a => Int -> [a]Source

The union of vee, caret, gt and lt.

separables :: Perm a => Int -> [a]Source

The class of separable permutations; it is identical to Av(2413,3142).