- data Interval a = Iv (Poset a) (a, a)
- intervalIsoClasses :: Ord a => Poset a -> [Interval a]
- unitIA :: (Num k, Ord t) => Poset t -> Vect k (Interval t)
- basisIA :: Num k => Poset t -> [Vect k (Interval t)]
- zetaIA :: (Num k, Ord t) => Poset t -> Vect k (Interval t)
- muIA :: (Num k, Ord t) => Poset t -> Vect k (Interval t)
- invIA :: (Fractional k, Ord t) => Vect k (Interval t) -> Maybe (Vect k (Interval t))
- numChainsIA :: Ord a => Poset a -> Vect Q (Interval a)
- numMaximalChainsIA :: Ord a => Poset a -> Vect Q (Interval a)
- toIsoClasses :: (Num k, Ord a) => Vect k (Interval a) -> Vect k (Interval a)
- toIsoClasses' :: (Num k, Ord a) => Poset a -> Vect k (Interval a) -> Vect k (Interval a)

# Documentation

A type to represent an interval in a poset. The (closed) interval [x,y] is the set {z | x <= z <= y} within the poset. Note that the "empty interval" is not an interval - that is, the interval [x,y] is only defined for x <= y. The (closed) intervals within a poset form a basis for the incidence algebra as a k-vector space.

(Num k, Ord a) => Coalgebra k (Interval a) | |

(Num k, Ord a) => Algebra k (Interval a) | The incidence algebra of a poset is the free k-vector space having as its basis the set of intervals in the poset, with multiplication defined by concatenation of intervals. The incidence algebra can also be thought of as the vector space of functions from intervals to k, with multiplication defined by the convolution (f*g)(x,y) = sum [ f(x,z) g(z,y) | x <= z <= y ]. |

Eq a => Eq (Interval a) | |

Ord a => Ord (Interval a) | |

Show a => Show (Interval a) |

intervalIsoClasses :: Ord a => Poset a -> [Interval a]Source

List representatives of the order isomorphism classes of intervals in a poset

unitIA :: (Num k, Ord t) => Poset t -> Vect k (Interval t)Source

The unit of the incidence algebra of a poset

invIA :: (Fractional k, Ord t) => Vect k (Interval t) -> Maybe (Vect k (Interval t))Source

The inverse of an element in the incidence algebra of a poset. This is only defined for elements which are non-zero on all intervals (x,x)

numChainsIA :: Ord a => Poset a -> Vect Q (Interval a)Source

A function (ie element of the incidence algebra) that counts the total number of chains in each interval

numMaximalChainsIA :: Ord a => Poset a -> Vect Q (Interval a)Source

A function (ie element of the incidence algebra) that counts the number of maximal chains in each interval

toIsoClasses :: (Num k, Ord a) => Vect k (Interval a) -> Vect k (Interval a)Source

`toIsoClasses`

is the linear map from the incidence Hopf algebra of a poset to itself,
in which each interval is mapped to (the minimal representative of) its isomorphism class.
Thus the result can be considered as a linear combination of isomorphism classes of intervals,
rather than of intervals themselves.
Note that if this operation is to be performed repeatedly for the same poset,
then it is more efficient to use `toIsoClasses' poset`

, which memoizes the isomorphism class lookup table.