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 / V24. Category theory

Mathlib.CategoryTheory.EquivalenceRelation

109 declarations and 1 deprecated aliases. Mathlib docs · Source

Equivalence relations

We define internal equivalence relations (sometimes called congruences) in any category C, as a structure on pairs of parallel morphisms p₁, p₂ : R ⟶ X . We also define effective and universally effective equivalence relations.

We prove that equivalence relations on types provide internal equivalence relation structures in the category of types. In general, kernel pairs in any category are internal equivalence relations.

References

theorem CategoryTheory.UniversallyEffectiveEquivalenceRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A}
  (toEffectiveEquivalenceRelation : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂)
  (universally_effectiveEpi_π :
    CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f)
      toEffectiveEquivalenceRelation.π)
  (toEffectiveEquivalenceRelation_1 : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂)
  (universally_effectiveEpi_π_1 :
    CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f)
      toEffectiveEquivalenceRelation_1.π),
  ({ toEffectiveEquivalenceRelation := toEffectiveEquivalenceRelation,
        universally_effectiveEpi_π := universally_effectiveEpi_π } =
      { toEffectiveEquivalenceRelation := toEffectiveEquivalenceRelation_1,
        universally_effectiveEpi_π := universally_effectiveEpi_π_1 }) =
    (toEffectiveEquivalenceRelation = toEffectiveEquivalenceRelation_1)

theorem CategoryTheory.EquivalenceRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (toReflexiveRelation : CategoryTheory.ReflexiveRelation p₁ p₂) (s : R ⟶ R)
  (symmetry₁ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam)
  (symmetry₂ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam)
  (c : CategoryTheory.Limits.PullbackCone p₂ p₁) (isLimit : CategoryTheory.Limits.IsLimit c) (t : c.pt ⟶ R)
  (transitivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam)
  (transitivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam)
  (toReflexiveRelation_1 : CategoryTheory.ReflexiveRelation p₁ p₂) (s_1 : R ⟶ R)
  (symmetry₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam)
  (symmetry₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam)
  (c_1 : CategoryTheory.Limits.PullbackCone p₂ p₁) (isLimit_1 : CategoryTheory.Limits.IsLimit c_1) (t_1 : c_1.pt ⟶ R)
  (transitivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₁ = CategoryTheory.CategoryStruct.comp c_1.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam)
  (transitivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₂ = CategoryTheory.CategoryStruct.comp c_1.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam),
  ({ toReflexiveRelation := toReflexiveRelation, s := s, symmetry₁ := symmetry₁, symmetry₂ := symmetry₂, c := c,
        isLimit := isLimit, t := t, transitivity₁ := transitivity₁, transitivity₂ := transitivity₂ } =
      { toReflexiveRelation := toReflexiveRelation_1, s := s_1, symmetry₁ := symmetry₁_1, symmetry₂ := symmetry₂_1,
        c := c_1, isLimit := isLimit_1, t := t_1, transitivity₁ := transitivity₁_1,
        transitivity₂ := transitivity₂_1 }) =
    (toReflexiveRelation = toReflexiveRelation_1 ∧ s = s_1 ∧ c = c_1 ∧ isLimit ≍ isLimit_1 ∧ t ≍ t_1)

def CategoryTheory.EffectiveEquivalenceRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R A : C} → {p₁ p₂ : R ⟶ A} → CategoryTheory.EffectiveEquivalenceRelation p₁ p₂ → ℕ

def CategoryTheory.SymmetricRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.SymmetricRelation p₁ p₂ → ℕ

def CategoryTheory.ReflexiveRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.ReflexiveRelation p₁ p₂ → ℕ

theorem CategoryTheory.EquivalenceRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X : C} {p₁ p₂ : R ⟶ X}
  {toReflexiveRelation : CategoryTheory.ReflexiveRelation p₁ p₂} {s : R ⟶ R}
  {symmetry₁ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam}
  {symmetry₂ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam}
  {c : CategoryTheory.Limits.PullbackCone p₂ p₁} {isLimit : CategoryTheory.Limits.IsLimit c} {t : c.pt ⟶ R}
  {transitivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam}
  {transitivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam}
  {toReflexiveRelation_1 : CategoryTheory.ReflexiveRelation p₁ p₂} {s_1 : R ⟶ R}
  {symmetry₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam}
  {symmetry₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam}
  {c_1 : CategoryTheory.Limits.PullbackCone p₂ p₁} {isLimit_1 : CategoryTheory.Limits.IsLimit c_1} {t_1 : c_1.pt ⟶ R}
  {transitivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₁ = CategoryTheory.CategoryStruct.comp c_1.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam}
  {transitivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₂ = CategoryTheory.CategoryStruct.comp c_1.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam},
  { toReflexiveRelation := toReflexiveRelation, s := s, symmetry₁ := symmetry₁, symmetry₂ := symmetry₂, c := c,
        isLimit := isLimit, t := t, transitivity₁ := transitivity₁, transitivity₂ := transitivity₂ } =
      { toReflexiveRelation := toReflexiveRelation_1, s := s_1, symmetry₁ := symmetry₁_1, symmetry₂ := symmetry₂_1,
        c := c_1, isLimit := isLimit_1, t := t_1, transitivity₁ := transitivity₁_1, transitivity₂ := transitivity₂_1 } →
    toReflexiveRelation = toReflexiveRelation_1 ∧ s = s_1 ∧ c = c_1 ∧ isLimit ≍ isLimit_1 ∧ t ≍ t_1

theorem CategoryTheory.TransitiveRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂) (c : CategoryTheory.Limits.PullbackCone p₂ p₁)
  (isLimit : CategoryTheory.Limits.IsLimit c) (t : c.pt ⟶ R)
  (transitivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam)
  (transitivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam)
  (toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂) (c_1 : CategoryTheory.Limits.PullbackCone p₂ p₁)
  (isLimit_1 : CategoryTheory.Limits.IsLimit c_1) (t_1 : c_1.pt ⟶ R)
  (transitivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₁ = CategoryTheory.CategoryStruct.comp c_1.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam)
  (transitivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₂ = CategoryTheory.CategoryStruct.comp c_1.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam),
  ({ toJointlyMono₂ := toJointlyMono₂, c := c, isLimit := isLimit, t := t, transitivity₁ := transitivity₁,
        transitivity₂ := transitivity₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, c := c_1, isLimit := isLimit_1, t := t_1, transitivity₁ := transitivity₁_1,
        transitivity₂ := transitivity₂_1 }) =
    (c = c_1 ∧ isLimit ≍ isLimit_1 ∧ t ≍ t_1)

theorem CategoryTheory.ReflexiveRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂) (r : X ⟶ R)
  (reflexivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp r p₁ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₁._autoParam)
  (reflexivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp r p₂ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₂._autoParam)
  (toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂) (r_1 : X ⟶ R)
  (reflexivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp r_1 p₁ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₁._autoParam)
  (reflexivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp r_1 p₂ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₂._autoParam),
  ({ toJointlyMono₂ := toJointlyMono₂, r := r, reflexivity₁ := reflexivity₁, reflexivity₂ := reflexivity₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, r := r_1, reflexivity₁ := reflexivity₁_1,
        reflexivity₂ := reflexivity₂_1 }) =
    (r = r_1)

theorem CategoryTheory.TransitiveRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X : C} {p₁ p₂ : R ⟶ X}
  {toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂} {c : CategoryTheory.Limits.PullbackCone p₂ p₁}
  {isLimit : CategoryTheory.Limits.IsLimit c} {t : c.pt ⟶ R}
  {transitivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam}
  {transitivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam}
  {toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂} {c_1 : CategoryTheory.Limits.PullbackCone p₂ p₁}
  {isLimit_1 : CategoryTheory.Limits.IsLimit c_1} {t_1 : c_1.pt ⟶ R}
  {transitivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₁ = CategoryTheory.CategoryStruct.comp c_1.fst p₁)
      CategoryTheory.TransitiveRelation.transitivity₁._autoParam}
  {transitivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp t_1 p₂ = CategoryTheory.CategoryStruct.comp c_1.snd p₂)
      CategoryTheory.TransitiveRelation.transitivity₂._autoParam},
  { toJointlyMono₂ := toJointlyMono₂, c := c, isLimit := isLimit, t := t, transitivity₁ := transitivity₁,
        transitivity₂ := transitivity₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, c := c_1, isLimit := isLimit_1, t := t_1, transitivity₁ := transitivity₁_1,
        transitivity₂ := transitivity₂_1 } →
    c = c_1 ∧ isLimit ≍ isLimit_1 ∧ t ≍ t_1

def CategoryTheory.EquivalenceRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → ℕ

theorem CategoryTheory.SymmetricRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X : C} {p₁ p₂ : R ⟶ X}
  {toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂} {s : R ⟶ R}
  {symmetry₁ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam}
  {symmetry₂ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam}
  {toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂} {s_1 : R ⟶ R}
  {symmetry₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam}
  {symmetry₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam},
  { toJointlyMono₂ := toJointlyMono₂, s := s, symmetry₁ := symmetry₁, symmetry₂ := symmetry₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, s := s_1, symmetry₁ := symmetry₁_1, symmetry₂ := symmetry₂_1 } →
    s = s_1

theorem CategoryTheory.SymmetricRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂) (s : R ⟶ R)
  (symmetry₁ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam)
  (symmetry₂ :
    autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam)
  (toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂) (s_1 : R ⟶ R)
  (symmetry₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₁ = p₂) CategoryTheory.SymmetricRelation.symmetry₁._autoParam)
  (symmetry₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp s_1 p₂ = p₁) CategoryTheory.SymmetricRelation.symmetry₂._autoParam),
  ({ toJointlyMono₂ := toJointlyMono₂, s := s, symmetry₁ := symmetry₁, symmetry₂ := symmetry₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, s := s_1, symmetry₁ := symmetry₁_1, symmetry₂ := symmetry₂_1 }) =
    (s = s_1)

theorem CategoryTheory.EffectiveEquivalenceRelation.mk.injEq E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A}
  (toEquivalenceRelation : CategoryTheory.EquivalenceRelation p₁ p₂) (B : C) (π : A ⟶ B)
  (isKernelPair : CategoryTheory.IsKernelPair π p₁ p₂) (isPushout : CategoryTheory.IsPushout p₁ p₂ π π)
  (toEquivalenceRelation_1 : CategoryTheory.EquivalenceRelation p₁ p₂) (B_1 : C) (π_1 : A ⟶ B_1)
  (isKernelPair_1 : CategoryTheory.IsKernelPair π_1 p₁ p₂) (isPushout_1 : CategoryTheory.IsPushout p₁ p₂ π_1 π_1),
  ({ toEquivalenceRelation := toEquivalenceRelation, B := B, π := π, isKernelPair := isKernelPair,
        isPushout := isPushout } =
      { toEquivalenceRelation := toEquivalenceRelation_1, B := B_1, π := π_1, isKernelPair := isKernelPair_1,
        isPushout := isPushout_1 }) =
    (toEquivalenceRelation = toEquivalenceRelation_1 ∧ B = B_1 ∧ π ≍ π_1)

def CategoryTheory.UniversallyEffectiveEquivalenceRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R A : C} → {p₁ p₂ : R ⟶ A} → CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂ → ℕ

def CategoryTheory.TransitiveRelation.ctorIdx E1 #

{C : Type u_1} →
  {inst : CategoryTheory.Category.{v_1, u_1} C} →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.TransitiveRelation p₁ p₂ → ℕ

theorem CategoryTheory.UniversallyEffectiveEquivalenceRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R A : C} {p₁ p₂ : R ⟶ A}
  {toEffectiveEquivalenceRelation : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂}
  {universally_effectiveEpi_π :
    CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f)
      toEffectiveEquivalenceRelation.π}
  {toEffectiveEquivalenceRelation_1 : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂}
  {universally_effectiveEpi_π_1 :
    CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f)
      toEffectiveEquivalenceRelation_1.π},
  { toEffectiveEquivalenceRelation := toEffectiveEquivalenceRelation,
        universally_effectiveEpi_π := universally_effectiveEpi_π } =
      { toEffectiveEquivalenceRelation := toEffectiveEquivalenceRelation_1,
        universally_effectiveEpi_π := universally_effectiveEpi_π_1 } →
    toEffectiveEquivalenceRelation = toEffectiveEquivalenceRelation_1

theorem CategoryTheory.ReflexiveRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X : C} {p₁ p₂ : R ⟶ X}
  {toJointlyMono₂ : CategoryTheory.JointlyMono₂ p₁ p₂} {r : X ⟶ R}
  {reflexivity₁ :
    autoParam (CategoryTheory.CategoryStruct.comp r p₁ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₁._autoParam}
  {reflexivity₂ :
    autoParam (CategoryTheory.CategoryStruct.comp r p₂ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₂._autoParam}
  {toJointlyMono₂_1 : CategoryTheory.JointlyMono₂ p₁ p₂} {r_1 : X ⟶ R}
  {reflexivity₁_1 :
    autoParam (CategoryTheory.CategoryStruct.comp r_1 p₁ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₁._autoParam}
  {reflexivity₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp r_1 p₂ = CategoryTheory.CategoryStruct.id X)
      CategoryTheory.ReflexiveRelation.reflexivity₂._autoParam},
  { toJointlyMono₂ := toJointlyMono₂, r := r, reflexivity₁ := reflexivity₁, reflexivity₂ := reflexivity₂ } =
      { toJointlyMono₂ := toJointlyMono₂_1, r := r_1, reflexivity₁ := reflexivity₁_1, reflexivity₂ := reflexivity₂_1 } →
    r = r_1

theorem CategoryTheory.EffectiveEquivalenceRelation.mk.inj E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R A : C} {p₁ p₂ : R ⟶ A}
  {toEquivalenceRelation : CategoryTheory.EquivalenceRelation p₁ p₂} {B : C} {π : A ⟶ B}
  {isKernelPair : CategoryTheory.IsKernelPair π p₁ p₂} {isPushout : CategoryTheory.IsPushout p₁ p₂ π π}
  {toEquivalenceRelation_1 : CategoryTheory.EquivalenceRelation p₁ p₂} {B_1 : C} {π_1 : A ⟶ B_1}
  {isKernelPair_1 : CategoryTheory.IsKernelPair π_1 p₁ p₂} {isPushout_1 : CategoryTheory.IsPushout p₁ p₂ π_1 π_1},
  { toEquivalenceRelation := toEquivalenceRelation, B := B, π := π, isKernelPair := isKernelPair,
        isPushout := isPushout } =
      { toEquivalenceRelation := toEquivalenceRelation_1, B := B_1, π := π_1, isKernelPair := isKernelPair_1,
        isPushout := isPushout_1 } →
    toEquivalenceRelation = toEquivalenceRelation_1 ∧ B = B_1 ∧ π ≍ π_1

class CategoryTheory.JointlyMono₂ E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X₁ X₂ : C} → (R ⟶ X₁) → (R ⟶ X₂) → Prop

A typeclass for pairs of morphisms that are jointly monic.

ctor CategoryTheory.JointlyMono₂.mk E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X₁ X₂ : C} {p₁ : R ⟶ X₁} {p₂ : R ⟶ X₂},
  (∀ ⦃Y : C⦄ (f g : Y ⟶ R),
      CategoryTheory.CategoryStruct.comp f p₁ = CategoryTheory.CategoryStruct.comp g p₁ →
        CategoryTheory.CategoryStruct.comp f p₂ = CategoryTheory.CategoryStruct.comp g p₂ → f = g) →
    CategoryTheory.JointlyMono₂ p₁ p₂

theorem CategoryTheory.JointlyMono₂.right_cancellation E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X₁ X₂ : C} {p₁ : R ⟶ X₁} {p₂ : R ⟶ X₂}
  [self : CategoryTheory.JointlyMono₂ p₁ p₂] ⦃Y : C⦄ (f g : Y ⟶ R),
  CategoryTheory.CategoryStruct.comp f p₁ = CategoryTheory.CategoryStruct.comp g p₁ →
    CategoryTheory.CategoryStruct.comp f p₂ = CategoryTheory.CategoryStruct.comp g p₂ → f = g

structure CategoryTheory.ReflexiveRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X : C} → (R ⟶ X) → (R ⟶ X) → Type v_1

A reflexive relation is a jointly monic pair of parallel morphisms p₁, p₂ : R ⟶ X, together with a section r : X ⟶ R of both p₁ and p₂.

theorem CategoryTheory.ReflexiveRelation.toJointlyMono₂ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂), CategoryTheory.JointlyMono₂ p₁ p₂

ctor CategoryTheory.ReflexiveRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} →
        CategoryTheory.JointlyMono₂ p₁ p₂ →
          (r : X ⟶ R) →
            autoParam (CategoryTheory.CategoryStruct.comp r p₁ = CategoryTheory.CategoryStruct.id X)
                CategoryTheory.ReflexiveRelation.reflexivity₁._autoParam →
              autoParam (CategoryTheory.CategoryStruct.comp r p₂ = CategoryTheory.CategoryStruct.id X)
                  CategoryTheory.ReflexiveRelation.reflexivity₂._autoParam →
                CategoryTheory.ReflexiveRelation p₁ p₂

abbrev CategoryTheory.ReflexiveRelation.r E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.ReflexiveRelation p₁ p₂ → (X ⟶ R)

r is the morphism witnessing reflexivity

theorem CategoryTheory.ReflexiveRelation.reflexivity₁ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.r p₁ = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.ReflexiveRelation.reflexivity₂ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.r p₂ = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.ReflexiveRelation.reflexivity₁_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.r (CategoryTheory.CategoryStruct.comp p₁ h) = h

theorem CategoryTheory.ReflexiveRelation.reflexivity₂_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier X), (CategoryTheory.ConcreteCategory.hom p₂) ((CategoryTheory.ConcreteCategory.hom self.r) x) = x

theorem CategoryTheory.ReflexiveRelation.reflexivity₂_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.r (CategoryTheory.CategoryStruct.comp p₂ h) = h

theorem CategoryTheory.ReflexiveRelation.reflexivity₁_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.ReflexiveRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier X), (CategoryTheory.ConcreteCategory.hom p₁) ((CategoryTheory.ConcreteCategory.hom self.r) x) = x

structure CategoryTheory.SymmetricRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X : C} → (R ⟶ X) → (R ⟶ X) → Type v_1

A symmetric relation is a jointly monic pair of parallel morphisms p₁, p₂ : R ⟶ X together with a morphism s : R ⟶ R which interchanges p₁ and p₂.

theorem CategoryTheory.SymmetricRelation.toJointlyMono₂ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂), CategoryTheory.JointlyMono₂ p₁ p₂

ctor CategoryTheory.SymmetricRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} →
        CategoryTheory.JointlyMono₂ p₁ p₂ →
          (s : R ⟶ R) →
            autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂)
                CategoryTheory.SymmetricRelation.symmetry₁._autoParam →
              autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁)
                  CategoryTheory.SymmetricRelation.symmetry₂._autoParam →
                CategoryTheory.SymmetricRelation p₁ p₂

abbrev CategoryTheory.SymmetricRelation.s E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.SymmetricRelation p₁ p₂ → (R ⟶ R)

s is the morphism witnessing symmetry

theorem CategoryTheory.SymmetricRelation.symmetry₁ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂), CategoryTheory.CategoryStruct.comp self.s p₁ = p₂

theorem CategoryTheory.SymmetricRelation.symmetry₂ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂), CategoryTheory.CategoryStruct.comp self.s p₂ = p₁

theorem CategoryTheory.SymmetricRelation.symmetry₁_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier R),
  (CategoryTheory.ConcreteCategory.hom p₁) ((CategoryTheory.ConcreteCategory.hom self.s) x) =
    (CategoryTheory.ConcreteCategory.hom p₂) x

theorem CategoryTheory.SymmetricRelation.symmetry₂_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier R),
  (CategoryTheory.ConcreteCategory.hom p₂) ((CategoryTheory.ConcreteCategory.hom self.s) x) =
    (CategoryTheory.ConcreteCategory.hom p₁) x

theorem CategoryTheory.SymmetricRelation.symmetry₂_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.s (CategoryTheory.CategoryStruct.comp p₂ h) =
    CategoryTheory.CategoryStruct.comp p₁ h

theorem CategoryTheory.SymmetricRelation.symmetry₁_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.SymmetricRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.s (CategoryTheory.CategoryStruct.comp p₁ h) =
    CategoryTheory.CategoryStruct.comp p₂ h

structure CategoryTheory.TransitiveRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X : C} → (R ⟶ X) → (R ⟶ X) → Type (max u_1 v_1)

A transitive relation is a jointly monic pair of parallel morphisms p₁, p₂ : R ⟶ X, together with a limiting pullback cone c for p₁ and p₂ and a map c.pt ⟶ R which factors the two projections c.pt ⟶ X through R.

theorem CategoryTheory.TransitiveRelation.toJointlyMono₂ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂), CategoryTheory.JointlyMono₂ p₁ p₂

ctor CategoryTheory.TransitiveRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} →
        CategoryTheory.JointlyMono₂ p₁ p₂ →
          (c : CategoryTheory.Limits.PullbackCone p₂ p₁) →
            CategoryTheory.Limits.IsLimit c →
              (t : c.pt ⟶ R) →
                autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
                    CategoryTheory.TransitiveRelation.transitivity₁._autoParam →
                  autoParam (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
                      CategoryTheory.TransitiveRelation.transitivity₂._autoParam →
                    CategoryTheory.TransitiveRelation p₁ p₂

abbrev CategoryTheory.TransitiveRelation.c E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.TransitiveRelation p₁ p₂ → CategoryTheory.Limits.PullbackCone p₂ p₁

c is a pullback cone for p₁ and p₂

abbrev CategoryTheory.TransitiveRelation.isLimit E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} → (self : CategoryTheory.TransitiveRelation p₁ p₂) → CategoryTheory.Limits.IsLimit self.c

c is limiting

abbrev CategoryTheory.TransitiveRelation.t E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → (self : CategoryTheory.TransitiveRelation p₁ p₂) → self.c.pt ⟶ R

t is the morphism witnessing transitivity

theorem CategoryTheory.TransitiveRelation.transitivity₁ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.t p₁ = CategoryTheory.CategoryStruct.comp self.c.fst p₁

theorem CategoryTheory.TransitiveRelation.transitivity₂ E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.t p₂ = CategoryTheory.CategoryStruct.comp self.c.snd p₂

theorem CategoryTheory.TransitiveRelation.transitivity₂_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.t (CategoryTheory.CategoryStruct.comp p₂ h) =
    CategoryTheory.CategoryStruct.comp self.c.snd (CategoryTheory.CategoryStruct.comp p₂ h)

theorem CategoryTheory.TransitiveRelation.transitivity₁_assoc E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.t (CategoryTheory.CategoryStruct.comp p₁ h) =
    CategoryTheory.CategoryStruct.comp self.c.fst (CategoryTheory.CategoryStruct.comp p₁ h)

theorem CategoryTheory.TransitiveRelation.transitivity₂_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier self.c.pt),
  (CategoryTheory.ConcreteCategory.hom p₂) ((CategoryTheory.ConcreteCategory.hom self.t) x) =
    (CategoryTheory.ConcreteCategory.hom p₂) ((CategoryTheory.ConcreteCategory.hom self.c.snd) x)

theorem CategoryTheory.TransitiveRelation.transitivity₁_apply E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.TransitiveRelation p₁ p₂) {F : C → C → Type uF} {carrier : C → Type w}
  {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)} [inst_1 : CategoryTheory.ConcreteCategory C F]
  (x : carrier self.c.pt),
  (CategoryTheory.ConcreteCategory.hom p₁) ((CategoryTheory.ConcreteCategory.hom self.t) x) =
    (CategoryTheory.ConcreteCategory.hom p₁) ((CategoryTheory.ConcreteCategory.hom self.c.fst) x)

structure CategoryTheory.EquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X : C} → (R ⟶ X) → (R ⟶ X) → Type (max u_1 v_1)

An equivalence relation is a reflexive, symmetric and transitive relation.

abbrev CategoryTheory.EquivalenceRelation.toSymmetricRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → CategoryTheory.SymmetricRelation p₁ p₂

Reinterpret an equivalence relation as a symmetric relation.

abbrev CategoryTheory.EquivalenceRelation.toTransitiveRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → CategoryTheory.TransitiveRelation p₁ p₂

Reinterpret an equivalence relation as a transitive relation.

ctor CategoryTheory.EquivalenceRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} →
        CategoryTheory.ReflexiveRelation p₁ p₂ →
          (s : R ⟶ R) →
            autoParam (CategoryTheory.CategoryStruct.comp s p₁ = p₂)
                CategoryTheory.SymmetricRelation.symmetry₁._autoParam →
              autoParam (CategoryTheory.CategoryStruct.comp s p₂ = p₁)
                  CategoryTheory.SymmetricRelation.symmetry₂._autoParam →
                (c : CategoryTheory.Limits.PullbackCone p₂ p₁) →
                  CategoryTheory.Limits.IsLimit c →
                    (t : c.pt ⟶ R) →
                      autoParam (CategoryTheory.CategoryStruct.comp t p₁ = CategoryTheory.CategoryStruct.comp c.fst p₁)
                          CategoryTheory.TransitiveRelation.transitivity₁._autoParam →
                        autoParam
                            (CategoryTheory.CategoryStruct.comp t p₂ = CategoryTheory.CategoryStruct.comp c.snd p₂)
                            CategoryTheory.TransitiveRelation.transitivity₂._autoParam →
                          CategoryTheory.EquivalenceRelation p₁ p₂

abbrev CategoryTheory.EquivalenceRelation.toReflexiveRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → CategoryTheory.ReflexiveRelation p₁ p₂

Reinterpret an equivalence relation as a reflexive relation.

abbrev CategoryTheory.EquivalenceRelation.isLimit E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} →
      {p₁ p₂ : R ⟶ X} → (self : CategoryTheory.EquivalenceRelation p₁ p₂) → CategoryTheory.Limits.IsLimit self.c

c is limiting

theorem CategoryTheory.EquivalenceRelation.symmetry₁ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.EquivalenceRelation p₁ p₂), CategoryTheory.CategoryStruct.comp self.s p₁ = p₂

theorem CategoryTheory.EquivalenceRelation.transitivity₁ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.EquivalenceRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.t p₁ = CategoryTheory.CategoryStruct.comp self.c.fst p₁

abbrev CategoryTheory.EquivalenceRelation.t E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → (self : CategoryTheory.EquivalenceRelation p₁ p₂) → self.c.pt ⟶ R

t is the morphism witnessing transitivity

theorem CategoryTheory.EquivalenceRelation.symmetry₂ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.EquivalenceRelation p₁ p₂), CategoryTheory.CategoryStruct.comp self.s p₂ = p₁

abbrev CategoryTheory.EquivalenceRelation.s E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → (R ⟶ R)

s is the morphism witnessing symmetry

abbrev CategoryTheory.EquivalenceRelation.c E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R X : C} → {p₁ p₂ : R ⟶ X} → CategoryTheory.EquivalenceRelation p₁ p₂ → CategoryTheory.Limits.PullbackCone p₂ p₁

c is a pullback cone for p₁ and p₂

theorem CategoryTheory.EquivalenceRelation.transitivity₂ E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (self : CategoryTheory.EquivalenceRelation p₁ p₂),
  CategoryTheory.CategoryStruct.comp self.t p₂ = CategoryTheory.CategoryStruct.comp self.c.snd p₂

class CategoryTheory.IsEquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R X : C} → (R ⟶ X) → (R ⟶ X) → Prop

The typeclass associated with the structure EquivalenceRelation.

ctor CategoryTheory.IsEquivalenceRelation.mk E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X},
  Nonempty (CategoryTheory.EquivalenceRelation p₁ p₂) → CategoryTheory.IsEquivalenceRelation p₁ p₂

theorem CategoryTheory.IsEquivalenceRelation.nonempty_equivalenceRelation E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R X : C} {p₁ p₂ : R ⟶ X}
  [self : CategoryTheory.IsEquivalenceRelation p₁ p₂], Nonempty (CategoryTheory.EquivalenceRelation p₁ p₂)

theorem CategoryTheory.EquivalenceRelation.isEquivalenceRelation E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R X : C} {p₁ p₂ : R ⟶ X}
  (h : CategoryTheory.EquivalenceRelation p₁ p₂), CategoryTheory.IsEquivalenceRelation p₁ p₂

def CategoryTheory.IsKernelPair.equivalenceRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {X Y : C} →
      (f : X ⟶ Y) →
        {R : C} →
          (p₁ p₂ : R ⟶ X) →
            {t : CategoryTheory.Limits.PullbackCone p₂ p₁} →
              CategoryTheory.Limits.IsLimit t →
                CategoryTheory.IsKernelPair f p₁ p₂ → CategoryTheory.EquivalenceRelation p₁ p₂

A kernel pair gives rise to an equivalence relation.

def CategoryTheory.ReflexiveRelation.map E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {D : Type u_2} →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        {R X : C} →
          {p₁ p₂ : R ⟶ X} →
            CategoryTheory.ReflexiveRelation p₁ p₂ →
              (F : CategoryTheory.Functor C D) →
                [CategoryTheory.JointlyMono₂ (F.map p₁) (F.map p₂)] →
                  CategoryTheory.ReflexiveRelation (F.map p₁) (F.map p₂)

Given a functor F : C ⥤ D, if F.map p₁ and F.map p₂ form a jointly monic pair of morphisms, then F preserves reflexive relations.

def CategoryTheory.SymmetricRelation.map E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {D : Type u_2} →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        {R X : C} →
          {p₁ p₂ : R ⟶ X} →
            CategoryTheory.SymmetricRelation p₁ p₂ →
              (F : CategoryTheory.Functor C D) →
                [CategoryTheory.JointlyMono₂ (F.map p₁) (F.map p₂)] →
                  CategoryTheory.SymmetricRelation (F.map p₁) (F.map p₂)

Given a functor F : C ⥤ D, if F.map p₁ and F.map p₂ form a jointly monic pair of morphisms, then F preserves symmetric relations.

def CategoryTheory.TransitiveRelation.map E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {D : Type u_2} →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        {R X : C} →
          {p₁ p₂ : R ⟶ X} →
            CategoryTheory.TransitiveRelation p₁ p₂ →
              (F : CategoryTheory.Functor C D) →
                [CategoryTheory.JointlyMono₂ (F.map p₁) (F.map p₂)] →
                  [CategoryTheory.Limits.PreservesLimitsOfShape CategoryTheory.Limits.WalkingCospan F] →
                    CategoryTheory.TransitiveRelation (F.map p₁) (F.map p₂)

Given a functor F : C ⥤ D, if F.map p₁ and F.map p₂ form a jointly monic pair of morphisms, and if F preserves pullbacks, then F preserves reflexive relations.

abbrev TypeCat.ROfRel E1 #

{X : Type w} → (X → X → Prop) → Type (max 0 w)

The subtype of X × X corresponding to a relation φ : X → X → Prop.

abbrev TypeCat.p₁OfRel E1 #

{X : Type w} → (φ : X → X → Prop) → TypeCat.ROfRel φ ⟶ X

The first projection ROfRel ⟶ X.

abbrev TypeCat.p₂OfRel E1 #

{X : Type w} → (φ : X → X → Prop) → TypeCat.ROfRel φ ⟶ X

The second projection ROfRel ⟶ X.

theorem TypeCat.jointlyMono₂ E1 #

∀ {X : Type w} (φ : X → X → Prop), CategoryTheory.JointlyMono₂ (TypeCat.p₁OfRel φ) (TypeCat.p₂OfRel φ)

def TypeCat.ReflexiveRelation.ofRefl E1 #

{X : Type w} →
  {φ : X → X → Prop} → Std.Refl φ → CategoryTheory.ReflexiveRelation (TypeCat.p₁OfRel φ) (TypeCat.p₂OfRel φ)

Standard reflexive relations on types are internal reflexive relations in the category of types.

def TypeCat.SymmetricRelation.ofSymmetric E1 #

{X : Type w} →
  {φ : X → X → Prop} → [Std.Symm φ] → CategoryTheory.SymmetricRelation (TypeCat.p₁OfRel φ) (TypeCat.p₂OfRel φ)

Standard symmetric relations on types are internal symmetric relations in the category of types.

def TypeCat.TransitiveRelation.ofIsTrans E1 #

{X : Type w} →
  {φ : X → X → Prop} → IsTrans X φ → CategoryTheory.TransitiveRelation (TypeCat.p₁OfRel φ) (TypeCat.p₂OfRel φ)

Standard transitive relations on types are internal transitive relations in the category of types.

def TypeCat.EquivalenceRelation.ofEquivalence E1 #

{X : Type w} →
  {φ : X → X → Prop} → Equivalence φ → CategoryTheory.EquivalenceRelation (TypeCat.p₁OfRel φ) (TypeCat.p₂OfRel φ)

Standard equivalence relations on types are internal equivalence relations in the category of types.

abbrev TypeCat.Rel.ofPair E1 #

{X R : Type w} → (R ⟶ X) → (R ⟶ X) → X → X → Prop

The relation on a type X coming from a pair of maps R ⟶ X.

theorem TypeCat.refl_of_reflexiveRelation E1 #

∀ {X R : Type w} {p₁ p₂ : R ⟶ X} (e : CategoryTheory.ReflexiveRelation p₁ p₂), Std.Refl (TypeCat.Rel.ofPair p₁ p₂)

An internal reflexive relation in the category of types gives rise to a standard reflexive relation.

theorem TypeCat.symm_of_symmetricRelation E1 #

∀ {X R : Type w} {p₁ p₂ : R ⟶ X} (e : CategoryTheory.SymmetricRelation p₁ p₂), Std.Symm (TypeCat.Rel.ofPair p₁ p₂)

An internal symmetric relation in the category of types gives rise to a standard symmetric relation.

theorem TypeCat.isTrans_of_transitiveRelation E1 #

∀ {X R : Type w} {p₁ p₂ : R ⟶ X} (e : CategoryTheory.TransitiveRelation p₁ p₂), IsTrans X (TypeCat.Rel.ofPair p₁ p₂)

An internal transitive relation in the category of types gives rise to a standard transitive relation.

theorem TypeCat.equivalence_of_equivalenceRelation E1 #

∀ {X R : Type w} {p₁ p₂ : R ⟶ X} (e : CategoryTheory.EquivalenceRelation p₁ p₂), Equivalence (TypeCat.Rel.ofPair p₁ p₂)

An internal equivalence relation in the category of types gives rise to a standard equivalence relation.

structure CategoryTheory.EffectiveEquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R A : C} → (R ⟶ A) → (R ⟶ A) → Type (max u_1 v_1)

An effective equivalence relation is an equivalence relation p₁, p₂ : R ⟶ A together with a morphism π : A ⟶ B such that the resulting square is both a pullback square and a pushout square.

abbrev CategoryTheory.EffectiveEquivalenceRelation.toEquivalenceRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} →
      {p₁ p₂ : R ⟶ A} → CategoryTheory.EffectiveEquivalenceRelation p₁ p₂ → CategoryTheory.EquivalenceRelation p₁ p₂

ctor CategoryTheory.EffectiveEquivalenceRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} →
      {p₁ p₂ : R ⟶ A} →
        CategoryTheory.EquivalenceRelation p₁ p₂ →
          (B : C) →
            (π : A ⟶ B) →
              CategoryTheory.IsKernelPair π p₁ p₂ →
                CategoryTheory.IsPushout p₁ p₂ π π → CategoryTheory.EffectiveEquivalenceRelation p₁ p₂

abbrev CategoryTheory.EffectiveEquivalenceRelation.B E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} → {p₁ p₂ : R ⟶ A} → CategoryTheory.EffectiveEquivalenceRelation p₁ p₂ → C

B is the "quotient" of the relation

abbrev CategoryTheory.EffectiveEquivalenceRelation.π E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} → {p₁ p₂ : R ⟶ A} → (self : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂) → A ⟶ self.B

π is the "quotient map" of the relation

theorem CategoryTheory.EffectiveEquivalenceRelation.isKernelPair E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A}
  (self : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂), CategoryTheory.IsKernelPair self.π p₁ p₂

theorem CategoryTheory.EffectiveEquivalenceRelation.isPushout E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A}
  (self : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂), CategoryTheory.IsPushout p₁ p₂ self.π self.π

class CategoryTheory.IsEffectiveEquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R A : C} → (R ⟶ A) → (R ⟶ A) → Prop

The typeclass associated with the structure EffectiveEquivalenceRelation.

ctor CategoryTheory.IsEffectiveEquivalenceRelation.mk E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A},
  Nonempty (CategoryTheory.EffectiveEquivalenceRelation p₁ p₂) → CategoryTheory.IsEffectiveEquivalenceRelation p₁ p₂

theorem CategoryTheory.IsEffectiveEquivalenceRelation.nonempty_effectiveEquivalenceRelation E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R A : C} {p₁ p₂ : R ⟶ A}
  [self : CategoryTheory.IsEffectiveEquivalenceRelation p₁ p₂],
  Nonempty (CategoryTheory.EffectiveEquivalenceRelation p₁ p₂)

def CategoryTheory.EffectiveEquivalenceRelation.isCoequalizer E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} →
      (p₁ p₂ : R ⟶ A) →
        (e : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂) →
          CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ e.π ⋯)

Given an effective equivalence relation structure e on p₁, p₂ : R ⟶ A, the morphism e.π : A ⟶ e.B makes e.B a coequalizer of p₁ and p₂.

instance CategoryTheory.instIsRegularEpiπ_1 E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} (p₁ p₂ : R ⟶ A)
  (e : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂), CategoryTheory.IsRegularEpi e.π

structure CategoryTheory.UniversallyEffectiveEquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R A : C} → (R ⟶ A) → (R ⟶ A) → Type (max u_1 v_1)

A universally effective equivalence relation is an effective equivalence relation p₁, p₂ : R ⟶ A such that the corresponding morphism π : A ⟶ B is a universal effective epimorphism.

ctor CategoryTheory.UniversallyEffectiveEquivalenceRelation.mk E0 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} →
      {p₁ p₂ : R ⟶ A} →
        (toEffectiveEquivalenceRelation : CategoryTheory.EffectiveEquivalenceRelation p₁ p₂) →
          CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f)
              toEffectiveEquivalenceRelation.π →
            CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂

abbrev CategoryTheory.UniversallyEffectiveEquivalenceRelation.toEffectiveEquivalenceRelation E1 #

{C : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} C] →
    {R A : C} →
      {p₁ p₂ : R ⟶ A} →
        CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂ → CategoryTheory.EffectiveEquivalenceRelation p₁ p₂

theorem CategoryTheory.UniversallyEffectiveEquivalenceRelation.universally_effectiveEpi_π E1 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A}
  (self : CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂),
  CategoryTheory.MorphismProperty.universally (fun x x_1 f ↦ CategoryTheory.EffectiveEpi f) self.π

class CategoryTheory.IsUniversallyEffectiveEquivalenceRelation E1 #

{C : Type u_1} → [inst : CategoryTheory.Category.{v_1, u_1} C] → {R A : C} → (R ⟶ A) → (R ⟶ A) → Prop

The typeclass associated with the structure UniversallyEffectiveEquivalenceRelation.

ctor CategoryTheory.IsUniversallyEffectiveEquivalenceRelation.mk E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] {R A : C} {p₁ p₂ : R ⟶ A},
  Nonempty (CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂) →
    CategoryTheory.IsUniversallyEffectiveEquivalenceRelation p₁ p₂

theorem CategoryTheory.IsUniversallyEffectiveEquivalenceRelation.nonempty_universallyEffectiveEquivalenceRelation E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C} {R A : C} {p₁ p₂ : R ⟶ A}
  [self : CategoryTheory.IsUniversallyEffectiveEquivalenceRelation p₁ p₂],
  Nonempty (CategoryTheory.UniversallyEffectiveEquivalenceRelation p₁ p₂)

class CategoryTheory.IsUniversallyEffectiveEquivalenceRelationCategory E1 #

(C : Type u_1) → [CategoryTheory.Category.{v_1, u_1} C] → Prop

A category in which every equivalence relation is universally effective. This is condition (c) in Giraud's characterisation of Grothendieck toposes, [SGA4, IV, 1.1.2][sga-4-tome-1].

ctor CategoryTheory.IsUniversallyEffectiveEquivalenceRelationCategory.mk E0 #

∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C],
  (∀ {R A : C} (p₁ p₂ : R ⟶ A) [CategoryTheory.IsEquivalenceRelation p₁ p₂],
      CategoryTheory.IsUniversallyEffectiveEquivalenceRelation p₁ p₂) →
    CategoryTheory.IsUniversallyEffectiveEquivalenceRelationCategory C

theorem CategoryTheory.IsUniversallyEffectiveEquivalenceRelationCategory.isUniversallyEffectiveEquivalenceRelation E1 #

∀ {C : Type u_1} {inst : CategoryTheory.Category.{v_1, u_1} C}
  [self : CategoryTheory.IsUniversallyEffectiveEquivalenceRelationCategory C] {R A : C} (p₁ p₂ : R ⟶ A)
  [CategoryTheory.IsEquivalenceRelation p₁ p₂], CategoryTheory.IsUniversallyEffectiveEquivalenceRelation p₁ p₂

Every equivalence relation p₁, p₂ : R ⟶ A is universally effective.

Deprecated aliases

NameNew nameSince
TypeCat.symmetric_of_symmetricRelationTypeCat.symm_of_symmetricRelation2026-06-10