introduces: s , _ is _.
includes: Distinction (s , _ is _). introduces: _ is less than _, _ is greater than _.
3.Total Orderincludes: Partial Order (s , _ is _ , _ is less than _ , _is greater than _). introduces: _ [min _ ] , _ [max _ ] .(1) any (x is less than y, x:s is y:s, y is less than x) = true. (2) (y:s) [min x:s] = when not (y is less than x) then y. (3) (y:s) [max x:s] = when not (y is greater than x) then y. (4) (z <= s) [min x:s] = z & s [min x] . (5) (z <= s) [max x:s] = z & s [max x] . (6) (z <= s) [min x:s] [max y:s] = z [max y] [min x]. (7) y is less than x = true => (z <= s) [min x:s] [max y:s] = nothing.
- _ [min _ ] :: s, s -> s (partial).
- _ [max _ ] :: s, s -> s (partial).
Back to the beginning.