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.Basic

358 declarations and 4 deprecated aliases. Mathlib docs · Source

Order homomorphisms

This file defines order homomorphisms, which are bundled monotone functions. A preorder homomorphism f : α →o β is a function α → β along with a proof that ∀ x y, x ≤ y → f x ≤ f y.

Main definitions

In this file we define the following bundled monotone maps:

  • OrderHom α β a.k.a. α →o β: Preorder homomorphism. An OrderHom α β is a function f : α → β such that a₁ ≤ a₂ → f a₁ ≤ f a₂
  • OrderEmbedding α β a.k.a. α ↪o β: Relation embedding. An OrderEmbedding α β is an embedding f : α ↪ β such that a ≤ b ↔ f a ≤ f b. Defined as an abbreviation of @RelEmbedding α β (≤) (≤).
  • OrderIso: Relation isomorphism. An OrderIso α β is an equivalence f : α ≃ β such that a ≤ b ↔ f a ≤ f b. Defined as an abbreviation of @RelIso α β (≤) (≤).

We also define many OrderHoms. In some cases we define two versions, one with ₘ suffix and one without it (e.g., OrderHom.compₘ and OrderHom.comp). This means that the former function is a "more bundled" version of the latter. We can't just drop the "less bundled" version because the more bundled version usually does not work with dot notation.

  • OrderHom.id: identity map as α →o α;
  • OrderHom.curry: an order isomorphism between α × β →o γ and α →o β →o γ;
  • OrderHom.comp: composition of two bundled monotone maps;
  • OrderHom.compₘ: composition of bundled monotone maps as a bundled monotone map;
  • OrderHom.const: constant function as a bundled monotone map;
  • OrderHom.prod: combine α →o β and α →o γ into α →o β × γ;
  • OrderHom.prodₘ: a more bundled version of OrderHom.prod;
  • OrderHom.prodIso: order isomorphism between α →o β × γ and (α →o β) × (α →o γ);
  • OrderHom.diag: diagonal embedding of α into α × α as a bundled monotone map;
  • OrderHom.onDiag: restrict a monotone map α →o α →o β to the diagonal;
  • OrderHom.fst: projection Prod.fst : α × β → α as a bundled monotone map;
  • OrderHom.snd: projection Prod.snd : α × β → β as a bundled monotone map;
  • OrderHom.prodMap: Prod.map f g as a bundled monotone map;
  • Pi.evalOrderHom: evaluation of a function at a point Function.eval i as a bundled monotone map;
  • OrderHom.coeFnHom: coercion to function as a bundled monotone map;
  • OrderHom.apply: application of an OrderHom at a point as a bundled monotone map;
  • OrderHom.pi: combine a family of monotone maps f i : α →o π i into a monotone map α →o Π i, π i;
  • OrderHom.piIso: order isomorphism between α →o Π i, π i and Π i, α →o π i;
  • OrderHom.subtype.val: embedding Subtype.val : Subtype p → α as a bundled monotone map;
  • OrderHom.dual: reinterpret a monotone map α →o β as a monotone map αᵒᵈ →o βᵒᵈ;
  • OrderHom.dualIso: order isomorphism between α →o β and (αᵒᵈ →o βᵒᵈ)ᵒᵈ;
  • OrderHom.compl: order isomorphism α ≃o αᵒᵈ given by taking complements in a Boolean algebra;

We also define two functions to convert other bundled maps to α →o β:

  • OrderEmbedding.toOrderHom: convert α ↪o β to α →o β;
  • RelHom.toOrderHom: convert a RelHom between strict orders to an OrderHom.

Tags

monotone map, bundled morphism

theorem OrderHom.mk.injEq E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (toFun : α → β) (monotone' : Monotone toFun)
  (toFun_1 : α → β) (monotone'_1 : Monotone toFun_1),
  ({ toFun := toFun, monotone' := monotone' } = { toFun := toFun_1, monotone' := monotone'_1 }) = (toFun = toFun_1)

theorem OrderHom.ofClass.congr_simp E1 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : FunLike F α β]
  [inst_3 : OrderHomClass F α β] (f f_1 : F), f = f_1 → ↑f = ↑f_1

theorem OrderIso.ofBijective.congr_simp E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f f_1 : α → β) (e_f : f = f_1)
  (hf : Function.Bijective f) (hf' : ∀ (a b : α), f a ≤ f b ↔ a ≤ b),
  OrderIso.ofBijective f hf hf' = OrderIso.ofBijective f_1 ⋯ ⋯

theorem OrderEmbedding.ofStrictMono.congr_simp E1 #

∀ {α : Type u_6} {β : Type u_7} [inst : LinearOrder α] [inst_1 : Preorder β] (f f_1 : α → β) (e_f : f = f_1)
  (h : StrictMono f), OrderEmbedding.ofStrictMono f h = OrderEmbedding.ofStrictMono f_1 ⋯

theorem OrderHom.mk.inj E1 #

∀ {α : Type u_6} {β : Type u_7} {inst : Preorder α} {inst_1 : Preorder β} {toFun : α → β} {monotone' : Monotone toFun}
  {toFun_1 : α → β} {monotone'_1 : Monotone toFun_1},
  { toFun := toFun, monotone' := monotone' } = { toFun := toFun_1, monotone' := monotone'_1 } → toFun = toFun_1

def OrderHom.ctorIdx E1 #

{α : Type u_6} → {β : Type u_7} → {inst : Preorder α} → {inst_1 : Preorder β} → (α →o β) → ℕ

theorem OrderHom.mk.congr_simp E1 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (toFun toFun_1 : α → β)
  (e_toFun : toFun = toFun_1) (monotone' : Monotone toFun),
  { toFun := toFun, monotone' := monotone' } = { toFun := toFun_1, monotone' := ⋯ }

structure OrderHom E3 #

(α : Type u_6) → (β : Type u_7) → [Preorder α] → [Preorder β] → Type (max u_6 u_7)

Bundled monotone (aka, increasing) function

ctor OrderHom.mk E0 #

{α : Type u_6} →
  {β : Type u_7} → [inst : Preorder α] → [inst_1 : Preorder β] → (toFun : α → β) → Monotone toFun → α →o β

abbrev OrderHom.toFun E1 #

{α : Type u_6} → {β : Type u_7} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → α → β

The underlying function of an OrderHom.

theorem OrderHom.monotone' E2 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (self : α →o β), Monotone self.toFun

The underlying function of an OrderHom is monotone.

def «term_→o_» E1 #

Lean.TrailingParserDescr

Notation for an OrderHom.

abbrev OrderEmbedding E3 #

(α : Type u_6) → (β : Type u_7) → [LE α] → [LE β] → Type (max u_6 u_7)

An order embedding is an embedding f : α ↪ β such that a ≤ b ↔ (f a) ≤ (f b). This definition is an abbreviation of RelEmbedding (≤) (≤).

def «term_↪o_» E1 #

Lean.TrailingParserDescr

Notation for an OrderEmbedding.

abbrev OrderIso E3 #

(α : Type u_6) → (β : Type u_7) → [LE α] → [LE β] → Type (max u_6 u_7)

An order isomorphism is an equivalence such that a ≤ b ↔ (f a) ≤ (f b). This definition is an abbreviation of RelIso (≤) (≤).

def «term_≃o_» E1 #

Lean.TrailingParserDescr

Notation for an OrderIso.

instance instFunLikeOrderEmbedding E0 #

(α : Type u_6) → (β : Type u_7) → [inst : LE α] → [inst_1 : LE β] → FunLike (α ↪o β) α β

instance instFunLikeOrderIso E0 #

(α : Type u_6) → (β : Type u_7) → [inst : LE α] → [inst_1 : LE β] → FunLike (α ≃o β) α β

abbrev OrderHomClass E3 #

(F : Type u_6) → (α : outParam (Type u_7)) → (β : outParam (Type u_8)) → [LE α] → [LE β] → [FunLike F α β] → Prop

OrderHomClass F α b asserts that F is a type of ≤-preserving morphisms.

class OrderIsoClass E3 #

(F : Type u_6) → (α : outParam (Type u_7)) → (β : outParam (Type u_8)) → [LE α] → [LE β] → [EquivLike F α β] → Prop

OrderIsoClass F α β states that F is a type of order isomorphisms.

You should extend this class when you extend OrderIso.

ctor OrderIsoClass.mk E0 #

∀ {F : Type u_6} {α : outParam (Type u_7)} {β : outParam (Type u_8)} [inst : LE α] [inst_1 : LE β]
  [inst_2 : EquivLike F α β], (∀ (f : F) {a b : α}, f a ≤ f b ↔ a ≤ b) → OrderIsoClass F α β

theorem OrderIsoClass.map_le_map_iff E0 #

∀ {F : Type u_6} {α : outParam (Type u_7)} {β : outParam (Type u_8)} {inst : LE α} {inst_1 : LE β}
  {inst_2 : EquivLike F α β} [self : OrderIsoClass F α β] (f : F) {a b : α}, f a ≤ f b ↔ a ≤ b

An order isomorphism respects ≤.

def OrderIso.ofClass E1 #

{F : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → [inst_2 : EquivLike F α β] → [OrderIsoClass F α β] → F → α ≃o β

Turn an element of a type F satisfying OrderIsoClass F α β into an actual OrderIso. This is declared as the default coercion from F to α ≃o β.

instance instCoeTCOrderIsoOfOrderIsoClass E0 #

{F : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} →
      [inst : LE α] → [inst_1 : LE β] → [inst_2 : EquivLike F α β] → [OrderIsoClass F α β] → CoeTC F (α ≃o β)

Any type satisfying OrderIsoClass can be cast into OrderIso via OrderIso.ofClass.

instance OrderIsoClass.toOrderHomClass E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β], OrderHomClass F α β

theorem OrderHomClass.monotone E1 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : FunLike F α β]
  [OrderHomClass F α β] (f : F), Monotone ⇑f

theorem OrderHomClass.mono E1 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : FunLike F α β]
  [OrderHomClass F α β] (f : F), Monotone ⇑f

def OrderHom.ofClass E1 #

{F : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : FunLike F α β] → [OrderHomClass F α β] → F → α →o β

Turn an element of a type F satisfying OrderHomClass F α β into an actual OrderHom. This is declared as the default coercion from F to α →o β.

instance OrderHomClass.instCoeTCOrderHom E0 #

{F : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : FunLike F α β] → [OrderHomClass F α β] → CoeTC F (α →o β)

Any type satisfying OrderHomClass can be cast into OrderHom via OrderHom.ofClass.

theorem map_inv_le_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a : α} {b : β}, EquivLike.inv f b ≤ a ↔ b ≤ f a

theorem le_map_inv_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a : α} {b : β}, a ≤ EquivLike.inv f b ↔ f a ≤ b

theorem map_inv_le_map_inv_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a b : β}, EquivLike.inv f b ≤ EquivLike.inv f a ↔ b ≤ a

theorem map_lt_map_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a b : α}, f a < f b ↔ a < b

theorem lt_map_inv_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a : α} {b : β}, a < EquivLike.inv f b ↔ f a < b

theorem map_inv_lt_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a : α} {b : β}, EquivLike.inv f b < a ↔ b < f a

theorem map_inv_lt_map_inv_iff E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : EquivLike F α β]
  [OrderIsoClass F α β] (f : F) {a b : β}, EquivLike.inv f b < EquivLike.inv f a ↔ b < a

instance OrderHom.instFunLike E0 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → FunLike (α →o β) α β

instance OrderHom.instOrderHomClass E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β], OrderHomClass (α →o β) α β

theorem OrderHom.coe_mk E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β) (hf : Monotone f),
  ⇑{ toFun := f, monotone' := hf } = f

theorem OrderHom.monotone E2 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), Monotone ⇑f

theorem OrderHom.mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), Monotone ⇑f

def OrderHom.Simps.coe E1 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → α → β

See Note [custom simps projection]. We give this manually so that we use toFun as the projection directly instead.

theorem OrderHom.toFun_eq_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), f.toFun = ⇑f

theorem OrderHom.ext E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f g : α →o β), ⇑f = ⇑g → f = g

theorem OrderHom.ext_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {f g : α →o β}, f = g ↔ ⇑f = ⇑g

theorem OrderHom.coe_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), ↑f = f

theorem OrderHomClass.coe_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {F : Type u_6} [inst_2 : FunLike F α β]
  [inst_3 : OrderHomClass F α β] (f : F), ⇑↑f = ⇑f

instance OrderHom.canLift E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β],
  CanLift (α → β) (α →o β) DFunLike.coe Monotone

One can lift an unbundled monotone function to a bundled one.

def OrderHom.copy E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (f : α →o β) → (f' : α → β) → f' = ⇑f → α →o β

Copy of an OrderHom with a new toFun equal to the old one. Useful to fix definitional equalities.

theorem OrderHom.coe_copy E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (f' : α → β) (h : f' = ⇑f),
  ⇑(f.copy f' h) = f'

theorem OrderHom.copy_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (f' : α → β) (h : f' = ⇑f),
  f.copy f' h = f

instance OrderHom.instDecidableEqOfForall E0 #

{α : Type u_6} →
  (β : Type u_7) → [inst : PartialOrder α] → [inst_1 : PartialOrder β] → [DecidableEq (α → β)] → DecidableEq (α →o β)

def OrderHom.id E3 #

{α : Type u_2} → [inst : Preorder α] → α →o α

The identity function as bundled monotone function.

theorem OrderHom.id_coe E0 #

∀ {α : Type u_2} [inst : Preorder α], ⇑OrderHom.id = id

instance OrderHom.instInhabited E0 #

{α : Type u_2} → [inst : Preorder α] → Inhabited (α →o α)

def OrderHom.equivRelHom E1 #

(α : Type u_2) →
  (β : Type u_3) →
    [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) ≃ ((fun x1 x2 ↦ x1 ≤ x2) →r fun x1 x2 ↦ x1 ≤ x2)

Order homomorphisms are equivalent to relation homomorphisms between LE relations.

instance OrderHom.instPreorder E0 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → Preorder (α →o β)

The preorder structure of α →o β is pointwise inequality: f ≤ g ↔ ∀ a, f a ≤ g a.

instance OrderHom.instPartialOrder E0 #

{α : Type u_2} → [inst : Preorder α] → {β : Type u_6} → [inst_1 : PartialOrder β] → PartialOrder (α →o β)

theorem OrderHom.le_def E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {f g : α →o β}, f ≤ g ↔ ∀ (x : α), f x ≤ g x

theorem OrderHom.coe_le_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {f g : α →o β}, ⇑f ≤ ⇑g ↔ f ≤ g

theorem OrderHom.mk_le_mk E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {f g : α → β} {hf : Monotone f}
  {hg : Monotone g}, { toFun := f, monotone' := hf } ≤ { toFun := g, monotone' := hg } ↔ f ≤ g

theorem OrderHom.apply_mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] {f g : α →o β} {x y : α},
  f ≤ g → x ≤ y → f x ≤ g y

def OrderHom.curry E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} → [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (α × β →o γ) ≃o (α →o β →o γ)

Curry/uncurry as an order isomorphism between α × β →o γ and α →o β →o γ.

theorem OrderHom.curry_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α × β →o γ) (x : α) (y : β), ((OrderHom.curry f) x) y = f (x, y)

theorem OrderHom.curry_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β →o γ) (x : α × β), ((RelIso.symm OrderHom.curry) f) x = (f x.1) x.2

def OrderHom.comp E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} → [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (β →o γ) → (α →o β) → α →o γ

The composition of two bundled monotone functions.

theorem OrderHom.comp_coe E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : β →o γ) (f : α →o β), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem OrderHom.comp_mono E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  ⦃g₁ g₂ : β →o γ⦄, g₁ ≤ g₂ → ∀ ⦃f₁ f₂ : α →o β⦄, f₁ ≤ f₂ → g₁.comp f₁ ≤ g₂.comp f₂

theorem OrderHom.mk_comp_mk E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : β → γ) (f : α → β) (hg : Monotone g) (hf : Monotone f),
  { toFun := g, monotone' := hg }.comp { toFun := f, monotone' := hf } = { toFun := g ∘ f, monotone' := ⋯ }

def OrderHom.compₘ E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (β →o γ) →o (α →o β) →o α →o γ

The composition of two bundled monotone functions, a fully bundled version.

theorem OrderHom.compₘ_coe_coe_coe E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (x : β →o γ) (a : α →o β), ⇑((OrderHom.compₘ x) a) = ⇑x ∘ ⇑a

theorem OrderHom.comp_id E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), f.comp OrderHom.id = f

theorem OrderHom.id_comp E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β), OrderHom.id.comp f = f

theorem OrderHom.comp_assoc E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : Preorder α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] [inst_3 : Preorder δ] (f : γ →o δ) (g : β →o γ) (h : α →o β),
  (f.comp g).comp h = f.comp (g.comp h)

def OrderHom.const E3 #

(α : Type u_6) → [inst : Preorder α] → {β : Type u_7} → [inst_1 : Preorder β] → β →o α →o β

Constant function bundled as an OrderHom.

theorem OrderHom.const_coe_coe E0 #

∀ (α : Type u_6) [inst : Preorder α] {β : Type u_7} [inst_1 : Preorder β] (b : β),
  ⇑((OrderHom.const α) b) = Function.const α b

theorem OrderHom.const_comp E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β) (c : γ), ((OrderHom.const β) c).comp f = (OrderHom.const α) c

theorem OrderHom.comp_const E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (γ : Type u_6) [inst_2 : Preorder γ]
  (f : α →o β) (c : α), f.comp ((OrderHom.const γ) c) = (OrderHom.const γ) (f c)

def OrderHom.prod E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (α →o β) → (α →o γ) → α →o β × γ

Given two bundled monotone maps f, g, f.prod g is the map x ↦ (f x, g x) bundled as a OrderHom.

theorem OrderHom.prod_coe E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β) (g : α →o γ) (x : α), (f.prod g) x = (f x, g x)

theorem OrderHom.prod_mono E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f₁ f₂ : α →o β}, f₁ ≤ f₂ → ∀ {g₁ g₂ : α →o γ}, g₁ ≤ g₂ → f₁.prod g₁ ≤ f₂.prod g₂

theorem OrderHom.comp_prod_comp_same E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f₁ f₂ : β →o γ) (g : α →o β), (f₁.comp g).prod (f₂.comp g) = (f₁.prod f₂).comp g

def OrderHom.prodₘ E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (α →o β) →o (α →o γ) →o α →o β × γ

Given two bundled monotone maps f, g, f.prod g is the map x ↦ (f x, g x) bundled as a OrderHom. This is a fully bundled version.

theorem OrderHom.prodₘ_coe_coe_coe E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (x : α →o β) (a : α →o γ) (x_1 : α), ((OrderHom.prodₘ x) a) x_1 = (x x_1, a x_1)

def OrderHom.diag E3 #

{α : Type u_2} → [inst : Preorder α] → α →o α × α

Diagonal embedding of α into α × α as an OrderHom.

theorem OrderHom.diag_coe E0 #

∀ {α : Type u_2} [inst : Preorder α] (x : α), OrderHom.diag x = (x, x)

def OrderHom.onDiag E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o α →o β) → α →o β

Restriction of f : α →o α →o β to the diagonal.

theorem OrderHom.onDiag_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o α →o β) (a : α),
  f.onDiag a = (f a) a

def OrderHom.fst E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α × β →o α

Prod.fst as an OrderHom.

theorem OrderHom.fst_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (self : α × β), OrderHom.fst self = self.1

def OrderHom.snd E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α × β →o β

Prod.snd as an OrderHom.

theorem OrderHom.snd_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (self : α × β), OrderHom.snd self = self.2

theorem OrderHom.fst_prod_snd E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β], OrderHom.fst.prod OrderHom.snd = OrderHom.id

theorem OrderHom.fst_comp_prod E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β) (g : α →o γ), OrderHom.fst.comp (f.prod g) = f

theorem OrderHom.snd_comp_prod E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β) (g : α →o γ), OrderHom.snd.comp (f.prod g) = g

def OrderHom.prodIso E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      [inst : Preorder α] → [inst_1 : Preorder β] → [inst_2 : Preorder γ] → (α →o β × γ) ≃o (α →o β) × (α →o γ)

Order isomorphism between the space of monotone maps to β × γ and the product of the spaces of monotone maps to β and γ.

theorem OrderHom.prodIso_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α →o β × γ), OrderHom.prodIso f = (OrderHom.fst.comp f, OrderHom.snd.comp f)

theorem OrderHom.prodIso_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : (α →o β) × (α →o γ)), (RelIso.symm OrderHom.prodIso) f = f.1.prod f.2

def OrderHom.prodMap E3 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      {δ : Type u_5} →
        [inst : Preorder α] →
          [inst_1 : Preorder β] → [inst_2 : Preorder γ] → [inst_3 : Preorder δ] → (α →o β) → (γ →o δ) → α × γ →o β × δ

Prod.map of two OrderHoms as an OrderHom

theorem OrderHom.prodMap_coe E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : Preorder α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] [inst_3 : Preorder δ] (f : α →o β) (g : γ →o δ) (a : α × γ),
  (f.prodMap g) a = Prod.map (⇑f) (⇑g) a

def Pi.evalOrderHom E3 #

{ι : Type u_6} → {π : ι → Type u_7} → [inst : (i : ι) → Preorder (π i)] → (i : ι) → ((j : ι) → π j) →o π i

Evaluation of an unbundled function at a point (Function.eval) as an OrderHom.

theorem Pi.evalOrderHom_coe E0 #

∀ {ι : Type u_6} {π : ι → Type u_7} [inst : (i : ι) → Preorder (π i)] (i : ι), ⇑(Pi.evalOrderHom i) = Function.eval i

def OrderHom.coeFnHom E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) →o α → β

The "forgetful functor" from α →o β to α → β that takes the underlying function, is monotone.

theorem OrderHom.coeFnHom_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β], ⇑OrderHom.coeFnHom = fun f ↦ ⇑f

def OrderHom.apply E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α → (α →o β) →o β

Function application fun f => f a (for fixed a) is a monotone function from the monotone function space α →o β to β. See also Pi.evalOrderHom.

theorem OrderHom.apply_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (x : α),
  ⇑(OrderHom.apply x) = Function.eval x ∘ fun f ↦ ⇑f

def OrderHom.pi E3 #

{α : Type u_2} →
  [inst : Preorder α] →
    {ι : Type u_6} →
      {π : ι → Type u_7} → [inst_1 : (i : ι) → Preorder (π i)] → ((i : ι) → α →o π i) → α →o (i : ι) → π i

Construct a bundled monotone map α →o Π i, π i from a family of monotone maps f i : α →o π i.

theorem OrderHom.pi_coe E0 #

∀ {α : Type u_2} [inst : Preorder α] {ι : Type u_6} {π : ι → Type u_7} [inst_1 : (i : ι) → Preorder (π i)]
  (f : (i : ι) → α →o π i) (x : α) (i : ι), (OrderHom.pi f) x i = (f i) x

def OrderHom.piIso E3 #

{α : Type u_2} →
  [inst : Preorder α] →
    {ι : Type u_6} →
      {π : ι → Type u_7} → [inst_1 : (i : ι) → Preorder (π i)] → (α →o (i : ι) → π i) ≃o ((i : ι) → α →o π i)

Order isomorphism between bundled monotone maps α →o Π i, π i and families of bundled monotone maps Π i, α →o π i.

theorem OrderHom.piIso_symm_apply E0 #

∀ {α : Type u_2} [inst : Preorder α] {ι : Type u_6} {π : ι → Type u_7} [inst_1 : (i : ι) → Preorder (π i)]
  (f : (i : ι) → α →o π i), (RelIso.symm OrderHom.piIso) f = OrderHom.pi f

theorem OrderHom.piIso_apply E0 #

∀ {α : Type u_2} [inst : Preorder α] {ι : Type u_6} {π : ι → Type u_7} [inst_1 : (i : ι) → Preorder (π i)]
  (f : α →o (i : ι) → π i) (i : ι), OrderHom.piIso f i = (Pi.evalOrderHom i).comp f

def OrderHom.Subtype.val E1 #

{α : Type u_2} → [inst : Preorder α] → (p : α → Prop) → Subtype p →o α

Subtype.val as a bundled monotone function.

theorem OrderHom.Subtype.val_coe E0 #

∀ {α : Type u_2} [inst : Preorder α] (p : α → Prop), ⇑(OrderHom.Subtype.val p) = Subtype.val

def Subtype.orderEmbedding E1 #

{α : Type u_2} → [inst : Preorder α] → {p q : α → Prop} → (∀ (a : α), p a → q a) → { x // p x } ↪o { x // q x }

Subtype.impEmbedding as an order embedding.

theorem Subtype.orderEmbedding_apply_coe E0 #

∀ {α : Type u_2} [inst : Preorder α] {p q : α → Prop} (h : ∀ (a : α), p a → q a) (x : { x // p x }),
  ↑((Subtype.orderEmbedding h) x) = ↑x

instance OrderHom.unique E0 #

{α : Type u_2} → [inst : Preorder α] → [Subsingleton α] → Unique (α →o α)

There is a unique monotone map from a subsingleton to itself.

theorem OrderHom.orderHom_eq_id E1 #

∀ {α : Type u_2} [inst : Preorder α] [Subsingleton α] (g : α →o α), g = OrderHom.id

def OrderHom.dual E3 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) ≃ (αᵒᵈ →o βᵒᵈ)

Reinterpret a bundled monotone function as a monotone function between dual orders.

theorem OrderHom.dual_apply_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : αᵒᵈ),
  (OrderHom.dual f) a = (⇑OrderDual.toDual ∘ ⇑f ∘ ⇑OrderDual.ofDual) a

theorem OrderHom.dual_symm_apply_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : αᵒᵈ →o βᵒᵈ) (a : α),
  (OrderHom.dual.symm f) a = (⇑OrderDual.ofDual ∘ ⇑f ∘ ⇑OrderDual.toDual) a

theorem OrderHom.dual_id E0 #

∀ {α : Type u_2} [inst : Preorder α], OrderHom.dual OrderHom.id = OrderHom.id

theorem OrderHom.dual_comp E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : β →o γ) (f : α →o β), OrderHom.dual (g.comp f) = (OrderHom.dual g).comp (OrderHom.dual f)

theorem OrderHom.symm_dual_id E0 #

∀ {α : Type u_2} [inst : Preorder α], OrderHom.dual.symm OrderHom.id = OrderHom.id

theorem OrderHom.symm_dual_comp E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : βᵒᵈ →o γᵒᵈ) (f : αᵒᵈ →o βᵒᵈ), OrderHom.dual.symm (g.comp f) = (OrderHom.dual.symm g).comp (OrderHom.dual.symm f)

def OrderHom.dualIso E3 #

(α : Type u_8) → (β : Type u_9) → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) ≃o (αᵒᵈ →o βᵒᵈ)ᵒᵈ

OrderHom.dual as an order isomorphism.

theorem OrderHom.dualIso_toEquiv E0 #

∀ (α : Type u_8) (β : Type u_9) [inst : Preorder α] [inst_1 : Preorder β],
  (OrderHom.dualIso α β).toEquiv = OrderHom.dual.trans OrderDual.toDual

def OrderHom.uliftMap E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → ULift.{u_8, u_2} α →o ULift.{u_9, u_3} β

Lift an order homomorphism f : α →o β to an order homomorphism ULift α →o ULift β in a higher universe.

theorem OrderHom.uliftMap_coe_down E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (i : ULift.{u_8, u_2} α),
  (f.uliftMap i).down = f i.down

def OrderHom.uliftRightMap E1 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → α →o ULift.{u_8, u_3} β

Lift an order homomorphism f : α →o β to an order homomorphism α →o ULift β in a higher universe.

theorem OrderHom.uliftRightMap_coe_down E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (i : α),
  (f.uliftRightMap i).down = f i

def OrderHom.uliftLeftMap E1 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → ULift.{u_8, u_2} α →o β

Lift an order homomorphism f : α →o β to an order homomorphism ULift α →o β in a higher universe.

theorem OrderHom.uliftLeftMap_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (i : ULift.{u_8, u_2} α),
  f.uliftLeftMap i = f i.down

theorem OrderHom.uliftLeftMap_uliftRightMap_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β),
  f.uliftLeftMap.uliftRightMap = f.uliftMap

theorem OrderHom.uliftRightMap_uliftLeftMap_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β),
  f.uliftRightMap.uliftLeftMap = f.uliftMap

def RelEmbedding.orderEmbeddingOfLTEmbedding E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : PartialOrder α] → [inst_1 : PartialOrder β] → ((fun x1 x2 ↦ x1 < x2) ↪r fun x1 x2 ↦ x1 < x2) → α ↪o β

Embeddings of partial orders that preserve < also preserve ≤.

theorem RelEmbedding.orderEmbeddingOfLTEmbedding_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : PartialOrder β]
  {f : (fun x1 x2 ↦ x1 < x2) ↪r fun x1 x2 ↦ x1 < x2} {x : α}, f.orderEmbeddingOfLTEmbedding x = f x

abbrev OrderEmbedding.id E1 #

(α : Type u_2) → [inst : LE α] → α ↪o α

Identity order embedding

theorem OrderEmbedding.coe_id E0 #

∀ {α : Type u_2} [inst : LE α], ⇑(OrderEmbedding.id α) = id

theorem OrderEmbedding.id_toEmbedding E0 #

∀ {α : Type u_2} [inst : LE α], (OrderEmbedding.id α).toEmbedding = Function.Embedding.refl α

abbrev OrderEmbedding.comp E1 #

{α : Type u_2} →
  {β : Type u_3} → {γ : Type u_4} → [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → α ↪o β → β ↪o γ → α ↪o γ

Composition of two order embeddings is an order embedding

theorem OrderEmbedding.coe_comp E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (f : α ↪o β) (g : β ↪o γ),
  ⇑(f.comp g) = ⇑g ∘ ⇑f

theorem OrderEmbedding.id_comp E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ↪o β), (OrderEmbedding.id α).comp f = f

theorem OrderEmbedding.comp_id E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ↪o β), f.comp (OrderEmbedding.id β) = f

theorem OrderEmbedding.comp_assoc E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ↪o β) (g : β ↪o γ) (h : γ ↪o δ), (f.comp g).comp h = f.comp (g.comp h)

def OrderEmbedding.ltEmbedding E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α ↪o β → (fun x1 x2 ↦ x1 < x2) ↪r fun x1 x2 ↦ x1 < x2

< is preserved by order embeddings of preorders.

def OrderEmbedding.gtEmbedding E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α ↪o β → (fun x1 x2 ↦ x2 < x1) ↪r fun x1 x2 ↦ x2 < x1

> is preserved by order embeddings of preorders.

theorem OrderEmbedding.gtEmbedding_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β) (x : α), f.gtEmbedding x = f x

theorem OrderEmbedding.ltEmbedding_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β) (x : α), f.ltEmbedding x = f x

theorem OrderEmbedding.le_iff_le E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β) {a b : α}, f a ≤ f b ↔ a ≤ b

theorem OrderEmbedding.lt_iff_lt E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β) {a b : α}, f a < f b ↔ a < b

theorem OrderEmbedding.monotone E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β), Monotone ⇑f

theorem OrderEmbedding.strictMono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β), StrictMono ⇑f

theorem OrderEmbedding.acc E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β) (a : α),
  Acc (fun x1 x2 ↦ x1 < x2) (f a) → Acc (fun x1 x2 ↦ x1 < x2) a

theorem OrderEmbedding.wellFounded E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α ↪o β),
  (WellFounded fun x1 x2 ↦ x1 < x2) → WellFounded fun x1 x2 ↦ x1 < x2

theorem OrderEmbedding.isWellOrder E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [IsWellOrder β fun x1 x2 ↦ x1 < x2]
  (f : α ↪o β), IsWellOrder α fun x1 x2 ↦ x1 < x2

def OrderEmbedding.dual E1 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α ↪o β → αᵒᵈ ↪o βᵒᵈ

An order embedding is also an order embedding between dual orders.

theorem OrderEmbedding.wellFoundedLT E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [i : WellFoundedLT β] (f : α ↪o β),
  WellFoundedLT α

A preorder which embeds into a well-founded preorder is itself well-founded.

theorem OrderEmbedding.wellFoundedGT E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [i : WellFoundedGT β] (f : α ↪o β),
  WellFoundedGT α

A preorder which embeds into a preorder in which (· > ·) is well-founded also has (· > ·) well-founded.

def OrderEmbedding.ofMapLEIff E1 #

{α : Type u_6} →
  {β : Type u_7} →
    [inst : PartialOrder α] → [inst_1 : Preorder β] → (f : α → β) → (∀ (a b : α), f a ≤ f b ↔ a ≤ b) → α ↪o β

To define an order embedding from a partial order to a preorder it suffices to give a function together with a proof that it satisfies f a ≤ f b ↔ a ≤ b.

theorem OrderEmbedding.coe_ofMapLEIff E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : PartialOrder α] [inst_1 : Preorder β] {f : α → β}
  (h : ∀ (a b : α), f a ≤ f b ↔ a ≤ b), ⇑(OrderEmbedding.ofMapLEIff f h) = f

def OrderEmbedding.ofStrictMono E1 #

{α : Type u_6} → {β : Type u_7} → [inst : LinearOrder α] → [inst_1 : Preorder β] → (f : α → β) → StrictMono f → α ↪o β

A strictly monotone map from a linear order is an order embedding.

theorem OrderEmbedding.coe_ofStrictMono E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β} (h : StrictMono f),
  ⇑(OrderEmbedding.ofStrictMono f h) = f

def OrderEmbedding.subtype E1 #

{α : Type u_2} → [inst : Preorder α] → (p : α → Prop) → Subtype p ↪o α

Embedding of a subtype into the ambient type as an OrderEmbedding.

theorem OrderEmbedding.subtype_apply E0 #

∀ {α : Type u_2} [inst : Preorder α] {p : α → Prop} (x : Subtype p), (OrderEmbedding.subtype p) x = ↑x

theorem OrderEmbedding.subtype_injective E1 #

∀ {α : Type u_2} [inst : Preorder α] (p : α → Prop), Function.Injective ⇑(OrderEmbedding.subtype p)

theorem OrderEmbedding.coe_subtype E0 #

∀ {α : Type u_2} [inst : Preorder α] (p : α → Prop), ⇑(OrderEmbedding.subtype p) = Subtype.val

def OrderEmbedding.toOrderHom E3 #

{X : Type u_6} → {Y : Type u_7} → [inst : Preorder X] → [inst_1 : Preorder Y] → X ↪o Y → X →o Y

Convert an OrderEmbedding to an OrderHom.

theorem OrderEmbedding.toOrderHom_coe E0 #

∀ {X : Type u_6} {Y : Type u_7} [inst : Preorder X] [inst_1 : Preorder Y] (f : X ↪o Y), ⇑f.toOrderHom = ⇑f

def OrderEmbedding.ofIsEmpty E1 #

{α : Type u_2} → {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → [IsEmpty α] → α ↪o β

The trivial embedding from an empty preorder to another preorder

theorem OrderEmbedding.ofIsEmpty_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : IsEmpty α] (a : α),
  OrderEmbedding.ofIsEmpty a = isEmptyElim a

theorem OrderEmbedding.coe_ofIsEmpty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : IsEmpty α],
  ⇑OrderEmbedding.ofIsEmpty = fun a ↦ isEmptyElim a

theorem Disjoint.of_orderEmbedding E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α ↪o β) [inst_2 : OrderBot α]
  [inst_3 : OrderBot β] {a₁ a₂ : α}, Disjoint (f a₁) (f a₂) → Disjoint a₁ a₂

If the images by an order embedding of two elements are disjoint, then they are themselves disjoint.

theorem Codisjoint.of_orderEmbedding E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α ↪o β) [inst_2 : OrderTop α]
  [inst_3 : OrderTop β] {a₁ a₂ : α}, Codisjoint (f a₁) (f a₂) → Codisjoint a₁ a₂

If the images by an order embedding of two elements are codisjoint, then they are themselves codisjoint.

theorem IsCompl.of_orderEmbedding E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α ↪o β) [inst_2 : BoundedOrder α]
  [inst_3 : BoundedOrder β] {a₁ a₂ : α}, IsCompl (f a₁) (f a₂) → IsCompl a₁ a₂

If the images by an order embedding of two elements are complements, then they are themselves complements.

def RelHom.toOrderHom E3 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : PartialOrder α] → [inst_1 : Preorder β] → ((fun x1 x2 ↦ x1 < x2) →r fun x1 x2 ↦ x1 < x2) → α →o β

A bundled expression of the fact that a map between partial orders that is strictly monotone is weakly monotone.

theorem RelHom.toOrderHom_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : Preorder β]
  (f : (fun x1 x2 ↦ x1 < x2) →r fun x1 x2 ↦ x1 < x2), ⇑f.toOrderHom = ⇑f

theorem RelEmbedding.toOrderHom_injective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : PartialOrder α] [inst_1 : Preorder β]
  (f : (fun x1 x2 ↦ x1 < x2) ↪r fun x1 x2 ↦ x1 < x2), Function.Injective ⇑f.toRelHom.toOrderHom

instance OrderIso.instEquivLike E0 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → EquivLike (α ≃o β) α β

instance OrderIso.instOrderIsoClass E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], OrderIsoClass (α ≃o β) α β

theorem OrderIso.toFun_eq_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] {f : α ≃o β}, f.toFun = ⇑f

theorem OrderIso.ext E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] {f g : α ≃o β}, ⇑f = ⇑g → f = g

theorem OrderIso.ext_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] {f g : α ≃o β}, f = g ↔ ⇑f = ⇑g

def OrderIso.ofBijective E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : LE α] → [inst_1 : LE β] → (f : α → β) → Function.Bijective f → (∀ (a b : α), f a ≤ f b ↔ a ≤ b) → α ≃o β

Build an order isomorphism from a bijective map that preserves and reflects ≤.

theorem OrderIso.toEquiv_ofBijective E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α → β) (hf : Function.Bijective f)
  (hf' : ∀ (a b : α), f a ≤ f b ↔ a ≤ b), (OrderIso.ofBijective f hf hf').toEquiv = Equiv.ofBijective f hf

theorem OrderIso.coe_ofBijective E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α → β) (hf : Function.Bijective f)
  (hf' : ∀ (a b : α), f a ≤ f b ↔ a ≤ b), ⇑(OrderIso.ofBijective f hf hf') = f

theorem OrderIso.ofBijective_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), OrderIso.ofBijective ⇑e ⋯ ⋯ = e

theorem OrderIso.ofBijective_apply_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α → β) (hf : Function.Bijective f)
  (hf' : ∀ (a b : α), f a ≤ f b ↔ a ≤ b) (x : β), f ((RelIso.symm (OrderIso.ofBijective f hf hf')) x) = x

theorem OrderIso.ofBijective_symm_apply_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α → β) (hf : Function.Bijective f)
  (hf' : ∀ (a b : α), f a ≤ f b ↔ a ≤ b) (x : α), (RelIso.symm (OrderIso.ofBijective f hf hf')) (f x) = x

def OrderIso.toOrderEmbedding E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → α ≃o β → α ↪o β

Reinterpret an order isomorphism as an order embedding.

theorem OrderIso.coe_toOrderEmbedding E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), ⇑e.toOrderEmbedding = ⇑e

theorem OrderIso.bijective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), Function.Bijective ⇑e

theorem OrderIso.injective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), Function.Injective ⇑e

theorem OrderIso.surjective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), Function.Surjective ⇑e

theorem OrderIso.apply_eq_iff_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) {x y : α}, e x = e y ↔ x = y

def OrderIso.refl E1 #

(α : Type u_6) → [inst : LE α] → α ≃o α

Identity order isomorphism.

theorem OrderIso.coe_refl E0 #

∀ {α : Type u_2} [inst : LE α], ⇑(OrderIso.refl α) = id

theorem OrderIso.refl_apply E0 #

∀ {α : Type u_2} [inst : LE α] (x : α), (OrderIso.refl α) x = x

theorem OrderIso.refl_toEquiv E0 #

∀ {α : Type u_2} [inst : LE α], (OrderIso.refl α).toEquiv = Equiv.refl α

def OrderIso.symm E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → α ≃o β → β ≃o α

Inverse of an order isomorphism.

theorem OrderIso.symm_mk E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃ β)
  (map_rel_iff' : ∀ {a b : α}, e a ≤ e b ↔ a ≤ b),
  OrderIso.symm { toEquiv := e, map_rel_iff' := map_rel_iff' } = { toEquiv := e.symm, map_rel_iff' := ⋯ }

theorem OrderIso.apply_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (x : β), e (e.symm x) = x

theorem OrderIso.symm_apply_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) (x : α), e.symm (e x) = x

theorem OrderIso.symm_refl E0 #

∀ (α : Type u_6) [inst : LE α], (OrderIso.refl α).symm = OrderIso.refl α

theorem OrderIso.symm_apply_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) {x : α} {y : β}, e.symm y = x ↔ y = e x

theorem OrderIso.symm_symm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), e.symm.symm = e

theorem OrderIso.symm_bijective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], Function.Bijective OrderIso.symm

theorem OrderIso.symm_injective E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], Function.Injective OrderIso.symm

theorem OrderIso.toEquiv_symm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), e.symm.toEquiv = e.symm

theorem OrderIso.coe_toEquiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), ⇑e.toEquiv = ⇑e

theorem OrderIso.coe_symm_toEquiv E0 #

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

def OrderIso.trans E1 #

{α : Type u_2} →
  {β : Type u_3} → {γ : Type u_4} → [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → α ≃o β → β ≃o γ → α ≃o γ

Composition of two order isomorphisms is an order isomorphism.

theorem OrderIso.coe_trans E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (e : α ≃o β) (e' : β ≃o γ),
  ⇑(e.trans e') = ⇑e' ∘ ⇑e

theorem OrderIso.toEquiv_trans E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (e : α ≃o β) (e' : β ≃o γ),
  (e.trans e').toEquiv = e.trans e'.toEquiv

theorem OrderIso.trans_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (e : α ≃o β) (e' : β ≃o γ)
  (x : α), (e.trans e') x = e' (e x)

theorem OrderIso.refl_trans E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), (OrderIso.refl α).trans e = e

theorem OrderIso.trans_refl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), e.trans (OrderIso.refl β) = e

theorem OrderIso.symm_trans_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (e₁ : α ≃o β) (e₂ : β ≃o γ)
  (c : γ), (e₁.trans e₂).symm c = e₁.symm (e₂.symm c)

theorem OrderIso.symm_trans E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (e₁ : α ≃o β)
  (e₂ : β ≃o γ), (e₁.trans e₂).symm = e₂.symm.trans e₁.symm

theorem OrderIso.self_trans_symm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), e.trans e.symm = OrderIso.refl α

theorem OrderIso.symm_trans_self E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β), e.symm.trans e = OrderIso.refl β

theorem OrderIso.trans_assoc E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o β) (g : β ≃o γ) (h : γ ≃o δ), (f.trans g).trans h = f.trans (g.trans h)

def OrderIso.arrowCongr E1 #

{α : Type u_6} →
  {β : Type u_7} →
    {γ : Type u_8} →
      {δ : Type u_9} →
        [inst : Preorder α] →
          [inst_1 : Preorder β] → [inst_2 : Preorder γ] → [inst_3 : Preorder δ] → α ≃o γ → β ≃o δ → (α →o β) ≃o (γ →o δ)

An order isomorphism between the domains and codomains of two prosets of order homomorphisms gives an order isomorphism between the two function prosets.

theorem OrderIso.arrowCongr_apply E0 #

∀ {α : Type u_6} {β : Type u_7} {γ : Type u_8} {δ : Type u_9} [inst : Preorder α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] [inst_3 : Preorder δ] (f : α ≃o γ) (g : β ≃o δ) (p : α →o β),
  (f.arrowCongr g) p = (↑g).comp (p.comp ↑f.symm)

theorem OrderIso.arrowCongr_symm_apply E0 #

∀ {α : Type u_6} {β : Type u_7} {γ : Type u_8} {δ : Type u_9} [inst : Preorder α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] [inst_3 : Preorder δ] (f : α ≃o γ) (g : β ≃o δ) (p : γ →o δ),
  (RelIso.symm (f.arrowCongr g)) p = (↑g.symm).comp (p.comp ↑f)

theorem OrderIso.arrowCongr_refl E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β],
  (OrderIso.refl α).arrowCongr (OrderIso.refl β) = OrderIso.refl (α →o β)

theorem OrderIso.arrowCongr_trans E0 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {α₃ : Type u_8} {β₁ : Type u_9} {β₂ : Type u_10} {β₃ : Type u_11} [inst : Preorder α₁]
  [inst_1 : Preorder α₂] [inst_2 : Preorder α₃] [inst_3 : Preorder β₁] [inst_4 : Preorder β₂] [inst_5 : Preorder β₃]
  (e₁ : α₁ ≃o α₂) (e₁' : β₁ ≃o β₂) (e₂ : α₂ ≃o α₃) (e₂' : β₂ ≃o β₃),
  (e₁.trans e₂).arrowCongr (e₁'.trans e₂') = (e₁.arrowCongr e₁').trans (e₂.arrowCongr e₂')

theorem OrderIso.symm_arrowCongr E0 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} [inst : Preorder α₁] [inst_1 : Preorder α₂]
  [inst_2 : Preorder β₁] [inst_3 : Preorder β₂] (e₁ : α₁ ≃o α₂) (e₂ : β₁ ≃o β₂),
  (e₁.arrowCongr e₂).symm = e₁.symm.arrowCongr e₂.symm

def OrderIso.conj E1 #

{α : Type u_6} → {β : Type u_7} → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β → (α →o α) ≃ (β →o β)

If α and β are order-isomorphic then the two orders of order-homomorphisms from α and β to themselves are order-isomorphic.

theorem OrderIso.conj_apply E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) (a : α →o α),
  f.conj a = (↑f).comp (a.comp ↑f.symm)

theorem OrderIso.conj_refl E0 #

∀ {α : Type u_6} [inst : Preorder α], (OrderIso.refl α).conj = Equiv.refl (α →o α)

theorem OrderIso.symm_conj E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), e.conj.symm = e.symm.conj

theorem OrderIso.conj_trans_conj E0 #

∀ {α : Type u_6} {β : Type u_7} {γ : Type u_8} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (e₁ : α ≃o β) (e₂ : β ≃o γ), e₁.conj.trans e₂.conj = (e₁.trans e₂).conj

abbrev OrderIso.orderEmbeddingCongr E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      {δ : Type u_5} →
        [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → [inst_3 : LE δ] → α ≃o γ → β ≃o δ → α ↪o β ≃ (γ ↪o δ)

Transport an OrderEmbedding across a pair of OrderIsos, by pre- and post-composition.

This is Equiv.embeddingCongr/RelIso.relEmbeddingCongr for OrderEmbedding.

theorem OrderIso.orderEmbeddingCongr_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o γ) (g : β ≃o δ) (h : α ↪o β),
  (f.orderEmbeddingCongr g) h = ((RelIso.toRelEmbedding f.symm).trans h).trans (RelIso.toRelEmbedding g)

theorem OrderIso.symm_orderEmbeddingCongr E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o γ) (g : β ≃o δ), (f.orderEmbeddingCongr g).symm = f.symm.orderEmbeddingCongr g.symm

theorem OrderIso.orderEmbeddingCongr_refl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β],
  (OrderIso.refl α).orderEmbeddingCongr (OrderIso.refl β) = Equiv.refl (α ↪o β)

theorem OrderIso.orderEmbeddingCongr_trans E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] {ε : Type u_6} {ζ : Type u_7} [inst_4 : LE ε] [inst_5 : LE ζ] (f : α ≃o γ) (g : β ≃o δ) (f' : γ ≃o ε)
  (g' : δ ≃o ζ),
  (f.orderEmbeddingCongr g).trans (f'.orderEmbeddingCongr g') = (f.trans f').orderEmbeddingCongr (g.trans g')

abbrev OrderIso.orderIsoCongr E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      {δ : Type u_5} →
        [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → [inst_3 : LE δ] → α ≃o γ → β ≃o δ → α ≃o β ≃ (γ ≃o δ)

Transport an OrderIso across a pair of OrderIsos, by pre- and post-composition.

This is Equiv.equivCongr/RelIso.relIsoCongr for OrderIso.

theorem OrderIso.orderIsoCongr_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o γ) (g : β ≃o δ) (h : α ≃o β), (f.orderIsoCongr g) h = (f.symm.trans h).trans g

theorem OrderIso.orderIsoCongr_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o γ) (g : β ≃o δ) (h : γ ≃o δ), (f.orderIsoCongr g).symm h = (f.trans h).trans g.symm

theorem OrderIso.symm_orderIsoCongr E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (f : α ≃o γ) (g : β ≃o δ), (f.orderIsoCongr g).symm = f.symm.orderIsoCongr g.symm

theorem OrderIso.orderIsoCongr_refl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β],
  (OrderIso.refl α).orderIsoCongr (OrderIso.refl β) = Equiv.refl (α ≃o β)

theorem OrderIso.orderIsoCongr_trans_orderIsoCongr E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] {ε : Type u_6} {ζ : Type u_7} [inst_4 : LE ε] [inst_5 : LE ζ] (e₁ : α ≃o γ) (e₂ : β ≃o δ)
  (e₁' : γ ≃o ε) (e₂' : δ ≃o ζ),
  (e₁.orderIsoCongr e₂).trans (e₁'.orderIsoCongr e₂') = (e₁.trans e₁').orderIsoCongr (e₂.trans e₂')

def OrderIso.ofSurjective E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → (f : α ↪o β) → Function.Surjective ⇑f → α ≃o β

A surjective order embedding is an order isomorphism.

theorem OrderIso.ofSurjective_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ↪o β) (hf : Function.Surjective ⇑f) (a : α),
  (OrderIso.ofSurjective f hf) a = f a

theorem OrderIso.ofSurjective_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ↪o β) (hf : Function.Surjective ⇑f) (b : β),
  (RelIso.symm (OrderIso.ofSurjective f hf)) b = Function.surjInv ⋯ b

def OrderIso.equivEmbeddingSurjective E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → α ≃o β ≃ { f // Function.Surjective ⇑f }

Surjective order embeddings are equivalent to order isomorphisms.

theorem OrderIso.equivEmbeddingSurjective_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : { f // Function.Surjective ⇑f }),
  OrderIso.equivEmbeddingSurjective.symm f = OrderIso.ofSurjective ↑f ⋯

theorem OrderIso.equivEmbeddingSurjective_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ≃o β),
  OrderIso.equivEmbeddingSurjective f = ⟨RelIso.toRelEmbedding f, ⋯⟩

def OrderIso.prodComm E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → α × β ≃o β × α

Prod.swap as an OrderIso.

theorem OrderIso.prodComm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (a : α × β), OrderIso.prodComm a = a.swap

theorem OrderIso.prodComm_toEquiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], OrderIso.prodComm.toEquiv = Equiv.prodComm α β

def OrderIso.prodAssoc E1 #

(α : Type u_6) →
  (β : Type u_7) → (γ : Type u_8) → [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → (α × β) × γ ≃o α × β × γ

Equiv.prodAssoc promoted to an order isomorphism.

theorem OrderIso.prodAssoc_apply E0 #

∀ (α : Type u_6) (β : Type u_7) (γ : Type u_8) [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (p : (α × β) × γ),
  (OrderIso.prodAssoc α β γ) p = (p.1.1, p.1.2, p.2)

theorem OrderIso.prodAssoc_symm_apply E0 #

∀ (α : Type u_6) (β : Type u_7) (γ : Type u_8) [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ] (p : α × β × γ),
  (RelIso.symm (OrderIso.prodAssoc α β γ)) p = ((p.1, p.2.1), p.2.2)

theorem OrderIso.prodAssoc_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) (γ : Type u_8) [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ],
  (OrderIso.prodAssoc α β γ).toEquiv = Equiv.prodAssoc α β γ

def OrderIso.prodCongr E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {γ : Type u_4} →
      {δ : Type u_5} →
        [inst : LE α] → [inst_1 : LE β] → [inst_2 : LE γ] → [inst_3 : LE δ] → α ≃o γ → β ≃o δ → α × β ≃o γ × δ

Equiv.prodCongr promoted to an order isomorphism.

theorem OrderIso.prodCongr_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (e₁ : α ≃o γ) (e₂ : β ≃o δ) (a : α × β), (e₁.prodCongr e₂) a = Prod.map (⇑e₁) (⇑e₂) a

theorem OrderIso.prodCongr_toEquiv E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (e₁ : α ≃o γ) (e₂ : β ≃o δ), (e₁.prodCongr e₂).toEquiv = e₁.prodCongr e₂.toEquiv

theorem OrderIso.symm_prodCongr E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (e₁ : α ≃o γ) (e₂ : β ≃o δ), (e₁.prodCongr e₂).symm = e₁.symm.prodCongr e₂.symm

theorem OrderIso.prodCongr_refl_refl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β],
  (OrderIso.refl α).prodCongr (OrderIso.refl β) = OrderIso.refl (α × β)

theorem OrderIso.prodCongr_trans_prodCongr E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] {ε : Type u_6} {ζ : Type u_7} [inst_4 : LE ε] [inst_5 : LE ζ] (e₁ : α ≃o γ) (e₂ : β ≃o δ)
  (e₁' : γ ≃o ε) (e₂' : δ ≃o ζ), (e₁.prodCongr e₂).trans (e₁'.prodCongr e₂') = (e₁.trans e₁').prodCongr (e₂.trans e₂')

theorem OrderIso.prodComm_trans_prodCongr E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [inst : LE α] [inst_1 : LE β] [inst_2 : LE γ]
  [inst_3 : LE δ] (e₁ : α ≃o γ) (e₂ : β ≃o δ),
  OrderIso.prodComm.trans (e₁.prodCongr e₂) = (e₂.prodCongr e₁).trans OrderIso.prodComm

theorem OrderIso.coe_prodComm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], ⇑OrderIso.prodComm = Prod.swap

theorem OrderIso.prodComm_symm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β], OrderIso.prodComm.symm = OrderIso.prodComm

theorem OrderIso.prodComm_trans_prodComm E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β],
  OrderIso.prodComm.trans OrderIso.prodComm = OrderIso.refl (α × β)

def OrderIso.dualDual E1 #

(α : Type u_2) → [inst : LE α] → α ≃o αᵒᵈᵒᵈ

The order isomorphism between a type and its double dual.

theorem OrderIso.coe_dualDual E0 #

∀ (α : Type u_2) [inst : LE α], ⇑(OrderIso.dualDual α) = ⇑OrderDual.toDual ∘ ⇑OrderDual.toDual

theorem OrderIso.coe_dualDual_symm E0 #

∀ (α : Type u_2) [inst : LE α], ⇑(OrderIso.dualDual α).symm = ⇑OrderDual.ofDual ∘ ⇑OrderDual.ofDual

theorem OrderIso.dualDual_apply E0 #

∀ {α : Type u_2} [inst : LE α] (a : α), (OrderIso.dualDual α) a = OrderDual.toDual (OrderDual.toDual a)

theorem OrderIso.dualDual_symm_apply E0 #

∀ {α : Type u_2} [inst : LE α] (a : αᵒᵈᵒᵈ), (OrderIso.dualDual α).symm a = OrderDual.ofDual (OrderDual.ofDual a)

theorem OrderIso.le_iff_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) {x y : α}, e x ≤ e y ↔ x ≤ y

theorem OrderIso.symm_apply_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) {x : α} {y : β}, e.symm y ≤ x ↔ y ≤ e x

theorem OrderIso.le_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (e : α ≃o β) {x : α} {y : β}, x ≤ e.symm y ↔ e x ≤ y

def OrderIso.prodUnique E1 #

(α : Type u_6) → (β : Type u_7) → [inst : LE α] → [inst_1 : Preorder β] → [Unique β] → α × β ≃o α

Equiv.prodUnique promoted to an order isomorphism.

theorem OrderIso.prodUnique_symm_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β] (a : α),
  (RelIso.symm (OrderIso.prodUnique α β)) a = (a, default)

theorem OrderIso.prodUnique_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  (OrderIso.prodUnique α β).toEquiv = Equiv.prodUnique α β

theorem OrderIso.prodUnique_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β] (a : α × β),
  (OrderIso.prodUnique α β) a = a.1

def OrderIso.uniqueProd E1 #

(α : Type u_6) → (β : Type u_7) → [inst : LE α] → [inst_1 : Preorder β] → [Unique β] → β × α ≃o α

Equiv.uniqueProd promoted to an order isomorphism.

theorem OrderIso.uniqueProd_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β] (a : β × α),
  (OrderIso.uniqueProd α β) a = a.2

theorem OrderIso.uniqueProd_symm_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β] (a : α),
  (RelIso.symm (OrderIso.uniqueProd α β)) a = (default, a)

theorem OrderIso.uniqueProd_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  (OrderIso.uniqueProd α β).toEquiv = Equiv.uniqueProd α β

theorem OrderIso.coe_prodUnique E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  ⇑(OrderIso.prodUnique α β) = Prod.fst

theorem OrderIso.coe_uniqueProd E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  ⇑(OrderIso.uniqueProd α β) = Prod.snd

theorem OrderIso.prodComm_trans_prodUnique E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  OrderIso.prodComm.trans (OrderIso.prodUnique α β) = OrderIso.uniqueProd α β

theorem OrderIso.prodComm_trans_uniqueProd E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  OrderIso.prodComm.trans (OrderIso.uniqueProd α β) = OrderIso.prodUnique α β

theorem OrderIso.symm_prodUnique_trans_prodComm E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  (OrderIso.prodUnique α β).symm.trans OrderIso.prodComm = (OrderIso.uniqueProd α β).symm

theorem OrderIso.symm_uniqueProd_trans_prodComm E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : LE α] [inst_1 : Preorder β] [inst_2 : Unique β],
  (OrderIso.uniqueProd α β).symm.trans OrderIso.prodComm = (OrderIso.prodUnique α β).symm

theorem OrderIso.monotone E2 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), Monotone ⇑e

theorem OrderIso.strictMono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), StrictMono ⇑e

theorem OrderIso.lt_iff_lt E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) {x y : α}, e x < e y ↔ x < y

theorem OrderIso.lt_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) {x : α} {y : β},
  x < e.symm y ↔ e x < y

theorem OrderIso.symm_apply_lt E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) {x : α} {y : β},
  e.symm y < x ↔ y < e x

def OrderIso.toRelIsoLT E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β → (fun x1 x2 ↦ x1 < x2) ≃r fun x1 x2 ↦ x1 < x2

Converts an OrderIso into a RelIso (<) (<).

def OrderIso.toRelIsoGT E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β → (fun x1 x2 ↦ x2 < x1) ≃r fun x1 x2 ↦ x2 < x1

Converts an OrderIso into a RelIso (>) (>).

theorem OrderIso.toRelIsoLT_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) (x : α), e.toRelIsoLT x = e x

theorem OrderIso.toRelIsoGT_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) (x : α), e.toRelIsoGT x = e x

theorem OrderIso.toRelIsoLT_symm E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β),
  e.symm.toRelIsoLT = e.toRelIsoLT.symm

theorem OrderIso.toRelIsoGT_symm E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β),
  e.symm.toRelIsoGT = e.toRelIsoGT.symm

theorem OrderIso.coe_toRelIsoLT E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), ⇑e.toRelIsoLT = ⇑e

theorem OrderIso.coe_toRelIsoGT E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), ⇑e.toRelIsoGT = ⇑e

theorem OrderIso.coe_symm_toRelIsoGT E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), ⇑e.toRelIsoGT.symm = ⇑e.symm

theorem OrderIso.coe_symm_toRelIsoLT E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β), ⇑e.toRelIsoLT.symm = ⇑e.symm

def OrderIso.ofRelIsoLT E1 #

{α : Type u_6} →
  {β : Type u_7} →
    [inst : PartialOrder α] → [inst_1 : PartialOrder β] → ((fun x1 x2 ↦ x1 < x2) ≃r fun x1 x2 ↦ x1 < x2) → α ≃o β

Converts a RelIso (<) (<) into an OrderIso.

theorem OrderIso.ofRelIsoLT_apply E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : PartialOrder α] [inst_1 : PartialOrder β]
  (e : (fun x1 x2 ↦ x1 < x2) ≃r fun x1 x2 ↦ x1 < x2) (x : α), (OrderIso.ofRelIsoLT e) x = e x

theorem OrderIso.ofRelIsoLT_symm E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : PartialOrder α] [inst_1 : PartialOrder β]
  (e : (fun x1 x2 ↦ x1 < x2) ≃r fun x1 x2 ↦ x1 < x2), (OrderIso.ofRelIsoLT e).symm = OrderIso.ofRelIsoLT e.symm

theorem OrderIso.ofRelIsoLT_toRelIsoLT E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : PartialOrder α] [inst_1 : PartialOrder β] (e : α ≃o β),
  OrderIso.ofRelIsoLT e.toRelIsoLT = e

theorem OrderIso.toRelIsoLT_ofRelIsoLT E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : PartialOrder α] [inst_1 : PartialOrder β]
  (e : (fun x1 x2 ↦ x1 < x2) ≃r fun x1 x2 ↦ x1 < x2), (OrderIso.ofRelIsoLT e).toRelIsoLT = e

def OrderIso.ofCmpEqCmp E1 #

{α : Type u_6} →
  {β : Type u_7} →
    [inst : LinearOrder α] →
      [inst_1 : LinearOrder β] → (f : α → β) → (g : β → α) → (∀ (a : α) (b : β), cmp a (g b) = cmp (f a) b) → α ≃o β

To show that f : α → β, g : β → α make up an order isomorphism of linear orders, it suffices to prove cmp a (g b) = cmp (f a) b.

def OrderIso.ofHomInv E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Preorder α] →
      [inst_1 : Preorder β] → (f : α →o β) → (g : β →o α) → f.comp g = OrderHom.id → g.comp f = OrderHom.id → α ≃o β

To show that f : α →o β and g : β →o α make up an order isomorphism it is enough to show that g is the inverse of f.

theorem OrderIso.ofHomInv_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (g : β →o α)
  (h₁ : f.comp g = OrderHom.id) (h₂ : g.comp f = OrderHom.id) (a : α), (OrderIso.ofHomInv f g h₁ h₂) a = f a

theorem OrderIso.ofHomInv_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (g : β →o α)
  (h₁ : f.comp g = OrderHom.id) (h₂ : g.comp f = OrderHom.id) (a : β), (OrderIso.ofHomInv f g h₁ h₂).symm a = g a

def OrderIso.funUnique E1 #

(α : Type u_6) → (β : Type u_7) → [Unique α] → [inst : Preorder β] → (α → β) ≃o β

Order isomorphism between α → β and β, where α has a unique element.

theorem OrderIso.funUnique_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Unique α] [inst_1 : Preorder β],
  (OrderIso.funUnique α β).toEquiv = Equiv.funUnique α β

theorem OrderIso.funUnique_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Unique α] [inst_1 : Preorder β] (f : (i : α) → (fun a ↦ β) i),
  (OrderIso.funUnique α β) f = f default

theorem OrderIso.funUnique_symm_apply E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Unique α] [inst_1 : Preorder β],
  ⇑(OrderIso.funUnique α β).symm = Function.const α

def OrderIso.ofUnique E1 #

(α : Type u_6) → (β : Type u_7) → [Unique α] → [Unique β] → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β

The order isomorphism α ≃o β when α and β are preordered types containing unique elements.

theorem OrderIso.ofUnique_symm_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Unique α] [inst_1 : Unique β] [inst_2 : Preorder α] [inst_3 : Preorder β]
  (a : β), (RelIso.symm (OrderIso.ofUnique α β)) a = default

theorem OrderIso.ofUnique_apply E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Unique α] [inst_1 : Unique β] [inst_2 : Preorder α] [inst_3 : Preorder β]
  (a : α), (OrderIso.ofUnique α β) a = default

theorem OrderIso.ofUnique_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Unique α] [inst_1 : Unique β] [inst_2 : Preorder α] [inst_3 : Preorder β],
  (OrderIso.ofUnique α β).toEquiv = Equiv.ofUnique α β

def OrderIso.ofIsEmpty E1 #

(α : Type u_6) → (β : Type u_7) → [inst : Preorder α] → [inst_1 : Preorder β] → [IsEmpty α] → [IsEmpty β] → α ≃o β

Equiv.equivOfIsEmpty promoted to an OrderIso.

theorem OrderIso.ofIsEmpty_toEquiv E0 #

∀ (α : Type u_6) (β : Type u_7) [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : IsEmpty α] [inst_3 : IsEmpty β],
  (OrderIso.ofIsEmpty α β).toEquiv = Equiv.equivOfIsEmpty α β

def Equiv.toOrderIso E1 #

{α : Type u_2} →
  {β : Type u_3} → [inst : Preorder α] → [inst_1 : Preorder β] → (e : α ≃ β) → Monotone ⇑e → Monotone ⇑e.symm → α ≃o β

If e is an equivalence with monotone forward and inverse maps, then e is an order isomorphism.

theorem Equiv.coe_toOrderIso E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃ β) (h₁ : Monotone ⇑e)
  (h₂ : Monotone ⇑e.symm), ⇑(e.toOrderIso h₁ h₂) = ⇑e

theorem Equiv.toOrderIso_toEquiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃ β) (h₁ : Monotone ⇑e)
  (h₂ : Monotone ⇑e.symm), (e.toOrderIso h₁ h₂).toEquiv = e

def StrictMono.orderIsoOfRightInverse E1 #

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

A strictly monotone function with a right inverse is an order isomorphism.

theorem StrictMono.orderIsoOfRightInverse_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (g : β → α) (hg : Function.RightInverse g f), ⇑(RelIso.symm (StrictMono.orderIsoOfRightInverse f h_mono g hg)) = g

theorem StrictMono.orderIsoOfRightInverse_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : Preorder β] (f : α → β) (h_mono : StrictMono f)
  (g : β → α) (hg : Function.RightInverse g f), ⇑(StrictMono.orderIsoOfRightInverse f h_mono g hg) = f

def OrderIso.dual E1 #

{α : Type u_2} → {β : Type u_3} → [inst : LE α] → [inst_1 : LE β] → α ≃o β → αᵒᵈ ≃o βᵒᵈ

An order isomorphism is also an order isomorphism between dual orders.

theorem OrderIso.dual_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ≃o β) (x : αᵒᵈ),
  f.dual x = OrderDual.toDual (f (OrderDual.ofDual x))

theorem OrderIso.dual_symm_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ≃o β) (x : βᵒᵈ),
  f.dual.symm x = OrderDual.toDual (f.symm (OrderDual.ofDual x))

theorem OrderIso.symm_dual E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ≃o β), f.symm.dual = f.dual.symm

theorem OrderIso.dual_refl E0 #

∀ (α : Type u_6) [inst : LE α], (OrderIso.refl α).dual = OrderIso.refl αᵒᵈ

theorem OrderIso.dual_trans E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : LE β] (f : α ≃o β) {γ : Type u_6} [inst_2 : LE γ] (g : β ≃o γ),
  (f.trans g).dual = f.dual.trans g.dual

theorem OrderIso.map_bot' E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : PartialOrder β] (f : α ≃o β) {x : α} {y : β},
  (∀ (x' : α), x ≤ x') → (∀ (y' : β), y ≤ y') → f x = y

theorem OrderIso.map_top' E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : PartialOrder β] (f : α ≃o β) {x : α} {y : β},
  (∀ (x' : α), x' ≤ x) → (∀ (y' : β), y' ≤ y) → f x = y

theorem OrderIso.map_top E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : PartialOrder β] [inst_2 : OrderTop α] [inst_3 : OrderTop β]
  (f : α ≃o β), f ⊤ = ⊤

theorem OrderIso.map_bot E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : LE α] [inst_1 : PartialOrder β] [inst_2 : OrderBot α] [inst_3 : OrderBot β]
  (f : α ≃o β), f ⊥ = ⊥

theorem OrderEmbedding.le_map_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β] (f : α ↪o β) (x y : α),
  f x ⊔ f y ≤ f (x ⊔ y)

theorem OrderEmbedding.map_inf_le E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : SemilatticeInf β] (f : α ↪o β) (x y : α),
  f (x ⊓ y) ≤ f x ⊓ f y

theorem OrderIso.map_inf E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : SemilatticeInf β] (f : α ≃o β) (x y : α),
  f (x ⊓ y) = f x ⊓ f y

theorem OrderIso.map_sup E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β] (f : α ≃o β) (x y : α),
  f (x ⊔ y) = f x ⊔ f y

theorem OrderIso.isMin_apply E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) {x : α}, IsMin (f x) ↔ IsMin x

theorem OrderIso.isMax_apply E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) {x : α}, IsMax (f x) ↔ IsMax x

theorem Disjoint.map_orderIso E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderBot α] [inst_2 : SemilatticeInf β]
  [inst_3 : OrderBot β] {a b : α} (f : α ≃o β), Disjoint a b → Disjoint (f a) (f b)

Note that this goal could also be stated (Disjoint on f) a b

theorem Codisjoint.map_orderIso E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderTop α] [inst_2 : SemilatticeSup β]
  [inst_3 : OrderTop β] {a b : α} (f : α ≃o β), Codisjoint a b → Codisjoint (f a) (f b)

Note that this goal could also be stated (Codisjoint on f) a b

theorem disjoint_map_orderIso_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderBot α] [inst_2 : SemilatticeInf β]
  [inst_3 : OrderBot β] {a b : α} (f : α ≃o β), Disjoint (f a) (f b) ↔ Disjoint a b

theorem codisjoint_map_orderIso_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderTop α] [inst_2 : SemilatticeSup β]
  [inst_3 : OrderTop β] {a b : α} (f : α ≃o β), Codisjoint (f a) (f b) ↔ Codisjoint a b

theorem OrderIso.isCompl E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Lattice α] [inst_1 : Lattice β] [inst_2 : BoundedOrder α]
  [inst_3 : BoundedOrder β] (f : α ≃o β) {x y : α}, IsCompl x y → IsCompl (f x) (f y)

theorem OrderIso.isCompl_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Lattice α] [inst_1 : Lattice β] [inst_2 : BoundedOrder α]
  [inst_3 : BoundedOrder β] (f : α ≃o β) {x y : α}, IsCompl x y ↔ IsCompl (f x) (f y)

theorem OrderIso.complementedLattice E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Lattice α] [inst_1 : Lattice β] [inst_2 : BoundedOrder α]
  [inst_3 : BoundedOrder β] [ComplementedLattice α] (f : α ≃o β), ComplementedLattice β

theorem OrderIso.complementedLattice_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Lattice α] [inst_1 : Lattice β] [inst_2 : BoundedOrder α]
  [inst_3 : BoundedOrder β] (f : α ≃o β), ComplementedLattice α ↔ ComplementedLattice β

theorem StrictMono.denselyOrdered_range E1 #

∀ {X : Type u_6} {Y : Type u_7} [inst : LinearOrder X] [DenselyOrdered X] [inst_2 : Preorder Y] {f : X → Y},
  StrictMono f → DenselyOrdered ↑(Set.range f)

theorem denselyOrdered_iff_of_orderIsoClass E1 #

∀ {X : Type u_6} {Y : Type u_7} {F : Type u_8} [inst : Preorder X] [inst_1 : Preorder Y] [inst_2 : EquivLike F X Y]
  [OrderIsoClass F X Y] (f : F), DenselyOrdered X ↔ DenselyOrdered Y

theorem denselyOrdered_iff_of_strictAnti E1 #

∀ {X : Type u_6} {Y : Type u_7} {F : Type u_8} [inst : LinearOrder X] [inst_1 : Preorder Y] [inst_2 : EquivLike F X Y]
  (f : F), StrictAnti ⇑f → (DenselyOrdered X ↔ DenselyOrdered Y)

def ULift.orderIso E1 #

{α : Type u} → [inst : Preorder α] → ULift.{v, u} α ≃o α

The bijection ULift.{v} α ≃ α as an isomorphism of orders.

theorem ULift.orderIso_symm_apply_down E0 #

∀ {α : Type u} [inst : Preorder α] (down : α), ((RelIso.symm ULift.orderIso.{v, u}) down).down = down

theorem ULift.orderIso_apply E0 #

∀ {α : Type u} [inst : Preorder α] (self : ULift.{v, u} α), ULift.orderIso.{v, u} self = self.down

Deprecated aliases

NameNew nameSince
OrderHomClass.toOrderHomOrderHom.ofClass2026-09-02
OrderIso.apply_eq_iff_eq_symm_applyOrderIso.eq_symm_apply2026-07-26
OrderIso.conj_symm_applyOrderIso.symm_conj2026-10-28
OrderIsoClass.toOrderIsoOrderIso.ofClass2026-09-02