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.NonUnitalHom

97 declarations. Mathlib docs · Source

Morphisms of non-unital algebras

This file defines morphisms between two types, each of which carries:

  • an addition,
  • an additive zero,
  • a multiplication,
  • a scalar action.

The multiplications are not assumed to be associative or unital, or even to be compatible with the scalar actions. In a typical application, the operations will satisfy compatibility conditions making them into algebras (albeit possibly non-associative and/or non-unital) but such conditions are not required to make this definition.

This notion of morphism should be useful for any category of non-unital algebras. The motivating application at the time it was introduced was to be able to state the adjunction property for magma algebras. These are non-unital, non-associative algebras obtained by applying the group-algebra construction except where we take a type carrying just Mul instead of Group.

For a plausible future application, one could take the non-unital algebra of compactly-supported functions on a non-compact topological space. A proper map between a pair of such spaces (contravariantly) induces a morphism between their algebras of compactly-supported functions which will be a NonUnitalAlgHom.

Main definitions

  • NonUnitalAlgHom
  • AlgHom.toNonUnitalAlgHom

Tags

non-unital, algebra, morphism

Operations on the product type

Note that much of this is copied from LinearAlgebra/Prod.

Interaction with AlgHom

theorem NonUnitalRingHomClass.toNonUnitalRingHom.congr_simp E1 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : NonUnitalNonAssocSemiring α]
  [inst_1 : NonUnitalNonAssocSemiring β] [inst_2 : FunLike F α β] [inst_3 : NonUnitalRingHomClass F α β] (f f_1 : F),
  f = f_1 → ↑f = ↑f_1

theorem MulHomClass.toMulHom.congr_simp E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
  [inst_3 : MulHomClass F M N] (f f_1 : F), f = f_1 → ↑f = ↑f_1

theorem NonUnitalAlgHom.mk.injEq E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (toDistribMulActionHom : A →ₑ+[φ] B)
  (map_mul' :
    ∀ (x y : A), toDistribMulActionHom.toFun (x * y) = toDistribMulActionHom.toFun x * toDistribMulActionHom.toFun y)
  (toDistribMulActionHom_1 : A →ₑ+[φ] B)
  (map_mul'_1 :
    ∀ (x y : A),
      toDistribMulActionHom_1.toFun (x * y) = toDistribMulActionHom_1.toFun x * toDistribMulActionHom_1.toFun y),
  ({ toDistribMulActionHom := toDistribMulActionHom, map_mul' := map_mul' } =
      { toDistribMulActionHom := toDistribMulActionHom_1, map_mul' := map_mul'_1 }) =
    (toDistribMulActionHom = toDistribMulActionHom_1)

theorem NonUnitalAlgHom.mk.inj E1 #

∀ {R : Type u} {S : Type u₁} {inst : Monoid R} {inst_1 : Monoid S} {φ : R →* S} {A : Type v} {B : Type w}
  {inst_2 : NonUnitalNonAssocSemiring A} {inst_3 : DistribMulAction R A} {inst_4 : NonUnitalNonAssocSemiring B}
  {inst_5 : DistribMulAction S B} {toDistribMulActionHom : A →ₑ+[φ] B}
  {map_mul' :
    ∀ (x y : A), toDistribMulActionHom.toFun (x * y) = toDistribMulActionHom.toFun x * toDistribMulActionHom.toFun y}
  {toDistribMulActionHom_1 : A →ₑ+[φ] B}
  {map_mul'_1 :
    ∀ (x y : A),
      toDistribMulActionHom_1.toFun (x * y) = toDistribMulActionHom_1.toFun x * toDistribMulActionHom_1.toFun y},
  { toDistribMulActionHom := toDistribMulActionHom, map_mul' := map_mul' } =
      { toDistribMulActionHom := toDistribMulActionHom_1, map_mul' := map_mul'_1 } →
    toDistribMulActionHom = toDistribMulActionHom_1

def NonUnitalAlgHom.ctorIdx E1 #

{R : Type u} →
  {S : Type u₁} →
    {inst : Monoid R} →
      {inst_1 : Monoid S} →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              {inst_2 : NonUnitalNonAssocSemiring A} →
                {inst_3 : DistribMulAction R A} →
                  {inst_4 : NonUnitalNonAssocSemiring B} → {inst_5 : DistribMulAction S B} → (A →ₛₙₐ[φ] B) → ℕ

theorem MulHom.inverse.congr_simp E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f f_1 : M →ₙ* N) (e_f : f = f_1) (g g_1 : N → M)
  (e_g : g = g_1) (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f),
  f.inverse g h₁ h₂ = f_1.inverse g_1 ⋯ ⋯

structure NonUnitalAlgHom E3 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        (R →* S) →
          (A : Type v) →
            (B : Type w) →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [DistribMulAction R A] → [inst : NonUnitalNonAssocSemiring B] → [DistribMulAction S B] → Type (max v w)

A morphism respecting addition, multiplication, and scalar multiplication (denoted as A →ₛₙₐ[φ] B, or A →ₙₐ[R] B when φ is the identity on R). When these arise from algebra structures, this is the same as a not-necessarily-unital morphism of algebras.

ctor NonUnitalAlgHom.mk E0 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] →
                    [inst_5 : DistribMulAction S B] →
                      (toDistribMulActionHom : A →ₑ+[φ] B) →
                        (∀ (x y : A),
                            toDistribMulActionHom.toFun (x * y) =
                              toDistribMulActionHom.toFun x * toDistribMulActionHom.toFun y) →
                          A →ₛₙₐ[φ] B

abbrev NonUnitalAlgHom.toDistribMulActionHom E1 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → (A →ₛₙₐ[φ] B) → A →ₑ+[φ] B

abbrev NonUnitalAlgHom.toMulHom E1 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → (A →ₛₙₐ[φ] B) → A →ₙ* B

theorem NonUnitalAlgHom.map_mul' E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (self : A →ₛₙₐ[φ] B) (x y : A), self.toFun (x * y) = self.toFun x * self.toFun y

The proposition that the function preserves multiplication

def «term_→ₙₐ_» E1 #

Lean.TrailingParserDescr

A morphism respecting addition, multiplication, and scalar multiplication (denoted as A →ₛₙₐ[φ] B, or A →ₙₐ[R] B when φ is the identity on R). When these arise from algebra structures, this is the same as a not-necessarily-unital morphism of algebras.

def «term_→ₛₙₐ[_]_» E1 #

Lean.TrailingParserDescr

A morphism respecting addition, multiplication, and scalar multiplication (denoted as A →ₛₙₐ[φ] B, or A →ₙₐ[R] B when φ is the identity on R). When these arise from algebra structures, this is the same as a not-necessarily-unital morphism of algebras.

def «term_→ₙₐ[_]_» E1 #

Lean.TrailingParserDescr

A morphism respecting addition, multiplication, and scalar multiplication (denoted as A →ₛₙₐ[φ] B, or A →ₙₐ[R] B when φ is the identity on R). When these arise from algebra structures, this is the same as a not-necessarily-unital morphism of algebras.

class NonUnitalAlgSemiHomClass E1 #

(F : Type u_1) →
  {R : outParam (Type u_2)} →
    {S : outParam (Type u_3)} →
      [inst : Monoid R] →
        [inst_1 : Monoid S] →
          outParam (R →* S) →
            (A : outParam (Type u_4)) →
              (B : outParam (Type u_5)) →
                [inst_2 : NonUnitalNonAssocSemiring A] →
                  [inst_3 : NonUnitalNonAssocSemiring B] →
                    [DistribMulAction R A] → [DistribMulAction S B] → [FunLike F A B] → Prop

NonUnitalAlgSemiHomClass F φ A B asserts F is a type of bundled algebra homomorphisms from A to B which are equivariant with respect to φ.

instance NonUnitalAlgSemiHomClass.toDistribMulActionSemiHomClass E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {S : outParam (Type u_3)} {inst : Monoid R} {inst_1 : Monoid S}
  {φ : outParam (R →* S)} {A : outParam (Type u_4)} {B : outParam (Type u_5)} {inst_2 : NonUnitalNonAssocSemiring A}
  {inst_3 : NonUnitalNonAssocSemiring B} {inst_4 : DistribMulAction R A} {inst_5 : DistribMulAction S B}
  {inst_6 : FunLike F A B} [self : NonUnitalAlgSemiHomClass F φ A B], DistribMulActionSemiHomClass F (⇑φ) A B

instance NonUnitalAlgSemiHomClass.toMulHomClass E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {S : outParam (Type u_3)} {inst : Monoid R} {inst_1 : Monoid S}
  {φ : outParam (R →* S)} {A : outParam (Type u_4)} {B : outParam (Type u_5)} {inst_2 : NonUnitalNonAssocSemiring A}
  {inst_3 : NonUnitalNonAssocSemiring B} {inst_4 : DistribMulAction R A} {inst_5 : DistribMulAction S B}
  {inst_6 : FunLike F A B} [self : NonUnitalAlgSemiHomClass F φ A B], MulHomClass F A B

ctor NonUnitalAlgSemiHomClass.mk E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {S : outParam (Type u_3)} [inst : Monoid R] [inst_1 : Monoid S]
  {φ : outParam (R →* S)} {A : outParam (Type u_4)} {B : outParam (Type u_5)} [inst_2 : NonUnitalNonAssocSemiring A]
  [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R A] [inst_5 : DistribMulAction S B]
  [inst_6 : FunLike F A B] [toDistribMulActionSemiHomClass : DistribMulActionSemiHomClass F (⇑φ) A B]
  [toMulHomClass : MulHomClass F A B], NonUnitalAlgSemiHomClass F φ A B

abbrev NonUnitalAlgHomClass E1 #

(F : Type u_1) →
  (R : outParam (Type u_2)) →
    (A : outParam (Type u_3)) →
      (B : outParam (Type u_4)) →
        [inst : Monoid R] →
          [inst_1 : NonUnitalNonAssocSemiring A] →
            [inst_2 : NonUnitalNonAssocSemiring B] →
              [DistribMulAction R A] → [DistribMulAction R B] → [FunLike F A B] → Prop

NonUnitalAlgHomClass F R A B asserts F is a type of bundled algebra homomorphisms from A to B which are R-linear.

This is an abbreviation to NonUnitalAlgSemiHomClass F (MonoidHom.id R) A B

instance NonUnitalAlgHomClass.toNonUnitalRingHomClass E0 #

∀ {F : Type u_1} {R : Type u_2} {S : Type u_3} {A : Type u_4} {B : Type u_5} {x : Monoid R} {x_1 : Monoid S}
  {φ : outParam (R →* S)} {x_2 : NonUnitalNonAssocSemiring A} [inst : DistribMulAction R A]
  {x_3 : NonUnitalNonAssocSemiring B} [inst_1 : DistribMulAction S B] [inst_2 : FunLike F A B]
  [NonUnitalAlgSemiHomClass F φ A B], NonUnitalRingHomClass F A B

instance NonUnitalAlgHomClass.instSemilinearMapClassOfNonUnitalAlgSemiHomClassOfClassRingHom E0 #

∀ {F : Type u_3} {R : Type u_4} {S : Type u_5} {A : Type u_6} {B : Type u_7} {x : Semiring R} {x_1 : Semiring S}
  {φ : R →+* S} {x_2 : NonUnitalSemiring A} {x_3 : NonUnitalSemiring B} [inst : Module R A] [inst_1 : Module S B]
  [inst_2 : FunLike F A B] [NonUnitalAlgSemiHomClass F (↑φ) A B], SemilinearMapClass F φ A B

instance NonUnitalAlgHomClass.instLinearMapClass E0 #

∀ {R : Type u} [inst : Semiring R] {A : Type u_1} {B : Type u_2} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : NonUnitalNonAssocSemiring B] {F : Type u_3} [inst_4 : FunLike F A B]
  [inst_5 : Module R B] [NonUnitalAlgHomClass F R A B], LinearMapClass F R A B

def NonUnitalAlgHomClass.toNonUnitalAlgSemiHom E1 #

{F : Type u_3} →
  {R : Type u_4} →
    {S : Type u_5} →
      [inst : Monoid R] →
        [inst_1 : Monoid S] →
          {φ : R →* S} →
            {A : Type u_6} →
              {B : Type u_7} →
                [inst_2 : NonUnitalNonAssocSemiring A] →
                  [inst_3 : DistribMulAction R A] →
                    [inst_4 : NonUnitalNonAssocSemiring B] →
                      [inst_5 : DistribMulAction S B] →
                        [inst_6 : FunLike F A B] → [NonUnitalAlgSemiHomClass F φ A B] → F → A →ₛₙₐ[φ] B

Turn an element of a type F satisfying NonUnitalAlgSemiHomClass F φ A B into an actual NonUnitalAlgHom. This is declared as the default coercion from F to A →ₛₙₐ[φ] B.

instance NonUnitalAlgHomClass.instCoeTCNonUnitalAlgHomOfNonUnitalAlgSemiHomClass E0 #

{F : Type u_3} →
  {R : Type u_4} →
    {S : Type u_5} →
      {A : Type u_6} →
        {B : Type u_7} →
          [inst : Monoid R] →
            [inst_1 : Monoid S] →
              {φ : R →* S} →
                [inst_2 : NonUnitalNonAssocSemiring A] →
                  [inst_3 : DistribMulAction R A] →
                    [inst_4 : NonUnitalNonAssocSemiring B] →
                      [inst_5 : DistribMulAction S B] →
                        [inst_6 : FunLike F A B] → [NonUnitalAlgSemiHomClass F φ A B] → CoeTC F (A →ₛₙₐ[φ] B)

def NonUnitalAlgHomClass.toNonUnitalAlgHom E1 #

{F : Type u_3} →
  {R : Type u_4} →
    [inst : Monoid R] →
      {A : Type u_5} →
        {B : Type u_6} →
          [inst_1 : NonUnitalNonAssocSemiring A] →
            [inst_2 : DistribMulAction R A] →
              [inst_3 : NonUnitalNonAssocSemiring B] →
                [inst_4 : DistribMulAction R B] →
                  [inst_5 : FunLike F A B] → [NonUnitalAlgHomClass F R A B] → F → A →ₙₐ[R] B

Turn an element of a type F satisfying NonUnitalAlgHomClass F R A B into an actual NonUnitalAlgHom. This is declared as the default coercion from F to A →ₛₙₐ[R] B.

instance NonUnitalAlgHomClass.instCoeTCNonUnitalAlgHomId E0 #

{F : Type u_3} →
  {R : Type u_4} →
    [inst : Monoid R] →
      {A : Type u_5} →
        {B : Type u_6} →
          [inst_1 : NonUnitalNonAssocSemiring A] →
            [inst_2 : DistribMulAction R A] →
              [inst_3 : NonUnitalNonAssocSemiring B] →
                [inst_4 : DistribMulAction R B] →
                  [inst_5 : FunLike F A B] → [NonUnitalAlgHomClass F R A B] → CoeTC F (A →ₙₐ[R] B)

instance NonUnitalAlgHom.instFunLike E0 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        (φ : R →* S) →
          (A : Type v) →
            (B : Type w) →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → FunLike (A →ₛₙₐ[φ] B) A B

theorem NonUnitalAlgHom.toFun_eq_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] (φ : R →* S) (A : Type v) (B : Type w)
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), f.toFun = ⇑f

def NonUnitalAlgHom.Simps.apply E1 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        (φ : R →* S) →
          (A : Type v) →
            (B : Type w) →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → (A →ₛₙₐ[φ] B) → A → B

See Note [custom simps projection]

theorem NonUnitalAlgHom.coe_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {F : Type u_2} [inst_6 : FunLike F A B] [inst_7 : NonUnitalAlgSemiHomClass F φ A B]
  (f : F), ⇑↑f = ⇑f

theorem NonUnitalAlgHom.coe_injective E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B], Function.Injective DFunLike.coe

instance NonUnitalAlgHom.instNonUnitalAlgSemiHomClass E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B], NonUnitalAlgSemiHomClass (A →ₛₙₐ[φ] B) φ A B

theorem NonUnitalAlgHom.ext_iff E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {f g : A →ₛₙₐ[φ] B}, f = g ↔ ∀ (x : A), f x = g x

theorem NonUnitalAlgHom.ext E1 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {f g : A →ₛₙₐ[φ] B}, (∀ (x : A), f x = g x) → f = g

theorem NonUnitalAlgHom.congr_fun E1 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {f g : A →ₛₙₐ[φ] B}, f = g → ∀ (x : A), f x = g x

theorem NonUnitalAlgHom.coe_mk E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A → B) (h₁ : ∀ (m : R) (x : A), f (m • x) = φ m • f x)
  (h₂ : { toFun := f, map_smul' := h₁ }.toFun 0 = 0)
  (h₃ :
    ∀ (x y : A),
      { toFun := f, map_smul' := h₁ }.toFun (x + y) =
        { toFun := f, map_smul' := h₁ }.toFun x + { toFun := f, map_smul' := h₁ }.toFun y)
  (h₄ :
    ∀ (x y : A),
      { toFun := f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun (x * y) =
        { toFun := f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun x *
          { toFun := f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun y),
  ⇑{ toFun := f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃, map_mul' := h₄ } = f

theorem NonUnitalAlgHom.mk_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (h₁ : ∀ (m : R) (x : A), f (m • x) = φ m • f x)
  (h₂ : { toFun := ⇑f, map_smul' := h₁ }.toFun 0 = 0)
  (h₃ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁ }.toFun (x + y) =
        { toFun := ⇑f, map_smul' := h₁ }.toFun x + { toFun := ⇑f, map_smul' := h₁ }.toFun y)
  (h₄ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun (x * y) =
        { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun x *
          { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun y),
  { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃, map_mul' := h₄ } = f

theorem NonUnitalAlgHom.addHomMk_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), { toFun := ⇑f, map_add' := ⋯ } = ↑f

theorem NonUnitalAlgHom.toDistribMulActionHom_eq_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), f.toDistribMulActionHom = ↑f

theorem NonUnitalAlgHom.toMulHom_eq_coe E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), f.toMulHom = ↑f

theorem NonUnitalAlgHom.coe_to_distribMulActionHom E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), ⇑↑f = ⇑f

theorem NonUnitalAlgHom.coe_to_mulHom E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), ⇑↑f = ⇑f

theorem NonUnitalAlgHom.to_distribMulActionHom_injective E1 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {f g : A →ₛₙₐ[φ] B}, ↑f = ↑g → f = g

theorem NonUnitalAlgHom.to_mulHom_injective E1 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {f g : A →ₛₙₐ[φ] B}, ↑f = ↑g → f = g

theorem NonUnitalAlgHom.coe_distribMulActionHom_mk E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (h₁ : ∀ (m : R) (x : A), f (m • x) = φ m • f x)
  (h₂ : { toFun := ⇑f, map_smul' := h₁ }.toFun 0 = 0)
  (h₃ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁ }.toFun (x + y) =
        { toFun := ⇑f, map_smul' := h₁ }.toFun x + { toFun := ⇑f, map_smul' := h₁ }.toFun y)
  (h₄ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun (x * y) =
        { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun x *
          { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun y),
  ↑{ toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃, map_mul' := h₄ } =
    { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }

theorem NonUnitalAlgHom.coe_mulHom_mk E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (h₁ : ∀ (m : R) (x : A), f (m • x) = φ m • f x)
  (h₂ : { toFun := ⇑f, map_smul' := h₁ }.toFun 0 = 0)
  (h₃ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁ }.toFun (x + y) =
        { toFun := ⇑f, map_smul' := h₁ }.toFun x + { toFun := ⇑f, map_smul' := h₁ }.toFun y)
  (h₄ :
    ∀ (x y : A),
      { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun (x * y) =
        { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun x *
          { toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃ }.toFun y),
  ↑{ toFun := ⇑f, map_smul' := h₁, map_zero' := h₂, map_add' := h₃, map_mul' := h₄ } = { toFun := ⇑f, map_mul' := h₄ }

theorem NonUnitalAlgHom.map_smul E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (c : R) (x : A), f (c • x) = φ c • f x

theorem NonUnitalAlgHom.map_add E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (x y : A), f (x + y) = f x + f y

theorem NonUnitalAlgHom.map_mul E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B) (x y : A), f (x * y) = f x * f y

theorem NonUnitalAlgHom.map_zero E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (f : A →ₛₙₐ[φ] B), f 0 = 0

def NonUnitalAlgHom.toLinearMap E1 #

{R : Type u_2} →
  {A : Type u_3} →
    {B : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : Module R A] →
            [inst_3 : NonUnitalNonAssocSemiring B] → [inst_4 : Module R B] → (A →ₙₐ[R] B) → A →ₗ[R] B

Interpret a NonUnitalAlgHom as a LinearMap.

theorem NonUnitalAlgHom.coe_toLinearMap E0 #

∀ {R : Type u_2} {A : Type u_3} {B : Type u_4} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : Module R B] (f : A →ₙₐ[R] B),
  ⇑f.toLinearMap = ⇑f

def NonUnitalAlgHom.id E1 #

(R : Type u_2) →
  (A : Type u_3) →
    [inst : Monoid R] → [inst_1 : NonUnitalNonAssocSemiring A] → [inst_2 : DistribMulAction R A] → A →ₙₐ[R] A

The identity map as a NonUnitalAlgHom.

theorem NonUnitalAlgHom.coe_id E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : DistribMulAction R A],
  ⇑(NonUnitalAlgHom.id R A) = id

instance NonUnitalAlgHom.instZero E0 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → Zero (A →ₛₙₐ[φ] B)

instance NonUnitalAlgHom.instOneId E0 #

{R : Type u} →
  [inst : Monoid R] →
    {A : Type v} → [inst_1 : NonUnitalNonAssocSemiring A] → [inst_2 : DistribMulAction R A] → One (A →ₙₐ[R] A)

theorem NonUnitalAlgHom.coe_zero E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B], ⇑0 = 0

theorem NonUnitalAlgHom.coe_one E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : DistribMulAction R A],
  ⇑1 = id

theorem NonUnitalAlgHom.zero_apply E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] (a : A), 0 a = 0

theorem NonUnitalAlgHom.one_apply E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : DistribMulAction R A]
  (a : A), 1 a = a

instance NonUnitalAlgHom.instInhabited E0 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] → [inst_5 : DistribMulAction S B] → Inhabited (A →ₛₙₐ[φ] B)

def NonUnitalAlgHom.comp E1 #

{R : Type u} →
  {S : Type u₁} →
    {T : Type u_1} →
      [inst : Monoid R] →
        [inst_1 : Monoid S] →
          [inst_2 : Monoid T] →
            {φ : R →* S} →
              {A : Type v} →
                {B : Type w} →
                  {C : Type w₁} →
                    [inst_3 : NonUnitalNonAssocSemiring A] →
                      [inst_4 : DistribMulAction R A] →
                        [inst_5 : NonUnitalNonAssocSemiring B] →
                          [inst_6 : DistribMulAction S B] →
                            [inst_7 : NonUnitalNonAssocSemiring C] →
                              [inst_8 : DistribMulAction T C] →
                                {ψ : S →* T} →
                                  {χ : R →* T} → (B →ₛₙₐ[ψ] C) → (A →ₛₙₐ[φ] B) → [κ : φ.CompTriple ψ χ] → A →ₛₙₐ[χ] C

The composition of morphisms is a morphism.

theorem NonUnitalAlgHom.coe_comp E0 #

∀ {R : Type u} {S : Type u₁} {T : Type u_1} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : Monoid T] {φ : R →* S}
  {A : Type v} {B : Type w} {C : Type w₁} [inst_3 : NonUnitalNonAssocSemiring A] [inst_4 : DistribMulAction R A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : DistribMulAction S B] [inst_7 : NonUnitalNonAssocSemiring C]
  [inst_8 : DistribMulAction T C] {ψ : S →* T} {χ : R →* T} (f : B →ₛₙₐ[ψ] C) (g : A →ₛₙₐ[φ] B)
  [inst_9 : φ.CompTriple ψ χ], ⇑(f.comp g) = ⇑f ∘ ⇑g

theorem NonUnitalAlgHom.comp_apply E0 #

∀ {R : Type u} {S : Type u₁} {T : Type u_1} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : Monoid T] {φ : R →* S}
  {A : Type v} {B : Type w} {C : Type w₁} [inst_3 : NonUnitalNonAssocSemiring A] [inst_4 : DistribMulAction R A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : DistribMulAction S B] [inst_7 : NonUnitalNonAssocSemiring C]
  [inst_8 : DistribMulAction T C] {ψ : S →* T} {χ : R →* T} (f : B →ₛₙₐ[ψ] C) (g : A →ₛₙₐ[φ] B)
  [inst_9 : φ.CompTriple ψ χ] (x : A), (f.comp g) x = f (g x)

def NonUnitalAlgHom.inverse E1 #

{R : Type u} →
  [inst : Monoid R] →
    {A : Type v} →
      [inst_1 : NonUnitalNonAssocSemiring A] →
        [inst_2 : DistribMulAction R A] →
          {B₁ : Type u_2} →
            [inst_3 : NonUnitalNonAssocSemiring B₁] →
              [inst_4 : DistribMulAction R B₁] →
                (f : A →ₙₐ[R] B₁) → (g : B₁ → A) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → B₁ →ₙₐ[R] A

The inverse of a bijective morphism is a morphism.

theorem NonUnitalAlgHom.coe_inverse E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : DistribMulAction R A]
  {B₁ : Type u_2} [inst_3 : NonUnitalNonAssocSemiring B₁] [inst_4 : DistribMulAction R B₁] (f : A →ₙₐ[R] B₁)
  (g : B₁ → A) (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f), ⇑(f.inverse g h₁ h₂) = g

def NonUnitalAlgHom.inverse' E1 #

{R : Type u} →
  {S : Type u₁} →
    [inst : Monoid R] →
      [inst_1 : Monoid S] →
        {φ : R →* S} →
          {A : Type v} →
            {B : Type w} →
              [inst_2 : NonUnitalNonAssocSemiring A] →
                [inst_3 : DistribMulAction R A] →
                  [inst_4 : NonUnitalNonAssocSemiring B] →
                    [inst_5 : DistribMulAction S B] →
                      {φ' : S →* R} →
                        (f : A →ₛₙₐ[φ] B) →
                          (g : B → A) →
                            Function.RightInverse ⇑φ' ⇑φ →
                              Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → B →ₛₙₐ[φ'] A

The inverse of a bijective morphism is a morphism.

theorem NonUnitalAlgHom.coe_inverse' E0 #

∀ {R : Type u} {S : Type u₁} [inst : Monoid R] [inst_1 : Monoid S] {φ : R →* S} {A : Type v} {B : Type w}
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction S B] {φ' : S →* R} (f : A →ₛₙₐ[φ] B) (g : B → A) (k : Function.RightInverse ⇑φ' ⇑φ)
  (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f), ⇑(f.inverse' g k h₁ h₂) = g

def NonUnitalAlgHom.fst E1 #

(R : Type u) →
  [inst : Monoid R] →
    (A : Type v) →
      (B : Type w) →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : DistribMulAction R A] →
            [inst_3 : NonUnitalNonAssocSemiring B] → [inst_4 : DistribMulAction R B] → A × B →ₙₐ[R] A

The first projection of a product is a non-unital algebra homomorphism.

theorem NonUnitalAlgHom.fst_toFun E0 #

∀ (R : Type u) [inst : Monoid R] (A : Type v) (B : Type w) [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B] (self : A × B),
  (NonUnitalAlgHom.fst R A B) self = self.1

def NonUnitalAlgHom.snd E1 #

(R : Type u) →
  [inst : Monoid R] →
    (A : Type v) →
      (B : Type w) →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : DistribMulAction R A] →
            [inst_3 : NonUnitalNonAssocSemiring B] → [inst_4 : DistribMulAction R B] → A × B →ₙₐ[R] B

The second projection of a product is a non-unital algebra homomorphism.

theorem NonUnitalAlgHom.snd_toFun E0 #

∀ (R : Type u) [inst : Monoid R] (A : Type v) (B : Type w) [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B] (self : A × B),
  (NonUnitalAlgHom.snd R A B) self = self.2

def NonUnitalAlgHom.prod E1 #

{R : Type u} →
  [inst : Monoid R] →
    {A : Type v} →
      {B : Type w} →
        {C : Type w₁} →
          [inst_1 : NonUnitalNonAssocSemiring A] →
            [inst_2 : DistribMulAction R A] →
              [inst_3 : NonUnitalNonAssocSemiring B] →
                [inst_4 : NonUnitalNonAssocSemiring C] →
                  [inst_5 : DistribMulAction R B] →
                    [inst_6 : DistribMulAction R C] → (A →ₙₐ[R] B) → (A →ₙₐ[R] C) → A →ₙₐ[R] B × C

The prod of two morphisms is a morphism.

theorem NonUnitalAlgHom.prod_toFun E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : A →ₙₐ[R] B) (g : A →ₙₐ[R] C) (i : A),
  (f.prod g) i = Function.prod (⇑f) (⇑g) i

theorem NonUnitalAlgHom.coe_prod E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : A →ₙₐ[R] B) (g : A →ₙₐ[R] C),
  ⇑(f.prod g) = Function.prod ⇑f ⇑g

theorem NonUnitalAlgHom.fst_prod E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : A →ₙₐ[R] B) (g : A →ₙₐ[R] C),
  (NonUnitalAlgHom.fst R B C).comp (f.prod g) = f

theorem NonUnitalAlgHom.snd_prod E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : A →ₙₐ[R] B) (g : A →ₙₐ[R] C),
  (NonUnitalAlgHom.snd R B C).comp (f.prod g) = g

theorem NonUnitalAlgHom.prod_fst_snd E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B],
  (NonUnitalAlgHom.fst R A B).prod (NonUnitalAlgHom.snd R A B) = 1

def NonUnitalAlgHom.prodEquiv E1 #

{R : Type u} →
  [inst : Monoid R] →
    {A : Type v} →
      {B : Type w} →
        {C : Type w₁} →
          [inst_1 : NonUnitalNonAssocSemiring A] →
            [inst_2 : DistribMulAction R A] →
              [inst_3 : NonUnitalNonAssocSemiring B] →
                [inst_4 : NonUnitalNonAssocSemiring C] →
                  [inst_5 : DistribMulAction R B] →
                    [inst_6 : DistribMulAction R C] → (A →ₙₐ[R] B) × (A →ₙₐ[R] C) ≃ (A →ₙₐ[R] B × C)

Taking the product of two maps with the same domain is equivalent to taking the product of their codomains.

theorem NonUnitalAlgHom.prodEquiv_apply E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : (A →ₙₐ[R] B) × (A →ₙₐ[R] C)),
  NonUnitalAlgHom.prodEquiv f = f.1.prod f.2

theorem NonUnitalAlgHom.prodEquiv_symm_apply E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} {C : Type w₁} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : NonUnitalNonAssocSemiring C]
  [inst_5 : DistribMulAction R B] [inst_6 : DistribMulAction R C] (f : A →ₙₐ[R] B × C),
  NonUnitalAlgHom.prodEquiv.symm f = ((NonUnitalAlgHom.fst R B C).comp f, (NonUnitalAlgHom.snd R B C).comp f)

def NonUnitalAlgHom.inl E1 #

(R : Type u) →
  [inst : Monoid R] →
    (A : Type v) →
      (B : Type w) →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : DistribMulAction R A] →
            [inst_3 : NonUnitalNonAssocSemiring B] → [inst_4 : DistribMulAction R B] → A →ₙₐ[R] A × B

The left injection into a product is a non-unital algebra homomorphism.

def NonUnitalAlgHom.inr E1 #

(R : Type u) →
  [inst : Monoid R] →
    (A : Type v) →
      (B : Type w) →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : DistribMulAction R A] →
            [inst_3 : NonUnitalNonAssocSemiring B] → [inst_4 : DistribMulAction R B] → B →ₙₐ[R] A × B

The right injection into a product is a non-unital algebra homomorphism.

theorem NonUnitalAlgHom.coe_inl E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B],
  ⇑(NonUnitalAlgHom.inl R A B) = fun x ↦ (x, 0)

theorem NonUnitalAlgHom.inl_apply E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B] (x : A),
  (NonUnitalAlgHom.inl R A B) x = (x, 0)

theorem NonUnitalAlgHom.coe_inr E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B],
  ⇑(NonUnitalAlgHom.inr R A B) = Prod.mk 0

theorem NonUnitalAlgHom.inr_apply E0 #

∀ {R : Type u} [inst : Monoid R] {A : Type v} {B : Type w} [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : DistribMulAction R B] (x : B),
  (NonUnitalAlgHom.inr R A B) x = (0, x)

instance AlgHom.instNonUnitalAlgHomClassOfAlgHomClass E0 #

∀ {F : Type u_1} {R : Type u_2} [inst : CommSemiring R] {A : Type u_3} {B : Type u_4} [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : FunLike F A B] [AlgHomClass F R A B],
  NonUnitalAlgHomClass F R A B

def AlgHom.toNonUnitalAlgHom E3 #

{R : Type u_2} →
  [inst : CommSemiring R] →
    {A : Type u_3} →
      {B : Type u_4} →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → A →ₙₐ[R] B

A unital morphism of algebras is a NonUnitalAlgHom.

instance AlgHom.NonUnitalAlgHom.hasCoe E0 #

{R : Type u_2} →
  [inst : CommSemiring R] →
    {A : Type u_3} →
      {B : Type u_4} →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → CoeOut (A →ₐ[R] B) (A →ₙₐ[R] B)

theorem AlgHom.toNonUnitalAlgHom_eq_coe E0 #

∀ {R : Type u_2} [inst : CommSemiring R] {A : Type u_3} {B : Type u_4} [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), ↑f = ↑f

theorem AlgHom.coe_toNonUnitalAlgHom E0 #

∀ {R : Type u_2} [inst : CommSemiring R] {A : Type u_3} {B : Type u_4} [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), ⇑↑f = ⇑f

def NonUnitalAlgHom.restrictScalars E1 #

(R : Type u_1) →
  {S : Type u_2} →
    {A : Type u_3} →
      {B : Type u_4} →
        [inst : Monoid R] →
          [inst_1 : Monoid S] →
            [inst_2 : NonUnitalNonAssocSemiring A] →
              [inst_3 : NonUnitalNonAssocSemiring B] →
                [inst_4 : MulAction R S] →
                  [inst_5 : DistribMulAction S A] →
                    [inst_6 : DistribMulAction S B] →
                      [inst_7 : DistribMulAction R A] →
                        [inst_8 : DistribMulAction R B] →
                          [IsScalarTower R S A] → [IsScalarTower R S B] → (A →ₙₐ[S] B) → A →ₙₐ[R] B

If a monoid R acts on another monoid S, then a non-unital algebra homomorphism over S can be viewed as a non-unital algebra homomorphism over R.

theorem NonUnitalAlgHom.restrictScalars_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {A : Type u_3} {B : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : MulAction R S]
  [inst_5 : DistribMulAction S A] [inst_6 : DistribMulAction S B] [inst_7 : DistribMulAction R A]
  [inst_8 : DistribMulAction R B] [inst_9 : IsScalarTower R S A] [inst_10 : IsScalarTower R S B] (f : A →ₙₐ[S] B)
  (x : A), (NonUnitalAlgHom.restrictScalars R f) x = f x

theorem NonUnitalAlgHom.coe_restrictScalars E0 #

∀ (R : Type u_1) {S : Type u_2} {A : Type u_3} {B : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : MulAction R S]
  [inst_5 : DistribMulAction S A] [inst_6 : DistribMulAction S B] [inst_7 : DistribMulAction R A]
  [inst_8 : DistribMulAction R B] [inst_9 : IsScalarTower R S A] [inst_10 : IsScalarTower R S B] (f : A →ₙₐ[S] B),
  ↑(NonUnitalAlgHom.restrictScalars R f) = ↑f

theorem NonUnitalAlgHom.coe_restrictScalars' E0 #

∀ (R : Type u_1) {S : Type u_2} {A : Type u_3} {B : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : MulAction R S]
  [inst_5 : DistribMulAction S A] [inst_6 : DistribMulAction S B] [inst_7 : DistribMulAction R A]
  [inst_8 : DistribMulAction R B] [inst_9 : IsScalarTower R S A] [inst_10 : IsScalarTower R S B] (f : A →ₙₐ[S] B),
  ⇑(NonUnitalAlgHom.restrictScalars R f) = ⇑f

theorem NonUnitalAlgHom.restrictScalars_injective E1 #

∀ (R : Type u_1) {S : Type u_2} {A : Type u_3} {B : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : NonUnitalNonAssocSemiring B] [inst_4 : MulAction R S]
  [inst_5 : DistribMulAction S A] [inst_6 : DistribMulAction S B] [inst_7 : DistribMulAction R A]
  [inst_8 : DistribMulAction R B] [inst_9 : IsScalarTower R S A] [inst_10 : IsScalarTower R S B],
  Function.Injective (NonUnitalAlgHom.restrictScalars R)