The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V04. Order and lattices

Mathlib.Order.Hom.Set

45 declarations and 7 deprecated aliases. Mathlib docs · Source

def Set.memOrderIso E1 #

{α : Type u_1} → Set α ≃o (α → Prop)

Membership as an order isomorphism between sets and predicates.

theorem Set.memOrderIso_apply E0 #

∀ {α : Type u_1} (a : Set α) (a_1 : α), Set.memOrderIso a a_1 = (a_1 ∈ a)

theorem Set.memOrderIso_symm_apply E0 #

∀ {α : Type u_1} (Mem : α → Prop), (RelIso.symm Set.memOrderIso) Mem = Set.ofPred Mem

def Set.sumEquiv E1 #

{α : Type u_1} → {β : Type u_2} → Set (α ⊕ β) ≃o Set α × Set β

Sets on sum types are order-equivalent to pairs of sets on each summand.

theorem Set.sumEquiv_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (s : Set (α ⊕ β)), Set.sumEquiv s = (Sum.inl ⁻¹' s, Sum.inr ⁻¹' s)

theorem Set.sumEquiv_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α × Set β}, Set.sumEquiv.symm s = Sum.inl '' s.1 ∪ Sum.inr '' s.2

theorem Set.MapsTo.sumElim E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → γ} {g : β → γ} {s : Set α × Set β} {t : Set γ},
  Set.MapsTo f s.1 t → Set.MapsTo g s.2 t → Set.MapsTo (Sum.elim f g) (Set.sumEquiv.symm s) t

theorem Set.InjOn.sumElim E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → γ} {g : β → γ} {s : Set α × Set β},
  Set.InjOn f s.1 → Set.InjOn g s.2 → (∀ a ∈ s.1, ∀ b ∈ s.2, f a ≠ g b) → Set.InjOn (Sum.elim f g) (Set.sumEquiv.symm s)

def Set.orderIsoOfEq E1 #

{α : Type u_1} → [inst : Preorder α] → (s t : Set α) → s = t → ↑s ≃o ↑t

Order isomorphism between two equal sets.

theorem Set.orderIsoOfEq_symm_apply E0 #

∀ {α : Type u_1} [inst : Preorder α] (s t : Set α) (h : s = t) (b : { b // (fun x ↦ x ∈ t) b }),
  (RelIso.symm (s.orderIsoOfEq t h)) b = ⟨↑b, ⋯⟩

theorem Set.orderIsoOfEq_apply E0 #

∀ {α : Type u_1} [inst : Preorder α] (s t : Set α) (h : s = t) (a : { a // (fun x ↦ x ∈ s) a }),
  (s.orderIsoOfEq t h) a = ⟨↑a, ⋯⟩

theorem OrderIso.range_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), Set.range ⇑e = Set.univ

theorem OrderIso.symm_image_image E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set α), ⇑e.symm '' ⇑e '' s = s

theorem OrderIso.image_symm_image E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set β), ⇑e '' ⇑e.symm '' s = s

theorem OrderIso.image_eq_preimage_symm E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set α), ⇑e '' s = ⇑e.symm ⁻¹' s

theorem OrderIso.preimage_symm_preimage E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set α), ⇑e ⁻¹' ⇑e.symm ⁻¹' s = s

theorem OrderIso.symm_preimage_preimage E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set β), ⇑e.symm ⁻¹' ⇑e ⁻¹' s = s

theorem OrderIso.image_preimage E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set β), ⇑e '' ⇑e ⁻¹' s = s

theorem OrderIso.preimage_image E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (s : Set α), ⇑e ⁻¹' ⇑e '' s = s

def OrderIso.Set.univ E1 #

{α : Type u_1} → [inst : Preorder α] → ↑Set.univ ≃o α

Order isomorphism between univ : Set α and α.

def OrderEmbedding.orderIso E1 #

{α : Type u_1} → {β : Type u_2} → [inst : LE α] → [inst_1 : LE β] → {f : α ↪o β} → α ≃o ↑(Set.range ⇑f)

We can regard an order embedding as an order isomorphism to its range.

theorem OrderEmbedding.orderIso_apply E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] {f : α ↪o β} (a : α), OrderEmbedding.orderIso a = ⟨f a, ⋯⟩

def StrictMonoOn.orderIso E1 #

{α : Type u_4} →
  {β : Type u_5} →
    [inst : LinearOrder α] → [inst_1 : Preorder β] → (f : α → β) → (s : Set α) → StrictMonoOn f s → ↑s ≃o ↑(f '' s)

If a function f is strictly monotone on a set s, then it defines an order isomorphism between s and its image.

def StrictMono.orderIso E1 #

{α : Type u_1} →
  {β : Type u_2} → [inst : LinearOrder α] → [inst_1 : Preorder β] → (f : α → β) → StrictMono f → α ≃o ↑(Set.range f)

A strictly monotone function from a linear order is an order isomorphism between its domain and its range.

theorem StrictMono.orderIso_apply E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (a : α), (StrictMono.orderIso f h_mono) a = ⟨f a, ⋯⟩

def StrictMono.orderIsoOfSurjective E1 #

{α : Type u_1} →
  {β : Type u_2} →
    [inst : LinearOrder α] → [inst_1 : Preorder β] → (f : α → β) → StrictMono f → Function.Surjective f → α ≃o β

A strictly monotone surjective function from a linear order is an order isomorphism.

theorem StrictMono.coe_orderIsoOfSurjective E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (h_surj : Function.Surjective f), ⇑(StrictMono.orderIsoOfSurjective f h_mono h_surj) = f

theorem StrictMono.orderIsoOfSurjective_symm_apply_self E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (h_surj : Function.Surjective f) (a : α), (StrictMono.orderIsoOfSurjective f h_mono h_surj).symm (f a) = a

theorem StrictMono.orderIsoOfSurjective_self_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (h_surj : Function.Surjective f) (b : β), f ((StrictMono.orderIsoOfSurjective f h_mono h_surj).symm b) = b

theorem OrderEmbedding.range_inj_of_wellFoundedLT E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [WellFoundedLT α] [inst_2 : Preorder β] {f g : α ↪o β},
  Set.range ⇑f = Set.range ⇑g ↔ f = g

Two order embeddings on a well-order are equal provided that their ranges are equal.

theorem OrderEmbedding.range_inj_of_wellFoundedGT E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [WellFoundedGT α] [inst_2 : Preorder β] {f g : α ↪o β},
  Set.range ⇑f = Set.range ⇑g ↔ f = g

Two order embeddings on a well-order are equal provided that their ranges are equal.

instance OrderIso.subsingleton_of_wellFoundedLT E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [WellFoundedLT α] [inst_2 : Preorder β], Subsingleton (α ≃o β)

instance OrderIso.subsingleton_of_wellFoundedLT' E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder β] [WellFoundedLT β] [inst_2 : Preorder α], Subsingleton (α ≃o β)

instance OrderIso.unique_of_wellFoundedLT E0 #

{α : Type u_1} → [inst : LinearOrder α] → [WellFoundedLT α] → Unique (α ≃o α)

instance OrderIso.subsingleton_of_wellFoundedGT E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [WellFoundedGT α] [inst_2 : Preorder β], Subsingleton (α ≃o β)

instance OrderIso.subsingleton_of_wellFoundedGT' E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder β] [WellFoundedGT β] [inst_2 : Preorder α], Subsingleton (α ≃o β)

instance OrderIso.unique_of_wellFoundedGT E0 #

{α : Type u_1} → [inst : LinearOrder α] → [WellFoundedGT α] → Unique (α ≃o α)

def OrderIso.Iic E1 #

{α : Type u_1} →
  {β : Type u_2} → [inst : Lattice α] → [inst_1 : Lattice β] → (e : α ≃o β) → (x : α) → ↑(Set.Iic x) ≃o ↑(Set.Iic (e x))

An order isomorphism between lattices induces an order isomorphism between corresponding interval sublattices.

def OrderIso.Ici E1 #

{α : Type u_1} →
  {β : Type u_2} → [inst : Lattice α] → [inst_1 : Lattice β] → (e : α ≃o β) → (x : α) → ↑(Set.Ici x) ≃o ↑(Set.Ici (e x))

An order isomorphism between lattices induces an order isomorphism between corresponding interval sublattices.

def OrderIso.Icc E1 #

{α : Type u_1} →
  {β : Type u_2} →
    [inst : Lattice α] → [inst_1 : Lattice β] → (e : α ≃o β) → (x y : α) → ↑(Set.Icc x y) ≃o ↑(Set.Icc (e x) (e y))

An order isomorphism between lattices induces an order isomorphism between corresponding interval sublattices.

def OrderIso.compl E1 #

(α : Type u_1) → [inst : BooleanAlgebra α] → α ≃o αᵒᵈ

Taking complements as an order isomorphism to the order dual.

theorem OrderIso.compl_symm_apply E0 #

∀ (α : Type u_1) [inst : BooleanAlgebra α] (a : αᵒᵈ), (RelIso.symm (OrderIso.compl α)) a = (OrderDual.ofDual a)ᶜ

theorem OrderIso.compl_apply E0 #

∀ (α : Type u_1) [inst : BooleanAlgebra α] (a : α), (OrderIso.compl α) a = (OrderDual.toDual a)ᶜ

theorem compl_strictAnti E1 #

∀ (α : Type u_1) [inst : BooleanAlgebra α], StrictAnti compl

theorem compl_antitone E1 #

∀ (α : Type u_1) [inst : BooleanAlgebra α], Antitone compl

Deprecated aliases

NameNew nameSince
OrderEmbedding.range_injOrderEmbedding.range_inj_of_wellFoundedLT2026-08-13
OrderIso.Set.congrSet.orderIsoOfEq2026-08-29
OrderIso.Set.congr_applySet.orderIsoOfEq_apply2026-08-29
OrderIso.Set.congr_symm_applySet.orderIsoOfEq_symm_apply2026-08-29
OrderIso.setCongrSet.orderIsoOfEq2026-08-21
OrderIso.setCongr_applySet.orderIsoOfEq_apply2026-08-21
OrderIso.setCongr_symm_applySet.orderIsoOfEq_symm_apply2026-08-21