Documentation

Mathlib.Algebra.GroupWithZero.Range

The range of a MonoidWithZeroHom #

Given a MonoidWithZeroHom f : A → B whose codomain B is a MonoidWithZero, we define the type MonoidWithZeroHom.valueMonoid as the submonoid of generated by the invertible elements in the range of f. For example, if A = ℕ, f is the natural cast to B where B is

MonoidWithZeroHom.ValueMonoid₀ is the MonoidWithZero obtained by adjoining 0 to the previous type.

Likewise, MonoidWithZeroHom.valueGroup is the subgroup of generated by the invertible elements in range f and MonoidWithZeroHom.ValueGroup₀ adds a 0 to the previous group.

When B is commutative, then both MonoidWithZeroHom.valueGroup f and MonoidWithZeroHom.ValueGroup₀ f are also commutative and the former can be described more explicitly (see MonoidWithZeroHom.mem_valueGroup_iff_of_comm).

Main declarations #

Implementation details #

MonoidWithZeroHom.valueMonoid is defined explicitly in terms of its carrier, by proving the required properties; that it coincides with the submonoid generated by the closure is proven in MonoidWithZeroHom.valueMonoid_eq_closure, but using the latter as definition yields to unwanted unfolding.

def MonoidWithZeroHom.valueMonoid {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :

For a morphism of monoids with zero f, this is a smallest submonoid of the invertible elements in the codomain containing the range of f.

Equations
Instances For
    theorem MonoidWithZeroHom.one_mem_valueMonoid {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
    theorem MonoidWithZeroHom.coe_one {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
    1, = 1
    def MonoidWithZeroHom.valueGroup {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :

    For a morphism of monoids with zero f, this is the smallest subgroup of the invertible elements in the codomain containing the range of f.

    Equations
    Instances For
      @[reducible, inline]
      abbrev MonoidWithZeroHom.ValueMonoid₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
      Type u_2

      For a morphism of monoids with zero f, this is the smallest submonoid with zero of the codomain containing the range of f.

      Equations
      Instances For
        @[deprecated MonoidWithZeroHom.ValueMonoid₀ (since := "2025-09-03")]
        def MonoidWithZeroHom.valueMonoid₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
        Type u_2

        Alias of MonoidWithZeroHom.ValueMonoid₀.


        For a morphism of monoids with zero f, this is the smallest submonoid with zero of the codomain containing the range of f.

        Equations
        Instances For
          @[reducible, inline]
          abbrev MonoidWithZeroHom.ValueGroup₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
          Type u_2

          For a morphism of monoids with zero f, this is a smallest subgroup with zero of the codomain containing the range of f.

          Equations
          Instances For
            @[deprecated MonoidWithZeroHom.ValueGroup₀ (since := "2025-09-03")]
            def MonoidWithZeroHom.valueGroup₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] :
            Type u_2

            Alias of MonoidWithZeroHom.ValueGroup₀.


            For a morphism of monoids with zero f, this is a smallest subgroup with zero of the codomain containing the range of f.

            Equations
            Instances For
              theorem MonoidWithZeroHom.mem_valueMonoid {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] {b : Bˣ} (hb : b Set.range f) :
              theorem MonoidWithZeroHom.mem_valueGroup {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] {b : Bˣ} (hb : b Set.range f) :
              theorem MonoidWithZeroHom.inv_mem_valueGroup {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [MonoidWithZero B] [MonoidWithZeroHomClass F A B] {b : Bˣ} (hb : b Set.range f) :
              noncomputable def MonoidWithZeroHom.ValueGroup₀.embedding {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] {f : F} [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] :

              The inclusion of the subgroup with zero generated by the range of a monoid with zero hom f : A \to B into the codomain B.

              Equations
              Instances For
                noncomputable def MonoidWithZeroHom.ValueGroup₀.restrict₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] :

                This is the restriction of f as a function taking values in valueGroup₀ f.

                Equations
                Instances For
                  theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_apply {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] (a : A) :
                  (restrict₀ f) a = if h : f a = 0 then 0 else Units.mk0 (f a) h,
                  theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_of_ne_zero {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] {f : F} [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] {a : A} (h : f a 0) :
                  (restrict₀ f) a = Units.mk0 (f a) h,
                  theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_eq_zero_iff {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] {f : F} [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] {a : A} :
                  (restrict₀ f) a = 0 f a = 0
                  @[simp]
                  theorem MonoidWithZeroHom.ValueGroup₀.embedding_restrict₀ {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] {f : F} [MonoidWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] (a : A) :
                  embedding ((restrict₀ f) a) = f a
                  theorem MonoidWithZeroHom.valueMonoid_eq_valueGroup' {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [GroupWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] :
                  (valueMonoid f) = (valueGroup f)
                  theorem MonoidWithZeroHom.valueGroup_eq_range {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] {f : F} [GroupWithZero A] [GroupWithZero B] [MonoidWithZeroHomClass F A B] :
                  theorem MonoidWithZeroHom.mem_valueGroup_iff_of_comm {A : Type u_1} {B : Type u_2} {F : Type u_3} [FunLike F A B] (f : F) [MonoidWithZero A] [CommGroupWithZero B] [MonoidWithZeroHomClass F A B] {y : Bˣ} :
                  y valueGroup f ∃ (a : A), f a 0 ∃ (x : A), f a * y = f x
                  @[implicit_reducible]
                  Equations
                  • One or more equations did not get rendered due to their size.