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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.MonoidAlgebra.Basic

176 declarations and 15 deprecated aliases. Mathlib docs · Source

Algebra structure on monoid algebras

Multiplicative monoids

Non-unital, non-associative algebra structure

Algebra structure

Non-unital, non-associative algebra structure

Algebra structure

theorem MonoidAlgebra.uniqueAlgEquiv.congr_simp E1 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : Subsingleton M], MonoidAlgebra.uniqueAlgEquiv R M = MonoidAlgebra.uniqueAlgEquiv R M

theorem AddMonoidAlgebra.liftNCAlgHom.congr_simp E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : Semiring A] [inst_3 : Algebra R A] [inst_4 : Semiring B] [inst_5 : Algebra R B] (f f_1 : A →ₐ[R] B)
  (e_f : f = f_1) (g g_1 : Multiplicative M →* B) (e_g : g = g_1)
  (h_comm : ∀ (x : A) (y : Multiplicative M), Commute (f x) (g y)),
  AddMonoidAlgebra.liftNCAlgHom f g h_comm = AddMonoidAlgebra.liftNCAlgHom f_1 g_1 ⋯

theorem MonoidAlgebra.liftNCAlgHom.congr_simp E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (f f_1 : A →ₐ[R] B)
  (e_f : f = f_1) (g g_1 : M →* B) (e_g : g = g_1) (h_comm : ∀ (x : A) (y : M), Commute (f x) (g y)),
  MonoidAlgebra.liftNCAlgHom f g h_comm = MonoidAlgebra.liftNCAlgHom f_1 g_1 ⋯

theorem AlgEquiv.mk.congr_simp E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : Add A] [inst_1 : Add B] [inst_2 : Mul A] [inst_3 : Mul B]
  [inst_4 : SMul R A] [inst_5 : SMul R B] (toEquiv toEquiv_1 : A ≃ B) (e_toEquiv : toEquiv = toEquiv_1)
  (map_add' : ∀ (x y : A), toEquiv.toFun (x + y) = toEquiv.toFun x + toEquiv.toFun y)
  (map_mul' : ∀ (x y : A), toEquiv.toFun (x * y) = toEquiv.toFun x * toEquiv.toFun y)
  (map_smul' : ∀ (r : R) (a : A), toEquiv.toFun (r • a) = r • toEquiv.toFun a),
  { toEquiv := toEquiv, map_add' := map_add', map_mul' := map_mul', map_smul' := map_smul' } =
    { toEquiv := toEquiv_1, map_add' := ⋯, map_mul' := ⋯, map_smul' := ⋯ }

theorem MonoidAlgebra.nonUnitalAlgHom_ext E1 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Mul M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : MonoidAlgebra R M →ₙₐ[R] A},
  (∀ (x : M), φ₁ (MonoidAlgebra.single x 1) = φ₂ (MonoidAlgebra.single x 1)) → φ₁ = φ₂

A non-unital R-algebra homomorphism from R[M] is uniquely defined by its values on the monomials single a 1.

theorem AddMonoidAlgebra.nonUnitalAlgHom_ext E1 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Add M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : AddMonoidAlgebra R M →ₙₐ[R] A},
  (∀ (x : M), φ₁ (AddMonoidAlgebra.single x 1) = φ₂ (AddMonoidAlgebra.single x 1)) → φ₁ = φ₂

A non-unital R-algebra homomorphism from R[M] is uniquely defined by its values on the monomials single a 1.

theorem MonoidAlgebra.nonUnitalAlgHom_ext' E1 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Mul M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : MonoidAlgebra R M →ₙₐ[R] A},
  φ₁.toMulHom.comp (MonoidAlgebra.ofMagma R M) = φ₂.toMulHom.comp (MonoidAlgebra.ofMagma R M) → φ₁ = φ₂

See note [partially-applied ext lemmas].

theorem MonoidAlgebra.nonUnitalAlgHom_ext'_iff E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Mul M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : MonoidAlgebra R M →ₙₐ[R] A},
  φ₁ = φ₂ ↔ φ₁.toMulHom.comp (MonoidAlgebra.ofMagma R M) = φ₂.toMulHom.comp (MonoidAlgebra.ofMagma R M)

def MonoidAlgebra.liftMagma E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : Semiring R] →
        [inst_1 : Mul M] →
          [inst_2 : NonUnitalNonAssocSemiring A] →
            [inst_3 : Module R A] →
              [IsScalarTower R A A] → [SMulCommClass R A A] → (M →ₙ* A) ≃ (MonoidAlgebra R M →ₙₐ[R] A)

The functor M ↦ R[M], from the category of magmas to the category of non-unital, non-associative algebras over R is adjoint to the forgetful functor in the other direction.

theorem MonoidAlgebra.liftMagma_apply_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Mul M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : Module R A] [inst_4 : IsScalarTower R A A]
  [inst_5 : SMulCommClass R A A] (f : M →ₙ* A) (a : MonoidAlgebra R M),
  ((MonoidAlgebra.liftMagma R) f) a =
    (↑((Finsupp.liftAddHom fun x ↦ (smulAddHom R A).flip (f x)).comp MonoidAlgebra.coeffAddEquiv.toAddMonoidHom)).toFun
      a

theorem MonoidAlgebra.liftMagma_symm_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Mul M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : Module R A] [inst_4 : IsScalarTower R A A]
  [inst_5 : SMulCommClass R A A] (F : MonoidAlgebra R M →ₙₐ[R] A),
  (MonoidAlgebra.liftMagma R).symm F = F.toMulHom.comp (MonoidAlgebra.ofMagma R M)

instance MonoidAlgebra.algebra E0 #

{R : Type u_1} →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [Algebra R A] → [inst_3 : Monoid M] → Algebra R (MonoidAlgebra A M)

The instance Algebra R A[M] whenever we have Algebra R A.

In particular this provides the instance Algebra R R[M].

instance AddMonoidAlgebra.algebra E0 #

{R : Type u_1} →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [Algebra R A] → [inst_3 : AddMonoid M] → Algebra R (AddMonoidAlgebra A M)

The instance Algebra R A[M] whenever we have Algebra R A.

In particular this provides the instance Algebra R R[M].

def MonoidAlgebra.singleOneAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [inst_2 : Algebra R A] → [inst_3 : Monoid M] → A →ₐ[R] MonoidAlgebra A M

MonoidAlgebra.single 1 as an AlgHom

def AddMonoidAlgebra.singleZeroAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [inst_2 : Algebra R A] → [inst_3 : AddMonoid M] → A →ₐ[R] AddMonoidAlgebra A M

AddMonoidAlgebra.single 0 as an AlgHom

theorem MonoidAlgebra.singleOneAlgHom_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (a : A), MonoidAlgebra.singleOneAlgHom a = MonoidAlgebra.single 1 a

theorem AddMonoidAlgebra.singleZeroAlgHom_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] (a : A), AddMonoidAlgebra.singleZeroAlgHom a = AddMonoidAlgebra.single 0 a

theorem MonoidAlgebra.coe_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M], ⇑(algebraMap R (MonoidAlgebra A M)) = MonoidAlgebra.single 1 ∘ ⇑(algebraMap R A)

theorem AddMonoidAlgebra.coe_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M], ⇑(algebraMap R (AddMonoidAlgebra A M)) = AddMonoidAlgebra.single 0 ∘ ⇑(algebraMap R A)

theorem MonoidAlgebra.single_eq_algebraMap_mul_of E1 #

∀ {R : Type u_1} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Monoid M] (m : M) (r : R),
  MonoidAlgebra.single m r = (algebraMap R (MonoidAlgebra R M)) r * (MonoidAlgebra.of R M) m

theorem MonoidAlgebra.single_algebraMap_eq_algebraMap_mul_of E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (m : M) (r : R),
  MonoidAlgebra.single m ((algebraMap R A) r) = (algebraMap R (MonoidAlgebra A M)) r * (MonoidAlgebra.of A M) m

instance MonoidAlgebra.isLocalHom_singleOneAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M], IsLocalHom MonoidAlgebra.singleOneAlgHom

instance AddMonoidAlgebra.isLocalHom_singleZeroAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M], IsLocalHom AddMonoidAlgebra.singleZeroAlgHom

instance MonoidAlgebra.isLocalHom_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [IsLocalHom (algebraMap R A)], IsLocalHom (algebraMap R (MonoidAlgebra A M))

instance AddMonoidAlgebra.isLocalHom_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] [IsLocalHom (algebraMap R A)], IsLocalHom (algebraMap R (AddMonoidAlgebra A M))

def MonoidAlgebra.uniqueAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Monoid M] → [Subsingleton M] → MonoidAlgebra A M ≃ₐ[R] A

The trivial monoid algebra is the base ring.

def AddMonoidAlgebra.uniqueAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : AddMonoid M] → [Subsingleton M] → AddMonoidAlgebra A M ≃ₐ[R] A

The trivial monoid algebra is the base ring.

theorem AddMonoidAlgebra.uniqueAlgEquiv_symm_apply E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] [inst_4 : Subsingleton M] (a : A),
  (AddMonoidAlgebra.uniqueAlgEquiv R M).symm a = AddMonoidAlgebra.single 0 a

theorem MonoidAlgebra.uniqueAlgEquiv_symm_apply E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : Subsingleton M] (a : A),
  (MonoidAlgebra.uniqueAlgEquiv R M).symm a = MonoidAlgebra.single 1 a

theorem AddMonoidAlgebra.coeff_uniqueAlgEquiv_symm E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] [inst_4 : Subsingleton M] (a : A) (m : M),
  ((AddMonoidAlgebra.uniqueAlgEquiv R M).symm a).coeff m = a

theorem MonoidAlgebra.coeff_uniqueAlgEquiv_symm E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : Subsingleton M] (a : A) (m : M), ((MonoidAlgebra.uniqueAlgEquiv R M).symm a).coeff m = a

theorem MonoidAlgebra.ringEquivOfClass_uniqueAlgEquiv E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : Unique M],
  RingEquiv.ofClass (MonoidAlgebra.uniqueAlgEquiv R M) = MonoidAlgebra.uniqueRingEquiv M

theorem AddMonoidAlgebra.ringEquivOfClass_uniqueAlgEquiv E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] [inst_4 : Unique M],
  RingEquiv.ofClass (AddMonoidAlgebra.uniqueAlgEquiv R M) = AddMonoidAlgebra.uniqueRingEquiv M

theorem AddMonoidAlgebra.ringEquivOfClass_symm_uniqueAlgEquiv E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] [inst_4 : Unique M],
  RingEquiv.ofClass (AddMonoidAlgebra.uniqueAlgEquiv R M).symm = (AddMonoidAlgebra.uniqueRingEquiv M).symm

theorem MonoidAlgebra.ringEquivOfClass_symm_uniqueAlgEquiv E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] [inst_4 : Unique M],
  RingEquiv.ofClass (MonoidAlgebra.uniqueAlgEquiv R M).symm = (MonoidAlgebra.uniqueRingEquiv M).symm

def MonoidAlgebra.curryAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Monoid M] →
                [inst_4 : Monoid N] → MonoidAlgebra A (M × N) ≃ₐ[R] MonoidAlgebra (MonoidAlgebra A N) M

A product monoid algebra is a nested monoid algebra.

def AddMonoidAlgebra.curryAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : AddMonoid M] →
                [inst_4 : AddMonoid N] → AddMonoidAlgebra A (M × N) ≃ₐ[R] AddMonoidAlgebra (AddMonoidAlgebra A N) M

A product monoid algebra is a nested monoid algebra.

theorem AddMonoidAlgebra.curryAlgEquiv_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (m : M) (n : N) (a : A),
  (AddMonoidAlgebra.curryAlgEquiv R) (AddMonoidAlgebra.single (m, n) a) =
    AddMonoidAlgebra.single m (AddMonoidAlgebra.single n a)

theorem MonoidAlgebra.curryAlgEquiv_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (m : M) (n : N) (a : A),
  (MonoidAlgebra.curryAlgEquiv R) (MonoidAlgebra.single (m, n) a) = MonoidAlgebra.single m (MonoidAlgebra.single n a)

theorem AddMonoidAlgebra.curryAlgEquiv_symm_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (m : M) (n : N) (a : A),
  (AddMonoidAlgebra.curryAlgEquiv R).symm (AddMonoidAlgebra.single m (AddMonoidAlgebra.single n a)) =
    AddMonoidAlgebra.single (m, n) a

theorem MonoidAlgebra.curryAlgEquiv_symm_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (m : M) (n : N) (a : A),
  (MonoidAlgebra.curryAlgEquiv R).symm (MonoidAlgebra.single m (MonoidAlgebra.single n a)) =
    MonoidAlgebra.single (m, n) a

def MonoidAlgebra.mapDomainNonUnitalAlgHom E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Mul M] → [inst_4 : Mul N] → (M →ₙ* N) → MonoidAlgebra A M →ₙₐ[R] MonoidAlgebra A N

If f : M → N is a homomorphism between two magmas, then MonoidAlgebra.mapDomain f is a non-unital algebra homomorphism between their magma algebras.

theorem AddMonoidAlgebra.mapDomainNonUnitalAlgHom_apply E0 #

∀ (R : Type u_1) (A : Type u_4) {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Add M] [inst_4 : Add N] (f : M →ₙ+ N) (a : AddMonoidAlgebra A M),
  (AddMonoidAlgebra.mapDomainNonUnitalAlgHom R A f) a = (AddMonoidAlgebra.mapDomainNonUnitalRingHom A f).toFun a

def AddMonoidAlgebra.mapDomainNonUnitalAlgHom E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Add M] → [inst_4 : Add N] → (M →ₙ+ N) → AddMonoidAlgebra A M →ₙₐ[R] AddMonoidAlgebra A N

If f : M → N is a homomorphism between two additive magmas, then AddMonoidAlgebra.mapDomain f is a non-unital algebra homomorphism between their additive magma algebras.

theorem MonoidAlgebra.mapDomainNonUnitalAlgHom_apply E0 #

∀ (R : Type u_1) (A : Type u_4) {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Mul M] [inst_4 : Mul N] (f : M →ₙ* N) (a : MonoidAlgebra A M),
  (MonoidAlgebra.mapDomainNonUnitalAlgHom R A f) a = (MonoidAlgebra.mapDomainNonUnitalRingHom A f).toFun a

theorem MonoidAlgebra.mapDomain_algebraMap E1 #

∀ {R : Type u_1} (A : Type u_4) {M : Type u_7} {N : Type u_8} {F : Type u_10} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] [inst_5 : FunLike F M N]
  [MonoidHomClass F M N] (f : F) (r : R),
  MonoidAlgebra.mapDomain (⇑f) ((algebraMap R (MonoidAlgebra A M)) r) = (algebraMap R (MonoidAlgebra A N)) r

theorem AddMonoidAlgebra.mapDomain_algebraMap E1 #

∀ {R : Type u_1} (A : Type u_4) {M : Type u_7} {N : Type u_8} {F : Type u_10} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] [inst_5 : FunLike F M N]
  [AddMonoidHomClass F M N] (f : F) (r : R),
  AddMonoidAlgebra.mapDomain (⇑f) ((algebraMap R (AddMonoidAlgebra A M)) r) = (algebraMap R (AddMonoidAlgebra A N)) r

def MonoidAlgebra.liftNCAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {B : Type u_5} →
      {M : Type u_7} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Algebra R A] →
                [inst_4 : Algebra R B] →
                  [inst_5 : Monoid M] →
                    (f : A →ₐ[R] B) →
                      (g : M →* B) → (∀ (x : A) (y : M), Commute (f x) (g y)) → MonoidAlgebra A M →ₐ[R] B

liftNCRingHom as an AlgHom, for when f is an AlgHom

theorem MonoidAlgebra.coe_liftNCAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (f : A →ₐ[R] B) (g : M →* B)
  (h_comm : ∀ (x : A) (y : M), Commute (f x) (g y)),
  ⇑(MonoidAlgebra.liftNCAlgHom f g h_comm) = ⇑(MonoidAlgebra.liftNC ↑f ⇑g)

theorem MonoidAlgebra.algHom_ext E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M]
  ⦃φ₁ φ₂ : MonoidAlgebra A M →ₐ[R] B⦄,
  (∀ (m : M), φ₁ (MonoidAlgebra.single m 1) = φ₂ (MonoidAlgebra.single m 1)) →
    φ₁.comp MonoidAlgebra.singleOneAlgHom = φ₂.comp MonoidAlgebra.singleOneAlgHom → φ₁ = φ₂

A R-algebra homomorphism from A[M] is uniquely defined by its values on the functions single m 1 and single 1 a.

See note [partially-applied ext lemmas]. Note that the first assumption isn't written as an equality of MonoidHoms because of doesn't additivise.

theorem AddMonoidAlgebra.algHom_ext E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M]
  ⦃φ₁ φ₂ : AddMonoidAlgebra A M →ₐ[R] B⦄,
  (∀ (m : M), φ₁ (AddMonoidAlgebra.single m 1) = φ₂ (AddMonoidAlgebra.single m 1)) →
    φ₁.comp AddMonoidAlgebra.singleZeroAlgHom = φ₂.comp AddMonoidAlgebra.singleZeroAlgHom → φ₁ = φ₂

A R-algebra homomorphism from A[M] is uniquely defined by its values on the functions single m 1 and single 1 a.

See note [partially-applied ext lemmas]. Note that the first assumption isn't written as an equality of AddMonoidHoms because of doesn't multiplicativise.

theorem AddMonoidAlgebra.algHom_ext_iff E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M]
  {φ₁ φ₂ : AddMonoidAlgebra A M →ₐ[R] B},
  φ₁ = φ₂ ↔
    (∀ (m : M), φ₁ (AddMonoidAlgebra.single m 1) = φ₂ (AddMonoidAlgebra.single m 1)) ∧
      φ₁.comp AddMonoidAlgebra.singleZeroAlgHom = φ₂.comp AddMonoidAlgebra.singleZeroAlgHom

theorem MonoidAlgebra.algHom_ext_iff E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M]
  {φ₁ φ₂ : MonoidAlgebra A M →ₐ[R] B},
  φ₁ = φ₂ ↔
    (∀ (m : M), φ₁ (MonoidAlgebra.single m 1) = φ₂ (MonoidAlgebra.single m 1)) ∧
      φ₁.comp MonoidAlgebra.singleOneAlgHom = φ₂.comp MonoidAlgebra.singleOneAlgHom

theorem MonoidAlgebra.algHom_ext' E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M]
  ⦃φ₁ φ₂ : MonoidAlgebra A M →ₐ[R] B⦄,
  (↑φ₁).comp (MonoidAlgebra.of A M) = (↑φ₂).comp (MonoidAlgebra.of A M) →
    φ₁.comp MonoidAlgebra.singleOneAlgHom = φ₂.comp MonoidAlgebra.singleOneAlgHom → φ₁ = φ₂

Version of algHom_ext where both assumptions are written as equalities of bundled homs.

def MonoidAlgebra.lift E1 #

(R : Type u_1) →
  (A : Type u_4) →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] → [inst_2 : Algebra R A] → [inst_3 : Monoid M] → (M →* A) ≃ (MonoidAlgebra R M →ₐ[R] A)

Any monoid homomorphism M →* A can be lifted to an algebra homomorphism R[M] →ₐ[R] A.

theorem MonoidAlgebra.lift_apply' E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : M →* A) (f : MonoidAlgebra R M),
  ((MonoidAlgebra.lift R A M) F) f = f.coeff.sum fun a b ↦ (algebraMap R A) b * F a

theorem MonoidAlgebra.lift_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : M →* A) (f : MonoidAlgebra R M),
  ((MonoidAlgebra.lift R A M) F) f = f.coeff.sum fun a b ↦ b • F a

theorem MonoidAlgebra.lift_def E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : M →* A), ⇑((MonoidAlgebra.lift R A M) F) = ⇑(MonoidAlgebra.liftNC ↑(algebraMap R A) ⇑F)

theorem MonoidAlgebra.lift_symm_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : MonoidAlgebra R M →ₐ[R] A) (m : M),
  ((MonoidAlgebra.lift R A M).symm F) m = F (MonoidAlgebra.single m 1)

theorem MonoidAlgebra.lift_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : M →* A) (a : M) (b : R), ((MonoidAlgebra.lift R A M) F) (MonoidAlgebra.single a b) = b • F a

theorem MonoidAlgebra.lift_of E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : M →* A) (m : M), ((MonoidAlgebra.lift R A M) F) ((MonoidAlgebra.of R M) m) = F m

theorem MonoidAlgebra.lift_unique' E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : MonoidAlgebra R M →ₐ[R] A), F = (MonoidAlgebra.lift R A M) ((↑F).comp (MonoidAlgebra.of R M))

theorem MonoidAlgebra.lift_unique E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (F : MonoidAlgebra R M →ₐ[R] A) (f : MonoidAlgebra R M),
  F f = f.coeff.sum fun a b ↦ b • F (MonoidAlgebra.single a 1)

Decomposition of a R-algebra homomorphism from R[M] by its values on F (single a 1).

theorem MonoidAlgebra.lift_mapRingHom_algebraMap E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : CommSemiring S] [inst_5 : Algebra S A] [inst_6 : Algebra R S]
  [IsScalarTower R S A] (f : M →* A) (x : MonoidAlgebra R M),
  ((MonoidAlgebra.lift S A M) f) ((MonoidAlgebra.mapRingHom M (algebraMap R S)) x) = ((MonoidAlgebra.lift R A M) f) x

def MonoidAlgebra.mapDomainAlgHom E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Monoid M] → [inst_4 : Monoid N] → (M →* N) → MonoidAlgebra A M →ₐ[R] MonoidAlgebra A N

If f : M → N is a monoid homomorphism, then MonoidAlgebra.mapDomain f is an algebra homomorphism between their monoid algebras.

theorem AddMonoidAlgebra.mapDomainAlgHom_apply E0 #

∀ (R : Type u_1) (A : Type u_4) {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (f : M →+ N) (x : AddMonoidAlgebra A M),
  (AddMonoidAlgebra.mapDomainAlgHom R A f) x = AddMonoidAlgebra.mapDomain (⇑f) x

def AddMonoidAlgebra.mapDomainAlgHom E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : AddMonoid M] →
                [inst_4 : AddMonoid N] → (M →+ N) → AddMonoidAlgebra A M →ₐ[R] AddMonoidAlgebra A N

If f : M → N is an additive monoid homomorphism, then MonoidAlgebra.mapDomain f is an algebra homomorphism between their additive monoid algebras.

theorem MonoidAlgebra.mapDomainAlgHom_apply E0 #

∀ (R : Type u_1) (A : Type u_4) {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (f : M →* N) (x : MonoidAlgebra A M),
  (MonoidAlgebra.mapDomainAlgHom R A f) x = MonoidAlgebra.mapDomain (⇑f) x

theorem AddMonoidAlgebra.mapDomainAlgHom_id E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M], AddMonoidAlgebra.mapDomainAlgHom R A (AddMonoidHom.id M) = AlgHom.id R (AddMonoidAlgebra A M)

theorem MonoidAlgebra.mapDomainAlgHom_id E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M], MonoidAlgebra.mapDomainAlgHom R A (MonoidHom.id M) = AlgHom.id R (MonoidAlgebra A M)

theorem MonoidAlgebra.mapDomainAlgHom_comp E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} {O : Type u_9} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] [inst_5 : Monoid O] (f : M →* N)
  (g : N →* O),
  MonoidAlgebra.mapDomainAlgHom R A (g.comp f) =
    (MonoidAlgebra.mapDomainAlgHom R A g).comp (MonoidAlgebra.mapDomainAlgHom R A f)

theorem AddMonoidAlgebra.mapDomainAlgHom_comp E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} {O : Type u_9} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] [inst_5 : AddMonoid O]
  (f : M →+ N) (g : N →+ O),
  AddMonoidAlgebra.mapDomainAlgHom R A (g.comp f) =
    (AddMonoidAlgebra.mapDomainAlgHom R A g).comp (AddMonoidAlgebra.mapDomainAlgHom R A f)

def MonoidAlgebra.domCongr E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Monoid M] → [inst_4 : Monoid N] → M ≃* N → MonoidAlgebra A M ≃ₐ[R] MonoidAlgebra A N

If e : M ≃* N is a multiplicative equivalence between two monoids, then MonoidAlgebra.domCongr e is an algebra equivalence between their monoid algebras.

def AddMonoidAlgebra.domCongr E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : AddMonoid M] → [inst_4 : AddMonoid N] → M ≃+ N → AddMonoidAlgebra A M ≃ₐ[R] AddMonoidAlgebra A N

If e : M ≃+ N is an additive equivalence between two additive monoids, then AddMonoidAlgebra.domCongr e is an algebra equivalence between their additive monoid algebras.

theorem AddMonoidAlgebra.coeff_domCongr E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N) (f : AddMonoidAlgebra A M) (n : N),
  ((AddMonoidAlgebra.domCongr R A e) f).coeff n = f.coeff (e.symm n)

theorem MonoidAlgebra.coeff_domCongr E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N) (f : MonoidAlgebra A M) (n : N),
  ((MonoidAlgebra.domCongr R A e) f).coeff n = f.coeff (e.symm n)

theorem AddMonoidAlgebra.domCongr_toAlgHom E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N),
  ↑(AddMonoidAlgebra.domCongr R A e) = AddMonoidAlgebra.mapDomainAlgHom R A ↑e

theorem MonoidAlgebra.domCongr_toAlgHom E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N),
  ↑(MonoidAlgebra.domCongr R A e) = MonoidAlgebra.mapDomainAlgHom R A ↑e

theorem AddMonoidAlgebra.domCongr_support E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N) (x : AddMonoidAlgebra A M),
  ((AddMonoidAlgebra.domCongr R A e) x).coeff.support = Finset.map (↑e).toEmbedding x.coeff.support

theorem MonoidAlgebra.domCongr_support E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N) (x : MonoidAlgebra A M),
  ((MonoidAlgebra.domCongr R A e) x).coeff.support = Finset.map (↑e).toEmbedding x.coeff.support

theorem MonoidAlgebra.domCongr_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N) (m : M) (a : A),
  (MonoidAlgebra.domCongr R A e) (MonoidAlgebra.single m a) = MonoidAlgebra.single (e m) a

theorem AddMonoidAlgebra.domCongr_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N) (m : M) (a : A),
  (AddMonoidAlgebra.domCongr R A e) (AddMonoidAlgebra.single m a) = AddMonoidAlgebra.single (e m) a

theorem AddMonoidAlgebra.domCongr_comp_lsingle E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N) (m : M),
  (AddMonoidAlgebra.domCongr R A e).toLinearMap ∘ₗ AddMonoidAlgebra.lsingle m = AddMonoidAlgebra.lsingle (e m)

theorem MonoidAlgebra.domCongr_comp_lsingle E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N) (m : M),
  (MonoidAlgebra.domCongr R A e).toLinearMap ∘ₗ MonoidAlgebra.lsingle m = MonoidAlgebra.lsingle (e m)

theorem AddMonoidAlgebra.domCongr_refl E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M], AddMonoidAlgebra.domCongr R A (AddEquiv.refl M) = AlgEquiv.refl

theorem MonoidAlgebra.domCongr_refl E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M], MonoidAlgebra.domCongr R A (MulEquiv.refl M) = AlgEquiv.refl

theorem MonoidAlgebra.domCongr_symm E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (e : M ≃* N),
  (MonoidAlgebra.domCongr R A e).symm = MonoidAlgebra.domCongr R A e.symm

theorem AddMonoidAlgebra.domCongr_symm E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (e : M ≃+ N),
  (AddMonoidAlgebra.domCongr R A e).symm = AddMonoidAlgebra.domCongr R A e.symm

theorem AddMonoidAlgebra.trans_domCongr_domCongr E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} {O : Type u_9} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] [inst_5 : AddMonoid O]
  (e : M ≃+ N) (f : N ≃+ O),
  (AddMonoidAlgebra.domCongr R A e).trans (AddMonoidAlgebra.domCongr R A f) = AddMonoidAlgebra.domCongr R A (e.trans f)

theorem MonoidAlgebra.trans_domCongr_domCongr E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} {O : Type u_9} [inst : CommSemiring R]
  [inst_1 : Semiring A] [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] [inst_5 : Monoid O] (e : M ≃* N)
  (f : N ≃* O),
  (MonoidAlgebra.domCongr R A e).trans (MonoidAlgebra.domCongr R A f) = MonoidAlgebra.domCongr R A (e.trans f)

def MonoidAlgebra.domCongrAut E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Monoid M] → MulAut M →* MonoidAlgebra A M ≃ₐ[R] MonoidAlgebra A M

MonoidAlgebra.domCongr as a MonoidHom from MulAut.

theorem MonoidAlgebra.domCongrAut_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (e : M ≃* M), MonoidAlgebra.domCongrAut e = MonoidAlgebra.domCongr R A e

def MonoidAlgebra.commAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Monoid M] →
                [inst_4 : Monoid N] → MonoidAlgebra (MonoidAlgebra A M) N ≃ₐ[R] MonoidAlgebra (MonoidAlgebra A N) M

Nested monoid algebras can be taken in an arbitrary order.

def AddMonoidAlgebra.commAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      {N : Type u_8} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : AddMonoid M] →
                [inst_4 : AddMonoid N] →
                  AddMonoidAlgebra (AddMonoidAlgebra A M) N ≃ₐ[R] AddMonoidAlgebra (AddMonoidAlgebra A N) M

Nested monoid algebras can be taken in an arbitrary order.

theorem AddMonoidAlgebra.symm_commAlgEquiv E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N],
  (AddMonoidAlgebra.commAlgEquiv R).symm = AddMonoidAlgebra.commAlgEquiv R

theorem MonoidAlgebra.symm_commAlgEquiv E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N],
  (MonoidAlgebra.commAlgEquiv R).symm = MonoidAlgebra.commAlgEquiv R

theorem AddMonoidAlgebra.commAlgEquiv_single_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (m : M) (n : N) (a : A),
  (AddMonoidAlgebra.commAlgEquiv R) (AddMonoidAlgebra.single m (AddMonoidAlgebra.single n a)) =
    AddMonoidAlgebra.single n (AddMonoidAlgebra.single m a)

theorem MonoidAlgebra.commAlgEquiv_single_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (m : M) (n : N) (a : A),
  (MonoidAlgebra.commAlgEquiv R) (MonoidAlgebra.single m (MonoidAlgebra.single n a)) =
    MonoidAlgebra.single n (MonoidAlgebra.single m a)

theorem MonoidAlgebra.commAlgEquiv_single_one E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (m : M),
  (MonoidAlgebra.commAlgEquiv R) (MonoidAlgebra.single m 1) = MonoidAlgebra.single 1 (MonoidAlgebra.single m 1)

theorem AddMonoidAlgebra.commAlgEquiv_single_zero E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (m : M),
  (AddMonoidAlgebra.commAlgEquiv R) (AddMonoidAlgebra.single m 1) =
    AddMonoidAlgebra.single 0 (AddMonoidAlgebra.single m 1)

theorem AddMonoidAlgebra.commAlgEquiv_single_zero_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (m : M),
  (AddMonoidAlgebra.commAlgEquiv R) (AddMonoidAlgebra.single 0 (AddMonoidAlgebra.single m 1)) =
    AddMonoidAlgebra.single m 1

theorem MonoidAlgebra.commAlgEquiv_single_one_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (m : M),
  (MonoidAlgebra.commAlgEquiv R) (MonoidAlgebra.single 1 (MonoidAlgebra.single m 1)) = MonoidAlgebra.single m 1

theorem AddMonoidAlgebra.mapDomainRingHom_comp_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : AddMonoid M] [inst_4 : AddMonoid N] (f : M →+ N),
  (AddMonoidAlgebra.mapDomainRingHom A f).comp (algebraMap R (AddMonoidAlgebra A M)) =
    algebraMap R (AddMonoidAlgebra A N)

theorem MonoidAlgebra.mapDomainRingHom_comp_algebraMap E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} {N : Type u_8} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Monoid M] [inst_4 : Monoid N] (f : M →* N),
  (MonoidAlgebra.mapDomainRingHom A f).comp (algebraMap R (MonoidAlgebra A M)) = algebraMap R (MonoidAlgebra A N)

theorem AddMonoidAlgebra.mapRingHom_comp_algebraMap E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : AddMonoid M]
  (f : R →+* S),
  (AddMonoidAlgebra.mapRingHom M f).comp (algebraMap R (AddMonoidAlgebra R M)) =
    (algebraMap S (AddMonoidAlgebra S M)).comp f

theorem MonoidAlgebra.mapRingHom_comp_algebraMap E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Monoid M]
  (f : R →+* S),
  (MonoidAlgebra.mapRingHom M f).comp (algebraMap R (MonoidAlgebra R M)) = (algebraMap S (MonoidAlgebra S M)).comp f

def MonoidAlgebra.mapAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {B : Type u_5} →
      (M : Type u_7) →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Algebra R A] →
                [inst_4 : Algebra R B] → [inst_5 : Monoid M] → (A →ₐ[R] B) → MonoidAlgebra A M →ₐ[R] MonoidAlgebra B M

The algebra homomorphism of monoid algebras induced by a homomorphism of the base algebras.

def AddMonoidAlgebra.mapAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {B : Type u_5} →
      (M : Type u_7) →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Algebra R A] →
                [inst_4 : Algebra R B] →
                  [inst_5 : AddMonoid M] → (A →ₐ[R] B) → AddMonoidAlgebra A M →ₐ[R] AddMonoidAlgebra B M

The algebra homomorphism of additive monoid algebras induced by a homomorphism of the base algebras.

theorem AddMonoidAlgebra.toRingHom_mapAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M] (f : A →ₐ[R] B),
  ↑(AddMonoidAlgebra.mapAlgHom M f) = AddMonoidAlgebra.mapRingHom M f.toRingHom

theorem MonoidAlgebra.toRingHom_mapAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (f : A →ₐ[R] B),
  ↑(MonoidAlgebra.mapAlgHom M f) = MonoidAlgebra.mapRingHom M f.toRingHom

theorem AddMonoidAlgebra.coeff_mapAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M] (f : A →ₐ[R] B)
  (x : AddMonoidAlgebra A M) (m : M), ((AddMonoidAlgebra.mapAlgHom M f) x).coeff m = f (x.coeff m)

theorem MonoidAlgebra.coeff_mapAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (f : A →ₐ[R] B)
  (x : MonoidAlgebra A M) (m : M), ((MonoidAlgebra.mapAlgHom M f) x).coeff m = f (x.coeff m)

theorem AddMonoidAlgebra.mapAlgHom_single E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M] (f : A →ₐ[R] B) (m : M)
  (a : A), (AddMonoidAlgebra.mapAlgHom M f) (AddMonoidAlgebra.single m a) = AddMonoidAlgebra.single m (f a)

theorem MonoidAlgebra.mapAlgHom_single E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (f : A →ₐ[R] B) (m : M)
  (a : A), (MonoidAlgebra.mapAlgHom M f) (MonoidAlgebra.single m a) = MonoidAlgebra.single m (f a)

theorem AddMonoidAlgebra.mapAlgHom_id E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M], AddMonoidAlgebra.mapAlgHom M (AlgHom.id R A) = AlgHom.id R (AddMonoidAlgebra A M)

theorem MonoidAlgebra.mapAlgHom_id E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M], MonoidAlgebra.mapAlgHom M (AlgHom.id R A) = AlgHom.id R (MonoidAlgebra A M)

theorem MonoidAlgebra.mapRangeAlgHom_comp E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {C : Type u_6} {M : Type u_7} [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] [inst_7 : Monoid M] (f : A →ₐ[R] B) (g : B →ₐ[R] C),
  MonoidAlgebra.mapAlgHom M (g.comp f) = (MonoidAlgebra.mapAlgHom M g).comp (MonoidAlgebra.mapAlgHom M f)

theorem AddMonoidAlgebra.mapRangeAlgHom_comp E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {C : Type u_6} {M : Type u_7} [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] [inst_7 : AddMonoid M] (f : A →ₐ[R] B) (g : B →ₐ[R] C),
  AddMonoidAlgebra.mapAlgHom M (g.comp f) = (AddMonoidAlgebra.mapAlgHom M g).comp (AddMonoidAlgebra.mapAlgHom M f)

def MonoidAlgebra.mapAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {B : Type u_5} →
      (M : Type u_7) →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Algebra R A] →
                [inst_4 : Algebra R B] → [inst_5 : Monoid M] → (A ≃ₐ[R] B) → MonoidAlgebra A M ≃ₐ[R] MonoidAlgebra B M

The algebra isomorphism of monoid algebras induced by an isomorphism of the base algebras.

theorem MonoidAlgebra.mapAlgEquiv_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {B : Type u_5} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (e : A ≃ₐ[R] B)
  (a : MonoidAlgebra A M), (MonoidAlgebra.mapAlgEquiv R M e) a = (↑↑(MonoidAlgebra.mapAlgHom M ↑e).toRingHom).toFun a

def AddMonoidAlgebra.mapAlgEquiv E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {B : Type u_5} →
      (M : Type u_7) →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Semiring B] →
              [inst_3 : Algebra R A] →
                [inst_4 : Algebra R B] →
                  [inst_5 : AddMonoid M] → (A ≃ₐ[R] B) → AddMonoidAlgebra A M ≃ₐ[R] AddMonoidAlgebra B M

The algebra isomorphism of additive monoid algebras induced by an isomorphism of the base algebras.

theorem AddMonoidAlgebra.mapAlgEquiv_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {B : Type u_5} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M] (e : A ≃ₐ[R] B)
  (a : AddMonoidAlgebra A M),
  (AddMonoidAlgebra.mapAlgEquiv R M e) a = (↑↑(AddMonoidAlgebra.mapAlgHom M ↑e).toRingHom).toFun a

theorem MonoidAlgebra.symm_mapAlgEquiv E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : Monoid M] (e : A ≃ₐ[R] B),
  (MonoidAlgebra.mapAlgEquiv R M e).symm = MonoidAlgebra.mapAlgEquiv R M e.symm

theorem AddMonoidAlgebra.symm_mapAlgEquiv E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Semiring B] [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : AddMonoid M] (e : A ≃ₐ[R] B),
  (AddMonoidAlgebra.mapAlgEquiv R M e).symm = AddMonoidAlgebra.mapAlgEquiv R M e.symm

theorem AddMonoidAlgebra.mapAlgEquiv_trans E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {C : Type u_6} {M : Type u_7} [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] [inst_7 : AddMonoid M] (e₁ : A ≃ₐ[R] B) (e₂ : B ≃ₐ[R] C),
  AddMonoidAlgebra.mapAlgEquiv R M (e₁.trans e₂) =
    (AddMonoidAlgebra.mapAlgEquiv R M e₁).trans (AddMonoidAlgebra.mapAlgEquiv R M e₂)

theorem MonoidAlgebra.mapAlgEquiv_trans E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {C : Type u_6} {M : Type u_7} [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] [inst_7 : Monoid M] (e₁ : A ≃ₐ[R] B) (e₂ : B ≃ₐ[R] C),
  MonoidAlgebra.mapAlgEquiv R M (e₁.trans e₂) =
    (MonoidAlgebra.mapAlgEquiv R M e₁).trans (MonoidAlgebra.mapAlgEquiv R M e₂)

def MonoidAlgebra.mapRangeAlgAut E1 #

(R : Type u_1) →
  {A : Type u_4} →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Monoid M] → (A ≃ₐ[R] A) →* MonoidAlgebra A M ≃ₐ[R] MonoidAlgebra A M

MonoidAlgebra.mapRangeAlgEquiv as a MonoidHom from A ≃ₐ[R] A.

theorem MonoidAlgebra.mapRangeAlgAut_apply E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (f : A ≃ₐ[R] A), (MonoidAlgebra.mapRangeAlgAut R M) f = MonoidAlgebra.mapAlgEquiv R M f

def MonoidAlgebra.GroupSMul.linearMap E1 #

(R : Type u_1) →
  {M : Type u_7} →
    [inst : Monoid M] →
      [inst_1 : CommSemiring R] →
        (V : Type u_10) →
          [inst_2 : AddCommMonoid V] →
            [inst_3 : Module R V] →
              [inst_4 : Module (MonoidAlgebra R M) V] → [IsScalarTower R (MonoidAlgebra R M) V] → M → V →ₗ[R] V

When V is a R[M]-module, multiplication by a group element g is a R-linear map.

theorem MonoidAlgebra.GroupSMul.linearMap_apply E0 #

∀ (R : Type u_1) {M : Type u_7} [inst : Monoid M] [inst_1 : CommSemiring R] (V : Type u_10) [inst_2 : AddCommMonoid V]
  [inst_3 : Module R V] [inst_4 : Module (MonoidAlgebra R M) V] [inst_5 : IsScalarTower R (MonoidAlgebra R M) V] (g : M)
  (v : V), (MonoidAlgebra.GroupSMul.linearMap R V g) v = MonoidAlgebra.single g 1 • v

def MonoidAlgebra.equivariantOfLinearOfComm E1 #

{R : Type u_1} →
  {M : Type u_7} →
    [inst : Monoid M] →
      [inst_1 : CommSemiring R] →
        {V : Type u_10} →
          {W : Type u_11} →
            [inst_2 : AddCommMonoid V] →
              [inst_3 : Module R V] →
                [inst_4 : Module (MonoidAlgebra R M) V] →
                  [IsScalarTower R (MonoidAlgebra R M) V] →
                    [inst_6 : AddCommMonoid W] →
                      [inst_7 : Module R W] →
                        [inst_8 : Module (MonoidAlgebra R M) W] →
                          [IsScalarTower R (MonoidAlgebra R M) W] →
                            (f : V →ₗ[R] W) →
                              (∀ (g : M) (v : V), f (MonoidAlgebra.single g 1 • v) = MonoidAlgebra.single g 1 • f v) →
                                V →ₗ[MonoidAlgebra R M] W

Build a R[M]-linear map from a R-linear map and evidence that it is M-equivariant.

theorem MonoidAlgebra.equivariantOfLinearOfComm_apply E0 #

∀ {R : Type u_1} {M : Type u_7} [inst : Monoid M] [inst_1 : CommSemiring R] {V : Type u_10} {W : Type u_11}
  [inst_2 : AddCommMonoid V] [inst_3 : Module R V] [inst_4 : Module (MonoidAlgebra R M) V]
  [inst_5 : IsScalarTower R (MonoidAlgebra R M) V] [inst_6 : AddCommMonoid W] [inst_7 : Module R W]
  [inst_8 : Module (MonoidAlgebra R M) W] [inst_9 : IsScalarTower R (MonoidAlgebra R M) W] (f : V →ₗ[R] W)
  (h : ∀ (g : M) (v : V), f (MonoidAlgebra.single g 1 • v) = MonoidAlgebra.single g 1 • f v) (v : V),
  (MonoidAlgebra.equivariantOfLinearOfComm f h) v = f v

abbrev MonoidAlgebra.algebraMonoidAlgebra E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_7} →
      [inst : CommMonoid M] →
        [inst_1 : CommSemiring R] →
          [inst_2 : CommSemiring S] → [Algebra R S] → Algebra (MonoidAlgebra R M) (MonoidAlgebra S M)

If S is an R-algebra, then S[M] is a R[M] algebra.

Warning: This produces a diamond for Algebra R[M] S[M][M] and another one for Algebra R[M] R[M]. That's why it is not a global instance.

abbrev AddMonoidAlgebra.algebraAddMonoidAlgebra E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_7} →
      [inst : AddCommMonoid M] →
        [inst_1 : CommSemiring R] →
          [inst_2 : CommSemiring S] → [Algebra R S] → Algebra (AddMonoidAlgebra R M) (AddMonoidAlgebra S M)

If S is an R-algebra, then S[M] is an R[M]-algebra.

Warning: This produces a diamond for Algebra R[M] S[M][M] and another one for Algebra R[M] R[M]. That's why it is not a global instance.

theorem AddMonoidAlgebra.algebraMap_def E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_7} [inst : AddCommMonoid M] [inst_1 : CommSemiring R]
  [inst_2 : CommSemiring S] [inst_3 : Algebra R S],
  algebraMap (AddMonoidAlgebra R M) (AddMonoidAlgebra S M) = AddMonoidAlgebra.mapRingHom M (algebraMap R S)

theorem MonoidAlgebra.algebraMap_def E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_7} [inst : CommMonoid M] [inst_1 : CommSemiring R] [inst_2 : CommSemiring S]
  [inst_3 : Algebra R S],
  algebraMap (MonoidAlgebra R M) (MonoidAlgebra S M) = MonoidAlgebra.mapRingHom M (algebraMap R S)

theorem MonoidAlgebra.isScalarTower_monoidAlgebra E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} {M : Type u_7} [inst : CommMonoid M] [inst_1 : CommSemiring R]
  [inst_2 : CommSemiring S] [inst_3 : Algebra R S] [inst_4 : CommSemiring T] [inst_5 : Algebra R T]
  [inst_6 : Algebra S T] [IsScalarTower R S T], IsScalarTower R (MonoidAlgebra S M) (MonoidAlgebra T M)

theorem AddMonoidAlgebra.vaddAssocClass_addMonoidAlgebra E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} {M : Type u_7} [inst : AddCommMonoid M] [inst_1 : CommSemiring R]
  [inst_2 : CommSemiring S] [inst_3 : Algebra R S] [inst_4 : CommSemiring T] [inst_5 : Algebra R T]
  [inst_6 : Algebra S T] [IsScalarTower R S T], IsScalarTower R (AddMonoidAlgebra S M) (AddMonoidAlgebra T M)

theorem AddMonoidAlgebra.nonUnitalAlgHom_ext' E1 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Add M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : AddMonoidAlgebra R M →ₙₐ[R] A},
  φ₁.toMulHom.comp (AddMonoidAlgebra.ofMagma R M) = φ₂.toMulHom.comp (AddMonoidAlgebra.ofMagma R M) → φ₁ = φ₂

See note [partially-applied ext lemmas].

theorem AddMonoidAlgebra.nonUnitalAlgHom_ext'_iff E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Add M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : DistribMulAction R A] {φ₁ φ₂ : AddMonoidAlgebra R M →ₙₐ[R] A},
  φ₁ = φ₂ ↔ φ₁.toMulHom.comp (AddMonoidAlgebra.ofMagma R M) = φ₂.toMulHom.comp (AddMonoidAlgebra.ofMagma R M)

def AddMonoidAlgebra.liftMagma E1 #

(R : Type u_1) →
  {A : Type u_4} →
    {M : Type u_7} →
      [inst : Semiring R] →
        [inst_1 : Add M] →
          [inst_2 : NonUnitalNonAssocSemiring A] →
            [inst_3 : Module R A] →
              [IsScalarTower R A A] → [SMulCommClass R A A] → (Multiplicative M →ₙ* A) ≃ (AddMonoidAlgebra R M →ₙₐ[R] A)

The functor M ↦ R[M], from the category of magmas to the category of non-unital, non-associative algebras over R is adjoint to the forgetful functor in the other direction.

theorem AddMonoidAlgebra.liftMagma_apply_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Add M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : Module R A] [inst_4 : IsScalarTower R A A]
  [inst_5 : SMulCommClass R A A] (f : Multiplicative M →ₙ* A) (a : AddMonoidAlgebra R M),
  ((AddMonoidAlgebra.liftMagma R) f) a =
    (↑((Finsupp.liftAddHom fun x ↦ (smulAddHom R A).flip (f (Multiplicative.ofAdd x))).comp
            AddMonoidAlgebra.coeffAddEquiv.toAddMonoidHom)).toFun
      a

theorem AddMonoidAlgebra.liftMagma_symm_apply E0 #

∀ (R : Type u_1) {A : Type u_4} {M : Type u_7} [inst : Semiring R] [inst_1 : Add M]
  [inst_2 : NonUnitalNonAssocSemiring A] [inst_3 : Module R A] [inst_4 : IsScalarTower R A A]
  [inst_5 : SMulCommClass R A A] (F : AddMonoidAlgebra R M →ₙₐ[R] A),
  (AddMonoidAlgebra.liftMagma R).symm F = F.toMulHom.comp (AddMonoidAlgebra.ofMagma R M)

def AddMonoidAlgebra.liftNCAlgHom E1 #

{R : Type u_1} →
  {A : Type u_4} →
    {B : Type u_5} →
      {M : Type u_7} →
        [inst : CommSemiring R] →
          [inst_1 : AddMonoid M] →
            [inst_2 : Semiring A] →
              [inst_3 : Algebra R A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Algebra R B] →
                    (f : A →ₐ[R] B) →
                      (g : Multiplicative M →* B) →
                        (∀ (x : A) (y : Multiplicative M), Commute (f x) (g y)) → AddMonoidAlgebra A M →ₐ[R] B

liftNCRingHom as an AlgHom, for when f is an AlgHom

theorem AddMonoidAlgebra.coe_liftNCAlgHom E0 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : Semiring A] [inst_3 : Algebra R A] [inst_4 : Semiring B] [inst_5 : Algebra R B] (f : A →ₐ[R] B)
  (g : Multiplicative M →* B) (h_comm : ∀ (x : A) (y : Multiplicative M), Commute (f x) (g y)),
  ⇑(AddMonoidAlgebra.liftNCAlgHom f g h_comm) = ⇑(AddMonoidAlgebra.liftNC ↑f ⇑g)

theorem AddMonoidAlgebra.algHom_ext' E1 #

∀ {R : Type u_1} {A : Type u_4} {B : Type u_5} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : Semiring A] [inst_3 : Algebra R A] [inst_4 : Semiring B] [inst_5 : Algebra R B]
  ⦃φ₁ φ₂ : AddMonoidAlgebra A M →ₐ[R] B⦄,
  (↑φ₁).comp (AddMonoidAlgebra.of A M) = (↑φ₂).comp (AddMonoidAlgebra.of A M) →
    φ₁.comp AddMonoidAlgebra.singleZeroAlgHom = φ₂.comp AddMonoidAlgebra.singleZeroAlgHom → φ₁ = φ₂

Version of algHom_ext where both assumptions are written as equalities of bundled homs.

def AddMonoidAlgebra.lift E1 #

(R : Type u_1) →
  (A : Type u_4) →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : AddMonoid M] →
          [inst_2 : Semiring A] → [inst_3 : Algebra R A] → (Multiplicative M →* A) ≃ (AddMonoidAlgebra R M →ₐ[R] A)

Any monoid homomorphism M →* A can be lifted to an algebra homomorphism R[M] →ₐ[R] A.

theorem AddMonoidAlgebra.lift_apply' E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A) (f : AddMonoidAlgebra R M),
  ((AddMonoidAlgebra.lift R A M) F) f = f.coeff.sum fun a b ↦ (algebraMap R A) b * F (Multiplicative.ofAdd a)

theorem AddMonoidAlgebra.lift_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A) (f : AddMonoidAlgebra R M),
  ((AddMonoidAlgebra.lift R A M) F) f = f.coeff.sum fun a b ↦ b • F (Multiplicative.ofAdd a)

theorem AddMonoidAlgebra.lift_def E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A),
  ⇑((AddMonoidAlgebra.lift R A M) F) = ⇑(AddMonoidAlgebra.liftNC ↑(algebraMap R A) ⇑F)

theorem AddMonoidAlgebra.lift_symm_apply E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : AddMonoidAlgebra R M →ₐ[R] A) (x : Multiplicative M),
  ((AddMonoidAlgebra.lift R A M).symm F) x = F (AddMonoidAlgebra.single (Multiplicative.toAdd x) 1)

theorem AddMonoidAlgebra.lift_of E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A) (x : Multiplicative M),
  ((AddMonoidAlgebra.lift R A M) F) ((AddMonoidAlgebra.of R M) x) = F x

theorem AddMonoidAlgebra.lift_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A) (a : M) (b : R),
  ((AddMonoidAlgebra.lift R A M) F) (AddMonoidAlgebra.single a b) = b • F (Multiplicative.ofAdd a)

theorem AddMonoidAlgebra.lift_of' E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : Multiplicative M →* A) (x : M),
  ((AddMonoidAlgebra.lift R A M) F) (AddMonoidAlgebra.of' R M x) = F (Multiplicative.ofAdd x)

theorem AddMonoidAlgebra.lift_unique' E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : AddMonoidAlgebra R M →ₐ[R] A),
  F = (AddMonoidAlgebra.lift R A M) ((↑F).comp (AddMonoidAlgebra.of R M))

theorem AddMonoidAlgebra.lift_unique E1 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (F : AddMonoidAlgebra R M →ₐ[R] A) (f : AddMonoidAlgebra R M),
  F f = f.coeff.sum fun m r ↦ r • F (AddMonoidAlgebra.single m 1)

Decomposition of a R-algebra homomorphism from R[M] by its values on F (single a 1).

theorem AddMonoidAlgebra.lift_mapRingHom_algebraMap E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : Semiring A] [inst_3 : Algebra R A] [inst_4 : CommSemiring S] [inst_5 : Algebra S A] [inst_6 : Algebra R S]
  [IsScalarTower R S A] (f : Multiplicative M →* A) (x : AddMonoidAlgebra R M),
  ((AddMonoidAlgebra.lift S A M) f) ((AddMonoidAlgebra.mapRingHom M (algebraMap R S)) x) =
    ((AddMonoidAlgebra.lift R A M) f) x

def AddMonoidAlgebra.domCongrAut E1 #

(R : Type u_1) →
  (A : Type u_4) →
    {M : Type u_7} →
      [inst : CommSemiring R] →
        [inst_1 : AddMonoid M] →
          [inst_2 : Semiring A] →
            [inst_3 : Algebra R A] → AddAut M →+ Additive (AddMonoidAlgebra A M ≃ₐ[R] AddMonoidAlgebra A M)

AddMonoidAlgebra.domCongr as an AddMonoidHom from AddAut.

theorem AddMonoidAlgebra.domCongrAut_apply E0 #

∀ (R : Type u_1) (A : Type u_4) {M : Type u_7} [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (f : AddAut M),
  (AddMonoidAlgebra.domCongrAut R A) f = Additive.ofMul (AddMonoidAlgebra.domCongr R A f)

def AddMonoidAlgebra.comapDomAlgAut E1 #

(R : Type u_1) →
  (M : Type u_7) →
    (G : Type u_10) →
      [inst : Group G] →
        [inst_1 : AddMonoid M] →
          [DistribMulAction G M] → [inst_3 : CommSemiring R] → G →* AddMonoidAlgebra R M ≃ₐ[R] AddMonoidAlgebra R M

An action of G on M by additive automorphisms induces an action of G on R[M] by R-algebra automorphisms, through the exponents.

theorem AddMonoidAlgebra.comapDomAlgAut_apply E0 #

∀ {R : Type u_1} {M : Type u_7} {G : Type u_10} [inst : Group G] [inst_1 : AddMonoid M] [inst_2 : DistribMulAction G M]
  [inst_3 : CommSemiring R] (g : G),
  (AddMonoidAlgebra.comapDomAlgAut R M G) g = AddMonoidAlgebra.domCongr R R (DistribMulAction.toAddEquiv M g)

def AddMonoidAlgebra.comapMulSemiringAction E1 #

{R : Type u_1} →
  {M : Type u_7} →
    {G : Type u_10} →
      [inst : Group G] →
        [inst_1 : AddMonoid M] →
          [DistribMulAction G M] → [inst_3 : CommSemiring R] → MulSemiringAction G (AddMonoidAlgebra R M)

The action of G on R[M] through the exponents, (g • x).coeff m = x.coeff (g⁻¹ • m).

This is not an instance: for M = R it would conflict with actions on the coefficients.

theorem AddMonoidAlgebra.comapSMul_def E0 #

∀ {R : Type u_1} {M : Type u_7} {G : Type u_10} [inst : Group G] [inst_1 : AddMonoid M] [inst_2 : DistribMulAction G M]
  [inst_3 : CommSemiring R] (g : G) (x : AddMonoidAlgebra R M), g • x = ((AddMonoidAlgebra.comapDomAlgAut R M G) g) x

theorem AddMonoidAlgebra.coeff_comapSMul E0 #

∀ {R : Type u_1} {M : Type u_7} {G : Type u_10} [inst : Group G] [inst_1 : AddMonoid M] [inst_2 : DistribMulAction G M]
  [inst_3 : CommSemiring R] (g : G) (x : AddMonoidAlgebra R M) (m : M), (g • x).coeff m = x.coeff (g⁻¹ • m)

theorem AddMonoidAlgebra.comapSMul_single E0 #

∀ {R : Type u_1} {M : Type u_7} {G : Type u_10} [inst : Group G] [inst_1 : AddMonoid M] [inst_2 : DistribMulAction G M]
  [inst_3 : CommSemiring R] (g : G) (m : M) (r : R), g • AddMonoidAlgebra.single m r = AddMonoidAlgebra.single (g • m) r

theorem AddMonoidAlgebra.comapSMulCommClass E1 #

∀ {R : Type u_1} {M : Type u_7} {G : Type u_10} [inst : Group G] [inst_1 : AddMonoid M] [inst_2 : DistribMulAction G M]
  [inst_3 : CommSemiring R], SMulCommClass G R (AddMonoidAlgebra R M)

def AddMonoidAlgebra.mapAlgAut E1 #

(R : Type u_1) →
  {A : Type u_4} →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : AddMonoid M] →
          [inst_2 : Semiring A] →
            [inst_3 : Algebra R A] → (A ≃ₐ[R] A) →* AddMonoidAlgebra A M ≃ₐ[R] AddMonoidAlgebra A M

AddMonoidAlgebra.mapAlgEquiv as an AddMonoidHom from R ≃ₐ[k] R.

theorem AddMonoidAlgebra.mapAlgAut_apply E0 #

∀ (R : Type u_1) {A : Type u_4} (M : Type u_7) [inst : CommSemiring R] [inst_1 : AddMonoid M] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] (f : A ≃ₐ[R] A), (AddMonoidAlgebra.mapAlgAut R M) f = AddMonoidAlgebra.mapAlgEquiv R M f

def AddMonoidAlgebra.toMultiplicativeAlgEquiv E1 #

(R : Type u_1) →
  (A : Type u_4) →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] →
            [inst_3 : AddMonoid M] → AddMonoidAlgebra A M ≃ₐ[R] MonoidAlgebra A (Multiplicative M)

The algebra equivalence between AddMonoidAlgebra and MonoidAlgebra in terms of Multiplicative.

theorem AddMonoidAlgebra.coeff_toMultiplicativeAlgEquiv_symm_apply E0 #

∀ (R : Type u_1) (A : Type u_4) (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] (x : MonoidAlgebra A (Multiplicative M)),
  ((AddMonoidAlgebra.toMultiplicativeAlgEquiv R A M).symm x).coeff = Finsupp.mapDomain (⇑Multiplicative.toAdd) x.coeff

theorem AddMonoidAlgebra.coeff_toMultiplicativeAlgEquiv_apply E0 #

∀ (R : Type u_1) (A : Type u_4) (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] (x : AddMonoidAlgebra A M),
  ((AddMonoidAlgebra.toMultiplicativeAlgEquiv R A M) x).coeff = Finsupp.mapDomain (⇑Multiplicative.ofAdd) x.coeff

theorem AddMonoidAlgebra.toMultiplicativeAlgEquiv_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : AddMonoid M] (m : M) (a : A),
  (AddMonoidAlgebra.toMultiplicativeAlgEquiv R A M) (AddMonoidAlgebra.single m a) =
    MonoidAlgebra.single (Multiplicative.ofAdd m) a

def MonoidAlgebra.toAdditiveAlgEquiv E1 #

(R : Type u_1) →
  (A : Type u_4) →
    (M : Type u_7) →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Monoid M] → MonoidAlgebra A M ≃ₐ[R] AddMonoidAlgebra A (Additive M)

The algebra equivalence between MonoidAlgebra and AddMonoidAlgebra in terms of Additive.

theorem MonoidAlgebra.coeff_toAdditiveAlgEquiv_symm_apply E0 #

∀ (R : Type u_1) (A : Type u_4) (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (x : AddMonoidAlgebra A (Additive M)),
  ((MonoidAlgebra.toAdditiveAlgEquiv R A M).symm x).coeff = Finsupp.mapDomain (⇑Additive.toMul) x.coeff

theorem MonoidAlgebra.coeff_toAdditiveAlgEquiv_apply E0 #

∀ (R : Type u_1) (A : Type u_4) (M : Type u_7) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (x : MonoidAlgebra A M),
  ((MonoidAlgebra.toAdditiveAlgEquiv R A M) x).coeff = Finsupp.mapDomain (⇑Additive.ofMul) x.coeff

theorem MonoidAlgebra.toAdditiveAlgEquiv_single E0 #

∀ {R : Type u_1} {A : Type u_4} {M : Type u_7} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Monoid M] (m : M) (a : A),
  (MonoidAlgebra.toAdditiveAlgEquiv R A M) (MonoidAlgebra.single m a) = AddMonoidAlgebra.single (Additive.ofMul m) a

Deprecated aliases

NameNew nameSince
AddMonoidAlgebra.lift_mapRangeRingHom_algebraMapAddMonoidAlgebra.lift_mapRingHom_algebraMap2026-06-18
AddMonoidAlgebra.toRingEquiv_symm_uniqueAlgEquivAddMonoidAlgebra.ringEquivOfClass_symm_uniqueAlgEquiv2026-11-23
AddMonoidAlgebra.toRingEquiv_uniqueAlgEquivAddMonoidAlgebra.ringEquivOfClass_uniqueAlgEquiv2026-11-23
MonoidAlgebra.domCongr_applyMonoidAlgebra.coeff_domCongr2026-06-18
MonoidAlgebra.lift_mapRangeRingHom_algebraMapMonoidAlgebra.lift_mapRingHom_algebraMap2026-06-18
MonoidAlgebra.mapAlgHom_applyMonoidAlgebra.coeff_mapAlgHom2026-06-18
MonoidAlgebra.mapRangeAlgEquivMonoidAlgebra.mapAlgEquiv2026-06-18
MonoidAlgebra.mapRangeAlgHomMonoidAlgebra.mapAlgHom2026-06-18
MonoidAlgebra.mapRangeAlgHom_applyMonoidAlgebra.coeff_mapAlgHom2026-06-18
MonoidAlgebra.mapRangeAlgHom_singleMonoidAlgebra.mapAlgHom_single2026-06-18
MonoidAlgebra.mapRangeRingHom_comp_algebraMapMonoidAlgebra.mapRingHom_comp_algebraMap2026-06-18
MonoidAlgebra.symm_mapRangeAlgEquivMonoidAlgebra.symm_mapAlgEquiv2026-06-18
MonoidAlgebra.toRingEquiv_symm_uniqueAlgEquivMonoidAlgebra.ringEquivOfClass_symm_uniqueAlgEquiv2026-11-22
MonoidAlgebra.toRingEquiv_uniqueAlgEquivMonoidAlgebra.ringEquivOfClass_uniqueAlgEquiv2026-11-22
MonoidAlgebra.toRingHom_mapRangeAlgHomMonoidAlgebra.toRingHom_mapAlgHom2026-06-18