Orders on a sum type #
This file defines the disjoint sum and the linear (aka lexicographic) sum of two orders and
provides relation instances for Sum.LiftRel and Sum.Lex.
We declare the disjoint sum of orders as the default set of instances. The linear order goes on a type synonym.
Main declarations #
Sum.LE,Sum.LT: Disjoint sum of orders.Sum.Lex.LE,Sum.Lex.LT: Lexicographic/linear sum of orders.
Notation #
α ⊕ₗ β: The linear sum ofαandβ.
Unbundled relation classes #
Disjoint sum of two orders #
Linear sum of two orders #
The linear sum of two orders
Instances For
Lexicographical Sum.inl. Only used for pattern matching.
Instances For
Lexicographical Sum.inr. Only used for pattern matching.
Instances For
The linear/lexicographical ≤ on a sum.
The linear/lexicographical < on a sum.
toLex promoted to a RelIso between < relations.
Instances For
toLex promoted to a RelIso between ≤ relations.
Instances For
The lexicographical bottom of a sum is the bottom of the left component.
The lexicographical top of a sum is the top of the right component.
Order isomorphisms #
Equiv.sumCongr promoted to an order isomorphism.
Instances For
Equiv.sumComm promoted to an order isomorphism.
Instances For
Equiv.sumAssoc promoted to an order isomorphism.
Instances For
orderDual is distributive over ⊕ up to an order isomorphism.
Instances For
Equiv.sumCongr promoted to an order isomorphism between lexicographic sums.
Instances For
Equiv.sumAssoc promoted to an order isomorphism.
Instances For
Equiv.sumEmpty as an OrderIso with the lexicographic sum.
Instances For
Equiv.emptySum as an OrderIso with the lexicographic sum.
Instances For
WithBot α is order-isomorphic to PUnit ⊕ₗ α, by sending ⊥ to Unit and ↑a to
a.
Instances For
WithTop α is order-isomorphic to α ⊕ₗ PUnit, by sending ⊤ to Unit and ↑a to
a.