Module docstring
{"# Basic definitions about ≤ and <
This file proves basic results about orders, provides extensive dot notation, defines useful order classes and allows to transfer order instances.
Type synonyms
OrderDual α: A type synonym reversing the meaning of all inequalities, with notationαᵒᵈ.AsLinearOrder α: A type synonym to promotePartialOrder αtoLinearOrder αusingIsTotal α (≤).
Transferring orders
Order.Preimage,Preorder.lift: Transfers a (pre)order onβto an order onαusing a functionf : α → β.PartialOrder.lift,LinearOrder.lift: Transfers a partial (resp., linear) order onβto a partial (resp., linear) order onαusing an injective functionf.
Extra class
DenselyOrdered: An order with no gap, i.e. for any two elementsa < bthere existscsuch thata < c < b.
Notes
≤ and < are highly favored over ≥ and > in mathlib. The reason is that we can formulate all
lemmas using ≤/<, and rw has trouble unifying ≤ and ≥. Hence choosing one direction spares
us useless duplication. This is enforced by a linter. See Note [nolint_ge] for more infos.
Dot notation is particularly useful on ≤ (LE.le) and < (LT.lt). To that end, we
provide many aliases to dot notation-less lemmas. For example, le_trans is aliased with
LE.le.trans and can be used to construct hab.trans hbc : a ≤ c when hab : a ≤ b,
hbc : b ≤ c, lt_of_le_of_lt is aliased as LE.le.trans_lt and can be used to construct
hab.trans hbc : a < c when hab : a ≤ b, hbc : b < c.
TODO
- expand module docs
- automatic construction of dual definitions / theorems
Tags
preorder, order, partial order, poset, linear order, chain
","### Bare relations ","### Preorders ","### Partial order ","#### min/max recursors ","### Implications ","### Extensionality lemmas ","### Order dual ","### HasCompl ","### Order instances on the function space ","### Lifts of order instances ","### Subtype of an order ","### Pointwise order on α × β
The lexicographic order is defined in Data.Prod.Lex, and the instances are available via the
type synonym α ×ₗ β = α × β.
","### Additional order classes ","### Linear order from a total partial order "}