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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Algebra.Subalgebra.Unitization

28 declarations. Mathlib docs · Source

Relating unital and non-unital substructures

This file relates various algebraic structures and provides maps (generally algebra homomorphisms), from the unitization of a non-unital subobject into the full structure. The range of this map is the unital closure of the non-unital subobject (e.g., Algebra.adjoin, Subring.closure, Subsemiring.closure or StarAlgebra.adjoin). When the underlying scalar ring is a field, for this map to be injective it suffices that the range omits 1. In this setting we provide suitable AlgEquiv (or StarAlgEquiv) onto the range.

Main declarations

  • NonUnitalSubalgebra.unitization s : Unitization R s →ₐ[R] A: where s is a non-unital subalgebra of a unital R-algebra A, this is the natural algebra homomorphism sending (r, a) to r • 1 + a. The range of this map is Algebra.adjoin R (s : Set A).
  • NonUnitalSubalgebra.unitizationAlgEquiv s : Unitization R s ≃ₐ[R] Algebra.adjoin R (s : Set A) when R is a field and 1 ∉ s. This is NonUnitalSubalgebra.unitization upgraded to an AlgEquiv onto its range.
  • NonUnitalSubsemiring.unitization : Unitization ℕ s →ₐ[ℕ] R: the natural ℕ-algebra homomorphism from the unitization of a non-unital subsemiring s into the ring containing it. The range of this map is subalgebraOfSubsemiring (Subsemiring.closure s). This is just NonUnitalSubalgebra.unitization s but we provide a separate declaration because there is an instance Lean can't find on its own due to outParam.
  • NonUnitalSubring.unitization : Unitization ℤ s →ₐ[ℤ] R: the natural ℤ-algebra homomorphism from the unitization of a non-unital subring s into the ring containing it. The range of this map is subalgebraOfSubring (Subring.closure s). This is just NonUnitalSubalgebra.unitization s but we provide a separate declaration because there is an instance Lean can't find on its own due to outParam.
  • NonUnitalStarSubalgebra s : Unitization R s →⋆ₐ[R] A: a version of NonUnitalSubalgebra.unitization for star algebras.
  • NonUnitalStarSubalgebra.unitizationStarAlgEquiv s : Unitization R s ≃⋆ₐ[R] StarAlgebra.adjoin R (s : Set A): a version of NonUnitalSubalgebra.unitizationAlgEquiv for star algebras.

Subalgebras

Subsemirings

Subrings

Star subalgebras

theorem AlgHom.codRestrict.congr_simp E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f f_1 : A →ₐ[R] B) (e_f : f = f_1) (S : Subalgebra R B)
  (hf : ∀ (x : A), f x ∈ S), f.codRestrict S hf = f_1.codRestrict S ⋯

theorem NonUnitalStarSubalgebra.unitization.congr_simp E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : StarRing R] [inst_2 : Semiring A]
  [inst_3 : StarRing A] [inst_4 : Algebra R A] [inst_5 : StarModule R A] [inst_6 : SetLike S A]
  [hSA : NonUnitalSubsemiringClass S A] [hSRA : SMulMemClass S R A] [inst_7 : StarMemClass S A] (s : S),
  NonUnitalStarSubalgebra.unitization s = NonUnitalStarSubalgebra.unitization s

theorem StarAlgHom.codRestrict.congr_simp E1 #

∀ {R : Type u_2} {A : Type u_3} {B : Type u_4} [inst : CommSemiring R] [inst_1 : StarRing R] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] [inst_4 : StarRing A] [inst_5 : Semiring B] [inst_6 : Algebra R B] [inst_7 : StarRing B]
  [inst_8 : StarModule R B] (f f_1 : A →⋆ₐ[R] B) (e_f : f = f_1) (S : StarSubalgebra R B) (hf : ∀ (x : A), f x ∈ S),
  f.codRestrict S hf = f_1.codRestrict S ⋯

theorem Unitization.starLift.congr_simp E1 #

∀ {R : Type u_1} {A : Type u_2} {C : Type u_3} [inst : CommSemiring R] [inst_1 : StarRing R]
  [inst_2 : NonUnitalSemiring A] [inst_3 : StarRing A] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
  [inst_6 : IsScalarTower R A A] [inst_7 : Semiring C] [inst_8 : Algebra R C] [inst_9 : StarRing C]
  [inst_10 : StarModule R C], Unitization.starLift = Unitization.starLift

theorem Unitization.lift_range_le E1 #

∀ {R : Type u_1} {A : Type u_2} {C : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] [inst_5 : Semiring C]
  [inst_6 : Algebra R C] {f : A →ₙₐ[R] C} {S : Subalgebra R C},
  (Unitization.lift f).range ≤ S ↔ f.range ≤ S.toNonUnitalSubalgebra

theorem Unitization.lift_range E1 #

∀ {R : Type u_1} {A : Type u_2} {C : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] [inst_5 : Semiring C]
  [inst_6 : Algebra R C] (f : A →ₙₐ[R] C), (Unitization.lift f).range = Algebra.adjoin R ↑f.range

def NonUnitalSubalgebra.unitization E3 #

{R : Type u_1} →
  {S : Type u_2} →
    {A : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] →
            [inst_3 : SetLike S A] →
              [hSA : NonUnitalSubsemiringClass S A] → [hSRA : SMulMemClass S R A] → (s : S) → Unitization R ↥s →ₐ[R] A

The natural R-algebra homomorphism from the unitization of a non-unital subalgebra into the algebra containing it.

theorem NonUnitalSubalgebra.unitization_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : SetLike S A] [hSA : NonUnitalSubsemiringClass S A] [hSRA : SMulMemClass S R A] (s : S)
  (x : Unitization R ↥s), (NonUnitalSubalgebra.unitization s) x = (algebraMap R A) x.toProd.1 + ↑x.toProd.2

theorem NonUnitalSubalgebra.unitization_range E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : SetLike S A] [hSA : NonUnitalSubsemiringClass S A] [hSRA : SMulMemClass S R A] (s : S),
  (NonUnitalSubalgebra.unitization s).range = Algebra.adjoin R ↑s

theorem AlgHomClass.unitization_injective' E1 #

∀ {F : Type u_1} {R : Type u_2} {S : Type u_3} {A : Type u_4} [inst : CommRing R] [inst_1 : Ring A]
  [inst_2 : Algebra R A] [inst_3 : SetLike S A] [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] (s : S),
  (∀ (r : R), r ≠ 0 → (algebraMap R A) r ∉ s) →
    ∀ [inst_4 : FunLike F (Unitization R ↥s) A] [AlgHomClass F R (Unitization R ↥s) A] (f : F),
      (∀ (x : ↥s), f ↑x = ↑x) → Function.Injective ⇑f

A sufficient condition for injectivity of NonUnitalSubalgebra.unitization when the scalars are a commutative ring. When the scalars are a field, one should use the more natural NonUnitalStarSubalgebra.unitization_injective whose hypothesis is easier to verify.

theorem AlgHomClass.unitization_injective E1 #

∀ {F : Type u_1} {R : Type u_2} {S : Type u_3} {A : Type u_4} [inst : Field R] [inst_1 : Ring A] [inst_2 : Algebra R A]
  [inst_3 : SetLike S A] [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] (s : S),
  1 ∉ s →
    ∀ [inst_4 : FunLike F (Unitization R ↥s) A] [AlgHomClass F R (Unitization R ↥s) A] (f : F),
      (∀ (x : ↥s), f ↑x = ↑x) → Function.Injective ⇑f

This is a generic version which allows us to prove both NonUnitalSubalgebra.unitization_injective and NonUnitalStarSubalgebra.unitization_injective.

theorem NonUnitalSubalgebra.unitization_injective E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : Field R] [inst_1 : Ring A] [inst_2 : Algebra R A]
  [inst_3 : SetLike S A] [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] (s : S),
  1 ∉ s → Function.Injective ⇑(NonUnitalSubalgebra.unitization s)

def NonUnitalSubalgebra.unitizationAlgEquiv E3 #

{R : Type u_1} →
  {S : Type u_2} →
    {A : Type u_3} →
      [inst : Field R] →
        [inst_1 : Ring A] →
          [inst_2 : Algebra R A] →
            [inst_3 : SetLike S A] →
              [hSA : NonUnitalSubringClass S A] →
                [hSRA : SMulMemClass S R A] → (s : S) → 1 ∉ s → Unitization R ↥s ≃ₐ[R] ↥(Algebra.adjoin R ↑s)

If a NonUnitalSubalgebra over a field does not contain 1, then its unitization is isomorphic to its Algebra.adjoin.

theorem NonUnitalSubalgebra.unitizationAlgEquiv_apply_coe E0 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : Field R] [inst_1 : Ring A] [inst_2 : Algebra R A]
  [inst_3 : SetLike S A] [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] (s : S) (h1 : 1 ∉ s)
  (a : Unitization R ↥s),
  ↑((NonUnitalSubalgebra.unitizationAlgEquiv s h1) a) = (algebraMap R A) a.toProd.1 + ↑a.toProd.2

def NonUnitalSubsemiring.unitization E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : SetLike S R] → [hSR : NonUnitalSubsemiringClass S R] → (s : S) → Unitization ℕ ↥s →ₐ[ℕ] R

The natural ℕ-algebra homomorphism from the unitization of a non-unital subsemiring to its Subsemiring.closure.

theorem NonUnitalSubsemiring.unitization_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : SetLike S R] [hSR : NonUnitalSubsemiringClass S R] (s : S)
  (x : Unitization ℕ ↥s), (NonUnitalSubsemiring.unitization s) x = ↑x.toProd.1 + ↑x.toProd.2

theorem NonUnitalSubsemiring.unitization_range E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : SetLike S R] [hSR : NonUnitalSubsemiringClass S R]
  (s : S), (NonUnitalSubsemiring.unitization s).range = subalgebraOfSubsemiring (Subsemiring.closure ↑s)

def NonUnitalSubring.unitization E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Ring R] → [inst_1 : SetLike S R] → [hSR : NonUnitalSubringClass S R] → (s : S) → Unitization ℤ ↥s →ₐ[ℤ] R

The natural ℤ-algebra homomorphism from the unitization of a non-unital subring to its Subring.closure.

theorem NonUnitalSubring.unitization_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : SetLike S R] [hSR : NonUnitalSubringClass S R] (s : S)
  (x : Unitization ℤ ↥s), (NonUnitalSubring.unitization s) x = ↑x.toProd.1 + ↑x.toProd.2

theorem NonUnitalSubring.unitization_range E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : SetLike S R] [hSR : NonUnitalSubringClass S R] (s : S),
  (NonUnitalSubring.unitization s).range = subalgebraOfSubring (Subring.closure ↑s)

theorem Unitization.starLift_range_le E1 #

∀ {R : Type u_1} {A : Type u_2} {C : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring A]
  [inst_2 : StarRing R] [inst_3 : StarRing A] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
  [inst_6 : IsScalarTower R A A] [inst_7 : StarModule R A] [inst_8 : Semiring C] [inst_9 : StarRing C]
  [inst_10 : Algebra R C] [inst_11 : StarModule R C] {f : A →⋆ₙₐ[R] C} {S : StarSubalgebra R C},
  (Unitization.starLift f).range ≤ S ↔ f.range ≤ S.toNonUnitalStarSubalgebra

theorem Unitization.starLift_range E1 #

∀ {R : Type u_1} {A : Type u_2} {C : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring A]
  [inst_2 : StarRing R] [inst_3 : StarRing A] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
  [inst_6 : IsScalarTower R A A] [inst_7 : StarModule R A] [inst_8 : Semiring C] [inst_9 : StarRing C]
  [inst_10 : Algebra R C] [inst_11 : StarModule R C] (f : A →⋆ₙₐ[R] C),
  (Unitization.starLift f).range = StarAlgebra.adjoin R ↑f.range

def NonUnitalStarSubalgebra.unitization E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {A : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : StarRing R] →
          [inst_2 : Semiring A] →
            [inst_3 : StarRing A] →
              [inst_4 : Algebra R A] →
                [StarModule R A] →
                  [inst_6 : SetLike S A] →
                    [hSA : NonUnitalSubsemiringClass S A] →
                      [hSRA : SMulMemClass S R A] → [inst_7 : StarMemClass S A] → (s : S) → Unitization R ↥s →⋆ₐ[R] A

The natural star R-algebra homomorphism from the unitization of a non-unital star subalgebra to its StarAlgebra.adjoin.

theorem NonUnitalStarSubalgebra.unitization_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : StarRing R] [inst_2 : Semiring A]
  [inst_3 : StarRing A] [inst_4 : Algebra R A] [inst_5 : StarModule R A] [inst_6 : SetLike S A]
  [hSA : NonUnitalSubsemiringClass S A] [hSRA : SMulMemClass S R A] [inst_7 : StarMemClass S A] (s : S)
  (x : Unitization R ↥s), (NonUnitalStarSubalgebra.unitization s) x = (algebraMap R A) x.toProd.1 + ↑x.toProd.2

theorem NonUnitalStarSubalgebra.unitization_range E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : StarRing R] [inst_2 : Semiring A]
  [inst_3 : StarRing A] [inst_4 : Algebra R A] [inst_5 : StarModule R A] [inst_6 : SetLike S A]
  [hSA : NonUnitalSubsemiringClass S A] [hSRA : SMulMemClass S R A] [inst_7 : StarMemClass S A] (s : S),
  (NonUnitalStarSubalgebra.unitization s).range = StarAlgebra.adjoin R ↑s

theorem NonUnitalStarSubalgebra.unitization_injective E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : Field R] [inst_1 : StarRing R] [inst_2 : Ring A]
  [inst_3 : StarRing A] [inst_4 : Algebra R A] [inst_5 : StarModule R A] [inst_6 : SetLike S A]
  [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] [inst_7 : StarMemClass S A] (s : S),
  1 ∉ s → Function.Injective ⇑(NonUnitalStarSubalgebra.unitization s)

def NonUnitalStarSubalgebra.unitizationStarAlgEquiv E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {A : Type u_3} →
      [inst : Field R] →
        [inst_1 : StarRing R] →
          [inst_2 : Ring A] →
            [inst_3 : StarRing A] →
              [inst_4 : Algebra R A] →
                [inst_5 : StarModule R A] →
                  [inst_6 : SetLike S A] →
                    [hSA : NonUnitalSubringClass S A] →
                      [hSRA : SMulMemClass S R A] →
                        [inst_7 : StarMemClass S A] →
                          (s : S) → 1 ∉ s → Unitization R ↥s ≃⋆ₐ[R] ↥(StarAlgebra.adjoin R ↑s)

If a NonUnitalStarSubalgebra over a field does not contain 1, then its unitization is isomorphic to its StarAlgebra.adjoin.

theorem NonUnitalStarSubalgebra.unitizationStarAlgEquiv_apply_coe E0 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} [inst : Field R] [inst_1 : StarRing R] [inst_2 : Ring A]
  [inst_3 : StarRing A] [inst_4 : Algebra R A] [inst_5 : StarModule R A] [inst_6 : SetLike S A]
  [hSA : NonUnitalSubringClass S A] [hSRA : SMulMemClass S R A] [inst_7 : StarMemClass S A] (s : S) (h1 : 1 ∉ s)
  (a : Unitization R ↥s),
  ↑((NonUnitalStarSubalgebra.unitizationStarAlgEquiv s h1) a) = (algebraMap R A) a.toProd.1 + ↑a.toProd.2