The areas / V04. Order and lattices
Mathlib.Order.Setoid.Basic
105 declarations and 1 deprecated aliases. Mathlib docs · Source
Equivalence relations
This file defines the complete lattice of equivalence relations on a type, results about the inductively defined equivalence closure of a binary relation, and the analogues of some isomorphism theorems for quotients of arbitrary types.
Implementation notes
The complete lattice instance for equivalence relations could have been defined by lifting
the Galois insertion of equivalence relations on α into binary relations on α, and then using
CompleteLattice.copy to define a complete lattice instance with more appropriate
definitional equalities (a similar example is Filter.CompleteLattice in
Mathlib/Order/Filter/Basic.lean). This does not save space, however, and is less clear.
Partitions are not defined as a separate structure here; users are encouraged to
reason about them using the existing Setoid and its infrastructure.
Tags
setoid, equivalence, iseqv, relation, equivalence relation
theorem Setoid.mk.congr_simp E1 #
∀ {α : Sort u} (r r_1 : α → α → Prop) (e_r : r = r_1) (iseqv : Equivalence r),
{ r := r, iseqv := iseqv } = { r := r_1, iseqv := ⋯ }
theorem Quotient.liftOn'.congr_simp E1 #
∀ {α : Sort u_1} {φ : Sort u_4} {s₁ : Setoid α} (q q_1 : Quotient s₁),
q = q_1 → ∀ (f f_1 : α → φ) (e_f : f = f_1) (h : ∀ (a b : α), s₁ a b → f a = f b), q.liftOn' f h = q_1.liftOn' f_1 ⋯
theorem Setoid.ext_iff E0 #
∀ {α : Sort u_3} {s t : Setoid α}, s = t ↔ ∀ (a b : α), s a b ↔ t a b
instance Setoid.instLE_mathlib E0 #
{α : Type u_1} → LE (Setoid α)
Defining ≤ for equivalence relations.
theorem Setoid.le_def E0 #
∀ {α : Type u_1} {r s : Setoid α}, r ≤ s ↔ ∀ {x y : α}, r x y → s x y
theorem Setoid.le_iff_rel_le E1 #
∀ {α : Type u_1} {r₁ r₂ : Setoid α}, r₁ ≤ r₂ ↔ ⇑r₁ ≤ ⇑r₂
theorem Setoid.refl' E1 #
∀ {α : Type u_1} (r : Setoid α) (x : α), r x x
theorem Setoid.symm' E1 #
∀ {α : Type u_1} (r : Setoid α) {x y : α}, r x y → r y x
theorem Setoid.trans' E1 #
∀ {α : Type u_1} (r : Setoid α) {x y z : α}, r x y → r y z → r x z
theorem Setoid.comm' E1 #
∀ {α : Type u_1} (s : Setoid α) {x y : α}, s x y ↔ s y x
theorem Setoid.comm E1 #
∀ {α : Type u_1} [inst : Setoid α] {x y : α}, x ≈ y ↔ y ≈ x
def Setoid.ker E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → Setoid α
The kernel of a function is an equivalence relation.
theorem Setoid.ker_mk_eq E0 #
∀ {α : Type u_1} (r : Setoid α), Setoid.ker Quotient.mk'' = r
The kernel of the quotient map induced by an equivalence relation r equals r.
theorem Setoid.ker_apply_mk_out E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} (a : α), f ⟦a⟧.out = f a
theorem Setoid.ker_def E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {x y : α}, (Setoid.ker f) x y ↔ f x = f y
def Setoid.prod E1 #
{α : Type u_1} → {β : Type u_2} → Setoid α → Setoid β → Setoid (α × β)
Given types α, β, the product of two equivalence relations r on α and s on β:
(x₁, x₂), (y₁, y₂) ∈ α × β are related by r.prod s iff x₁ is related to y₁
by r and x₂ is related to y₂ by s.
theorem Setoid.prod_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} {s : Setoid β} {x₁ x₂ : α} {y₁ y₂ : β},
(r.prod s) (x₁, y₁) (x₂, y₂) ↔ r x₁ x₂ ∧ s y₁ y₂
theorem Setoid.piSetoid_apply E0 #
∀ {ι : Sort u_4} {α : ι → Sort u_5} {r : (i : ι) → Setoid (α i)} {x y : (i : ι) → α i},
piSetoid x y ↔ ∀ (i : ι), (r i) (x i) (y i)
def Setoid.prodQuotientEquiv E1 #
{α : Type u_1} → {β : Type u_2} → (r : Setoid α) → (s : Setoid β) → Quotient r × Quotient s ≃ Quotient (r.prod s)
A bijection between the product of two quotients and the quotient by the product of the equivalence relations.
theorem Setoid.prodQuotientEquiv_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : Setoid α) (s : Setoid β) (q : Quotient (r.prod s)),
(r.prodQuotientEquiv s).symm q = q.liftOn' (fun xy ↦ (Quotient.mk'' xy.1, Quotient.mk'' xy.2)) ⋯
theorem Setoid.prodQuotientEquiv_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : Setoid α) (s : Setoid β) (x : Quotient r × Quotient s),
(r.prodQuotientEquiv s) x =
match x with
| (x, y) => Quotient.map₂ Prod.mk ⋯ x y
def Setoid.piQuotientEquiv E1 #
{ι : Sort u_4} → {α : ι → Sort u_5} → (r : (i : ι) → Setoid (α i)) → ((i : ι) → Quotient (r i)) ≃ Quotient piSetoid
A bijection between an indexed product of quotients and the quotient by the product of the equivalence relations.
theorem Setoid.piQuotientEquiv_symm_apply E0 #
∀ {ι : Sort u_4} {α : ι → Sort u_5} (r : (i : ι) → Setoid (α i)) (q : Quotient piSetoid) (i : ι),
(Setoid.piQuotientEquiv r).symm q i = q.liftOn' (fun x i ↦ Quotient.mk'' (x i)) ⋯ i
theorem Setoid.piQuotientEquiv_apply E0 #
∀ {ι : Sort u_4} {α : ι → Sort u_5} (r : (i : ι) → Setoid (α i)) (x : (i : ι) → Quotient (r i)),
(Setoid.piQuotientEquiv r) x = Quotient.mk'' fun i ↦ (x i).out
instance Setoid.instMin_mathlib E0 #
{α : Type u_1} → Min (Setoid α)
The infimum of two equivalence relations.
theorem Setoid.inf_def E0 #
∀ {α : Type u_1} {r s : Setoid α}, ⇑(r ⊓ s) = ⇑r ⊓ ⇑s
The infimum of 2 equivalence relations r and s is the same relation as the infimum of the underlying binary operations.
theorem Setoid.inf_iff_and E1 #
∀ {α : Type u_1} {r s : Setoid α} {x y : α}, (r ⊓ s) x y ↔ r x y ∧ s x y
instance Setoid.instInfSet E0 #
{α : Type u_1} → InfSet (Setoid α)
The infimum of a set of equivalence relations.
theorem Setoid.sInf_def E0 #
∀ {α : Type u_1} {s : Set (Setoid α)}, ⇑(sInf s) = sInf (@Setoid.r α '' s)
The underlying binary operation of the infimum of a set of equivalence relations is the infimum of the set's image under the map to the underlying binary operation.
instance Setoid.instPartialOrder E0 #
{α : Type u_1} → PartialOrder (Setoid α)
instance Setoid.completeLattice E0 #
{α : Type u_1} → CompleteLattice (Setoid α)
The complete lattice of equivalence relations on a type, with bottom element =
and top element the trivial equivalence relation.
theorem Setoid.top_def E0 #
∀ {α : Type u_1}, ⇑⊤ = ⊤
theorem Setoid.bot_def E0 #
∀ {α : Type u_1}, ⇑⊥ = fun x1 x2 ↦ x1 = x2
theorem Setoid.mk_eq_top E0 #
∀ {α : Type u_1} {r : α → α → Prop} (iseqv : Equivalence r), { r := r, iseqv := iseqv } = ⊤ ↔ r = ⊤
theorem Setoid.mk_eq_bot E0 #
∀ {α : Type u_1} {r : α → α → Prop} (iseqv : Equivalence r), { r := r, iseqv := iseqv } = ⊥ ↔ r = fun x1 x2 ↦ x1 = x2
theorem Setoid.ker_eq_bot_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Setoid.ker f = ⊥ ↔ Function.Injective f
theorem Setoid.ker_eq_top_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Setoid.ker f = ⊤ ↔ Function.IsConst f
theorem Setoid.sInf_equiv E1 #
∀ {α : Type u_1} {S : Set (Setoid α)} {x y : α}, x ≈ y ↔ ∀ s ∈ S, s x y
theorem Setoid.sInf_iff E0 #
∀ {α : Type u_1} {S : Set (Setoid α)} {x y : α}, (sInf S) x y ↔ ∀ s ∈ S, s x y
theorem Setoid.quotient_mk_sInf_eq E0 #
∀ {α : Type u_1} {S : Set (Setoid α)} {x y : α}, ⟦x⟧ = ⟦y⟧ ↔ ∀ s ∈ S, s x y
def Setoid.map_of_le E0 #
{α : Type u_1} → {s t : Setoid α} → s ≤ t → Quotient s → Quotient t
The map induced between quotients by a setoid inequality.
def Setoid.map_sInf E0 #
{α : Type u_1} → {S : Set (Setoid α)} → {s : Setoid α} → s ∈ S → Quotient (sInf S) → Quotient s
The map from the quotient of the infimum of a set of setoids into the quotient by an element of this set.
def Setoid.quotientTrivialEquiv E1 #
{α : Type u_1} → (s : Setoid α) → (∀ ⦃x y : α⦄, s x y → x = y) → Quotient s ≃ α
The quotient by the trivial equivalence relation is equivalent to the original space.
theorem Setoid.coe_quotientTrivialEquiv E0 #
∀ {α : Type u_1} (s : Setoid α) (h : ∀ ⦃x y : α⦄, s x y → x = y), ⇑(s.quotientTrivialEquiv h) = Quotient.lift id h
theorem Setoid.coe_symm_quotientTrivialEquiv E0 #
∀ {α : Type u_1} (s : Setoid α) (h : ∀ ⦃x y : α⦄, s x y → x = y), ⇑(s.quotientTrivialEquiv h).symm = Quotient.mk s
def Setoid.quotientBotEquiv E1 #
{α : Type u_1} → Quotient ⊥ ≃ α
The quotient by the trivial relation is equivalent to the original space.
theorem Setoid.coe_quotientBotEquiv E0 #
∀ {α : Type u_1}, ⇑Setoid.quotientBotEquiv = Quotient.lift id ⋯
theorem Setoid.coe_symm_quotientBotEquiv E0 #
∀ {α : Type u_1}, ⇑Setoid.quotientBotEquiv.symm = Quotient.mk ⊥
theorem Setoid.eqvGen_eq E0 #
∀ {α : Type u_1} (r : α → α → Prop), Relation.EqvGen.setoid r = sInf {s | ∀ ⦃x y : α⦄, r x y → s x y}
The inductively defined equivalence closure of a binary relation r is the infimum of the set of all equivalence relations containing r.
theorem Setoid.sup_eq_eqvGen E1 #
∀ {α : Type u_1} (r s : Setoid α), r ⊔ s = Relation.EqvGen.setoid fun x y ↦ r x y ∨ s x y
The supremum of two equivalence relations r and s is the equivalence closure of the binary
relation x is related to y by r or s.
theorem Setoid.sup_def E0 #
∀ {α : Type u_1} {r s : Setoid α}, r ⊔ s = Relation.EqvGen.setoid (⇑r ⊔ ⇑s)
The supremum of 2 equivalence relations r and s is the equivalence closure of the supremum of the underlying binary operations.
theorem Setoid.sSup_eq_eqvGen E1 #
∀ {α : Type u_1} (S : Set (Setoid α)), sSup S = Relation.EqvGen.setoid fun x y ↦ ∃ r ∈ S, r x y
The supremum of a set S of equivalence relations is the equivalence closure of the binary
relation there exists r ∈ S relating x and y.
theorem Setoid.sSup_def E0 #
∀ {α : Type u_1} {s : Set (Setoid α)}, sSup s = Relation.EqvGen.setoid (sSup (@Setoid.r α '' s))
The supremum of a set of equivalence relations is the equivalence closure of the supremum of the set's image under the map to the underlying binary operation.
theorem Setoid.eqvGen_of_setoid E0 #
∀ {α : Type u_1} (r : Setoid α), Relation.EqvGen.setoid ⇑r = r
The equivalence closure of an equivalence relation r is r.
theorem Setoid.eqvGen_idem E1 #
∀ {α : Type u_1} (r : α → α → Prop), Relation.EqvGen.setoid ⇑(Relation.EqvGen.setoid r) = Relation.EqvGen.setoid r
Equivalence closure is idempotent.
theorem Setoid.eqvGen_le E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Setoid α}, (∀ (x y : α), r x y → s x y) → Relation.EqvGen.setoid r ≤ s
The equivalence closure of a binary relation r is contained in any equivalence relation containing r.
theorem Setoid.eqvGen_mono E1 #
∀ {α : Type u_1} {r s : α → α → Prop},
(∀ (x y : α), r x y → s x y) → Relation.EqvGen.setoid r ≤ Relation.EqvGen.setoid s
Equivalence closure of binary relations is monotone.
def Setoid.gi E1 #
{α : Type u_1} → GaloisInsertion Relation.EqvGen.setoid (@Setoid.r α)
There is a Galois insertion of equivalence relations on α into binary relations on α, with equivalence closure the lower adjoint.
theorem Setoid.injective_iff_ker_bot E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.Injective f ↔ Setoid.ker f = ⊥
A function from α to β is injective iff its kernel is the bottom element of the complete lattice of equivalence relations on α.
theorem Setoid.ker_iff_mem_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {x y : α}, (Setoid.ker f) x y ↔ x ∈ f ⁻¹' {f y}
The elements related to x ∈ α by the kernel of f are those in the preimage of f(x) under f.
def Setoid.liftEquiv E1 #
{α : Type u_1} → {β : Type u_2} → (r : Setoid α) → { f // r ≤ Setoid.ker f } ≃ (Quotient r → β)
Equivalence between functions α → β such that r x y → f x = f y and functions
quotient r → β.
theorem Setoid.lift_unique E1 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} {f : α → β} (H : r ≤ Setoid.ker f) (g : Quotient r → β),
f = g ∘ Quotient.mk'' → Quotient.lift f H = g
The uniqueness part of the universal property for quotients of an arbitrary type.
def Setoid.kerLift E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → Quotient (Setoid.ker f) → β
Given a function f, lift it to the quotient by its kernel.
theorem Setoid.kerLift_mk E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (x : α), Setoid.kerLift f ⟦x⟧ = f x
theorem Setoid.kerLift_injective E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.Injective (Setoid.kerLift f)
Given a map f from α to β, the natural map from the quotient of α by the kernel of f is injective.
theorem Setoid.ker_eq_lift_of_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} (f : α → β) (H : r ≤ Setoid.ker f),
Function.Injective (Quotient.lift f H) → Setoid.ker f = r
Given a map f from α to β, the kernel of f is the unique equivalence relation on α whose induced map from the quotient of α to β is injective.
theorem Setoid.lift_injective_iff_ker_eq_of_le E1 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} {f : α → β} (hle : r ≤ Setoid.ker f),
Function.Injective (Quotient.lift f hle) ↔ Setoid.ker f = r
theorem Setoid.range_kerLift_eq_range E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Set.range (Setoid.kerLift f) = Set.range f
The image of f lifted to the quotient by its kernel is equal to the image of f itself.
def Setoid.quotientKerEquivRangeKerLift E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → Quotient (Setoid.ker f) ≃ ↑(Set.range (Setoid.kerLift f))
The quotient of α by the kernel of a function f
bijects with the image of f lifted to the quotient.
def Setoid.quotientKerEquivRange E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → Quotient (Setoid.ker f) ≃ ↑(Set.range f)
The first isomorphism theorem for sets: the quotient of α by the kernel of a function f bijects with f's image.
def Setoid.quotientKerEquivOfRightInverse E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → (g : β → α) → Function.RightInverse g f → Quotient (Setoid.ker f) ≃ β
If f has a computable right-inverse, then the quotient by its kernel is equivalent to its
domain.
theorem Setoid.quotientKerEquivOfRightInverse_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (hf : Function.RightInverse g f) (a : Quotient (Setoid.ker f)),
(Setoid.quotientKerEquivOfRightInverse f g hf) a = Setoid.kerLift f a
theorem Setoid.quotientKerEquivOfRightInverse_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (hf : Function.RightInverse g f) (b : β),
(Setoid.quotientKerEquivOfRightInverse f g hf).symm b = Quotient.mk'' (g b)
def Setoid.quotientKerEquivOfSurjective E1 #
{α : Type u_1} → {β : Type u_2} → (f : α → β) → Function.Surjective f → Quotient (Setoid.ker f) ≃ β
The quotient of α by the kernel of a surjective function f bijects with f's codomain.
If a specific right-inverse of f is known, Setoid.quotientKerEquivOfRightInverse can be
definitionally more useful.
def Setoid.map E1 #
{α : Type u_1} → {β : Type u_2} → Setoid α → (α → β) → Setoid β
Given a function f : α → β and equivalence relation r on α, the equivalence
closure of the relation on f's image defined by 'x ≈ y iff the elements of f⁻¹(x) are
related to the elements of f⁻¹(y) by r.'
theorem Setoid.coe_map_of_ker_le E0 #
∀ {α : Type u_1} {β : Type u_2} (r : Setoid α) (f : α → β),
Setoid.ker f ≤ r → ⇑(r.map f) = Relation.Map (⇑r) f f ⊔ fun x1 x2 ↦ x1 = x2
def Setoid.mapOfSurjective E1 #
{α : Type u_1} → {β : Type u_2} → (r : Setoid α) → (f : α → β) → Setoid.ker f ≤ r → Function.Surjective f → Setoid β
Given a surjective function f whose kernel is contained in an equivalence relation r, the equivalence relation on f's codomain defined by x ≈ y ↔ the elements of f⁻¹(x) are related to the elements of f⁻¹(y) by r.
theorem Setoid.mapOfSurjective_eq_map E1 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} {f : α → β} (h : Setoid.ker f ≤ r) (hf : Function.Surjective f),
r.map f = r.mapOfSurjective f h hf
A special case of the equivalence closure of an equivalence relation r equaling r.
abbrev Setoid.comap E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → Setoid β → Setoid α
Given a function f : α → β, an equivalence relation r on β induces an equivalence
relation on α defined by 'x ≈ y iff f(x) is related to f(y) by r'.
See note [reducible non-instances].
theorem Setoid.comap_rel_eq E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (r : Setoid β), ⇑(Setoid.comap f r) = Function.onFun (⇑r) f
theorem Setoid.comap_rel E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (r : Setoid β) (x y : α), (Setoid.comap f r) x y ↔ r (f x) (f y)
theorem Setoid.comap_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {r : Setoid β}, Setoid.comap f r = Setoid.ker (Quotient.mk'' ∘ f)
Given a map f : N → M and an equivalence relation r on β, the equivalence relation
induced on α by f equals the kernel of r's quotient map composed with f.
theorem Setoid.comap_id E0 #
∀ {α : Type u_1} (c : Setoid α), Setoid.comap id c = c
theorem Setoid.comap_comp E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (c : Setoid γ) (g : β → γ) (f : α → β),
Setoid.comap (g ∘ f) c = Setoid.comap f (Setoid.comap g c)
theorem Setoid.gc_map_comap E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, GaloisConnection (fun s ↦ s.map f) (Setoid.comap f)
theorem Setoid.map_id E0 #
∀ {α : Type u_1} (s : Setoid α), s.map id = s
theorem Setoid.map_map E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β) (g : β → γ) (s : Setoid α), (s.map f).map g = s.map (g ∘ f)
theorem Setoid.map_le_comap_of_inverse E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → ∀ (s : Setoid α), s.map f ≤ Setoid.comap g s
theorem Setoid.comap_le_map_of_inverse E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → ∀ (s : Setoid β), Setoid.comap f s ≤ s.map g
theorem Setoid.map_eq_comap_of_inverse E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → Function.RightInverse g f → ∀ (s : Setoid α), s.map f = Setoid.comap g s
theorem Setoid.map_equiv_eq_comap_symm E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Setoid α), s.map ⇑e = Setoid.comap (⇑e.symm) s
theorem Setoid.comap_equiv_eq_map_symm E1 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Setoid β), Setoid.comap (⇑e) s = s.map ⇑e.symm
theorem Setoid.map_monotone E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Monotone fun s ↦ s.map f
theorem Setoid.comap_monotone E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Monotone (Setoid.comap f)
theorem Setoid.comap_injective E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.Surjective f → Function.Injective (Setoid.comap f)
theorem Setoid.le_comap_map E1 #
∀ {α : Type u_1} {β : Type u_2} {r : Setoid α} {f : α → β}, r ≤ Setoid.comap f (r.map f)
theorem Setoid.comap_map_of_ker_le E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (r : Setoid α), Setoid.ker f ≤ r → Setoid.comap f (r.map f) = r
theorem Setoid.comap_map_eq E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (r : Setoid α), Function.Injective f → Setoid.comap f (r.map f) = r
theorem Setoid.comap_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.Injective f → Function.Surjective (Setoid.comap f)
def Setoid.comapQuotientEquiv E1 #
{α : Type u_1} →
{β : Type u_2} → (f : α → β) → (r : Setoid β) → Quotient (Setoid.comap f r) ≃ ↑(Set.range (Quotient.mk'' ∘ f))
The second isomorphism theorem for sets.
def Setoid.quotientQuotientEquivQuotient E1 #
{α : Type u_1} → (r s : Setoid α) → (h : r ≤ s) → Quotient (Setoid.ker (Quot.mapRight h)) ≃ Quotient s
The third isomorphism theorem for sets.
def Setoid.correspondence E1 #
{α : Type u_1} → (r : Setoid α) → { s // r ≤ s } ≃o Setoid (Quotient r)
Given an equivalence relation r on α, the order-preserving bijection between the set of
equivalence relations containing r and the equivalence relations on the quotient of α by r.
def Setoid.sigmaQuotientEquivOfLe E1 #
{α : Type u_1} → {r s : Setoid α} → r ≤ s → (q : Quotient s) × Quotient (Setoid.comap Subtype.val r) ≃ Quotient r
Given two equivalence relations with r ≤ s, a bijection between the sum of the quotients by
r on each equivalence class by s and the quotient by r.
theorem Quotient.subsingleton_iff E0 #
∀ {α : Type u_1} {s : Setoid α}, Subsingleton (Quotient s) ↔ s = ⊤
theorem Quot.subsingleton_iff E0 #
∀ {α : Type u_1} (r : α → α → Prop), Subsingleton (Quot r) ↔ Relation.EqvGen r = ⊤
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Setoid.ker_eq_top | Setoid.ker_eq_top_iff | 2026-11-10 |