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 / V05. Groups

Mathlib.GroupTheory.Congruence.Defs

211 declarations. Mathlib docs · Source

Congruence relations

This file defines congruence relations: equivalence relations that preserve a binary operation, which in this case is multiplication or addition. The principal definition is a structure extending a Setoid (an equivalence relation), and the inductive definition of the smallest congruence relation containing a binary relation is also given (see ConGen).

The file also proves basic properties of the quotient of a type by a congruence relation, and the complete lattice of congruence relations on a type. We then establish an order-preserving bijection between the set of congruence relations containing a congruence relation c and the set of congruence relations on the quotient by c.

The second half of the file concerns congruence relations on monoids, in which case the quotient by the congruence relation is also a monoid.

Implementation notes

The inductive definition of a congruence relation could be a nested inductive type, defined using the equivalence closure of a binary relation EqvGen, but the recursor generated does not work. A nested inductive definition could conceivably shorten proofs, because they would allow invocation of the corresponding lemmas about EqvGen.

The lemmas refl, symm and trans are not tagged with @[refl], @[symm], and @[trans] respectively as these tags do not work on a structure coerced to a binary relation.

There is a coercion from elements of a type to the element's equivalence class under a congruence relation.

A congruence relation on a monoid M can be thought of as a submonoid of M × M for which membership is an equivalence relation, but whilst this fact is established in the file, it is not used, since this perspective adds more layers of definitional unfolding.

Tags

congruence, congruence relation, quotient, quotient by congruence relation, monoid, quotient monoid, isomorphism theorems

ctor ConGen.Rel.below.mul E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {motive : (a a_1 : M) → ConGen.Rel r a a_1 → Prop} {w x y z : M}
  (a : ConGen.Rel r w x) (a_1 : ConGen.Rel r y z),
  ConGen.Rel.below a → motive w x a → ConGen.Rel.below a_1 → motive y z a_1 → ConGen.Rel.below ⋯

theorem Con.mk.injEq E0 #

∀ {M : Type u_1} [inst : Mul M] (toSetoid : Setoid M)
  (mul' : ∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w * y) (x * z)) (toSetoid_1 : Setoid M)
  (mul'_1 : ∀ {w x y z : M}, toSetoid_1 w x → toSetoid_1 y z → toSetoid_1 (w * y) (x * z)),
  ({ toSetoid := toSetoid, mul' := mul' } = { toSetoid := toSetoid_1, mul' := mul'_1 }) = (toSetoid = toSetoid_1)

ctor AddConGen.Rel.below.trans E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {motive : (a a_1 : M) → AddConGen.Rel r a a_1 → Prop} {x y z : M}
  (a : AddConGen.Rel r x y) (a_1 : AddConGen.Rel r y z),
  AddConGen.Rel.below a → motive x y a → AddConGen.Rel.below a_1 → motive y z a_1 → AddConGen.Rel.below ⋯

theorem AddCon.mk.injEq E0 #

∀ {M : Type u_1} [inst : Add M] (toSetoid : Setoid M)
  (add' : ∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w + y) (x + z)) (toSetoid_1 : Setoid M)
  (add'_1 : ∀ {w x y z : M}, toSetoid_1 w x → toSetoid_1 y z → toSetoid_1 (w + y) (x + z)),
  ({ toSetoid := toSetoid, add' := add' } = { toSetoid := toSetoid_1, add' := add'_1 }) = (toSetoid = toSetoid_1)

ctor ConGen.Rel.below.refl E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {motive : (a a_1 : M) → ConGen.Rel r a a_1 → Prop} (x : M),
  ConGen.Rel.below ⋯

ctor AddConGen.Rel.below.refl E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {motive : (a a_1 : M) → AddConGen.Rel r a a_1 → Prop} (x : M),
  AddConGen.Rel.below ⋯

def Con.ctorIdx E1 #

{M : Type u_1} → {inst : Mul M} → Con M → ℕ

ctor AddConGen.Rel.below.add E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {motive : (a a_1 : M) → AddConGen.Rel r a a_1 → Prop} {w x y z : M}
  (a : AddConGen.Rel r w x) (a_1 : AddConGen.Rel r y z),
  AddConGen.Rel.below a → motive w x a → AddConGen.Rel.below a_1 → motive y z a_1 → AddConGen.Rel.below ⋯

ctor ConGen.Rel.below.of E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {motive : (a a_1 : M) → ConGen.Rel r a a_1 → Prop} (x y : M)
  (a : r x y), ConGen.Rel.below ⋯

ctor ConGen.Rel.below.symm E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {motive : (a a_1 : M) → ConGen.Rel r a a_1 → Prop} {x y : M}
  (a : ConGen.Rel r x y), ConGen.Rel.below a → motive x y a → ConGen.Rel.below ⋯

theorem AddCon.mk.inj E1 #

∀ {M : Type u_1} {inst : Add M} {toSetoid : Setoid M}
  {add' : ∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w + y) (x + z)} {toSetoid_1 : Setoid M}
  {add'_1 : ∀ {w x y z : M}, toSetoid_1 w x → toSetoid_1 y z → toSetoid_1 (w + y) (x + z)},
  { toSetoid := toSetoid, add' := add' } = { toSetoid := toSetoid_1, add' := add'_1 } → toSetoid = toSetoid_1

ctor AddConGen.Rel.below.of E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {motive : (a a_1 : M) → AddConGen.Rel r a a_1 → Prop} (x y : M)
  (a : r x y), AddConGen.Rel.below ⋯

ctor ConGen.Rel.below.trans E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {motive : (a a_1 : M) → ConGen.Rel r a a_1 → Prop} {x y z : M}
  (a : ConGen.Rel r x y) (a_1 : ConGen.Rel r y z),
  ConGen.Rel.below a → motive x y a → ConGen.Rel.below a_1 → motive y z a_1 → ConGen.Rel.below ⋯

ctor AddConGen.Rel.below.symm E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {motive : (a a_1 : M) → AddConGen.Rel r a a_1 → Prop} {x y : M}
  (a : AddConGen.Rel r x y), AddConGen.Rel.below a → motive x y a → AddConGen.Rel.below ⋯

def AddCon.ctorIdx E1 #

{M : Type u_1} → {inst : Add M} → AddCon M → ℕ

theorem Con.mk.inj E1 #

∀ {M : Type u_1} {inst : Mul M} {toSetoid : Setoid M}
  {mul' : ∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w * y) (x * z)} {toSetoid_1 : Setoid M}
  {mul'_1 : ∀ {w x y z : M}, toSetoid_1 w x → toSetoid_1 y z → toSetoid_1 (w * y) (x * z)},
  { toSetoid := toSetoid, mul' := mul' } = { toSetoid := toSetoid_1, mul' := mul'_1 } → toSetoid = toSetoid_1

structure AddCon E1 #

(M : Type u_1) → [Add M] → Type u_1

A congruence relation on a type with an addition is an equivalence relation which preserves addition.

abbrev AddCon.toSetoid E1 #

{M : Type u_1} → [inst : Add M] → AddCon M → Setoid M

The equivalence relation underlying an additive congruence relation.

ctor AddCon.mk E0 #

{M : Type u_1} →
  [inst : Add M] →
    (toSetoid : Setoid M) → (∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w + y) (x + z)) → AddCon M

theorem AddCon.add' E1 #

∀ {M : Type u_1} [inst : Add M] (self : AddCon M) {w x y z : M},
  self.toSetoid w x → self.toSetoid y z → self.toSetoid (w + y) (x + z)

Additive congruence relations are closed under addition

structure Con E1 #

(M : Type u_1) → [Mul M] → Type u_1

A congruence relation on a type with a multiplication is an equivalence relation which preserves multiplication.

ctor Con.mk E0 #

{M : Type u_1} →
  [inst : Mul M] →
    (toSetoid : Setoid M) → (∀ {w x y z : M}, toSetoid w x → toSetoid y z → toSetoid (w * y) (x * z)) → Con M

abbrev Con.toSetoid E1 #

{M : Type u_1} → [inst : Mul M] → Con M → Setoid M

The equivalence relation underlying a multiplicative congruence relation.

theorem Con.mul' E1 #

∀ {M : Type u_1} [inst : Mul M] (self : Con M) {w x y z : M},
  self.toSetoid w x → self.toSetoid y z → self.toSetoid (w * y) (x * z)

Congruence relations are closed under multiplication

inductive AddConGen.Rel E1 #

{M : Type u_1} → [Add M] → (M → M → Prop) → M → M → Prop

The inductively defined smallest additive congruence relation containing a given binary relation.

ctor AddConGen.Rel.of E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} (x y : M), r x y → AddConGen.Rel r x y

ctor AddConGen.Rel.refl E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} (x : M), AddConGen.Rel r x x

ctor AddConGen.Rel.symm E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {x y : M}, AddConGen.Rel r x y → AddConGen.Rel r y x

ctor AddConGen.Rel.trans E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {x y z : M},
  AddConGen.Rel r x y → AddConGen.Rel r y z → AddConGen.Rel r x z

ctor AddConGen.Rel.add E0 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {w x y z : M},
  AddConGen.Rel r w x → AddConGen.Rel r y z → AddConGen.Rel r (w + y) (x + z)

inductive ConGen.Rel E1 #

{M : Type u_1} → [Mul M] → (M → M → Prop) → M → M → Prop

The inductively defined smallest multiplicative congruence relation containing a given binary relation.

ctor ConGen.Rel.of E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} (x y : M), r x y → ConGen.Rel r x y

ctor ConGen.Rel.refl E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} (x : M), ConGen.Rel r x x

ctor ConGen.Rel.symm E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {x y : M}, ConGen.Rel r x y → ConGen.Rel r y x

ctor ConGen.Rel.trans E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {x y z : M}, ConGen.Rel r x y → ConGen.Rel r y z → ConGen.Rel r x z

ctor ConGen.Rel.mul E0 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {w x y z : M},
  ConGen.Rel r w x → ConGen.Rel r y z → ConGen.Rel r (w * y) (x * z)

def conGen E1 #

{M : Type u_1} → [inst : Mul M] → (M → M → Prop) → Con M

The inductively defined smallest multiplicative congruence relation containing a given binary relation.

def addConGen E1 #

{M : Type u_1} → [inst : Add M] → (M → M → Prop) → AddCon M

The inductively defined smallest additive congruence relation containing a given binary relation.

instance AddCon.instInhabited E0 #

{M : Type u_1} → [inst : Add M] → Inhabited (AddCon M)

instance Con.instInhabited E0 #

{M : Type u_1} → [inst : Mul M] → Inhabited (Con M)

theorem Con.toSetoid_injective E1 #

∀ {M : Type u_1} [inst : Mul M], Function.Injective Con.toSetoid

theorem AddCon.toSetoid_injective E1 #

∀ {M : Type u_1} [inst : Add M], Function.Injective AddCon.toSetoid

theorem Con.toSetoid_inj E0 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, c.toSetoid = d.toSetoid ↔ c = d

theorem AddCon.toSetoid_inj E0 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, c.toSetoid = d.toSetoid ↔ c = d

instance Con.instFunLikeForallProp E0 #

{M : Type u_1} → [inst : Mul M] → FunLike (Con M) M (M → Prop)

A coercion from a congruence relation to its underlying binary relation.

instance AddCon.instFunLikeForallProp E0 #

{M : Type u_1} → [inst : Add M] → FunLike (AddCon M) M (M → Prop)

A coercion from an additive congruence relation to its underlying binary relation.

theorem Con.rel_eq_coe E0 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M), ⇑c.toSetoid = ⇑c

theorem AddCon.rel_eq_coe E0 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M), ⇑c.toSetoid = ⇑c

theorem Con.refl E1 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M) (x : M), c x x

Congruence relations are reflexive.

theorem AddCon.refl E1 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M) (x : M), c x x

Additive congruence relations are reflexive.

theorem Con.symm E1 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M) {x y : M}, c x y → c y x

Congruence relations are symmetric.

theorem AddCon.symm E1 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M) {x y : M}, c x y → c y x

Additive congruence relations are symmetric.

theorem Con.trans E1 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M) {x y z : M}, c x y → c y z → c x z

Congruence relations are transitive.

theorem AddCon.trans E1 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M) {x y z : M}, c x y → c y z → c x z

Additive congruence relations are transitive.

theorem Con.mul E1 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M) {w x y z : M}, c w x → c y z → c (w * y) (x * z)

Multiplicative congruence relations preserve multiplication.

theorem AddCon.add E1 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M) {w x y z : M}, c w x → c y z → c (w + y) (x + z)

Additive congruence relations preserve addition.

theorem Con.rel_mk E0 #

∀ {M : Type u_1} [inst : Mul M] {s : Setoid M} {h : ∀ {w x y z : M}, s w x → s y z → s (w * y) (x * z)} {a b : M},
  { toSetoid := s, mul' := h } a b ↔ s a b

theorem AddCon.rel_mk E0 #

∀ {M : Type u_1} [inst : Add M] {s : Setoid M} {h : ∀ {w x y z : M}, s w x → s y z → s (w + y) (x + z)} {a b : M},
  { toSetoid := s, add' := h } a b ↔ s a b

instance Con.instMembershipProd E0 #

{M : Type u_1} → [inst : Mul M] → Membership (M × M) (Con M)

Given a type M with a multiplication, a congruence relation c on M, and elements of M x, y, (x, y) ∈ M × M iff x is related to y by c.

instance AddCon.instMembershipProd E0 #

{M : Type u_1} → [inst : Add M] → Membership (M × M) (AddCon M)

Given a type M with an addition, x, y ∈ M, and an additive congruence relation c on M, (x, y) ∈ M × M iff x is related to y by c.

theorem Con.ext' E1 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, ⇑c = ⇑d → c = d

The map sending a congruence relation to its underlying binary relation is injective.

theorem AddCon.ext' E1 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, ⇑c = ⇑d → c = d

The map sending an additive congruence relation to its underlying binary relation is injective.

theorem Con.ext E1 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, (∀ (x y : M), c x y ↔ d x y) → c = d

Extensionality rule for congruence relations.

theorem AddCon.ext E1 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, (∀ (x y : M), c x y ↔ d x y) → c = d

Extensionality rule for additive congruence relations.

theorem AddCon.ext_iff E0 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, c = d ↔ ∀ (x y : M), c x y ↔ d x y

theorem Con.ext_iff E0 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, c = d ↔ ∀ (x y : M), c x y ↔ d x y

theorem Con.coe_inj E0 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, ⇑c = ⇑d ↔ c = d

Two congruence relations are equal iff their underlying binary relations are equal.

theorem AddCon.coe_inj E0 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, ⇑c = ⇑d ↔ c = d

Two additive congruence relations are equal iff their underlying binary relations are equal.

def Con.Quotient E1 #

{M : Type u_1} → [inst : Mul M] → Con M → Type u_1

Defining the quotient by a congruence relation of a type with a multiplication.

def AddCon.Quotient E1 #

{M : Type u_1} → [inst : Add M] → AddCon M → Type u_1

Defining the quotient by an additive congruence relation of a type with an addition.

def Con.toQuotient E1 #

{M : Type u_1} → [inst : Mul M] → {c : Con M} → M → c.Quotient

The morphism into the quotient by a congruence relation

def AddCon.toQuotient E1 #

{M : Type u_1} → [inst : Add M] → {c : AddCon M} → M → c.Quotient

The morphism into the quotient by an additive congruence relation

instance Con.instCoeTCQuotient E0 #

{M : Type u_1} → [inst : Mul M] → (c : Con M) → CoeTC M c.Quotient

Coercion from a type with a multiplication to its quotient by a congruence relation.

See Note [use has_coe_t].

instance AddCon.instCoeTCQuotient E0 #

{M : Type u_1} → [inst : Add M] → (c : AddCon M) → CoeTC M c.Quotient

Coercion from a type with an addition to its quotient by an additive congruence relation

instance Con.instDecidableEqQuotientOfDecidableCoeForallProp E0 #

{M : Type u_1} → [inst : Mul M] → (c : Con M) → [(a b : M) → Decidable (c a b)] → DecidableEq c.Quotient

The quotient by a decidable congruence relation has decidable equality.

instance AddCon.instDecidableEqQuotientOfDecidableCoeForallProp E0 #

{M : Type u_1} → [inst : Add M] → (c : AddCon M) → [(a b : M) → Decidable (c a b)] → DecidableEq c.Quotient

The quotient by a decidable additive congruence relation has decidable equality.

theorem AddCon.quot_mk_eq_coe E0 #

∀ {M : Type u_4} [inst : Add M] (c : AddCon M) (x : M), Quot.mk (⇑c) x = ↑x

theorem Con.quot_mk_eq_coe E0 #

∀ {M : Type u_4} [inst : Mul M] (c : Con M) (x : M), Quot.mk (⇑c) x = ↑x

def Con.liftOn E1 #

{M : Type u_1} →
  [inst : Mul M] → {β : Sort u_4} → {c : Con M} → c.Quotient → (f : M → β) → (∀ (a b : M), c a b → f a = f b) → β

The function on the quotient by a congruence relation c induced by a function that is constant on c's equivalence classes.

def AddCon.liftOn E1 #

{M : Type u_1} →
  [inst : Add M] → {β : Sort u_4} → {c : AddCon M} → c.Quotient → (f : M → β) → (∀ (a b : M), c a b → f a = f b) → β

The function on the quotient by a congruence relation c induced by a function that is constant on c's equivalence classes.

def Con.liftOn₂ E1 #

{M : Type u_1} →
  [inst : Mul M] →
    {β : Sort u_4} →
      {c : Con M} →
        c.Quotient → c.Quotient → (f : M → M → β) → (∀ (a₁ a₂ b₁ b₂ : M), c a₁ b₁ → c a₂ b₂ → f a₁ a₂ = f b₁ b₂) → β

The binary function on the quotient by a congruence relation c induced by a binary function that is constant on c's equivalence classes.

def AddCon.liftOn₂ E1 #

{M : Type u_1} →
  [inst : Add M] →
    {β : Sort u_4} →
      {c : AddCon M} →
        c.Quotient → c.Quotient → (f : M → M → β) → (∀ (a₁ a₂ b₁ b₂ : M), c a₁ b₁ → c a₂ b₂ → f a₁ a₂ = f b₁ b₂) → β

The binary function on the quotient by a congruence relation c induced by a binary function that is constant on c's equivalence classes.

def Con.hrecOn₂ E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Mul M] →
      [inst_1 : Mul N] →
        {cM : Con M} →
          {cN : Con N} →
            {φ : cM.Quotient → cN.Quotient → Sort u_4} →
              (a : cM.Quotient) →
                (b : cN.Quotient) →
                  (f : (x : M) → (y : N) → φ ↑x ↑y) →
                    (∀ (x : M) (y : N) (x' : M) (y' : N), cM x x' → cN y y' → f x y ≍ f x' y') → φ a b

A version of Quotient.hrecOn₂' for quotients by Con.

def AddCon.hrecOn₂ E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Add M] →
      [inst_1 : Add N] →
        {cM : AddCon M} →
          {cN : AddCon N} →
            {φ : cM.Quotient → cN.Quotient → Sort u_4} →
              (a : cM.Quotient) →
                (b : cN.Quotient) →
                  (f : (x : M) → (y : N) → φ ↑x ↑y) →
                    (∀ (x : M) (y : N) (x' : M) (y' : N), cM x x' → cN y y' → f x y ≍ f x' y') → φ a b

A version of Quotient.hrecOn₂' for quotients by AddCon.

theorem AddCon.hrec_on₂_coe E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] {cM : AddCon M} {cN : AddCon N}
  {φ : cM.Quotient → cN.Quotient → Sort u_4} (a : M) (b : N) (f : (x : M) → (y : N) → φ ↑x ↑y)
  (h : ∀ (x : M) (y : N) (x' : M) (y' : N), cM x x' → cN y y' → f x y ≍ f x' y'), AddCon.hrecOn₂ (↑a) (↑b) f h = f a b

theorem Con.hrec_on₂_coe E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] {cM : Con M} {cN : Con N}
  {φ : cM.Quotient → cN.Quotient → Sort u_4} (a : M) (b : N) (f : (x : M) → (y : N) → φ ↑x ↑y)
  (h : ∀ (x : M) (y : N) (x' : M) (y' : N), cM x x' → cN y y' → f x y ≍ f x' y'), Con.hrecOn₂ (↑a) (↑b) f h = f a b

theorem Con.induction_on E1 #

∀ {M : Type u_1} [inst : Mul M] {c : Con M} {C : c.Quotient → Prop} (q : c.Quotient), (∀ (x : M), C ↑x) → C q

The inductive principle used to prove propositions about the elements of a quotient by a congruence relation.

theorem AddCon.induction_on E1 #

∀ {M : Type u_1} [inst : Add M] {c : AddCon M} {C : c.Quotient → Prop} (q : c.Quotient), (∀ (x : M), C ↑x) → C q

The inductive principle used to prove propositions about the elements of a quotient by an additive congruence relation.

theorem Con.induction_on₂ E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] {c : Con M} {d : Con N}
  {C : c.Quotient → d.Quotient → Prop} (p : c.Quotient) (q : d.Quotient), (∀ (x : M) (y : N), C ↑x ↑y) → C p q

A version of Con.induction_on for predicates which takes two arguments.

theorem AddCon.induction_on₂ E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] {c : AddCon M} {d : AddCon N}
  {C : c.Quotient → d.Quotient → Prop} (p : c.Quotient) (q : d.Quotient), (∀ (x : M) (y : N), C ↑x ↑y) → C p q

A version of AddCon.induction_on for predicates which takes two arguments.

theorem Con.eq E0 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M) {a b : M}, ↑a = ↑b ↔ c a b

Two elements are related by a congruence relation c iff they are represented by the same element of the quotient by c.

theorem AddCon.eq E0 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M) {a b : M}, ↑a = ↑b ↔ c a b

Two elements are related by an additive congruence relation c iff they are represented by the same element of the quotient by c.

instance Con.hasMul E0 #

{M : Type u_1} → [inst : Mul M] → (c : Con M) → Mul c.Quotient

The multiplication induced on the quotient by a congruence relation on a type with a multiplication.

instance AddCon.hasAdd E0 #

{M : Type u_1} → [inst : Add M] → (c : AddCon M) → Add c.Quotient

The addition induced on the quotient by an additive congruence relation on a type with an addition.

theorem Con.coe_mul E0 #

∀ {M : Type u_1} [inst : Mul M] {c : Con M} (x y : M), ↑(x * y) = ↑x * ↑y

The coercion to the quotient of a congruence relation commutes with multiplication (by definition).

theorem AddCon.coe_add E0 #

∀ {M : Type u_1} [inst : Add M] {c : AddCon M} (x y : M), ↑(x + y) = ↑x + ↑y

The coercion to the quotient of an additive congruence relation commutes with addition (by definition).

theorem Con.liftOn_coe E0 #

∀ {M : Type u_1} [inst : Mul M] {β : Sort u_4} (c : Con M) (f : M → β) (h : ∀ (a b : M), c a b → f a = f b) (x : M),
  Con.liftOn (↑x) f h = f x

Definition of the function on the quotient by a congruence relation c induced by a function that is constant on c's equivalence classes.

theorem AddCon.liftOn_coe E0 #

∀ {M : Type u_1} [inst : Add M] {β : Sort u_4} (c : AddCon M) (f : M → β) (h : ∀ (a b : M), c a b → f a = f b) (x : M),
  AddCon.liftOn (↑x) f h = f x

Definition of the function on the quotient by an additive congruence relation c induced by a function that is constant on c's equivalence classes.

instance Con.instLE E0 #

{M : Type u_1} → [inst : Mul M] → LE (Con M)

For congruence relations c, d on a type M with a multiplication, c ≤ d iff ∀ x y ∈ M, x is related to y by d if x is related to y by c.

instance AddCon.instLE E0 #

{M : Type u_1} → [inst : Add M] → LE (AddCon M)

For additive congruence relations c, d on a type M with an addition, c ≤ d iff ∀ x y ∈ M, x is related to y by d if x is related to y by c.

theorem Con.le_def E0 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, c ≤ d ↔ ∀ {x y : M}, c x y → d x y

Definition of ≤ for congruence relations.

theorem AddCon.le_def E0 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, c ≤ d ↔ ∀ {x y : M}, c x y → d x y

Definition of ≤ for additive congruence relations.

instance Con.instInfSet E0 #

{M : Type u_1} → [inst : Mul M] → InfSet (Con M)

The infimum of a set of congruence relations on a given type with a multiplication.

instance AddCon.instInfSet E0 #

{M : Type u_1} → [inst : Add M] → InfSet (AddCon M)

The infimum of a set of additive congruence relations on a given type with an addition.

theorem Con.sInf_toSetoid E1 #

∀ {M : Type u_1} [inst : Mul M] (S : Set (Con M)), (sInf S).toSetoid = sInf (Con.toSetoid '' S)

The infimum of a set of congruence relations is the same as the infimum of the set's image under the map to the underlying equivalence relation.

theorem AddCon.sInf_toSetoid E1 #

∀ {M : Type u_1} [inst : Add M] (S : Set (AddCon M)), (sInf S).toSetoid = sInf (AddCon.toSetoid '' S)

The infimum of a set of additive congruence relations is the same as the infimum of the set's image under the map to the underlying equivalence relation.

theorem Con.coe_sInf E0 #

∀ {M : Type u_1} [inst : Mul M] (S : Set (Con M)), ⇑(sInf S) = sInf (DFunLike.coe '' S)

The infimum of a set of congruence relations is the same as the infimum of the set's image under the map to the underlying binary relation.

theorem AddCon.coe_sInf E0 #

∀ {M : Type u_1} [inst : Add M] (S : Set (AddCon M)), ⇑(sInf S) = sInf (DFunLike.coe '' S)

The infimum of a set of additive congruence relations is the same as the infimum of the set's image under the map to the underlying binary relation.

theorem AddCon.coe_iInf E0 #

∀ {M : Type u_1} [inst : Add M] {ι : Sort u_4} (f : ι → AddCon M), ⇑(iInf f) = ⨅ i, ⇑(f i)

theorem Con.coe_iInf E0 #

∀ {M : Type u_1} [inst : Mul M] {ι : Sort u_4} (f : ι → Con M), ⇑(iInf f) = ⨅ i, ⇑(f i)

instance AddCon.instPartialOrder E0 #

{M : Type u_1} → [inst : Add M] → PartialOrder (AddCon M)

instance Con.instPartialOrder E0 #

{M : Type u_1} → [inst : Mul M] → PartialOrder (Con M)

instance Con.instCompleteLattice E0 #

{M : Type u_1} → [inst : Mul M] → CompleteLattice (Con M)

The complete lattice of congruence relations on a given type with a multiplication.

instance AddCon.instCompleteLattice E0 #

{M : Type u_1} → [inst : Add M] → CompleteLattice (AddCon M)

The complete lattice of additive congruence relations on a given type with an addition.

theorem Con.coe_inf E0 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M}, ⇑(c ⊓ d) = ⇑c ⊓ ⇑d

The infimum of two congruence relations equals the infimum of the underlying binary operations.

theorem AddCon.coe_inf E0 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M}, ⇑(c ⊓ d) = ⇑c ⊓ ⇑d

The infimum of two additive congruence relations equals the infimum of the underlying binary operations.

theorem AddCon.toSetoid_top E0 #

∀ {M : Type u_1} [inst : Add M], ⊤.toSetoid = ⊤

theorem Con.toSetoid_top E0 #

∀ {M : Type u_1} [inst : Mul M], ⊤.toSetoid = ⊤

theorem AddCon.toSetoid_bot E0 #

∀ {M : Type u_1} [inst : Add M], ⊥.toSetoid = ⊥

theorem Con.toSetoid_bot E0 #

∀ {M : Type u_1} [inst : Mul M], ⊥.toSetoid = ⊥

theorem Con.toSetoid_eq_top E0 #

∀ {M : Type u_1} [inst : Mul M] {c : Con M}, c.toSetoid = ⊤ ↔ c = ⊤

theorem AddCon.toSetoid_eq_top E0 #

∀ {M : Type u_1} [inst : Add M] {c : AddCon M}, c.toSetoid = ⊤ ↔ c = ⊤

theorem Con.toSetoid_eq_bot E0 #

∀ {M : Type u_1} [inst : Mul M] {c : Con M}, c.toSetoid = ⊥ ↔ c = ⊥

theorem AddCon.toSetoid_eq_bot E0 #

∀ {M : Type u_1} [inst : Add M] {c : AddCon M}, c.toSetoid = ⊥ ↔ c = ⊥

theorem Con.inf_iff_and E1 #

∀ {M : Type u_1} [inst : Mul M] {c d : Con M} {x y : M}, (c ⊓ d) x y ↔ c x y ∧ d x y

Definition of the infimum of two congruence relations.

theorem AddCon.inf_iff_and E1 #

∀ {M : Type u_1} [inst : Add M] {c d : AddCon M} {x y : M}, (c ⊓ d) x y ↔ c x y ∧ d x y

Definition of the infimum of two additive congruence relations.

theorem AddCon.le_addConGen E1 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop}, r ≤ ⇑(addConGen r)

theorem Con.le_conGen E1 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop}, r ≤ ⇑(conGen r)

theorem Con.conGen_eq E0 #

∀ {M : Type u_1} [inst : Mul M] (r : M → M → Prop), conGen r = sInf {s | ∀ (x y : M), r x y → s x y}

The inductively defined smallest congruence relation containing a binary relation r equals the infimum of the set of congruence relations containing r.

theorem AddCon.addConGen_eq E0 #

∀ {M : Type u_1} [inst : Add M] (r : M → M → Prop), addConGen r = sInf {s | ∀ (x y : M), r x y → s x y}

The inductively defined smallest additive congruence relation containing a binary relation r equals the infimum of the set of additive congruence relations containing r.

theorem Con.conGen_le E1 #

∀ {M : Type u_1} [inst : Mul M] {r : M → M → Prop} {c : Con M}, conGen r ≤ c ↔ r ≤ ⇑c

The smallest congruence relation containing a binary relation r is contained in any congruence relation containing r.

theorem AddCon.addConGen_le E1 #

∀ {M : Type u_1} [inst : Add M] {r : M → M → Prop} {c : AddCon M}, addConGen r ≤ c ↔ r ≤ ⇑c

The smallest additive congruence relation containing a binary relation r is contained in any additive congruence relation containing r.

def Con.gi E1 #

(M : Type u_1) → [inst : Mul M] → GaloisInsertion conGen DFunLike.coe

There is a Galois insertion of congruence relations on a type with a multiplication M into binary relations on M.

def AddCon.gi E1 #

(M : Type u_1) → [inst : Add M] → GaloisInsertion addConGen DFunLike.coe

There is a Galois insertion of additive congruence relations on a type with an addition M into binary relations on M.

theorem AddCon.addConGen_monotone E1 #

∀ {M : Type u_1} [inst : Add M], Monotone addConGen

theorem Con.conGen_monotone E1 #

∀ {M : Type u_1} [inst : Mul M], Monotone conGen

theorem Con.conGen_mono E1 #

∀ {M : Type u_1} [inst : Mul M] {r s : M → M → Prop}, (∀ (x y : M), r x y → s x y) → conGen r ≤ conGen s

Given binary relations r, s with r contained in s, the smallest congruence relation containing s contains the smallest congruence relation containing r.

theorem AddCon.addConGen_mono E1 #

∀ {M : Type u_1} [inst : Add M] {r s : M → M → Prop}, (∀ (x y : M), r x y → s x y) → addConGen r ≤ addConGen s

Given binary relations r, s with r contained in s, the smallest additive congruence relation containing s contains the smallest additive congruence relation containing r.

theorem Con.conGen_of_con E0 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M), conGen ⇑c = c

Congruence relations equal the smallest congruence relation in which they are contained.

theorem AddCon.addConGen_of_addCon E0 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M), addConGen ⇑c = c

Additive congruence relations equal the smallest additive congruence relation in which they are contained.

theorem Con.conGen_idem E1 #

∀ {M : Type u_1} [inst : Mul M] (r : M → M → Prop), conGen ⇑(conGen r) = conGen r

The map sending a binary relation to the smallest congruence relation in which it is contained is idempotent.

theorem AddCon.addConGen_idem E1 #

∀ {M : Type u_1} [inst : Add M] (r : M → M → Prop), addConGen ⇑(addConGen r) = addConGen r

The map sending a binary relation to the smallest additive congruence relation in which it is contained is idempotent.

theorem Con.conGen_sup E1 #

∀ {M : Type u_1} [inst : Mul M] (r s : M → M → Prop), conGen (r ⊔ s) = conGen r ⊔ conGen s

theorem Con.conGen_sSup E1 #

∀ {M : Type u_1} [inst : Mul M] (rs : Set (M → M → Prop)), conGen (sSup rs) = ⨆ r ∈ rs, conGen r

theorem Con.conGen_iSup E1 #

∀ {M : Type u_1} [inst : Mul M] {ι : Sort u_4} (r : ι → M → M → Prop), conGen (iSup r) = ⨆ i, conGen (r i)

theorem Con.sup_def E0 #

∀ {M : Type u_1} [inst : Mul M] (c d : Con M), c ⊔ d = conGen (⇑c ⊔ ⇑d)

The supremum of two congruence relations equals the smallest congruence relation containing the supremum of the underlying binary operations.

theorem AddCon.sup_def E0 #

∀ {M : Type u_1} [inst : Add M] (c d : AddCon M), c ⊔ d = addConGen (⇑c ⊔ ⇑d)

The supremum of two additive congruence relations equals the smallest additive congruence relation containing the supremum of the underlying binary operations.

theorem Con.sup_eq_conGen E1 #

∀ {M : Type u_1} [inst : Mul M] (c d : Con M), c ⊔ d = conGen fun x y ↦ c x y ∨ d x y

The supremum of congruence relations c, d equals the smallest congruence relation containing the binary relation 'x is related to y by c or d'.

theorem AddCon.sup_eq_addConGen E1 #

∀ {M : Type u_1} [inst : Add M] (c d : AddCon M), c ⊔ d = addConGen fun x y ↦ c x y ∨ d x y

The supremum of additive congruence relations c, d equals the smallest additive congruence relation containing the binary relation 'x is related to y by c or d'.

theorem Con.sSup_def E0 #

∀ {M : Type u_1} [inst : Mul M] (S : Set (Con M)), sSup S = conGen (sSup (DFunLike.coe '' S))

The supremum of a set of congruence relations is the same as the smallest congruence relation containing the supremum of the set's image under the map to the underlying binary relation.

theorem AddCon.sSup_def E0 #

∀ {M : Type u_1} [inst : Add M] (S : Set (AddCon M)), sSup S = addConGen (sSup (DFunLike.coe '' S))

The supremum of a set of additive congruence relations is the same as the smallest additive congruence relation containing the supremum of the set's image under the map to the underlying binary relation.

theorem Con.sSup_eq_conGen E1 #

∀ {M : Type u_1} [inst : Mul M] (S : Set (Con M)), sSup S = conGen fun x y ↦ ∃ c ∈ S, c x y

The supremum of a set of congruence relations S equals the smallest congruence relation containing the binary relation 'there exists c ∈ S such that x is related to y by c'.

theorem AddCon.sSup_eq_addConGen E1 #

∀ {M : Type u_1} [inst : Add M] (S : Set (AddCon M)), sSup S = addConGen fun x y ↦ ∃ c ∈ S, c x y

The supremum of a set of additive congruence relations S equals the smallest additive congruence relation containing the binary relation 'there exists c ∈ S such that x is related to y by c'.

def Con.comap E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Mul M] → [inst_1 : Mul N] → (f : M → N) → (∀ (x y : M), f (x * y) = f x * f y) → Con N → Con M

Given types with multiplications M, N and a congruence relation c on N, a multiplication-preserving map f : M → N induces a congruence relation on f's domain defined by 'x ≈ y iff f(x) is related to f(y) by c.'

def AddCon.comap E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Add M] → [inst_1 : Add N] → (f : M → N) → (∀ (x y : M), f (x + y) = f x + f y) → AddCon N → AddCon M

Given types with additions M, N and an additive congruence relation c on N, an addition-preserving map f : M → N induces an additive congruence relation on f's domain defined by 'x ≈ y iff f(x) is related to f(y) by c.'

theorem AddCon.comap_rel E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] {f : M → N} (H : ∀ (x y : M), f (x + y) = f x + f y)
  {c : AddCon N} {x y : M}, (AddCon.comap f H c) x y ↔ c (f x) (f y)

theorem Con.comap_rel E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] {f : M → N} (H : ∀ (x y : M), f (x * y) = f x * f y)
  {c : Con N} {x y : M}, (Con.comap f H c) x y ↔ c (f x) (f y)

theorem AddCon.comap_id E0 #

∀ {M : Type u_1} [inst : Add M] (c : AddCon M), AddCon.comap id ⋯ c = c

theorem Con.comap_id E0 #

∀ {M : Type u_1} [inst : Mul M] (c : Con M), Con.comap id ⋯ c = c

theorem AddCon.comap_comp E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P] (c : AddCon P)
  (g : N → P) (f : M → N) (hg : ∀ (x y : N), g (x + y) = g x + g y) (hf : ∀ (x y : M), f (x + y) = f x + f y),
  AddCon.comap (g ∘ f) ⋯ c = AddCon.comap f hf (AddCon.comap g hg c)

theorem Con.comap_comp E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P] (c : Con P) (g : N → P)
  (f : M → N) (hg : ∀ (x y : N), g (x * y) = g x * g y) (hf : ∀ (x y : M), f (x * y) = f x * f y),
  Con.comap (g ∘ f) ⋯ c = Con.comap f hf (Con.comap g hg c)

theorem Con.le_comap_conGen E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] (r : N → N → Prop) (f : M → N)
  (hf : ∀ (x y : M), f (x * y) = f x * f y), conGen (Function.onFun r f) ≤ Con.comap f hf (conGen r)

theorem AddCon.le_comap_addConGen E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] (r : N → N → Prop) (f : M → N)
  (hf : ∀ (x y : M), f (x + y) = f x + f y), addConGen (Function.onFun r f) ≤ AddCon.comap f hf (addConGen r)

theorem AddCon.comap_injective E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] (f : M → N),
  Function.Surjective f → ∀ (hf' : ∀ (x y : M), f (x + y) = f x + f y), Function.Injective (AddCon.comap f hf')

theorem Con.comap_injective E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] (f : M → N),
  Function.Surjective f → ∀ (hf' : ∀ (x y : M), f (x * y) = f x * f y), Function.Injective (Con.comap f hf')

instance Con.one E0 #

{M : Type u_1} → [inst : Mul M] → [One M] → (c : Con M) → One c.Quotient

instance AddCon.zero E0 #

{M : Type u_1} → [inst : Add M] → [Zero M] → (c : AddCon M) → Zero c.Quotient

theorem Con.coe_one E0 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : One M] {c : Con M}, ↑1 = 1

The 1 of the quotient of a monoid by a congruence relation is the equivalence class of the monoid's 1.

theorem AddCon.coe_zero E0 #

∀ {M : Type u_1} [inst : Add M] [inst_1 : Zero M] {c : AddCon M}, ↑0 = 0

The 0 of the quotient of an AddMonoid by an additive congruence relation is the equivalence class of the AddMonoid's 0.

instance Con.Quotient.inhabited E0 #

{M : Type u_1} → [inst : Mul M] → [One M] → {c : Con M} → Inhabited c.Quotient

There exists an element of the quotient of a monoid by a congruence relation (namely 1).

instance AddCon.Quotient.inhabited E0 #

{M : Type u_1} → [inst : Add M] → [Zero M] → {c : AddCon M} → Inhabited c.Quotient

There exists an element of the quotient of an AddMonoid by a congruence relation (namely 0).

instance Con.mulOneClass E0 #

{M : Type u_1} → [inst : MulOneClass M] → (c : Con M) → MulOneClass c.Quotient

The quotient of a monoid by a congruence relation is a monoid.

instance AddCon.addZeroClass E0 #

{M : Type u_1} → [inst : AddZeroClass M] → (c : AddCon M) → AddZeroClass c.Quotient

The quotient of an AddMonoid by an additive congruence relation is an AddMonoid.

theorem Con.pow E1 #

∀ {M : Type u_4} [inst : Monoid M] (c : Con M) (n : ℕ) {w x : M}, c w x → c (w ^ n) (x ^ n)

Multiplicative congruence relations preserve natural powers.

theorem AddCon.nsmul E1 #

∀ {M : Type u_4} [inst : AddMonoid M] (c : AddCon M) (n : ℕ) {w x : M}, c w x → c (n • w) (n • x)

Additive congruence relations preserve natural scaling.

instance AddCon.instNSMulQuotientNat E0 #

{M : Type u_4} → [inst : AddMonoid M] → (c : AddCon M) → SMul ℕ c.Quotient

instance Con.instPowQuotientNat E0 #

{M : Type u_4} → [inst : Monoid M] → (c : Con M) → Pow c.Quotient ℕ

instance Con.semigroup E0 #

{M : Type u_4} → [inst : Semigroup M] → (c : Con M) → Semigroup c.Quotient

The quotient of a semigroup by a congruence relation is a semigroup.

instance AddCon.addSemigroup E0 #

{M : Type u_4} → [inst : AddSemigroup M] → (c : AddCon M) → AddSemigroup c.Quotient

The quotient of an AddSemigroup by an additive congruence relation is an AddSemigroup.

instance Con.commMagma E0 #

{M : Type u_4} → [inst : CommMagma M] → (c : Con M) → CommMagma c.Quotient

The quotient of a commutative magma by a congruence relation is a commutative magma.

instance AddCon.addCommMagma E0 #

{M : Type u_4} → [inst : AddCommMagma M] → (c : AddCon M) → AddCommMagma c.Quotient

The quotient of an AddCommMagma by an additive congruence relation is an AddCommMagma.

instance Con.commSemigroup E0 #

{M : Type u_4} → [inst : CommSemigroup M] → (c : Con M) → CommSemigroup c.Quotient

The quotient of a commutative semigroup by a congruence relation is a semigroup.

instance AddCon.addCommSemigroup E0 #

{M : Type u_4} → [inst : AddCommSemigroup M] → (c : AddCon M) → AddCommSemigroup c.Quotient

The quotient of an AddCommSemigroup by an additive congruence relation is an AddCommSemigroup.

instance Con.monoid E0 #

{M : Type u_4} → [inst : Monoid M] → (c : Con M) → Monoid c.Quotient

The quotient of a monoid by a congruence relation is a monoid.

instance AddCon.addMonoid E0 #

{M : Type u_4} → [inst : AddMonoid M] → (c : AddCon M) → AddMonoid c.Quotient

The quotient of an AddMonoid by an additive congruence relation is an AddMonoid.

instance Con.commMonoid E0 #

{M : Type u_4} → [inst : CommMonoid M] → (c : Con M) → CommMonoid c.Quotient

The quotient of a CommMonoid by a congruence relation is a CommMonoid.

instance AddCon.addCommMonoid E0 #

{M : Type u_4} → [inst : AddCommMonoid M] → (c : AddCon M) → AddCommMonoid c.Quotient

The quotient of an AddCommMonoid by an additive congruence relation is an AddCommMonoid.

theorem Con.map_of_mul_left_rel_one E0 #

∀ {M : Type u_1} [inst : Monoid M] (c : Con M) (f : M → M),
  (∀ (x : M), c (f x * x) 1) → ∀ {x y : M}, c x y → c (f x) (f y)

Sometimes, a group is defined as a quotient of a monoid by a congruence relation. Usually, the inverse operation is defined as Setoid.map f _ for some f. This lemma allows to avoid code duplication in the definition of the inverse operation: instead of proving both ∀ x y, c x y → c (f x) (f y) (to define the operation) and ∀ x, c (f x * x) 1 (to prove the group laws), one can only prove the latter.

theorem AddCon.map_of_add_left_rel_zero E0 #

∀ {M : Type u_1} [inst : AddMonoid M] (c : AddCon M) (f : M → M),
  (∀ (x : M), c (f x + x) 0) → ∀ {x y : M}, c x y → c (f x) (f y)

Sometimes, an additive group is defined as a quotient of a monoid by an additive congruence relation. Usually, the inverse operation is defined as Setoid.map f _ for some f. This lemma allows to avoid code duplication in the definition of the inverse operation: instead of proving both ∀ x y, c x y → c (f x) (f y) (to define the operation) and ∀ x, c (f x + x) 0 (to prove the group laws), one can only prove the latter.

theorem Con.inv E1 #

∀ {M : Type u_1} [inst : Group M] (c : Con M) {x y : M}, c x y → c x⁻¹ y⁻¹

Multiplicative congruence relations preserve inversion.

theorem AddCon.neg E1 #

∀ {M : Type u_1} [inst : AddGroup M] (c : AddCon M) {x y : M}, c x y → c (-x) (-y)

Additive congruence relations preserve negation.

theorem Con.div E1 #

∀ {M : Type u_1} [inst : Group M] (c : Con M) {w x y z : M}, c w x → c y z → c (w / y) (x / z)

Multiplicative congruence relations preserve division.

theorem AddCon.sub E1 #

∀ {M : Type u_1} [inst : AddGroup M] (c : AddCon M) {w x y z : M}, c w x → c y z → c (w - y) (x - z)

Additive congruence relations preserve subtraction.

theorem Con.zpow E1 #

∀ {M : Type u_1} [inst : Group M] (c : Con M) (n : ℤ) {w x : M}, c w x → c (w ^ n) (x ^ n)

Multiplicative congruence relations preserve integer powers.

theorem AddCon.zsmul E1 #

∀ {M : Type u_1} [inst : AddGroup M] (c : AddCon M) (n : ℤ) {w x : M}, c w x → c (n • w) (n • x)

Additive congruence relations preserve integer scaling.

instance Con.hasInv E0 #

{M : Type u_1} → [inst : Group M] → (c : Con M) → Inv c.Quotient

The inversion induced on the quotient by a congruence relation on a type with an inversion.

instance AddCon.hasNeg E0 #

{M : Type u_1} → [inst : AddGroup M] → (c : AddCon M) → Neg c.Quotient

The negation induced on the quotient by an additive congruence relation on a type with a negation.

instance Con.hasDiv E0 #

{M : Type u_1} → [inst : Group M] → (c : Con M) → Div c.Quotient

The division induced on the quotient by a congruence relation on a type with a division.

instance AddCon.hasSub E0 #

{M : Type u_1} → [inst : AddGroup M] → (c : AddCon M) → Sub c.Quotient

The subtraction induced on the quotient by an additive congruence relation on a type with a subtraction.

instance Con.instZPow E0 #

{M : Type u_1} → [inst : Group M] → (c : Con M) → Pow c.Quotient ℤ

The integer power induced on the quotient by a congruence relation on a type with a division.

instance AddCon.instZSMul E0 #

{M : Type u_1} → [inst : AddGroup M] → (c : AddCon M) → SMul ℤ c.Quotient

The integer scaling induced on the quotient by a congruence relation on a type with a subtraction.

instance Con.group E0 #

{M : Type u_1} → [inst : Group M] → (c : Con M) → Group c.Quotient

The quotient of a group by a congruence relation is a group.

instance AddCon.addGroup E0 #

{M : Type u_1} → [inst : AddGroup M] → (c : AddCon M) → AddGroup c.Quotient

The quotient of an AddGroup by an additive congruence relation is an AddGroup.

instance Con.commGroup E0 #

{M : Type u_4} → [inst : CommGroup M] → (c : Con M) → CommGroup c.Quotient

The quotient of a CommGroup by a congruence relation is a CommGroup.

instance AddCon.addCommGroup E0 #

{M : Type u_4} → [inst : AddCommGroup M] → (c : AddCon M) → AddCommGroup c.Quotient

The quotient of an AddCommGroup by an additive congruence relation is an AddCommGroup.

def Con.liftOnUnits E1 #

{M : Type u_1} →
  {α : Type u_4} →
    [inst : Monoid M] →
      {c : Con M} →
        c.Quotientˣ →
          (f : (x y : M) → c (x * y) 1 → c (y * x) 1 → α) →
            (∀ (x y : M) (hxy : c (x * y) 1) (hyx : c (y * x) 1) (x' y' : M) (hxy' : c (x' * y') 1)
                (hyx' : c (y' * x') 1), c x x' → c y y' → f x y hxy hyx = f x' y' hxy' hyx') →
              α

In order to define a function (Con.Quotient c)ˣ → α on the units of Con.Quotient c, where c : Con M is a multiplicative congruence on a monoid, it suffices to define a function f that takes elements x y : M with proofs of c (x * y) 1 and c (y * x) 1, and returns an element of α provided that f x y _ _ = f x' y' _ _ whenever c x x' and c y y'.

def AddCon.liftOnAddUnits E1 #

{M : Type u_1} →
  {α : Type u_4} →
    [inst : AddMonoid M] →
      {c : AddCon M} →
        AddUnits c.Quotient →
          (f : (x y : M) → c (x + y) 0 → c (y + x) 0 → α) →
            (∀ (x y : M) (hxy : c (x + y) 0) (hyx : c (y + x) 0) (x' y' : M) (hxy' : c (x' + y') 0)
                (hyx' : c (y' + x') 0), c x x' → c y y' → f x y hxy hyx = f x' y' hxy' hyx') →
              α

In order to define a function (Con.Quotient c)ˣ → α on the units of Con.Quotient c, where c : Con M is a multiplicative congruence on a monoid, it suffices to define a function f that takes elements x y : M with proofs of c (x * y) 1 and c (y * x) 1, and returns an element of α provided that f x y _ _ = f x' y' _ _ whenever c x x' and c y y'.

theorem Con.liftOnUnits_mk E0 #

∀ {M : Type u_1} {α : Type u_4} [inst : Monoid M] {c : Con M} (f : (x y : M) → c (x * y) 1 → c (y * x) 1 → α)
  (Hf :
    ∀ (x y : M) (hxy : c (x * y) 1) (hyx : c (y * x) 1) (x' y' : M) (hxy' : c (x' * y') 1) (hyx' : c (y' * x') 1),
      c x x' → c y y' → f x y hxy hyx = f x' y' hxy' hyx')
  (x y : M) (hxy : ↑x * ↑y = 1) (hyx : ↑y * ↑x = 1),
  Con.liftOnUnits { val := ↑x, inv := ↑y, val_inv := hxy, inv_val := hyx } f Hf = f x y ⋯ ⋯

theorem AddCon.liftOnAddUnits_mk E0 #

∀ {M : Type u_1} {α : Type u_4} [inst : AddMonoid M] {c : AddCon M} (f : (x y : M) → c (x + y) 0 → c (y + x) 0 → α)
  (Hf :
    ∀ (x y : M) (hxy : c (x + y) 0) (hyx : c (y + x) 0) (x' y' : M) (hxy' : c (x' + y') 0) (hyx' : c (y' + x') 0),
      c x x' → c y y' → f x y hxy hyx = f x' y' hxy' hyx')
  (x y : M) (hxy : ↑x + ↑y = 0) (hyx : ↑y + ↑x = 0),
  AddCon.liftOnAddUnits { val := ↑x, neg := ↑y, val_neg := hxy, neg_val := hyx } f Hf = f x y ⋯ ⋯

theorem AddCon.induction_on_addUnits E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {c : AddCon M} {p : AddUnits c.Quotient → Prop} (u : AddUnits c.Quotient),
  (∀ (x y : M) (hxy : c (x + y) 0) (hyx : c (y + x) 0), p { val := ↑x, neg := ↑y, val_neg := ⋯, neg_val := ⋯ }) → p u

theorem Con.induction_on_units E1 #

∀ {M : Type u_1} [inst : Monoid M] {c : Con M} {p : c.Quotientˣ → Prop} (u : c.Quotientˣ),
  (∀ (x y : M) (hxy : c (x * y) 1) (hyx : c (y * x) 1), p { val := ↑x, inv := ↑y, val_inv := ⋯, inv_val := ⋯ }) → p u