The areas / V04. Order and lattices
Mathlib.Order.RelIso.Basic
287 declarations and 3 deprecated aliases. Mathlib docs · Source
Relation homomorphisms, embeddings, isomorphisms
This file defines relation homomorphisms, embeddings, isomorphisms and order embeddings and isomorphisms.
Main declarations
RelHom: Relation homomorphism. ARelHom r sis a functionf : α → βsuch thatr a b → s (f a) (f b).RelEmbedding: Relation embedding. ARelEmbedding r sis an embeddingf : α ↪ βsuch thatr a b ↔ s (f a) (f b).RelIso: Relation isomorphism. ARelIso r sis an equivalencef : α ≃ βsuch thatr a b ↔ s (f a) (f b).sumLexCongr,prodLexCongr: Creates a relation homomorphism between twoSum.Lexor twoProd.Lexfrom relation homomorphisms between their arguments.
Notation
→r:RelHom↪r:RelEmbedding≃r:RelIso
theorem RelHom.mk.injEq E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (toFun : α → β)
(map_rel' : ∀ {a b : α}, r a b → s (toFun a) (toFun b)) (toFun_1 : α → β)
(map_rel'_1 : ∀ {a b : α}, r a b → s (toFun_1 a) (toFun_1 b)),
({ toFun := toFun, map_rel' := map_rel' } = { toFun := toFun_1, map_rel' := map_rel'_1 }) = (toFun = toFun_1)
theorem RelEmbedding.mk.injEq E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (toEmbedding : α ↪ β)
(map_rel_iff' : ∀ {a b : α}, s (toEmbedding a) (toEmbedding b) ↔ r a b) (toEmbedding_1 : α ↪ β)
(map_rel_iff'_1 : ∀ {a b : α}, s (toEmbedding_1 a) (toEmbedding_1 b) ↔ r a b),
({ toEmbedding := toEmbedding, map_rel_iff' := map_rel_iff' } =
{ toEmbedding := toEmbedding_1, map_rel_iff' := map_rel_iff'_1 }) =
(toEmbedding = toEmbedding_1)
theorem RelIso.ofBijective.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f f_1 : α → β) (e_f : f = f_1)
(hf : Function.Bijective f) (hf' : ∀ (a b : α), s (f a) (f b) ↔ r a b),
RelIso.ofBijective f hf hf' = RelIso.ofBijective f_1 ⋯ ⋯
theorem isEmptyElim.congr_simp E1 #
∀ {α : Sort u} [inst : IsEmpty α] {p : α → Sort v} (a : α), isEmptyElim a = isEmptyElim a
def RelIso.ctorIdx E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → ℕ
def RelEmbedding.ctorIdx E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r ↪r s → ℕ
theorem Equiv.sumEmpty.congr_simp E1 #
∀ (α : Type u_9) (β : Type u_10) [inst : IsEmpty β], Equiv.sumEmpty α β = Equiv.sumEmpty α β
theorem RelIso.mk.inj E1 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} {toEquiv : α ≃ β}
{map_rel_iff' : ∀ {a b : α}, s (toEquiv a) (toEquiv b) ↔ r a b} {toEquiv_1 : α ≃ β}
{map_rel_iff'_1 : ∀ {a b : α}, s (toEquiv_1 a) (toEquiv_1 b) ↔ r a b},
{ toEquiv := toEquiv, map_rel_iff' := map_rel_iff' } = { toEquiv := toEquiv_1, map_rel_iff' := map_rel_iff'_1 } →
toEquiv = toEquiv_1
theorem RelIso.mk.injEq E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (toEquiv : α ≃ β)
(map_rel_iff' : ∀ {a b : α}, s (toEquiv a) (toEquiv b) ↔ r a b) (toEquiv_1 : α ≃ β)
(map_rel_iff'_1 : ∀ {a b : α}, s (toEquiv_1 a) (toEquiv_1 b) ↔ r a b),
({ toEquiv := toEquiv, map_rel_iff' := map_rel_iff' } = { toEquiv := toEquiv_1, map_rel_iff' := map_rel_iff'_1 }) =
(toEquiv = toEquiv_1)
theorem RelHom.mk.inj E1 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} {toFun : α → β}
{map_rel' : ∀ {a b : α}, r a b → s (toFun a) (toFun b)} {toFun_1 : α → β}
{map_rel'_1 : ∀ {a b : α}, r a b → s (toFun_1 a) (toFun_1 b)},
{ toFun := toFun, map_rel' := map_rel' } = { toFun := toFun_1, map_rel' := map_rel'_1 } → toFun = toFun_1
theorem RelEmbedding.mk.inj E1 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} {toEmbedding : α ↪ β}
{map_rel_iff' : ∀ {a b : α}, s (toEmbedding a) (toEmbedding b) ↔ r a b} {toEmbedding_1 : α ↪ β}
{map_rel_iff'_1 : ∀ {a b : α}, s (toEmbedding_1 a) (toEmbedding_1 b) ↔ r a b},
{ toEmbedding := toEmbedding, map_rel_iff' := map_rel_iff' } =
{ toEmbedding := toEmbedding_1, map_rel_iff' := map_rel_iff'_1 } →
toEmbedding = toEmbedding_1
theorem RelEmbedding.mk.congr_simp E1 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (toEmbedding toEmbedding_1 : α ↪ β)
(e_toEmbedding : toEmbedding = toEmbedding_1) (map_rel_iff' : ∀ {a b : α}, s (toEmbedding a) (toEmbedding b) ↔ r a b),
{ toEmbedding := toEmbedding, map_rel_iff' := map_rel_iff' } = { toEmbedding := toEmbedding_1, map_rel_iff' := ⋯ }
def RelHom.ctorIdx E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r →r s → ℕ
theorem Equiv.emptySum.congr_simp E1 #
∀ (α : Type u_9) (β : Type u_10) [inst : IsEmpty α], Equiv.emptySum α β = Equiv.emptySum α β
structure RelHom E3 #
{α : Type u_5} → {β : Type u_6} → (α → α → Prop) → (β → β → Prop) → Type (max u_5 u_6)
A relation homomorphism with respect to a given pair of relations r and s
is a function f : α → β such that r a b → s (f a) (f b).
ctor RelHom.mk E0 #
{α : Type u_5} →
{β : Type u_6} →
{r : α → α → Prop} → {s : β → β → Prop} → (toFun : α → β) → (∀ {a b : α}, r a b → s (toFun a) (toFun b)) → r →r s
abbrev RelHom.toFun E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r →r s → α → β
The underlying function of a RelHom
theorem RelHom.map_rel' E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (self : r →r s) {a b : α},
r a b → s (self.toFun a) (self.toFun b)
A RelHom sends related elements to related elements
def «term_→r_» E1 #
Lean.TrailingParserDescr
A relation homomorphism with respect to a given pair of relations r and s
is a function f : α → β such that r a b → s (f a) (f b).
class RelHomClass E1 #
(F : Type u_5) →
{α : outParam (Type u_6)} →
{β : outParam (Type u_7)} → outParam (α → α → Prop) → outParam (β → β → Prop) → [FunLike F α β] → Prop
RelHomClass F r s asserts that F is a type of functions such that all f : F
satisfy r a b → s (f a) (f b).
The relations r and s are outParams since figuring them out from a goal is a higher-order
matching problem that Lean usually can't do unaided.
ctor RelHomClass.mk E0 #
∀ {F : Type u_5} {α : outParam (Type u_6)} {β : outParam (Type u_7)} {r : outParam (α → α → Prop)}
{s : outParam (β → β → Prop)} [inst : FunLike F α β], (∀ (f : F) {a b : α}, r a b → s (f a) (f b)) → RelHomClass F r s
theorem RelHomClass.map_rel E0 #
∀ {F : Type u_5} {α : outParam (Type u_6)} {β : outParam (Type u_7)} {r : outParam (α → α → Prop)}
{s : outParam (β → β → Prop)} {inst : FunLike F α β} [self : RelHomClass F r s] (f : F) {a b : α},
r a b → s (f a) (f b)
A RelHomClass sends related elements to related elements
theorem RelHomClass.irrefl E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {F : Type u_5} [inst : FunLike F α β]
[RelHomClass F r s] (f : F) [Std.Irrefl s], Std.Irrefl r
theorem RelHomClass.asymm E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {F : Type u_5} [inst : FunLike F α β]
[RelHomClass F r s] (f : F) [Std.Asymm s], Std.Asymm r
theorem RelHomClass.acc E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {F : Type u_5} [inst : FunLike F α β]
[RelHomClass F r s] (f : F) (a : α), Acc s (f a) → Acc r a
theorem RelHomClass.wellFounded E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {F : Type u_5} [inst : FunLike F α β]
[RelHomClass F r s] (f : F), WellFounded s → WellFounded r
theorem RelHomClass.wellFounded' E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {F : Type u_5} [inst : FunLike F α β]
[RelHomClass F r s] (f : F) [i : WellFounded s], WellFounded r
instance RelHom.instFunLike E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → FunLike (r →r s) α β
instance RelHom.instRelHomClass E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, RelHomClass (r →r s) r s
theorem RelHom.map_rel E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s) {a b : α}, r a b → s (f a) (f b)
theorem RelHom.coe_fn_toFun E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s), f.toFun = ⇑f
theorem RelHom.coeFn_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β)
(h : ∀ {a b : α}, r a b → s (f a) (f b)), ⇑{ toFun := f, map_rel' := h } = f
theorem RelHom.coe_fn_injective E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Injective fun f ↦ ⇑f
The map coe_fn : (r →r s) → (α → β) is injective.
theorem RelHom.ext E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} ⦃f g : r →r s⦄, (∀ (x : α), f x = g x) → f = g
theorem RelHom.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : r →r s}, f = g ↔ ∀ (x : α), f x = g x
def RelHom.id E1 #
{α : Type u_1} → (r : α → α → Prop) → r →r r
Identity map is a relation homomorphism.
theorem RelHom.id_apply E0 #
∀ {α : Type u_1} (r : α → α → Prop) (x : α), (RelHom.id r) x = x
def RelHom.comp E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} → {r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → s →r t → r →r s → r →r t
Composition of two relation homomorphisms is a relation homomorphism.
theorem RelHom.comp_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (g : s →r t)
(f : r →r s) (x : α), (g.comp f) x = g (f x)
def RelHom.ofLE E1 #
{α : Type u_1} → {r r' : α → α → Prop} → r ≤ r' → r →r r'
The identity relation homomorphism from a subrelation to its containing relation.
theorem RelHom.ofLE_apply E0 #
∀ {α : Type u_1} {r r' : α → α → Prop} (le : r ≤ r') (a : α), (RelHom.ofLE le) a = id a
theorem RelHom.comp_assoc E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
{u : δ → δ → Prop} (h : r →r s) (g : s →r t) (f : t →r u), (f.comp g).comp h = f.comp (g.comp h)
theorem RelHom.comp_id E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s), f.comp (RelHom.id r) = f
theorem RelHom.id_comp E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s), (RelHom.id s).comp f = f
def RelHom.swap E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r →r s → Function.swap r →r Function.swap s
A relation homomorphism is also a relation homomorphism between dual relations.
theorem RelHom.swap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s) (a : α), f.swap a = f a
def RelHom.swapEquiv E1 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r →r s ≃ (Function.swap r →r Function.swap s)
RelHom.swap as an Equiv.
theorem RelHom.swapEquiv_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : Function.swap r →r Function.swap s),
RelHom.swapEquiv.symm f = f.swap
theorem RelHom.swapEquiv_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r →r s), RelHom.swapEquiv f = f.swap
def RelHom.preimage E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → (s : β → β → Prop) → f ⁻¹'o s →r s
A function is a relation homomorphism from the preimage relation of s to s.
theorem RelHom.preimage_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : β → β → Prop) (a : α), (RelHom.preimage f s) a = f a
theorem injective_of_increasing E1 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [Std.Trichotomous r] [Std.Irrefl s] (f : α → β),
(∀ {x y : α}, r x y → s (f x) (f y)) → Function.Injective f
An increasing function is injective
theorem RelHom.injective_of_increasing E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Trichotomous r] [Std.Irrefl s] (f : r →r s),
Function.Injective ⇑f
An increasing function is injective
theorem Function.Surjective.wellFounded_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f : α → β},
Function.Surjective f → (∀ {a b : α}, r a b ↔ s (f a) (f b)) → (WellFounded r ↔ WellFounded s)
structure RelEmbedding E3 #
{α : Type u_5} → {β : Type u_6} → (α → α → Prop) → (β → β → Prop) → Type (max u_5 u_6)
A relation embedding with respect to a given pair of relations r and s
is an embedding f : α ↪ β such that r a b ↔ s (f a) (f b).
ctor RelEmbedding.mk E0 #
{α : Type u_5} →
{β : Type u_6} →
{r : α → α → Prop} →
{s : β → β → Prop} → (toEmbedding : α ↪ β) → (∀ {a b : α}, s (toEmbedding a) (toEmbedding b) ↔ r a b) → r ↪r s
abbrev RelEmbedding.toEmbedding E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r ↪r s → α ↪ β
theorem RelEmbedding.map_rel_iff' E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (self : r ↪r s) {a b : α},
s (self.toEmbedding a) (self.toEmbedding b) ↔ r a b
Elements are related iff they are related after applying a RelEmbedding.
def «term_↪r_» E1 #
Lean.TrailingParserDescr
A relation embedding with respect to a given pair of relations r and s
is an embedding f : α ↪ β such that r a b ↔ s (f a) (f b).
theorem preimage_equivalence E1 #
∀ {α : Type u_5} {β : Type u_6} (f : α → β) {s : β → β → Prop}, Equivalence s → Equivalence (f ⁻¹'o s)
def RelEmbedding.toRelHom E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ↪r s → r →r s
A relation embedding is also a relation homomorphism
instance RelEmbedding.instCoeRelHom E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → Coe (r ↪r s) (r →r s)
instance RelEmbedding.instFunLike E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → FunLike (r ↪r s) α β
instance RelEmbedding.instRelHomClass E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, RelHomClass (r ↪r s) r s
instance RelEmbedding.instEmbeddingLike E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, EmbeddingLike (r ↪r s) α β
theorem RelEmbedding.coe_toEmbedding E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f : r ↪r s}, ⇑f.toEmbedding = ⇑f
theorem RelEmbedding.coe_toRelHom E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f : r ↪r s}, ⇑f.toRelHom = ⇑f
theorem RelEmbedding.toEmbedding_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Injective RelEmbedding.toEmbedding
theorem RelEmbedding.toEmbedding_inj E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : r ↪r s},
f.toEmbedding = g.toEmbedding ↔ f = g
theorem RelEmbedding.injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s), Function.Injective ⇑f
theorem RelEmbedding.inj E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) {a b : α}, f a = f b ↔ a = b
theorem RelEmbedding.map_rel_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) {a b : α}, s (f a) (f b) ↔ r a b
theorem RelEmbedding.coe_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f : α ↪ β}
{h : ∀ {a b : α}, s (f a) (f b) ↔ r a b}, ⇑{ toEmbedding := f, map_rel_iff' := h } = ⇑f
theorem RelEmbedding.coe_fn_injective E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Injective fun f ↦ ⇑f
The map coe_fn : (r ↪r s) → (α → β) is injective.
theorem RelEmbedding.ext E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} ⦃f g : r ↪r s⦄, (∀ (x : α), f x = g x) → f = g
theorem RelEmbedding.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : r ↪r s}, f = g ↔ ∀ (x : α), f x = g x
def RelEmbedding.refl E1 #
{α : Type u_1} → (r : α → α → Prop) → r ↪r r
Identity map is a relation embedding.
theorem RelEmbedding.refl_apply E0 #
∀ {α : Type u_1} (r : α → α → Prop) (a : α), (RelEmbedding.refl r) a = a
def RelEmbedding.trans E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} → {r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → r ↪r s → s ↪r t → r ↪r t
Composition of two relation embeddings is a relation embedding.
instance RelEmbedding.instInhabited E0 #
{α : Type u_1} → (r : α → α → Prop) → Inhabited (r ↪r r)
theorem RelEmbedding.trans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f : r ↪r s)
(g : s ↪r t) (a : α), (f.trans g) a = g (f a)
theorem RelEmbedding.coe_trans E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f : r ↪r s)
(g : s ↪r t), ⇑(f.trans g) = ⇑g ∘ ⇑f
theorem RelEmbedding.trans_assoc E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
{u : δ → δ → Prop} (f : r ↪r s) (g : s ↪r t) (h : t ↪r u), (f.trans g).trans h = f.trans (g.trans h)
theorem RelEmbedding.trans_refl E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s), f.trans (RelEmbedding.refl s) = f
theorem RelEmbedding.refl_trans E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s), (RelEmbedding.refl r).trans f = f
def RelEmbedding.swap E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ↪r s → Function.swap r ↪r Function.swap s
A relation embedding is also a relation embedding between dual relations.
def RelEmbedding.swapEquiv E1 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ↪r s ≃ (Function.swap r ↪r Function.swap s)
RelEmbedding.swap as an Equiv
theorem RelEmbedding.swapEquiv_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : Function.swap r ↪r Function.swap s),
RelEmbedding.swapEquiv.symm f = f.swap
theorem RelEmbedding.swapEquiv_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s), RelEmbedding.swapEquiv f = f.swap
theorem RelEmbedding.swap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) (a : α), f.swap a = f a
def RelEmbedding.preimage E1 #
{α : Type u_1} → {β : Type u_2} → (f : α ↪ β) → (s : β → β → Prop) → ⇑f ⁻¹'o s ↪r s
If f is injective, then it is a relation embedding from the
preimage relation of s to s.
theorem RelEmbedding.preimage_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β) (s : β → β → Prop) (a : α), (RelEmbedding.preimage f s) a = f a
theorem RelEmbedding.irrefl E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) [Std.Irrefl s], Std.Irrefl r
theorem RelEmbedding.stdRefl E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) [Std.Refl s], Std.Refl r
theorem RelEmbedding.symm E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) [Std.Symm s], Std.Symm r
theorem RelEmbedding.asymm E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) [Std.Asymm s], Std.Asymm r
theorem RelEmbedding.antisymm E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [Std.Antisymm s], Std.Antisymm r
theorem RelEmbedding.isTrans E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsTrans β s], IsTrans α r
theorem RelEmbedding.total E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [Std.Total s], Std.Total r
theorem RelEmbedding.isPreorder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsPreorder β s], IsPreorder α r
theorem RelEmbedding.isPartialOrder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsPartialOrder β s],
IsPartialOrder α r
theorem RelEmbedding.isLinearOrder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsLinearOrder β s],
IsLinearOrder α r
theorem RelEmbedding.isStrictOrder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsStrictOrder β s],
IsStrictOrder α r
theorem RelEmbedding.trichotomous E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [Std.Trichotomous s],
Std.Trichotomous r
theorem RelEmbedding.isStrictTotalOrder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsStrictTotalOrder β s],
IsStrictTotalOrder α r
theorem RelEmbedding.acc E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) (a : α), Acc s (f a) → Acc r a
theorem RelEmbedding.wellFounded E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s), WellFounded s → WellFounded r
theorem RelEmbedding.wellFounded' E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) [i : WellFounded s], WellFounded r
theorem RelEmbedding.isWellOrder E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (x : r ↪r s) [IsWellOrder β s], IsWellOrder α r
def Subtype.relEmbedding E1 #
{X : Type u_5} → (r : X → X → Prop) → (p : X → Prop) → Subtype.val ⁻¹'o r ↪r r
The induced relation on a subtype is an embedding under the natural inclusion.
theorem Subtype.relEmbedding_apply E0 #
∀ {X : Type u_5} (r : X → X → Prop) (p : X → Prop) (self : Subtype p), (Subtype.relEmbedding r p) self = ↑self
instance Subtype.wellFoundedLT E0 #
∀ {α : Type u_1} [inst : LT α] [WellFoundedLT α] (p : α → Prop), WellFoundedLT (Subtype p)
instance Subtype.wellFoundedGT E0 #
∀ {α : Type u_1} [inst : LT α] [WellFoundedGT α] (p : α → Prop), WellFoundedGT (Subtype p)
def Quotient.mkRelHom E1 #
{α : Type u_1} →
{x : Setoid α} →
{r : α → α → Prop} → (H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂) → r →r Quotient.lift₂ r H
Quotient.mk as a relation homomorphism between the relation and the lift of a relation.
theorem Quotient.mkRelHom_apply E0 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} (H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂)
(a : α), (Quotient.mkRelHom H) a = ⟦a⟧
def Quotient.outRelEmbedding E1 #
{α : Type u_1} →
{x : Setoid α} →
{r : α → α → Prop} → (H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂) → Quotient.lift₂ r H ↪r r
Quotient.out as a relation embedding between the lift of a relation and the relation.
theorem Quotient.outRelEmbedding_apply E0 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} (H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂)
(a : Quotient x), (Quotient.outRelEmbedding H) a = a.out
theorem acc_lift₂_iff E0 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂}
{a : α}, Acc (Quotient.lift₂ r H) ⟦a⟧ ↔ Acc r a
theorem acc_liftOn₂'_iff E0 #
∀ {α : Type u_1} {s : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ a₂ b₁ b₂ : α), s a₁ b₁ → s a₂ b₂ → r a₁ a₂ = r b₁ b₂}
{a : α}, Acc (fun x y ↦ x.liftOn₂' y r H) (Quotient.mk'' a) ↔ Acc r a
theorem wellFounded_lift₂_iff E0 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂},
WellFounded (Quotient.lift₂ r H) ↔ WellFounded r
A relation is well founded iff its lift to a quotient is.
theorem WellFounded.quotient_lift₂ E1 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂},
WellFounded r → WellFounded (Quotient.lift₂ r H)
Alias of the reverse direction of wellFounded_lift₂_iff.
A relation is well founded iff its lift to a quotient is.
theorem WellFounded.of_quotient_lift₂ E1 #
∀ {α : Type u_1} {x : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ b₁ a₂ b₂ : α), a₁ ≈ a₂ → b₁ ≈ b₂ → r a₁ b₁ = r a₂ b₂},
WellFounded (Quotient.lift₂ r H) → WellFounded r
Alias of the forward direction of wellFounded_lift₂_iff.
A relation is well founded iff its lift to a quotient is.
theorem wellFounded_liftOn₂'_iff E0 #
∀ {α : Type u_1} {s : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ a₂ b₁ b₂ : α), s a₁ b₁ → s a₂ b₂ → r a₁ a₂ = r b₁ b₂},
(WellFounded fun x y ↦ x.liftOn₂' y r H) ↔ WellFounded r
theorem WellFounded.of_quotient_liftOn₂' E1 #
∀ {α : Type u_1} {s : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ a₂ b₁ b₂ : α), s a₁ b₁ → s a₂ b₂ → r a₁ a₂ = r b₁ b₂},
(WellFounded fun x y ↦ x.liftOn₂' y r H) → WellFounded r
Alias of the forward direction of wellFounded_liftOn₂'_iff.
theorem WellFounded.quotient_liftOn₂' E1 #
∀ {α : Type u_1} {s : Setoid α} {r : α → α → Prop} {H : ∀ (a₁ a₂ b₁ b₂ : α), s a₁ b₁ → s a₂ b₂ → r a₁ a₂ = r b₁ b₂},
WellFounded r → WellFounded fun x y ↦ x.liftOn₂' y r H
Alias of the reverse direction of wellFounded_liftOn₂'_iff.
def RelEmbedding.ofMapRelIff E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} → (f : α → β) → [Std.Antisymm r] → [Std.Refl s] → (∀ (a b : α), s (f a) (f b) ↔ r a b) → r ↪r s
To define a relation embedding from an antisymmetric relation r to a reflexive relation s
it suffices to give a function together with a proof that it satisfies s (f a) (f b) ↔ r a b.
theorem RelEmbedding.ofMapRelIff_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β) [inst : Std.Antisymm r]
[inst_1 : Std.Refl s] (hf : ∀ (a b : α), s (f a) (f b) ↔ r a b), ⇑(RelEmbedding.ofMapRelIff f hf) = f
def RelEmbedding.ofMonotone E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} →
[Std.Trichotomous r] → [Std.Asymm s] → (f : α → β) → (∀ (a b : α), r a b → s (f a) (f b)) → r ↪r s
It suffices to prove f is monotone between strict relations
to show it is a relation embedding.
theorem RelEmbedding.ofMonotone_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [inst : Std.Trichotomous r] [inst_1 : Std.Asymm s]
(f : α → β) (H : ∀ (a b : α), r a b → s (f a) (f b)), ⇑(RelEmbedding.ofMonotone f H) = f
def RelEmbedding.ofIsEmpty E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → [IsEmpty α] → r ↪r s
A relation embedding from an empty type.
def RelEmbedding.sumLiftRelInl E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → r ↪r Sum.LiftRel r s
Sum.inl as a relation embedding into Sum.LiftRel r s.
theorem RelEmbedding.sumLiftRelInl_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) (val : α),
(RelEmbedding.sumLiftRelInl r s) val = Sum.inl val
def RelEmbedding.sumLiftRelInr E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → s ↪r Sum.LiftRel r s
Sum.inr as a relation embedding into Sum.LiftRel r s.
theorem RelEmbedding.sumLiftRelInr_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) (val : β),
(RelEmbedding.sumLiftRelInr r s) val = Sum.inr val
def RelEmbedding.sumLiftRelMap E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{δ : Type u_4} →
{r : α → α → Prop} →
{s : β → β → Prop} →
{t : γ → γ → Prop} → {u : δ → δ → Prop} → r ↪r s → t ↪r u → Sum.LiftRel r t ↪r Sum.LiftRel s u
Sum.map as a relation embedding between Sum.LiftRel relations.
theorem RelEmbedding.sumLiftRelMap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
{u : δ → δ → Prop} (f : r ↪r s) (g : t ↪r u) (a : α ⊕ γ), (f.sumLiftRelMap g) a = Sum.map (⇑f) (⇑g) a
def RelEmbedding.sumLexInl E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → r ↪r Sum.Lex r s
Sum.inl as a relation embedding into Sum.Lex r s.
theorem RelEmbedding.sumLexInl_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) (val : α),
(RelEmbedding.sumLexInl r s) val = Sum.inl val
def RelEmbedding.sumLexInr E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → s ↪r Sum.Lex r s
Sum.inr as a relation embedding into Sum.Lex r s.
theorem RelEmbedding.sumLexInr_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) (val : β),
(RelEmbedding.sumLexInr r s) val = Sum.inr val
def RelEmbedding.sumLexMap E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{δ : Type u_4} →
{r : α → α → Prop} →
{s : β → β → Prop} → {t : γ → γ → Prop} → {u : δ → δ → Prop} → r ↪r s → t ↪r u → Sum.Lex r t ↪r Sum.Lex s u
Sum.map as a relation embedding between Sum.Lex relations.
theorem RelEmbedding.sumLexMap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
{u : δ → δ → Prop} (f : r ↪r s) (g : t ↪r u) (a : α ⊕ γ), (f.sumLexMap g) a = Sum.map (⇑f) (⇑g) a
def RelEmbedding.prodLexMkLeft E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → (s : β → β → Prop) → {a : α} → ¬r a a → s ↪r Prod.Lex r s
fun b ↦ Prod.mk a b as a relation embedding.
theorem RelEmbedding.prodLexMkLeft_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (s : β → β → Prop) {a : α} (h : ¬r a a) (snd : β),
(RelEmbedding.prodLexMkLeft s h) snd = (a, snd)
def RelEmbedding.prodLexMkRight E1 #
{α : Type u_1} → {β : Type u_2} → {s : β → β → Prop} → (r : α → α → Prop) → {b : β} → ¬s b b → r ↪r Prod.Lex r s
fun a ↦ Prod.mk a b as a relation embedding.
theorem RelEmbedding.prodLexMkRight_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {s : β → β → Prop} (r : α → α → Prop) {b : β} (h : ¬s b b) (a : α),
(RelEmbedding.prodLexMkRight r h) a = (a, b)
def RelEmbedding.prodLexMap E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{δ : Type u_4} →
{r : α → α → Prop} →
{s : β → β → Prop} → {t : γ → γ → Prop} → {u : δ → δ → Prop} → r ↪r s → t ↪r u → Prod.Lex r t ↪r Prod.Lex s u
Prod.map as a relation embedding.
theorem RelEmbedding.prodLexMap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
{u : δ → δ → Prop} (f : r ↪r s) (g : t ↪r u) (a : α × γ), (f.prodLexMap g) a = Prod.map (⇑f) (⇑g) a
structure RelIso E3 #
{α : Type u_5} → {β : Type u_6} → (α → α → Prop) → (β → β → Prop) → Type (max u_5 u_6)
A relation isomorphism with respect to a given pair of relations r and s
is an equivalence f : α ≃ β such that r a b ↔ s (f a) (f b).
ctor RelIso.mk E0 #
{α : Type u_5} →
{β : Type u_6} →
{r : α → α → Prop} →
{s : β → β → Prop} → (toEquiv : α ≃ β) → (∀ {a b : α}, s (toEquiv a) (toEquiv b) ↔ r a b) → r ≃r s
abbrev RelIso.toEquiv E1 #
{α : Type u_5} → {β : Type u_6} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → α ≃ β
theorem RelIso.map_rel_iff' E0 #
∀ {α : Type u_5} {β : Type u_6} {r : α → α → Prop} {s : β → β → Prop} (self : r ≃r s) {a b : α},
s (self.toEquiv a) (self.toEquiv b) ↔ r a b
Elements are related iff they are related after applying a RelIso.
def «term_≃r_» E1 #
Lean.TrailingParserDescr
A relation isomorphism is an equivalence that is also a relation embedding.
def RelIso.toRelEmbedding E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → r ↪r s
Convert a RelIso to a RelEmbedding. This function is also available as a coercion
but often it is easier to write f.toRelEmbedding than to write explicitly r and s
in the target type.
theorem RelIso.toEquiv_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Injective RelIso.toEquiv
instance RelIso.instCoeOutRelEmbedding E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → CoeOut (r ≃r s) (r ↪r s)
instance RelIso.instFunLike E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → FunLike (r ≃r s) α β
instance RelIso.instRelHomClass E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, RelHomClass (r ≃r s) r s
instance RelIso.instEquivLike E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → EquivLike (r ≃r s) α β
theorem RelIso.coe_toRelEmbedding E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s), ⇑f.toRelEmbedding = ⇑f
theorem RelIso.coe_toEmbedding E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s), ⇑f.toEmbedding = ⇑f
theorem RelIso.map_rel_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) {a b : α}, s (f a) (f b) ↔ r a b
theorem RelIso.coe_fn_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α ≃ β)
(o : ∀ ⦃a b : α⦄, s (f a) (f b) ↔ r a b), ⇑{ toEquiv := f, map_rel_iff' := o } = ⇑f
theorem RelIso.coe_fn_toEquiv E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s), ⇑f.toEquiv = ⇑f
theorem RelIso.coe_fn_injective E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Injective fun f ↦ ⇑f
The map DFunLike.coe : (r ≃r s) → (α → β) is injective.
theorem RelIso.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : r ≃r s}, f = g ↔ ∀ (x : α), f x = g x
theorem RelIso.ext E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} ⦃f g : r ≃r s⦄, (∀ (x : α), f x = g x) → f = g
def RelIso.symm E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → s ≃r r
Inverse map of a relation isomorphism is a relation isomorphism.
def RelIso.Simps.apply E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → α → β
See Note [custom simps projection]. We need to specify this projection explicitly in this case,
because RelIso defines custom coercions other than the ones given by DFunLike.
def RelIso.Simps.symm_apply E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → β → α
See Note [custom simps projection].
def RelIso.refl E1 #
{α : Type u_1} → (r : α → α → Prop) → r ≃r r
Identity map is a relation isomorphism.
theorem RelIso.refl_toEquiv E0 #
∀ {α : Type u_1} (r : α → α → Prop), (RelIso.refl r).toEquiv = Equiv.refl α
theorem RelIso.refl_apply E0 #
∀ {α : Type u_1} (r : α → α → Prop) (a : α), (RelIso.refl r) a = a
def RelIso.trans E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} → {r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → r ≃r s → s ≃r t → r ≃r t
Composition of two relation isomorphisms is a relation isomorphism.
theorem RelIso.trans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f₁ : r ≃r s)
(f₂ : s ≃r t) (a : α), (f₁.trans f₂) a = f₂ (f₁ a)
theorem RelIso.trans_toEquiv E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f₁ : r ≃r s)
(f₂ : s ≃r t), (f₁.trans f₂).toEquiv = f₁.trans f₂.toEquiv
instance RelIso.instInhabited E0 #
{α : Type u_1} → (r : α → α → Prop) → Inhabited (r ≃r r)
theorem RelIso.default_def E0 #
∀ {α : Type u_1} (r : α → α → Prop), default = RelIso.refl r
theorem RelIso.apply_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) (x : β), e (e.symm x) = x
theorem RelIso.symm_apply_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) (x : α), e.symm (e x) = x
def RelIso.ofBijective E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} → (f : α → β) → Function.Bijective f → (∀ (a b : α), s (f a) (f b) ↔ r a b) → r ≃r s
Build a relation isomorphism from a bijective map that preserves and reflects the relation.
theorem RelIso.ofBijective_toEquiv E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β) (hf : Function.Bijective f)
(hf' : ∀ (a b : α), s (f a) (f b) ↔ r a b), (RelIso.ofBijective f hf hf').toEquiv = Equiv.ofBijective f hf
theorem RelIso.coe_ofBijective E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β) (hf : Function.Bijective f)
(hf' : ∀ (a b : α), s (f a) (f b) ↔ r a b), ⇑(RelIso.ofBijective f hf hf') = f
theorem RelIso.ofBijective_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), RelIso.ofBijective ⇑e ⋯ ⋯ = e
theorem RelIso.ofBijective_apply_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β) (hf : Function.Bijective f)
(hf' : ∀ (a b : α), s (f a) (f b) ↔ r a b) (b : β), f ((RelIso.ofBijective f hf hf').symm b) = b
theorem RelIso.ofBijective_symm_apply_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α → β) (hf : Function.Bijective f)
(hf' : ∀ (a b : α), s (f a) (f b) ↔ r a b) (a : α), (RelIso.ofBijective f hf hf').symm (f a) = a
theorem RelIso.symm_comp_self E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), ⇑e.symm ∘ ⇑e = id
theorem RelIso.self_comp_symm E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), ⇑e ∘ ⇑e.symm = id
theorem RelIso.symm_trans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f : r ≃r s)
(g : s ≃r t) (a : γ), (f.trans g).symm a = f.symm (g.symm a)
theorem RelIso.symm_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (b : α), f.symm.symm b = f b
theorem RelIso.apply_eq_iff_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) {x y : α}, f x = f y ↔ x = y
theorem RelIso.symm_apply_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) {x : β} {y : α},
e.symm x = y ↔ x = e y
theorem RelIso.symm_symm E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), e.symm.symm = e
theorem RelIso.symm_bijective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, Function.Bijective RelIso.symm
theorem RelIso.refl_symm E0 #
∀ {α : Type u_1} {r : α → α → Prop}, (RelIso.refl r).symm = RelIso.refl r
theorem RelIso.trans_refl E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), e.trans (RelIso.refl s) = e
theorem RelIso.refl_trans E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), (RelIso.refl r).trans e = e
theorem RelIso.symm_trans_self E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), e.symm.trans e = RelIso.refl s
theorem RelIso.self_trans_symm E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), e.trans e.symm = RelIso.refl r
theorem RelIso.trans_assoc E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} {δ : Type u_5}
{u : δ → δ → Prop} (ab : r ≃r s) (bc : s ≃r t) (cd : t ≃r u), (ab.trans bc).trans cd = ab.trans (bc.trans cd)
def RelIso.cast E1 #
{α β : Type u} → {r : α → α → Prop} → {s : β → β → Prop} → α = β → r ≍ s → r ≃r s
A relation isomorphism between equal relations on equal types.
theorem RelIso.cast_apply E0 #
∀ {α β : Type u} {r : α → α → Prop} {s : β → β → Prop} (h₁ : α = β) (h₂ : r ≍ s) (a : α),
(RelIso.cast h₁ h₂) a = cast h₁ a
theorem RelIso.cast_toEquiv E0 #
∀ {α β : Type u} {r : α → α → Prop} {s : β → β → Prop} (h₁ : α = β) (h₂ : r ≍ s),
(RelIso.cast h₁ h₂).toEquiv = Equiv.cast h₁
theorem RelIso.cast_symm E1 #
∀ {α β : Type u} {r : α → α → Prop} {s : β → β → Prop} (h₁ : α = β) (h₂ : r ≍ s),
(RelIso.cast h₁ h₂).symm = RelIso.cast ⋯ ⋯
theorem RelIso.cast_refl E1 #
∀ {α : Type u} {r : α → α → Prop} (h₁ : optParam (α = α) ⋯) (h₂ : optParam (r ≍ r) ⋯), RelIso.cast h₁ h₂ = RelIso.refl r
theorem RelIso.cast_trans E1 #
∀ {α β γ : Type u} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (h₁ : α = β) (h₁' : β = γ) (h₂ : r ≍ s)
(h₂' : s ≍ t), (RelIso.cast h₁ h₂).trans (RelIso.cast h₁' h₂') = RelIso.cast ⋯ ⋯
def RelIso.swap E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → Function.swap r ≃r Function.swap s
A relation isomorphism is also a relation isomorphism between dual relations.
theorem RelIso.swap_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : β),
f.swap.symm a = EquivLike.inv f a
theorem RelIso.swap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : α), f.swap a = f a
def RelIso.swapEquiv E1 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s ≃ (Function.swap r ≃r Function.swap s)
RelIso.swap as an Equiv.
theorem RelIso.swapEquiv_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s), RelIso.swapEquiv f = f.swap
theorem RelIso.swapEquiv_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : Function.swap r ≃r Function.swap s),
RelIso.swapEquiv.symm f = f.swap
def RelIso.compl E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → rᶜ ≃r sᶜ
A relation isomorphism is also a relation isomorphism between complemented relations.
theorem RelIso.compl_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : α), f.compl a = f a
theorem RelIso.compl_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : β),
f.compl.symm a = EquivLike.inv f a
def RelIso.complEquiv E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s ≃ (rᶜ ≃r sᶜ)
RelIso.compl as an Equiv.
theorem RelIso.complEquiv_apply_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : β),
(RelIso.complEquiv f).symm a = EquivLike.inv f a
theorem RelIso.complEquiv_apply_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : α),
(RelIso.complEquiv f) a = f a
theorem RelIso.complEquiv_symm_apply_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : rᶜ ≃r sᶜ) (a : β),
(RelIso.complEquiv.symm f).symm a = EquivLike.inv f a
theorem RelIso.complEquiv_symm_apply_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : rᶜ ≃r sᶜ) (a : α),
(RelIso.complEquiv.symm f) a = f a
theorem RelIso.coe_fn_symm_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : α ≃ β)
(o : ∀ {a b : α}, s (f a) (f b) ↔ r a b), ⇑{ toEquiv := f, map_rel_iff' := o }.symm = ⇑f.symm
theorem RelIso.rel_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) {x : α} {y : β},
r x (e.symm y) ↔ s (e x) y
theorem RelIso.symm_apply_rel E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) {x : β} {y : α},
r (e.symm x) y ↔ s x (e y)
theorem RelIso.bijective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), Function.Bijective ⇑e
theorem RelIso.injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), Function.Injective ⇑e
theorem RelIso.surjective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s), Function.Surjective ⇑e
def RelIso.copy E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} → {s : β → β → Prop} → (e : r ≃r s) → (f : α → β) → (g : β → α) → f = ⇑e → g = ⇑e.symm → r ≃r s
Copy of a RelIso with a new toFun and invFun equal to the old ones.
Useful to fix definitional equalities.
theorem RelIso.coe_copy E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) (f : α → β) (g : β → α) (hf : f = ⇑e)
(hg : g = ⇑e.symm), ⇑(e.copy f g hf hg) = f
theorem RelIso.copy_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (e : r ≃r s) (f : α → β) (g : β → α) (hf : f = ⇑e)
(hg : g = ⇑e.symm), e.copy f g hf hg = e
def RelIso.preimage E1 #
{α : Type u_1} → {β : Type u_2} → (f : α ≃ β) → (s : β → β → Prop) → ⇑f ⁻¹'o s ≃r s
Any equivalence lifts to a relation isomorphism between s and its preimage.
theorem RelIso.preimage_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ≃ β) (s : β → β → Prop) (a : α), (RelIso.preimage f s) a = f a
theorem RelIso.preimage_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ≃ β) (s : β → β → Prop) (a : β), (RelIso.preimage f s).symm a = f.symm a
instance RelIso.IsWellOrder.preimage E0 #
∀ {β : Type u_2} {α : Type u} (r : α → α → Prop) [IsWellOrder α r] (f : β ≃ α), IsWellOrder β (⇑f ⁻¹'o r)
instance RelIso.IsWellOrder.ulift E0 #
∀ {α : Type u} (r : α → α → Prop) [IsWellOrder α r], IsWellOrder (ULift.{u_5, u} α) (ULift.down ⁻¹'o r)
def RelIso.ofSurjective E1 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → (f : r ↪r s) → Function.Surjective ⇑f → r ≃r s
A surjective relation embedding is a relation isomorphism.
theorem RelIso.ofSurjective_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) (H : Function.Surjective ⇑f) (a : α),
(RelIso.ofSurjective f H) a = f a
def RelIso.embeddingSurjectiveEquivIso E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → { f // Function.Surjective ⇑f } ≃ (r ≃r s)
Surjective relation embeddings are equivalent to relation isomorphisms.
theorem RelIso.embeddingSurjectiveEquivIso_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : { f // Function.Surjective ⇑f }),
RelIso.embeddingSurjectiveEquivIso f = RelIso.ofSurjective ↑f ⋯
theorem RelIso.embeddingSurjectiveEquivIso_symm_apply_coe_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : α),
↑(RelIso.embeddingSurjectiveEquivIso.symm f) a = f.toEquiv a
def RelIso.relHomCongr E1 #
{α₁ : Type u_5} →
{β₁ : Type u_6} →
{α₂ : Type u_7} →
{β₂ : Type u_8} →
{r₁ : α₁ → α₁ → Prop} →
{s₁ : β₁ → β₁ → Prop} →
{r₂ : α₂ → α₂ → Prop} → {s₂ : β₂ → β₂ → Prop} → r₁ ≃r r₂ → s₁ ≃r s₂ → r₁ →r s₁ ≃ (r₂ →r s₂)
Transport a RelHom across a pair of RelIsos, by pre- and post-composition.
This is Equiv.arrowCongr for RelHom.
theorem RelIso.relHomCongr_symm_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ →r s₂),
(e₁.relHomCongr e₂).symm f₂ = e₂.symm.toRelEmbedding.toRelHom.comp (f₂.comp e₁.toRelEmbedding.toRelHom)
theorem RelIso.relHomCongr_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ →r s₁),
(e₁.relHomCongr e₂) f₁ = e₂.toRelEmbedding.toRelHom.comp (f₁.comp e₁.symm.toRelEmbedding.toRelHom)
theorem RelIso.relHomCongr_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ →r s₁) (x : α₂),
((e₁.relHomCongr e₂) f₁) x = e₂ (f₁ (e₁.symm x))
theorem RelIso.relHomCongr_symm_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ →r s₂) (x : α₁),
((e₁.relHomCongr e₂).symm f₂) x = e₂.symm (f₂ (e₁ x))
def RelIso.relEmbeddingCongr E1 #
{α₁ : Type u_5} →
{β₁ : Type u_6} →
{α₂ : Type u_7} →
{β₂ : Type u_8} →
{r₁ : α₁ → α₁ → Prop} →
{s₁ : β₁ → β₁ → Prop} →
{r₂ : α₂ → α₂ → Prop} → {s₂ : β₂ → β₂ → Prop} → r₁ ≃r r₂ → s₁ ≃r s₂ → r₁ ↪r s₁ ≃ (r₂ ↪r s₂)
Transport a RelEmbedding across a pair of RelIsos, by pre- and post-composition.
This is Equiv.embeddingCongr for RelEmbedding.
theorem RelIso.relEmbeddingCongr_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ ↪r s₁),
(e₁.relEmbeddingCongr e₂) f₁ = (e₁.symm.toRelEmbedding.trans f₁).trans e₂.toRelEmbedding
theorem RelIso.relEmbeddingCongr_symm_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ ↪r s₂),
(e₁.relEmbeddingCongr e₂).symm f₂ = (e₁.toRelEmbedding.trans f₂).trans e₂.symm.toRelEmbedding
theorem RelIso.relEmbeddingCongr_symm_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ ↪r s₂) (a : α₁),
((e₁.relEmbeddingCongr e₂).symm f₂) a = e₂.symm (f₂ (e₁ a))
theorem RelIso.relEmbeddingCongr_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ ↪r s₁) (a : α₂),
((e₁.relEmbeddingCongr e₂) f₁) a = e₂ (f₁ (e₁.symm a))
theorem RelIso.relEmbeddingCongr_refl E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop},
(RelIso.refl r).relEmbeddingCongr (RelIso.refl s) = Equiv.refl (r ↪r s)
theorem RelIso.relEmbeddingCongr_trans_relEmbeddingCongr E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {α₃ : Type u_9} {β₃ : Type u_10} {r₁ : α₁ → α₁ → Prop}
{s₁ : β₁ → β₁ → Prop} {r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} {r₃ : α₃ → α₃ → Prop} {s₃ : β₃ → β₃ → Prop}
(e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (e₁' : r₂ ≃r r₃) (e₂' : s₂ ≃r s₃),
(e₁.relEmbeddingCongr e₂).trans (e₁'.relEmbeddingCongr e₂') = (e₁.trans e₁').relEmbeddingCongr (e₂.trans e₂')
def RelIso.relIsoCongr E1 #
{α₁ : Type u_5} →
{β₁ : Type u_6} →
{α₂ : Type u_7} →
{β₂ : Type u_8} →
{r₁ : α₁ → α₁ → Prop} →
{s₁ : β₁ → β₁ → Prop} →
{r₂ : α₂ → α₂ → Prop} → {s₂ : β₂ → β₂ → Prop} → r₁ ≃r r₂ → s₁ ≃r s₂ → r₁ ≃r s₁ ≃ (r₂ ≃r s₂)
Transport a RelIso across a pair of RelIsos, by pre- and post-composition.
This is Equiv.equivCongr for RelIso.
theorem RelIso.relIsoCongr_symm_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ ≃r s₂),
(e₁.relIsoCongr e₂).symm f₂ = (e₁.trans f₂).trans e₂.symm
theorem RelIso.relIsoCongr_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ ≃r s₁),
(e₁.relIsoCongr e₂) f₁ = (e₁.symm.trans f₁).trans e₂
theorem RelIso.relIsoCongr_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₁ : r₁ ≃r s₁) (a : α₂),
((e₁.relIsoCongr e₂) f₁) a = e₂ (f₁ (e₁.symm a))
theorem RelIso.relIsoCongr_symm_apply_apply E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {r₁ : α₁ → α₁ → Prop} {s₁ : β₁ → β₁ → Prop}
{r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} (e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (f₂ : r₂ ≃r s₂) (a : α₁),
((e₁.relIsoCongr e₂).symm f₂) a = e₂.symm (f₂ (e₁ a))
theorem RelIso.relIsoCongr_refl E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop},
(RelIso.refl r).relIsoCongr (RelIso.refl s) = Equiv.refl (r ≃r s)
theorem RelIso.relIsoCongr_trans_relIsoCongr E0 #
∀ {α₁ : Type u_5} {β₁ : Type u_6} {α₂ : Type u_7} {β₂ : Type u_8} {α₃ : Type u_9} {β₃ : Type u_10} {r₁ : α₁ → α₁ → Prop}
{s₁ : β₁ → β₁ → Prop} {r₂ : α₂ → α₂ → Prop} {s₂ : β₂ → β₂ → Prop} {r₃ : α₃ → α₃ → Prop} {s₃ : β₃ → β₃ → Prop}
(e₁ : r₁ ≃r r₂) (e₂ : s₁ ≃r s₂) (e₁' : r₂ ≃r r₃) (e₂' : s₂ ≃r s₃),
(e₁.relIsoCongr e₂).trans (e₁'.relIsoCongr e₂') = (e₁.trans e₁').relIsoCongr (e₂.trans e₂')
def RelIso.sumLexCongr E3 #
{α₁ : Type u_5} →
{α₂ : Type u_6} →
{β₁ : Type u_7} →
{β₂ : Type u_8} →
{r₁ : α₁ → α₁ → Prop} →
{r₂ : α₂ → α₂ → Prop} →
{s₁ : β₁ → β₁ → Prop} → {s₂ : β₂ → β₂ → Prop} → r₁ ≃r s₁ → r₂ ≃r s₂ → Sum.Lex r₁ r₂ ≃r Sum.Lex s₁ s₂
Given relation isomorphisms r₁ ≃r s₁ and r₂ ≃r s₂, construct a relation isomorphism for the
lexicographic orders on the sum.
def RelIso.prodLexCongr E3 #
{α₁ : Type u_5} →
{α₂ : Type u_6} →
{β₁ : Type u_7} →
{β₂ : Type u_8} →
{r₁ : α₁ → α₁ → Prop} →
{r₂ : α₂ → α₂ → Prop} →
{s₁ : β₁ → β₁ → Prop} → {s₂ : β₂ → β₂ → Prop} → r₁ ≃r s₁ → r₂ ≃r s₂ → Prod.Lex r₁ r₂ ≃r Prod.Lex s₁ s₂
Given relation isomorphisms r₁ ≃r s₁ and r₂ ≃r s₂, construct a relation isomorphism for the
lexicographic orders on the product.
def RelIso.relIsoOfIsEmpty E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → [IsEmpty α] → [IsEmpty β] → r ≃r s
Two relations on empty types are isomorphic.
def RelIso.sumLexEmpty E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → [IsEmpty β] → Sum.Lex r s ≃r r
The lexicographic sum of r plus an empty relation is isomorphic to r.
theorem RelIso.sumLexEmpty_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [inst : IsEmpty β] (val : α),
(RelIso.sumLexEmpty r s).symm val = Sum.inl val
theorem RelIso.sumLexEmpty_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [inst : IsEmpty β] (a : α ⊕ β),
(RelIso.sumLexEmpty r s) a = Sum.elim id (fun a ↦ isEmptyElim a) a
def RelIso.emptySumLex E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → [IsEmpty α] → Sum.Lex r s ≃r s
The lexicographic sum of an empty relation plus s is isomorphic to s.
theorem RelIso.emptySumLex_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [inst : IsEmpty α] (a : α ⊕ β),
(RelIso.emptySumLex r s) a = (Equiv.sumEmpty β α) a.swap
theorem RelIso.emptySumLex_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [inst : IsEmpty α] (a : β),
(RelIso.emptySumLex r s).symm a = Sum.inr a
def RelIso.ofUniqueOfIrrefl E1 #
{α : Type u_1} →
{β : Type u_2} →
(r : α → α → Prop) → (s : β → β → Prop) → [Std.Irrefl r] → [Std.Irrefl s] → [Unique α] → [Unique β] → r ≃r s
Two irreflexive relations on a unique type are isomorphic.
def RelIso.ofUniqueOfRefl E1 #
{α : Type u_1} →
{β : Type u_2} →
(r : α → α → Prop) → (s : β → β → Prop) → [Std.Refl r] → [Std.Refl s] → [Unique α] → [Unique β] → r ≃r s
Two reflexive relations on a unique type are isomorphic.
def RelHom.toMap E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (f : α → β) → r →r Relation.Map r f f
A function f : α → β induces a relation homomorphism from an α-relation r to
Relation.Map r f f.
theorem RelHom.coe_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α → β), ⇑(RelHom.toMap r f) = f
def RelEmbedding.toMap E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (f : α ↪ β) → r ↪r Relation.Map r ⇑f ⇑f
An embedding f : α ↪ β induces a relation embedding from an α-relation r to
Relation.Map r f f.
theorem RelEmbedding.coe_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α ↪ β), ⇑(RelEmbedding.toMap r f) = ⇑f
def RelIso.toMap E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (f : α ≃ β) → r ≃r Relation.Map r ⇑f ⇑f
An equivalence f : α ≃ β induces a relation isomorphism from an α-relation r to
Relation.Map r f f.
theorem RelIso.coe_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α ≃ β), ⇑(RelIso.toMap r f) = ⇑f
theorem RelIso.toEquiv_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α ≃ β), ↑(RelIso.toMap r f) = f
theorem RelIso.coe_symm_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α ≃ β), ⇑(RelIso.toMap r f).symm = ⇑f.symm
theorem RelIso.toEquiv_symm_toMap E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (f : α ≃ β), ↑(RelIso.toMap r f).symm = f.symm
def RelHom.ofOnFun E1 #
{α : Type u_1} → {β : Type u_2} → (r : β → β → Prop) → (f : α → β) → Function.onFun r f →r r
For a β-relation r, a function f : α → β induces a relation homomorphism from r.onFun f
to r.
theorem RelHom.coe_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α → β), ⇑(RelHom.ofOnFun r f) = f
def RelEmbedding.ofOnFun E1 #
{α : Type u_1} → {β : Type u_2} → (r : β → β → Prop) → (f : α ↪ β) → Function.onFun r ⇑f ↪r r
For a β-relation r, an embedding f : α ↪ β induces a relation embedding from r.onFun f
to r.
theorem RelEmbedding.coe_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α ↪ β), ⇑(RelEmbedding.ofOnFun r f) = ⇑f
def RelIso.ofOnFun E1 #
{α : Type u_1} → {β : Type u_2} → (r : β → β → Prop) → (f : α ≃ β) → Function.onFun r ⇑f ≃r r
For a β-relation r, an equivalence f : α ≃ β induces a relation isomorphism from
r.onFun f to r.
theorem RelIso.coe_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α ≃ β), ⇑(RelIso.ofOnFun r f) = ⇑f
theorem RelIso.toEquiv_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α ≃ β), ↑(RelIso.ofOnFun r f) = f
theorem RelIso.coe_symm_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α ≃ β), ⇑(RelIso.ofOnFun r f).symm = ⇑f.symm
theorem RelIso.toEquiv_symm_ofOnFun E0 #
∀ {α : Type u_1} {β : Type u_2} (r : β → β → Prop) (f : α ≃ β), ↑(RelIso.ofOnFun r f).symm = f.symm
Deprecated aliases
| Name | New name | Since |
|---|---|---|
RelEmbedding.isWellFounded | RelEmbedding.wellFounded' | 2026-09-07 |
RelHomClass.isWellFounded | RelHomClass.wellFounded' | 2026-09-07 |
RelIso.apply_eq_iff_eq_symm_apply | RelIso.eq_symm_apply | 2026-07-26 |