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

128 declarations and 8 deprecated aliases. Mathlib docs · Source

Homomorphisms of R-algebras

This file defines bundled homomorphisms of R-algebras.

Main definitions

  • AlgHom R A B: the type of R-algebra morphisms from A to B.
  • Algebra.ofId R A : R →ₐ[R] A: the canonical map from R to A, as an AlgHom.

Notation

  • A →ₐ[R] B : R-algebra homomorphism from A to B.

theorem MulSemiringAction.toAlgHom.congr_simp E1 #

∀ {M : Type u_1} (R : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : MulSemiringAction M A] [inst_5 : SMulCommClass M R A] (m m_1 : M),
  m = m_1 → MulSemiringAction.toAlgHom R A m = MulSemiringAction.toAlgHom R A m_1

theorem AlgHom.mk.injEq E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (toRingHom : A →+* B)
  (commutes' : ∀ (r : R), (↑↑toRingHom).toFun ((algebraMap R A) r) = (algebraMap R B) r)
  (map_smul' : ∀ (r : R) (a : A), (↑↑toRingHom).toFun (r • a) = r • (↑↑toRingHom).toFun a) (toRingHom_1 : A →+* B)
  (commutes'_1 : ∀ (r : R), (↑↑toRingHom_1).toFun ((algebraMap R A) r) = (algebraMap R B) r)
  (map_smul'_1 : ∀ (r : R) (a : A), (↑↑toRingHom_1).toFun (r • a) = r • (↑↑toRingHom_1).toFun a),
  ({ toRingHom := toRingHom, commutes' := commutes', map_smul' := map_smul' } =
      { toRingHom := toRingHom_1, commutes' := commutes'_1, map_smul' := map_smul'_1 }) =
    (toRingHom = toRingHom_1)

def AlgHom.ctorIdx E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      {inst : CommSemiring R} →
        {inst_1 : Semiring A} →
          {inst_2 : Semiring B} → {inst_3 : Algebra R A} → {inst_4 : Algebra R B} → (A →ₐ[R] B) → ℕ

theorem AlgHom.mk.inj E1 #

∀ {R : Type u} {A : Type v} {B : Type w} {inst : CommSemiring R} {inst_1 : Semiring A} {inst_2 : Semiring B}
  {inst_3 : Algebra R A} {inst_4 : Algebra R B} {toRingHom : A →+* B}
  {commutes' : ∀ (r : R), (↑↑toRingHom).toFun ((algebraMap R A) r) = (algebraMap R B) r}
  {map_smul' : ∀ (r : R) (a : A), (↑↑toRingHom).toFun (r • a) = r • (↑↑toRingHom).toFun a} {toRingHom_1 : A →+* B}
  {commutes'_1 : ∀ (r : R), (↑↑toRingHom_1).toFun ((algebraMap R A) r) = (algebraMap R B) r}
  {map_smul'_1 : ∀ (r : R) (a : A), (↑↑toRingHom_1).toFun (r • a) = r • (↑↑toRingHom_1).toFun a},
  { toRingHom := toRingHom, commutes' := commutes', map_smul' := map_smul' } =
      { toRingHom := toRingHom_1, commutes' := commutes'_1, map_smul' := map_smul'_1 } →
    toRingHom = toRingHom_1

theorem map_smul_of_commutes E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A → B),
  (∀ (a b : A), f (a * b) = f a * f b) →
    (∀ (r : R), f ((algebraMap R A) r) = (algebraMap R B) r) → ∀ (r : R) (a : A), f (r • a) = r • f a

structure AlgHom E3 #

(R : Type u) →
  (A : Type v) →
    (B : Type w) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [inst_2 : Semiring B] → [Algebra R A] → [Algebra R B] → Type (max v w)

Defining the homomorphism in the category R-Alg, denoted A →ₐ[R] B.

abbrev AlgHom.toRingHom E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → A →+* B

Reinterpret an AlgHom as a RingHom

ctor AlgHom.mk E0 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            [inst_3 : Algebra R A] →
              [inst_4 : Algebra R B] →
                (toRingHom : A →+* B) →
                  (∀ (r : R), (↑↑toRingHom).toFun ((algebraMap R A) r) = (algebraMap R B) r) →
                    (∀ (r : R) (a : A), (↑↑toRingHom).toFun (r • a) = r • (↑↑toRingHom).toFun a) → A →ₐ[R] B

theorem AlgHom.commutes' E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (self : A →ₐ[R] B) (r : R),
  (↑↑self.toRingHom).toFun ((algebraMap R A) r) = (algebraMap R B) r

theorem AlgHom.map_smul' E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (self : A →ₐ[R] B) (r : R) (a : A),
  (↑↑self.toRingHom).toFun (r • a) = r • (↑↑self.toRingHom).toFun a

def «term_→ₐ_» E1 #

Lean.TrailingParserDescr

Defining the homomorphism in the category R-Alg, denoted A →ₐ[R] B.

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

Lean.TrailingParserDescr

Defining the homomorphism in the category R-Alg, denoted A →ₐ[R] B.

class AlgHomClass E1 #

(F : Type u_1) →
  (R : outParam (Type u_2)) →
    (A : outParam (Type u_3)) →
      (B : outParam (Type u_4)) →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] → [inst_2 : Semiring B] → [Algebra R A] → [Algebra R B] → [FunLike F A B] → Prop

AlgHomClass F R A B asserts F is a type of bundled algebra homomorphisms from A to B.

ctor AlgHomClass.mk E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {A : outParam (Type u_3)} {B : outParam (Type u_4)} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : FunLike F A B]
  [toRingHomClass : RingHomClass F A B],
  (∀ (f : F) (r : R), f ((algebraMap R A) r) = (algebraMap R B) r) → AlgHomClass F R A B

instance AlgHomClass.toRingHomClass E0 #

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

theorem AlgHomClass.commutes E1 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {A : outParam (Type u_3)} {B : outParam (Type u_4)} {inst : CommSemiring R}
  {inst_1 : Semiring A} {inst_2 : Semiring B} {inst_3 : Algebra R A} {inst_4 : Algebra R B} {inst_5 : FunLike F A B}
  [self : AlgHomClass F R A B] (f : F) (r : R), f ((algebraMap R A) r) = (algebraMap R B) r

instance AlgHomClass.linearMapClass E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {F : Type u_4} [inst : CommSemiring R] [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],
  LinearMapClass F R A B

def AlgHom.ofClass E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            [inst_3 : Algebra R A] →
              [inst_4 : Algebra R B] → {F : Type u_5} → [inst_5 : FunLike F A B] → [AlgHomClass F R A B] → F → A →ₐ[R] B

Turn an element of a type F satisfying AlgHomClass F α β into an actual AlgHom.

instance AlgHom.funLike E0 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → FunLike (A →ₐ[R] B) A B

instance AlgHom.algHomClass E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], AlgHomClass (A →ₐ[R] B) R A B

theorem AlgHomClass.linearMapOfClass_ofClass E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {F : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : FunLike F A B]
  [inst_6 : AlgHomClass F R A B] (f : F), ↑(AlgHom.ofClass f) = ↑f

def AlgHom.Simps.apply E1 #

{R : Type u} →
  {α : Type v} →
    {β : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring α] →
          [inst_2 : Semiring β] → [inst_3 : Algebra R α] → [inst_4 : Algebra R β] → (α →ₐ[R] β) → α → β

See Note [custom simps projection]

theorem AlgHom.coe_ofClass E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {F : Type u_1} [inst_5 : FunLike F A B] [inst_6 : AlgHomClass F R A B]
  (f : F), ⇑(AlgHom.ofClass f) = ⇑f

theorem AlgHom.toFun_eq_coe E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), (↑↑f.toRingHom).toFun = ⇑f

def AlgHom.toMonoidHom' E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → A →* B

Turn an algebra homomorphism into the corresponding multiplicative monoid homomorphism.

instance AlgHom.coeOutMonoidHom E0 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → CoeOut (A →ₐ[R] B) (A →* B)

def AlgHom.toAddMonoidHom' E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → A →+ B

Turn an algebra homomorphism into the corresponding additive monoid homomorphism.

instance AlgHom.coeOutAddMonoidHom E0 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → CoeOut (A →ₐ[R] B) (A →+ B)

theorem AlgHom.coe_mk E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {f : A →+* B}
  (h₁ : ∀ (r : R), (↑↑f).toFun ((algebraMap R A) r) = (algebraMap R B) r)
  (h₂ : ∀ (r : R) (a : A), (↑↑f).toFun (r • a) = r • (↑↑f).toFun a),
  ⇑{ toRingHom := f, commutes' := h₁, map_smul' := h₂ } = ⇑f

theorem AlgHom.coe_mks E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {f : A → B} (h₁ : f 1 = 1)
  (h₂ :
    ∀ (x y : A),
      { toFun := f, map_one' := h₁ }.toFun (x * y) =
        { toFun := f, map_one' := h₁ }.toFun x * { toFun := f, map_one' := h₁ }.toFun y)
  (h₃ : (↑{ toFun := f, map_one' := h₁, map_mul' := h₂ }).toFun 0 = 0)
  (h₄ :
    ∀ (x y : A),
      (↑{ toFun := f, map_one' := h₁, map_mul' := h₂ }).toFun (x + y) =
        (↑{ toFun := f, map_one' := h₁, map_mul' := h₂ }).toFun x +
          (↑{ toFun := f, map_one' := h₁, map_mul' := h₂ }).toFun y)
  (h₅ :
    ∀ (r : R),
      (↑↑{ toFun := f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun ((algebraMap R A) r) =
        (algebraMap R B) r)
  (h₆ :
    ∀ (r : R) (a : A),
      (↑↑{ toFun := f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun (r • a) =
        r • (↑↑{ toFun := f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun a),
  ⇑{ toFun := f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄, commutes' := h₅ } = f

theorem AlgHom.toRingHom_mk E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {f : A →+* B}
  (h₁ : ∀ (r : R), (↑↑f).toFun ((algebraMap R A) r) = (algebraMap R B) r)
  (h₂ : ∀ (r : R) (a : A), (↑↑f).toFun (r • a) = r • (↑↑f).toFun a),
  ↑{ toRingHom := f, commutes' := h₁, map_smul' := h₂ } = f

theorem AlgHom.toRingHom_eq_coe E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), f.toRingHom = ↑f

theorem AlgHom.coe_toRingHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [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_toMonoidHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [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_toAddMonoidHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [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.toRingHom_toMonoidHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [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.toRingHom_toAddMonoidHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [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_fn_injective E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], Function.Injective DFunLike.coe

theorem AlgHom.coe_fn_inj E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {φ₁ φ₂ : A →ₐ[R] B}, ⇑φ₁ = ⇑φ₂ ↔ φ₁ = φ₂

theorem AlgHom.toRingHom_injective E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], Function.Injective RingHomClass.toRingHom

theorem AlgHom.toMonoidHom_injective E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], Function.Injective MonoidHom.ofClass

theorem AlgHom.toAddMonoidHom_injective E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], Function.Injective AddMonoidHom.ofClass

theorem AlgHom.congr_fun E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {φ₁ φ₂ : A →ₐ[R] B}, φ₁ = φ₂ → ∀ (x : A), φ₁ x = φ₂ x

theorem AlgHom.congr_arg E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) {x y : A}, x = y → φ x = φ y

theorem AlgHom.ext_iff E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {φ₁ φ₂ : A →ₐ[R] B}, φ₁ = φ₂ ↔ ∀ (x : A), φ₁ x = φ₂ x

theorem AlgHom.ext E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {φ₁ φ₂ : A →ₐ[R] B}, (∀ (x : A), φ₁ x = φ₂ x) → φ₁ = φ₂

theorem AlgHom.mk_coe E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {f : A →ₐ[R] B} (h₁ : f 1 = 1)
  (h₂ :
    ∀ (x y : A),
      { toFun := ⇑f, map_one' := h₁ }.toFun (x * y) =
        { toFun := ⇑f, map_one' := h₁ }.toFun x * { toFun := ⇑f, map_one' := h₁ }.toFun y)
  (h₃ : (↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂ }).toFun 0 = 0)
  (h₄ :
    ∀ (x y : A),
      (↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂ }).toFun (x + y) =
        (↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂ }).toFun x +
          (↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂ }).toFun y)
  (h₅ :
    ∀ (r : R),
      (↑↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun ((algebraMap R A) r) =
        (algebraMap R B) r)
  (h₆ :
    ∀ (r : R) (a : A),
      (↑↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun (r • a) =
        r • (↑↑{ toFun := ⇑f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄ }).toFun a),
  { toFun := ⇑f, map_one' := h₁, map_mul' := h₂, map_zero' := h₃, map_add' := h₄, commutes' := h₅ } = f

theorem AlgHom.addHomMk_coe E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), { toFun := ⇑f, map_add' := ⋯ } = ↑f

theorem AlgHom.commutes E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) (r : R), φ ((algebraMap R A) r) = (algebraMap R B) r

theorem AlgHom.comp_algebraMap E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B), (↑φ).comp (algebraMap R A) = algebraMap R B

def AlgHom.mk' E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            [inst_3 : Algebra R A] →
              [inst_4 : Algebra R B] → (f : A →+* B) → (∀ (c : R) (x : A), f (c • x) = c • f x) → A →ₐ[R] B

If a RingHom is R-linear, then it is an AlgHom.

theorem AlgHom.coe_mk' E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →+* B) (h : ∀ (c : R) (x : A), f (c • x) = c • f x),
  ⇑(AlgHom.mk' f h) = ⇑f

def AlgHom.id E1 #

(R : Type u) → (A : Type v) → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A →ₐ[R] A

Identity map as an AlgHom.

theorem AlgHom.coe_id E0 #

∀ (R : Type u) (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], ⇑(AlgHom.id R A) = id

theorem AlgHom.id_toRingHom E0 #

∀ (R : Type u) (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  ↑(AlgHom.id R A) = RingHom.id A

theorem AlgHom.id_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : A),
  (AlgHom.id R A) p = p

def AlgHom.comp E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      {C : Type u₁} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Semiring C] →
                [inst_4 : Algebra R A] →
                  [inst_5 : Algebra R B] → [inst_6 : Algebra R C] → (B →ₐ[R] C) → (A →ₐ[R] B) → A →ₐ[R] C

If φ₁ and φ₂ are R-algebra homomorphisms with the domain of φ₁ equal to the codomain of φ₂, then φ₁.comp φ₂ is the algebra homomorphism x ↦ φ₁ (φ₂ x).

theorem AlgHom.coe_comp E0 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  (φ₁ : B →ₐ[R] C) (φ₂ : A →ₐ[R] B), ⇑(φ₁.comp φ₂) = ⇑φ₁ ∘ ⇑φ₂

theorem AlgHom.comp_apply E0 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  (φ₁ : B →ₐ[R] C) (φ₂ : A →ₐ[R] B) (p : A), (φ₁.comp φ₂) p = φ₁ (φ₂ p)

theorem AlgHom.comp_toRingHom E1 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  (φ₁ : B →ₐ[R] C) (φ₂ : A →ₐ[R] B), ↑(φ₁.comp φ₂) = (↑φ₁).comp ↑φ₂

theorem AlgHom.comp_id E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B), φ.comp (AlgHom.id R A) = φ

theorem AlgHom.id_comp E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B), (AlgHom.id R B).comp φ = φ

theorem AlgHom.comp_assoc E1 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} {D : Type v₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Semiring D] [inst_5 : Algebra R A] [inst_6 : Algebra R B]
  [inst_7 : Algebra R C] [inst_8 : Algebra R D] (φ₁ : C →ₐ[R] D) (φ₂ : B →ₐ[R] C) (φ₃ : A →ₐ[R] B),
  (φ₁.comp φ₂).comp φ₃ = φ₁.comp (φ₂.comp φ₃)

instance AlgHom.instRingHomCompTripleComp E0 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  {φ₁ : B →ₐ[R] C} {φ₂ : A →ₐ[R] B}, RingHomCompTriple φ₂.toRingHom φ₁.toRingHom (φ₁.comp φ₂).toRingHom

def AlgHom.toLinearMap E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → A →ₗ[R] B

R-Alg ⥤ R-Mod

theorem AlgHom.toLinearMap_eq_coe E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), f.toLinearMap = ↑f

theorem AlgHom.toLinearMap_apply E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) (p : A), φ.toLinearMap p = φ p

theorem AlgHom.coe_toLinearMap E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B), ⇑φ.toLinearMap = ⇑φ

theorem AlgHom.toLinearMap_injective E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B], Function.Injective AlgHom.toLinearMap

theorem AlgHom.comp_toLinearMap E0 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  (f : A →ₐ[R] B) (g : B →ₐ[R] C), (g.comp f).toLinearMap = g.toLinearMap ∘ₗ f.toLinearMap

theorem AlgHom.toLinearMap_id E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  (AlgHom.id R A).toLinearMap = LinearMap.id

theorem AlgHom.linearMapMk_toAddHom E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), { toAddHom := ↑f, map_smul' := ⋯ } = f.toLinearMap

def AlgHom.ofLinearMap E1 #

{R : Type u} →
  {A : Type v} →
    {B : Type w} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            [inst_3 : Algebra R A] →
              [inst_4 : Algebra R B] → (f : A →ₗ[R] B) → f 1 = 1 → (∀ (x y : A), f (x * y) = f x * f y) → A →ₐ[R] B

Promote a LinearMap to an AlgHom by supplying proofs about the behavior on 1 and *.

theorem AlgHom.ofLinearMap_apply E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₗ[R] B) (map_one : f 1 = 1)
  (map_mul : ∀ (x y : A), f (x * y) = f x * f y) (a : A), (AlgHom.ofLinearMap f map_one map_mul) a = f a

theorem AlgHom.ofLinearMap_toLinearMap E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) (map_one : φ.toLinearMap 1 = 1)
  (map_mul : ∀ (x y : A), φ.toLinearMap (x * y) = φ.toLinearMap x * φ.toLinearMap y),
  AlgHom.ofLinearMap φ.toLinearMap map_one map_mul = φ

theorem AlgHom.toLinearMap_ofLinearMap E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₗ[R] B) (map_one : f 1 = 1)
  (map_mul : ∀ (x y : A), f (x * y) = f x * f y), (AlgHom.ofLinearMap f map_one map_mul).toLinearMap = f

theorem AlgHom.ofLinearMap_id E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (map_one : LinearMap.id 1 = 1) (map_mul : ∀ (x y : A), LinearMap.id (x * y) = LinearMap.id x * LinearMap.id y),
  AlgHom.ofLinearMap LinearMap.id map_one map_mul = AlgHom.id R A

theorem AlgHom.map_smul_of_tower E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) {R' : Type u_1} [inst_5 : SMul R' A]
  [inst_6 : SMul R' B] [LinearMap.CompatibleSMul A B R' R] (r : R') (x : A), φ (r • x) = r • φ x

instance AlgHom.End E0 #

{R : Type u} →
  {A : Type v} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Monoid (A →ₐ[R] A)

theorem AlgHom.End_toMul_mul E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (φ₁ φ₂ : A →ₐ[R] A),
  φ₁ * φ₂ = φ₁.comp φ₂

theorem AlgHom.End_toOne_one E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], 1 = AlgHom.id R A

theorem AlgHom.one_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A), 1 x = x

theorem AlgHom.mul_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (φ ψ : A →ₐ[R] A)
  (x : A), (φ * ψ) x = φ (ψ x)

theorem AlgHom.coe_pow E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (φ : A →ₐ[R] A)
  (n : ℕ), ⇑(φ ^ n) = (⇑φ)^[n]

theorem AlgHom.algebraMap_eq_apply E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) {y : R} {x : A},
  (algebraMap R A) y = x → (algebraMap R B) y = f x

theorem AlgHom.cancel_right E1 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  {g₁ g₂ : B →ₐ[R] C} {f : A →ₐ[R] B}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem AlgHom.cancel_left E1 #

∀ {R : Type u} {A : Type v} {B : Type w} {C : Type u₁} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Semiring C] [inst_4 : Algebra R A] [inst_5 : Algebra R B] [inst_6 : Algebra R C]
  {g₁ g₂ : A →ₐ[R] B} {f : B →ₐ[R] C}, Function.Injective ⇑f → (f.comp g₁ = f.comp g₂ ↔ g₁ = g₂)

def AlgHom.toEnd E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → (A →ₐ[R] A) →* Module.End R A

AlgHom.toLinearMap as a MonoidHom.

theorem AlgHom.toEnd_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (φ : A →ₐ[R] A),
  AlgHom.toEnd φ = φ.toLinearMap

def IsScalarTower.toAlgHom E1 #

(R : Type u_1) →
  (S : Type u_2) →
    (A : Type u_3) →
      [inst : CommSemiring R] →
        [inst_1 : CommSemiring S] →
          [inst_2 : Semiring A] →
            [inst_3 : Algebra R S] → [inst_4 : Algebra S A] → [inst_5 : Algebra R A] → [IsScalarTower R S A] → S →ₐ[R] A

In a tower, the canonical map from the middle element to the top element is an algebra homomorphism over the bottom element.

theorem IsScalarTower.toAlgHom_apply E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R S] [inst_4 : Algebra S A] [inst_5 : Algebra R A] [inst_6 : IsScalarTower R S A] (y : S),
  (IsScalarTower.toAlgHom R S A) y = (algebraMap S A) y

theorem IsScalarTower.coe_toAlgHom E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R S] [inst_4 : Algebra S A] [inst_5 : Algebra R A] [inst_6 : IsScalarTower R S A],
  ↑(IsScalarTower.toAlgHom R S A) = algebraMap S A

theorem IsScalarTower.coe_toAlgHom' E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R S] [inst_4 : Algebra S A] [inst_5 : Algebra R A] [inst_6 : IsScalarTower R S A],
  ⇑(IsScalarTower.toAlgHom R S A) = ⇑(algebraMap S A)

def Algebra.algHom E1 #

(R : Type u_1) →
  (S : Type u_2) →
    (A : Type u_3) →
      [inst : CommSemiring R] →
        [inst_1 : CommSemiring S] →
          [inst_2 : Semiring A] →
            [inst_3 : Algebra R S] → [inst_4 : Algebra S A] → [inst_5 : Algebra R A] → [IsScalarTower R S A] → S →ₐ[R] A

The algebra morphism underlying algebraMap.

theorem Algebra.algHom_apply E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R S] [inst_4 : Algebra S A] [inst_5 : Algebra R A] [inst_6 : IsScalarTower R S A] (y : S),
  (IsScalarTower.toAlgHom R S A) y = (algebraMap S A) y

Alias of IsScalarTower.toAlgHom_apply.

theorem AlgHomClass.toRingHom_ofClass E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {F : Type u_4} [inst_5 : FunLike F A B] [inst_6 : AlgHomClass F R A B]
  (f : F), ↑(AlgHom.ofClass f) = ↑f

def RingHom.toNatAlgHom E1 #

{R : Type u_1} → {S : Type u_2} → [inst : Semiring R] → [inst_1 : Semiring S] → (R →+* S) → R →ₐ[ℕ] S

Reinterpret a RingHom as an ℕ-algebra homomorphism.

theorem RingHom.toNatAlgHom_coe E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S), ⇑f.toNatAlgHom = ⇑f

theorem RingHom.toNatAlgHom_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (x : R), f.toNatAlgHom x = f x

def RingHom.equivNatAlgHom E1 #

(R : Type u_1) → (S : Type u_2) → [inst : Semiring R] → [inst_1 : Semiring S] → (R →+* S) ≃ (R →ₐ[ℕ] S)

Ring homomorphisms are the same as ℕ-algebra homomorphisms.

theorem RingHom.equivNatAlgHom_apply E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S),
  (RingHom.equivNatAlgHom R S) f = f.toNatAlgHom

theorem RingHom.equivNatAlgHom_symm_apply E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : Semiring R] [inst_1 : Semiring S] (self : R →ₐ[ℕ] S),
  (RingHom.equivNatAlgHom R S).symm self = self.toRingHom

def RingHom.toIntAlgHom E1 #

{R : Type u_1} → {S : Type u_2} → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) → R →ₐ[ℤ] S

Reinterpret a RingHom as a ℤ-algebra homomorphism.

theorem RingHom.toIntAlgHom_coe E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S), ⇑f.toIntAlgHom = ⇑f

theorem RingHom.toIntAlgHom_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (x : R), f.toIntAlgHom x = f x

theorem RingHom.toIntAlgHom_injective E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S], Function.Injective RingHom.toIntAlgHom

def RingHom.equivIntAlgHom E1 #

(R : Type u_1) → (S : Type u_2) → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) ≃ (R →ₐ[ℤ] S)

Ring homomorphisms are the same as ℤ-algebra homomorphisms.

theorem RingHom.equivIntAlgHom_apply E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : Ring R] [inst_1 : Ring S] (f : R →+* S),
  (RingHom.equivIntAlgHom R S) f = f.toIntAlgHom

theorem RingHom.equivIntAlgHom_symm_apply E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : Ring R] [inst_1 : Ring S] (self : R →ₐ[ℤ] S),
  (RingHom.equivIntAlgHom R S).symm self = self.toRingHom

def Algebra.ofId E1 #

(R : Type u) → (A : Type v) → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → R →ₐ[R] A

AlgebraMap as an AlgHom.

theorem Algebra.ofId_self E0 #

∀ {R : Type u} [inst : CommSemiring R], Algebra.ofId R R = AlgHom.id R R

theorem Algebra.toRingHom_ofId E0 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  ↑(Algebra.ofId R A) = algebraMap R A

theorem Algebra.ofId_apply E0 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (r : R),
  (Algebra.ofId R A) r = (algebraMap R A) r

theorem Algebra.ofId_toLinearMap E0 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  (Algebra.ofId R A).toLinearMap = Algebra.linearMap R A

instance Algebra.subsingleton_id E0 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Subsingleton (R →ₐ[R] A)

This is a special case of a more general instance that we define in a later file.

theorem Algebra.ext_id E1 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (f g : R →ₐ[R] A),
  f = g

This ext lemma closes trivial subgoals created when chaining heterobasic ext lemmas.

theorem Algebra.ext_id_iff E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {f g : R →ₐ[R] A},
  f = g ↔ True

theorem Algebra.comp_ofId E0 #

∀ {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] (φ : A →ₐ[R] B), φ.comp (Algebra.ofId R A) = Algebra.ofId R B

instance Algebra.instMulDistribMulActionAlgHomUnits E0 #

{R : Type u} →
  (A : Type v) →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → MulDistribMulAction (A →ₐ[R] A) Aˣ

theorem Algebra.smul_units_def E0 #

∀ {R : Type u} (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (f : A →ₐ[R] A)
  (x : Aˣ), f • x = (Units.map ↑f) x

theorem Algebra.algebraMapSubmonoid_map_eq E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (M : Submonoid R)
  {B : Type w} [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B),
  Submonoid.map f (Algebra.algebraMapSubmonoid A M) = Algebra.algebraMapSubmonoid B M

theorem Algebra.algebraMapSubmonoid_le_comap E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (M : Submonoid R)
  {B : Type w} [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B),
  Algebra.algebraMapSubmonoid A M ≤ Submonoid.comap f.toRingHom (Algebra.algebraMapSubmonoid B M)

def MulSemiringAction.toAlgHom E1 #

{M : Type u_1} →
  (R : Type u_2) →
    (A : Type u_3) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] →
            [inst_3 : Monoid M] → [inst_4 : MulSemiringAction M A] → [SMulCommClass M R A] → M → A →ₐ[R] A

Each element of the monoid defines an algebra homomorphism.

This is a stronger version of MulSemiringAction.toRingHom and DistribSMul.toLinearMap.

theorem MulSemiringAction.toAlgHom_apply E0 #

∀ {M : Type u_1} (R : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : MulSemiringAction M A] [inst_5 : SMulCommClass M R A] (m : M) (a : A),
  (MulSemiringAction.toAlgHom R A m) a = m • a

theorem MulSemiringAction.toAlgHom_injective E1 #

∀ {M : Type u_1} (R : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : MulSemiringAction M A] [inst_5 : SMulCommClass M R A] [FaithfulSMul M A],
  Function.Injective (MulSemiringAction.toAlgHom R A)

theorem MulSemiringAction.toAlgHom_one E0 #

∀ (M : Type u_1) (R : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : MulSemiringAction M A] [inst_5 : SMulCommClass M R A],
  MulSemiringAction.toAlgHom R A 1 = AlgHom.id R A

instance uniqueOfRight E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {T : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring S] →
          [inst_2 : Semiring T] →
            [inst_3 : Algebra R S] → [inst_4 : Algebra R T] → [Subsingleton T] → Unique (S →ₐ[R] T)

theorem AlgHom.default_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Semiring T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Subsingleton T] (x : S), default x = 0

Deprecated aliases

NameNew nameSince
AlgHom.coe_addMonoidHom_injectiveAlgHom.toAddMonoidHom_injective2026-09-15
AlgHom.coe_coeAlgHom.coe_ofClass2026-09-08
AlgHom.coe_monoidHom_injectiveAlgHom.toMonoidHom_injective2026-09-15
AlgHom.coe_ringHom_injectiveAlgHom.toRingHom_injective2026-05-05
AlgHom.coe_ringHom_mkAlgHom.toRingHom_mk2026-05-05
AlgHomClass.toAlgHomAlgHom.ofClass2026-09-07
AlgHomClass.toLinearMap_toAlgHomAlgHomClass.linearMapOfClass_ofClass2026-09-08
AlgHomClass.toRingHom_toAlgHomAlgHomClass.toRingHom_ofClass2026-09-08