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 #
instance
Sum.instIrreflLiftRel_mathlib
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[Std.Irrefl r]
[Std.Irrefl s]
:
Std.Irrefl (LiftRel r s)
instance
Sum.instAntisymmLiftRel_mathlib
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[Std.Antisymm r]
[Std.Antisymm s]
:
Std.Antisymm (LiftRel r s)
instance
Sum.instIrreflLex_mathlib
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[Std.Irrefl r]
[Std.Irrefl s]
:
Std.Irrefl (Lex r s)
instance
Sum.instAntisymmLex_mathlib
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[Std.Antisymm r]
[Std.Antisymm s]
:
Std.Antisymm (Lex r s)
instance
Sum.instTrichotomousLex_mathlib
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[Std.Trichotomous r]
[Std.Trichotomous s]
:
Std.Trichotomous (Lex r s)
instance
Sum.instIsWellOrderLex
{α : Type u_1}
{β : Type u_2}
(r : α → α → Prop)
(s : β → β → Prop)
[IsWellOrder α r]
[IsWellOrder β s]
:
IsWellOrder (α ⊕ β) (Lex r s)
Disjoint sum of two orders #
@[implicit_reducible]
instance
Sum.instPartialOrder
{α : Type u_1}
{β : Type u_2}
[PartialOrder α]
[PartialOrder β]
:
PartialOrder (α ⊕ β)
instance
Sum.noMinOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMinOrder α]
[NoMinOrder β]
:
NoMinOrder (α ⊕ β)
instance
Sum.noMaxOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMaxOrder α]
[NoMaxOrder β]
:
NoMaxOrder (α ⊕ β)
@[simp]
@[simp]
instance
Sum.denselyOrdered
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[DenselyOrdered α]
[DenselyOrdered β]
:
DenselyOrdered (α ⊕ β)
@[simp]
Linear sum of two orders #
@[implicit_reducible]
The linear/lexicographical ≤ on a sum.
@[implicit_reducible]
The linear/lexicographical < on a sum.
@[simp]
@[simp]
@[simp]
@[simp]
@[implicit_reducible]
instance
Sum.Lex.preorder
{α : Type u_1}
{β : Type u_2}
[Preorder α]
[Preorder β]
:
Preorder (_root_.Lex (α ⊕ β))
theorem
Sum.Lex.inl_strictMono
{α : Type u_1}
{β : Type u_2}
[Preorder α]
[Preorder β]
:
StrictMono (⇑toLex ∘ inl)
theorem
Sum.Lex.inr_strictMono
{α : Type u_1}
{β : Type u_2}
[Preorder α]
[Preorder β]
:
StrictMono (⇑toLex ∘ inr)
@[implicit_reducible]
instance
Sum.Lex.partialOrder
{α : Type u_1}
{β : Type u_2}
[PartialOrder α]
[PartialOrder β]
:
PartialOrder (_root_.Lex (α ⊕ β))
@[implicit_reducible]
instance
Sum.Lex.linearOrder
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[LinearOrder β]
:
LinearOrder (_root_.Lex (α ⊕ β))
@[implicit_reducible]
instance
Sum.Lex.orderBot
{α : Type u_1}
{β : Type u_2}
[LE α]
[OrderBot α]
[LE β]
:
OrderBot (_root_.Lex (α ⊕ β))
The lexicographical bottom of a sum is the bottom of the left component.
@[implicit_reducible]
instance
Sum.Lex.orderTop
{α : Type u_1}
{β : Type u_2}
[LE α]
[LE β]
[OrderTop β]
:
OrderTop (_root_.Lex (α ⊕ β))
The lexicographical top of a sum is the top of the right component.
@[implicit_reducible]
instance
Sum.Lex.boundedOrder
{α : Type u_1}
{β : Type u_2}
[LE α]
[LE β]
[OrderBot α]
[OrderTop β]
:
BoundedOrder (_root_.Lex (α ⊕ β))
instance
Sum.Lex.noMinOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMinOrder α]
[NoMinOrder β]
:
NoMinOrder (_root_.Lex (α ⊕ β))
instance
Sum.Lex.noMaxOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMaxOrder α]
[NoMaxOrder β]
:
NoMaxOrder (_root_.Lex (α ⊕ β))
instance
Sum.Lex.noMinOrder_of_nonempty
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMinOrder α]
[Nonempty α]
:
NoMinOrder (_root_.Lex (α ⊕ β))
instance
Sum.Lex.noMaxOrder_of_nonempty
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[NoMaxOrder β]
[Nonempty β]
:
NoMaxOrder (_root_.Lex (α ⊕ β))
instance
Sum.Lex.denselyOrdered_of_noMaxOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[DenselyOrdered α]
[DenselyOrdered β]
[NoMaxOrder α]
:
DenselyOrdered (_root_.Lex (α ⊕ β))
instance
Sum.Lex.denselyOrdered_of_noMinOrder
{α : Type u_1}
{β : Type u_2}
[LT α]
[LT β]
[DenselyOrdered α]
[DenselyOrdered β]
[NoMinOrder β]
:
DenselyOrdered (_root_.Lex (α ⊕ β))
Order isomorphisms #
Equiv.sumComm promoted to an order isomorphism.
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
theorem
OrderIso.sumLexDualAntidistrib_symm_inl
{α : Type u_1}
{β : Type u_2}
[LE α]
[LE β]
(b : β)
:
@[simp]
theorem
OrderIso.sumLexDualAntidistrib_symm_inr
{α : Type u_1}
{β : Type u_2}
[LE α]
[LE β]
(a : α)
:
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]