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.Algebra.Group.Submonoid.Basic

81 declarations. Mathlib docs · Source

instance Submonoid.instInfSet E0 #

{M : Type u_1} → [inst : MulOneClass M] → InfSet (Submonoid M)

instance AddSubmonoid.instInfSet E0 #

{M : Type u_1} → [inst : AddZeroClass M] → InfSet (AddSubmonoid M)

theorem AddSubmonoid.coe_sInf E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] (S : Set (AddSubmonoid M)), ↑(sInf S) = ⋂ s ∈ S, ↑s

theorem Submonoid.coe_sInf E0 #

∀ {M : Type u_1} [inst : MulOneClass M] (S : Set (Submonoid M)), ↑(sInf S) = ⋂ s ∈ S, ↑s

theorem Submonoid.mem_sInf E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {S : Set (Submonoid M)} {x : M}, x ∈ sInf S ↔ ∀ p ∈ S, x ∈ p

theorem AddSubmonoid.mem_sInf E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {S : Set (AddSubmonoid M)} {x : M}, x ∈ sInf S ↔ ∀ p ∈ S, x ∈ p

theorem AddSubmonoid.mem_iInf E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {ι : Sort u_4} {S : ι → AddSubmonoid M} {x : M},
  x ∈ ⨅ i, S i ↔ ∀ (i : ι), x ∈ S i

theorem Submonoid.mem_iInf E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {ι : Sort u_4} {S : ι → Submonoid M} {x : M}, x ∈ ⨅ i, S i ↔ ∀ (i : ι), x ∈ S i

theorem AddSubmonoid.coe_iInf E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {ι : Sort u_4} {S : ι → AddSubmonoid M}, ↑(⨅ i, S i) = ⋂ i, ↑(S i)

theorem Submonoid.coe_iInf E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {ι : Sort u_4} {S : ι → Submonoid M}, ↑(⨅ i, S i) = ⋂ i, ↑(S i)

instance Submonoid.instCompleteLattice E0 #

{M : Type u_1} → [inst : MulOneClass M] → CompleteLattice (Submonoid M)

Submonoids of a monoid form a complete lattice.

instance AddSubmonoid.instCompleteLattice E0 #

{M : Type u_1} → [inst : AddZeroClass M] → CompleteLattice (AddSubmonoid M)

The AddSubmonoids of an AddMonoid form a complete lattice.

def Submonoid.closure E1 #

{M : Type u_1} → [inst : MulOneClass M] → Set M → Submonoid M

The Submonoid generated by a set.

def AddSubmonoid.closure E1 #

{M : Type u_1} → [inst : AddZeroClass M] → Set M → AddSubmonoid M

The AddSubmonoid generated by a set

theorem Submonoid.mem_closure E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {x : M},
  x ∈ Submonoid.closure s ↔ ∀ (S : Submonoid M), s ⊆ ↑S → x ∈ S

theorem AddSubmonoid.mem_closure E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {x : M},
  x ∈ AddSubmonoid.closure s ↔ ∀ (S : AddSubmonoid M), s ⊆ ↑S → x ∈ S

theorem Submonoid.subset_closure E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M}, s ⊆ ↑(Submonoid.closure s)

The submonoid generated by a set includes the set.

theorem AddSubmonoid.subset_closure E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M}, s ⊆ ↑(AddSubmonoid.closure s)

The AddSubmonoid generated by a set includes the set.

theorem AddSubmonoid.mem_closure_of_mem E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {x : M}, x ∈ s → x ∈ AddSubmonoid.closure s

theorem Submonoid.mem_closure_of_mem E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {x : M}, x ∈ s → x ∈ Submonoid.closure s

theorem Submonoid.notMem_of_notMem_closure E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {P : M}, P ∉ Submonoid.closure s → P ∉ s

theorem AddSubmonoid.notMem_of_notMem_closure E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {P : M}, P ∉ AddSubmonoid.closure s → P ∉ s

theorem Submonoid.closure_le E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {S : Submonoid M}, Submonoid.closure s ≤ S ↔ s ⊆ ↑S

A submonoid S includes closure s if and only if it includes s.

theorem AddSubmonoid.closure_le E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {S : AddSubmonoid M}, AddSubmonoid.closure s ≤ S ↔ s ⊆ ↑S

An additive submonoid S includes closure s if and only if it includes s.

theorem Submonoid.closure_mono E1 #

∀ {M : Type u_1} [inst : MulOneClass M] ⦃s t : Set M⦄, s ⊆ t → Submonoid.closure s ≤ Submonoid.closure t

Submonoid closure of a set is monotone in its argument: if s ⊆ t, then closure s ≤ closure t.

theorem AddSubmonoid.closure_mono E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] ⦃s t : Set M⦄, s ⊆ t → AddSubmonoid.closure s ≤ AddSubmonoid.closure t

Additive submonoid closure of a set is monotone in its argument: if s ⊆ t, then closure s ≤ closure t.

theorem Submonoid.closure_eq_of_le E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {S : Submonoid M},
  s ⊆ ↑S → S ≤ Submonoid.closure s → Submonoid.closure s = S

theorem AddSubmonoid.closure_eq_of_le E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {S : AddSubmonoid M},
  s ⊆ ↑S → S ≤ AddSubmonoid.closure s → AddSubmonoid.closure s = S

theorem Submonoid.closure_induction E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M} {motive : (x : M) → x ∈ Submonoid.closure s → Prop},
  (∀ (x : M) (h : x ∈ s), motive x ⋯) →
    motive 1 ⋯ →
      (∀ (x y : M) (hx : x ∈ Submonoid.closure s) (hy : y ∈ Submonoid.closure s),
          motive x hx → motive y hy → motive (x * y) ⋯) →
        ∀ {x : M} (hx : x ∈ Submonoid.closure s), motive x hx

An induction principle for closure membership. If p holds for 1 and all elements of s, and is preserved under multiplication, then p holds for all elements of the closure of s.

theorem AddSubmonoid.closure_induction E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M} {motive : (x : M) → x ∈ AddSubmonoid.closure s → Prop},
  (∀ (x : M) (h : x ∈ s), motive x ⋯) →
    motive 0 ⋯ →
      (∀ (x y : M) (hx : x ∈ AddSubmonoid.closure s) (hy : y ∈ AddSubmonoid.closure s),
          motive x hx → motive y hy → motive (x + y) ⋯) →
        ∀ {x : M} (hx : x ∈ AddSubmonoid.closure s), motive x hx

An induction principle for additive closure membership. If p holds for 0 and all elements of s, and is preserved under addition, then p holds for all elements of the additive closure of s.

theorem Submonoid.closure_induction₂ E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {s : Set M}
  {motive : (x y : M) → x ∈ Submonoid.closure s → y ∈ Submonoid.closure s → Prop},
  (∀ (x y : M) (hx : x ∈ s) (hy : y ∈ s), motive x y ⋯ ⋯) →
    (∀ (x : M) (hx : x ∈ Submonoid.closure s), motive 1 x ⋯ hx) →
      (∀ (x : M) (hx : x ∈ Submonoid.closure s), motive x 1 hx ⋯) →
        (∀ (x y z : M) (hx : x ∈ Submonoid.closure s) (hy : y ∈ Submonoid.closure s) (hz : z ∈ Submonoid.closure s),
            motive x z hx hz → motive y z hy hz → motive (x * y) z ⋯ hz) →
          (∀ (x y z : M) (hx : x ∈ Submonoid.closure s) (hy : y ∈ Submonoid.closure s) (hz : z ∈ Submonoid.closure s),
              motive z x hz hx → motive z y hz hy → motive z (x * y) hz ⋯) →
            ∀ {x y : M} (hx : x ∈ Submonoid.closure s) (hy : y ∈ Submonoid.closure s), motive x y hx hy

An induction principle for closure membership for predicates with two arguments.

theorem AddSubmonoid.closure_induction₂ E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s : Set M}
  {motive : (x y : M) → x ∈ AddSubmonoid.closure s → y ∈ AddSubmonoid.closure s → Prop},
  (∀ (x y : M) (hx : x ∈ s) (hy : y ∈ s), motive x y ⋯ ⋯) →
    (∀ (x : M) (hx : x ∈ AddSubmonoid.closure s), motive 0 x ⋯ hx) →
      (∀ (x : M) (hx : x ∈ AddSubmonoid.closure s), motive x 0 hx ⋯) →
        (∀ (x y z : M) (hx : x ∈ AddSubmonoid.closure s) (hy : y ∈ AddSubmonoid.closure s)
            (hz : z ∈ AddSubmonoid.closure s), motive x z hx hz → motive y z hy hz → motive (x + y) z ⋯ hz) →
          (∀ (x y z : M) (hx : x ∈ AddSubmonoid.closure s) (hy : y ∈ AddSubmonoid.closure s)
              (hz : z ∈ AddSubmonoid.closure s), motive z x hz hx → motive z y hz hy → motive z (x + y) hz ⋯) →
            ∀ {x y : M} (hx : x ∈ AddSubmonoid.closure s) (hy : y ∈ AddSubmonoid.closure s), motive x y hx hy

An induction principle for additive closure membership for predicates with two arguments.

theorem Submonoid.dense_induction E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {motive : M → Prop} (s : Set M),
  Submonoid.closure s = ⊤ →
    (∀ x ∈ s, motive x) → motive 1 → (∀ (x y : M), motive x → motive y → motive (x * y)) → ∀ (x : M), motive x

If s is a dense set in a monoid M, Submonoid.closure s = ⊤, then in order to prove that some predicate p holds for all x : M it suffices to verify p x for x ∈ s, verify p 1, and verify that p x and p y imply p (x * y).

theorem AddSubmonoid.dense_induction E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {motive : M → Prop} (s : Set M),
  AddSubmonoid.closure s = ⊤ →
    (∀ x ∈ s, motive x) → motive 0 → (∀ (x y : M), motive x → motive y → motive (x + y)) → ∀ (x : M), motive x

If s is a dense set in an additive monoid M, AddSubmonoid.closure s = ⊤, then in order to prove that some predicate p holds for all x : M it suffices to verify p x for x ∈ s, verify p 0, and verify that p x and p y imply p (x + y).

theorem Submonoid.closure_eq_one_union E1 #

∀ {M : Type u_1} [inst : MulOneClass M] (s : Set M), ↑(Submonoid.closure s) = {1} ∪ ↑(Subsemigroup.closure s)

The Submonoid.closure of a set is the union of {1} and its Subsemigroup.closure.

theorem AddSubmonoid.closure_eq_zero_union E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] (s : Set M), ↑(AddSubmonoid.closure s) = {0} ∪ ↑(AddSubsemigroup.closure s)

The AddSubmonoid.closure of a set is the union of {0} and its AddSubsemigroup.closure.

def Submonoid.gi E1 #

(M : Type u_1) → [inst : MulOneClass M] → GaloisInsertion Submonoid.closure SetLike.coe

closure forms a Galois insertion with the coercion to set.

def AddSubmonoid.gi E1 #

(M : Type u_1) → [inst : AddZeroClass M] → GaloisInsertion AddSubmonoid.closure SetLike.coe

closure forms a Galois insertion with the coercion to set.

theorem Submonoid.closure_eq E0 #

∀ {M : Type u_1} [inst : MulOneClass M] (S : Submonoid M), Submonoid.closure ↑S = S

Closure of a submonoid S equals S.

theorem AddSubmonoid.closure_eq E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] (S : AddSubmonoid M), AddSubmonoid.closure ↑S = S

Additive closure of an additive submonoid S equals S

theorem Submonoid.closure_empty E0 #

∀ {M : Type u_1} [inst : MulOneClass M], Submonoid.closure ∅ = ⊥

theorem AddSubmonoid.closure_empty E0 #

∀ {M : Type u_1} [inst : AddZeroClass M], AddSubmonoid.closure ∅ = ⊥

theorem AddSubmonoid.closure_univ E0 #

∀ {M : Type u_1} [inst : AddZeroClass M], AddSubmonoid.closure Set.univ = ⊤

theorem Submonoid.closure_univ E0 #

∀ {M : Type u_1} [inst : MulOneClass M], Submonoid.closure Set.univ = ⊤

theorem AddSubmonoid.closure_union E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] (s t : Set M),
  AddSubmonoid.closure (s ∪ t) = AddSubmonoid.closure s ⊔ AddSubmonoid.closure t

theorem Submonoid.closure_union E1 #

∀ {M : Type u_1} [inst : MulOneClass M] (s t : Set M),
  Submonoid.closure (s ∪ t) = Submonoid.closure s ⊔ Submonoid.closure t

theorem AddSubmonoid.sup_eq_closure E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] (N N' : AddSubmonoid M), N ⊔ N' = AddSubmonoid.closure (↑N ∪ ↑N')

theorem Submonoid.sup_eq_closure E1 #

∀ {M : Type u_1} [inst : MulOneClass M] (N N' : Submonoid M), N ⊔ N' = Submonoid.closure (↑N ∪ ↑N')

theorem AddSubmonoid.closure_iUnion E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {ι : Sort u_4} (s : ι → Set M),
  AddSubmonoid.closure (⋃ i, s i) = ⨆ i, AddSubmonoid.closure (s i)

theorem Submonoid.closure_iUnion E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {ι : Sort u_4} (s : ι → Set M),
  Submonoid.closure (⋃ i, s i) = ⨆ i, Submonoid.closure (s i)

theorem Submonoid.closure_singleton_le_iff_mem E1 #

∀ {M : Type u_1} [inst : MulOneClass M] (m : M) (p : Submonoid M), Submonoid.closure {m} ≤ p ↔ m ∈ p

theorem AddSubmonoid.closure_singleton_le_iff_mem E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] (m : M) (p : AddSubmonoid M), AddSubmonoid.closure {m} ≤ p ↔ m ∈ p

theorem AddSubmonoid.closure_insert_zero E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] (s : Set M), AddSubmonoid.closure (insert 0 s) = AddSubmonoid.closure s

theorem Submonoid.closure_insert_one E0 #

∀ {M : Type u_1} [inst : MulOneClass M] (s : Set M), Submonoid.closure (insert 1 s) = Submonoid.closure s

theorem Submonoid.mem_iSup E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {ι : Sort u_4} (p : ι → Submonoid M) {m : M},
  m ∈ ⨆ i, p i ↔ ∀ (N : Submonoid M), (∀ (i : ι), p i ≤ N) → m ∈ N

theorem AddSubmonoid.mem_iSup E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {ι : Sort u_4} (p : ι → AddSubmonoid M) {m : M},
  m ∈ ⨆ i, p i ↔ ∀ (N : AddSubmonoid M), (∀ (i : ι), p i ≤ N) → m ∈ N

theorem Submonoid.iSup_eq_closure E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {ι : Sort u_4} (p : ι → Submonoid M), ⨆ i, p i = Submonoid.closure (⋃ i, ↑(p i))

theorem AddSubmonoid.iSup_eq_closure E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {ι : Sort u_4} (p : ι → AddSubmonoid M),
  ⨆ i, p i = AddSubmonoid.closure (⋃ i, ↑(p i))

theorem AddSubmonoid.disjoint_def E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {p₁ p₂ : AddSubmonoid M}, Disjoint p₁ p₂ ↔ ∀ {x : M}, x ∈ p₁ → x ∈ p₂ → x = 0

theorem Submonoid.disjoint_def E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {p₁ p₂ : Submonoid M}, Disjoint p₁ p₂ ↔ ∀ {x : M}, x ∈ p₁ → x ∈ p₂ → x = 1

theorem AddSubmonoid.disjoint_def' E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {p₁ p₂ : AddSubmonoid M},
  Disjoint p₁ p₂ ↔ ∀ {x y : M}, x ∈ p₁ → y ∈ p₂ → x = y → x = 0

theorem Submonoid.disjoint_def' E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {p₁ p₂ : Submonoid M},
  Disjoint p₁ p₂ ↔ ∀ {x y : M}, x ∈ p₁ → y ∈ p₂ → x = y → x = 1

theorem AddSubmonoid.closure_sdiff_eq_closure E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] {s t : Set M},
  t ⊆ ↑(AddSubmonoid.closure (s \ t)) → AddSubmonoid.closure (s \ t) = AddSubmonoid.closure s

theorem Submonoid.closure_sdiff_eq_closure E1 #

∀ {M : Type u_1} [inst : MulOneClass M] {s t : Set M},
  t ⊆ ↑(Submonoid.closure (s \ t)) → Submonoid.closure (s \ t) = Submonoid.closure s

theorem AddSubmonoid.closure_sdiff_singleton_zero E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] (s : Set M), AddSubmonoid.closure (s \ {0}) = AddSubmonoid.closure s

theorem Submonoid.closure_sdiff_singleton_one E0 #

∀ {M : Type u_1} [inst : MulOneClass M] (s : Set M), Submonoid.closure (s \ {1}) = Submonoid.closure s

theorem MonoidHom.eqOn_closureM E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : MulOneClass M] [inst_1 : MulOneClass N] {f g : M →* N} {s : Set M},
  Set.EqOn (⇑f) (⇑g) s → Set.EqOn ⇑f ⇑g ↑(Submonoid.closure s)

If two monoid homomorphisms are equal on a set, then they are equal on its submonoid closure.

theorem AddMonoidHom.eqOn_closureM E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddZeroClass M] [inst_1 : AddZeroClass N] {f g : M →+ N} {s : Set M},
  Set.EqOn (⇑f) (⇑g) s → Set.EqOn ⇑f ⇑g ↑(AddSubmonoid.closure s)

If two monoid homomorphisms are equal on a set, then they are equal on its submonoid closure.

def IsUnit.submonoid E1 #

(M : Type u_4) → [inst : Monoid M] → Submonoid M

The submonoid consisting of the units of a monoid

def IsAddUnit.addSubmonoid E1 #

(M : Type u_4) → [inst : AddMonoid M] → AddSubmonoid M

The additive submonoid consisting of the additive units of an additive monoid

theorem IsUnit.mem_submonoid_iff E0 #

∀ {M : Type u_4} [inst : Monoid M] (a : M), a ∈ IsUnit.submonoid M ↔ IsUnit a

theorem IsAddUnit.mem_addSubmonoid_iff E0 #

∀ {M : Type u_4} [inst : AddMonoid M] (a : M), a ∈ IsAddUnit.addSubmonoid M ↔ IsAddUnit a

theorem Submonoid.commute_coe_coe E0 #

∀ {S : Type u_4} {M : Type u_5} [inst : Mul M] [inst_1 : SetLike S M] [inst_2 : MulMemClass S M] {s : S} {x y : ↥s},
  Commute ↑x ↑y ↔ Commute x y

def MonoidHom.ofClosureMEqTopLeft E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : Monoid M] →
      [inst_1 : Monoid N] →
        {s : Set M} →
          (f : M → N) → Submonoid.closure s = ⊤ → f 1 = 1 → (∀ x ∈ s, ∀ (y : M), f (x * y) = f x * f y) → M →* N

Let s be a subset of a monoid M such that the closure of s is the whole monoid. Then MonoidHom.ofClosureEqTopLeft defines a monoid homomorphism from M asking for a proof of f (x * y) = f x * f y only for x ∈ s.

def AddMonoidHom.ofClosureMEqTopLeft E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : AddMonoid M] →
      [inst_1 : AddMonoid N] →
        {s : Set M} →
          (f : M → N) → AddSubmonoid.closure s = ⊤ → f 0 = 0 → (∀ x ∈ s, ∀ (y : M), f (x + y) = f x + f y) → M →+ N

Let s be a subset of an additive monoid M such that the closure of s is the whole monoid. Then AddMonoidHom.ofClosureEqTopLeft defines an additive monoid homomorphism from M asking for a proof of f (x + y) = f x + f y only for x ∈ s.

theorem MonoidHom.coe_ofClosureMEqTopLeft E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Monoid M] [inst_1 : Monoid N] {s : Set M} (f : M → N)
  (hs : Submonoid.closure s = ⊤) (h1 : f 1 = 1) (hmul : ∀ x ∈ s, ∀ (y : M), f (x * y) = f x * f y),
  ⇑(MonoidHom.ofClosureMEqTopLeft f hs h1 hmul) = f

theorem AddMonoidHom.coe_ofClosureMEqTopLeft E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddMonoid M] [inst_1 : AddMonoid N] {s : Set M} (f : M → N)
  (hs : AddSubmonoid.closure s = ⊤) (h1 : f 0 = 0) (hadd : ∀ x ∈ s, ∀ (y : M), f (x + y) = f x + f y),
  ⇑(AddMonoidHom.ofClosureMEqTopLeft f hs h1 hadd) = f

def MonoidHom.ofClosureMEqTopRight E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : Monoid M] →
      [inst_1 : Monoid N] →
        {s : Set M} →
          (f : M → N) → Submonoid.closure s = ⊤ → f 1 = 1 → (∀ (x y : M), y ∈ s → f (x * y) = f x * f y) → M →* N

Let s be a subset of a monoid M such that the closure of s is the whole monoid. Then MonoidHom.ofClosureEqTopRight defines a monoid homomorphism from M asking for a proof of f (x * y) = f x * f y only for y ∈ s.

def AddMonoidHom.ofClosureMEqTopRight E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : AddMonoid M] →
      [inst_1 : AddMonoid N] →
        {s : Set M} →
          (f : M → N) → AddSubmonoid.closure s = ⊤ → f 0 = 0 → (∀ (x y : M), y ∈ s → f (x + y) = f x + f y) → M →+ N

Let s be a subset of an additive monoid M such that the closure of s is the whole monoid. Then AddMonoidHom.ofClosureEqTopRight defines an additive monoid homomorphism from M asking for a proof of f (x + y) = f x + f y only for y ∈ s.

theorem MonoidHom.coe_ofClosureMEqTopRight E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Monoid M] [inst_1 : Monoid N] {s : Set M} (f : M → N)
  (hs : Submonoid.closure s = ⊤) (h1 : f 1 = 1) (hmul : ∀ (x y : M), y ∈ s → f (x * y) = f x * f y),
  ⇑(MonoidHom.ofClosureMEqTopRight f hs h1 hmul) = f

theorem AddMonoidHom.coe_ofClosureMEqTopRight E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddMonoid M] [inst_1 : AddMonoid N] {s : Set M} (f : M → N)
  (hs : AddSubmonoid.closure s = ⊤) (h1 : f 0 = 0) (hadd : ∀ (x y : M), y ∈ s → f (x + y) = f x + f y),
  ⇑(AddMonoidHom.ofClosureMEqTopRight f hs h1 hadd) = f