Extend a partial order to a linear order #
This file constructs a linear order which is an extension of the given partial order, using Zorn's lemma.
theorem
extend_partialOrder
{α : Type u}
(r : α → α → Prop)
[IsPartialOrder α r]
:
∃ (s : α → α → Prop), IsLinearOrder α s ∧ r ≤ s
Any partial order can be extended to a linear order.
A type alias for α
, intended to extend a partial order on α
to a linear order.
Equations
- LinearExtension α = α
Instances For
Equations
- instLinearOrderLinearExtensionOfPartialOrder = LinearOrder.mk ⋯ (Classical.decRel fun (x x_1 : LinearExtension α) => x ≤ x_1) decidableEqOfDecidableLE decidableLTOfDecidableLE ⋯ ⋯ ⋯
The embedding of α
into LinearExtension α
as an order homomorphism.
Equations
- toLinearExtension = { toFun := fun (x : α) => x, monotone' := ⋯ }
Instances For
Equations
- instInhabitedLinearExtension = { default := default }