This module implements functions for checking whether a given binary relation satisfies some properties of partial orders, directed sets, and lattices. It is restricted, however, to finite relations and sets.
Function or value | Description |
|
Checks whether the relation rel is a partial order relation, i.e., whether it is reflexive, antisymmetric, and transitive. It returns a triple (missRefl,missAntisym,missTrans) whose sets contain the missing parts, i.e., x missing reflexivity, (x,y) being both with (y,x) in the relation but not being the same, and (x,y,z) in missTrans when (x,y) and (y,z) are in the relation but (x,z) is not.
|
|
|
|
|
|
Check whether a given set m is a directed set in the partial order. It returns a set noUpper of pairs (x,y) that do not have an upper bound, hence, m is a directed set if the returned set is empty.
|
|
|
|
|
|
PartialOrderTool is the function to be called from the web page; it expects the following key/value pairs:
|
|
|
|
|