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

97 declarations. Mathlib docs · Source

Module structure on monoid algebras

Main results

  • MonoidAlgebra.module, AddMonoidAlgebra.module: lift a module structure to monoid algebras

Implementation notes

We do not state the equivalent of DistribMulAction M (MonoidAlgebra S M) for AddMonoidAlgebra because mathlib does not have the notion of distributive actions of additive groups.

Multiplicative monoids

Copies of ext lemmas and bundled singles from Finsupp

Non-unital, non-associative algebra structure

Additive monoids

instance MonoidAlgebra.distribMulAction E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Monoid S] → [inst_1 : Semiring R] → [DistribMulAction S R] → DistribMulAction S (MonoidAlgebra R M)

instance AddMonoidAlgebra.distribMulAction E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Monoid S] → [inst_1 : Semiring R] → [DistribMulAction S R] → DistribMulAction S (AddMonoidAlgebra R M)

theorem MonoidAlgebra.mapDomain_smul E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Monoid S] [inst_1 : Semiring R]
  [inst_2 : DistribMulAction S R] (f : M → N) (s : S) (x : MonoidAlgebra R M),
  MonoidAlgebra.mapDomain f (s • x) = s • MonoidAlgebra.mapDomain f x

theorem AddMonoidAlgebra.mapDomain_vadd E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Monoid S] [inst_1 : Semiring R]
  [inst_2 : DistribMulAction S R] (f : M → N) (s : S) (x : AddMonoidAlgebra R M),
  AddMonoidAlgebra.mapDomain f (s • x) = s • AddMonoidAlgebra.mapDomain f x

instance MonoidAlgebra.instModule E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} → [inst : Semiring R] → [inst_1 : Semiring S] → [Module R S] → Module R (MonoidAlgebra S M)

instance AddMonoidAlgebra.instModule E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} → [inst : Semiring R] → [inst_1 : Semiring S] → [Module R S] → Module R (AddMonoidAlgebra S M)

instance AddMonoidAlgebra.instIsTorsionFree E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [Module.IsTorsionFree R S], Module.IsTorsionFree R (AddMonoidAlgebra S M)

instance MonoidAlgebra.instIsTorsionFree E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [Module.IsTorsionFree R S], Module.IsTorsionFree R (MonoidAlgebra S M)

def MonoidAlgebra.coeffLinearEquiv E1 #

(R : Type u_1) →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : Module R S] → MonoidAlgebra S M ≃ₗ[R] M →₀ S

MonoidAlgebra.coeff as a linear equiv.

theorem MonoidAlgebra.coeffLinearEquiv_symm_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (a : M →₀ S), (MonoidAlgebra.coeffLinearEquiv R).symm a = MonoidAlgebra.ofCoeff a

theorem AddMonoidAlgebra.coeffLinearEquiv_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (a : AddMonoidAlgebra S M), (AddMonoidAlgebra.coeffLinearEquiv R) a = a.coeff

theorem MonoidAlgebra.coeffLinearEquiv_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (a : MonoidAlgebra S M), (MonoidAlgebra.coeffLinearEquiv R) a = a.coeff

theorem AddMonoidAlgebra.coeffLinearEquiv_symm_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (a : M →₀ S), (AddMonoidAlgebra.coeffLinearEquiv R).symm a = AddMonoidAlgebra.ofCoeff a

def AddMonoidAlgebra.coeffLinearEquiv E1 #

(R : Type u_1) →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : Module R S] → AddMonoidAlgebra S M ≃ₗ[R] M →₀ S

MonoidAlgebra.coeff as a linear equiv.

def MonoidAlgebra.mapDomainLinearMap E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      {N : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : Semiring S] → [inst_2 : Module R S] → (M → N) → MonoidAlgebra S M →ₗ[R] MonoidAlgebra S N

MonoidAlgebra.mapDomain as a linear map.

def AddMonoidAlgebra.mapDomainLinearMap E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      {N : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : Semiring S] → [inst_2 : Module R S] → (M → N) → AddMonoidAlgebra S M →ₗ[R] AddMonoidAlgebra S N

AddMonoidAlgebra.mapDomain as a linear map.

theorem AddMonoidAlgebra.coeff_mapDomainLinearMap E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (x : AddMonoidAlgebra S M),
  ((AddMonoidAlgebra.mapDomainLinearMap R S f) x).coeff = Finsupp.mapDomain f x.coeff

theorem MonoidAlgebra.coeff_mapDomainLinearMap E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (x : MonoidAlgebra S M),
  ((MonoidAlgebra.mapDomainLinearMap R S f) x).coeff = Finsupp.mapDomain f x.coeff

theorem AddMonoidAlgebra.mapDomainLinearMap_single E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (s : S) (m : M),
  (AddMonoidAlgebra.mapDomainLinearMap R S f) (AddMonoidAlgebra.single m s) = AddMonoidAlgebra.single (f m) s

theorem MonoidAlgebra.mapDomainLinearMap_single E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (s : S) (m : M),
  (MonoidAlgebra.mapDomainLinearMap R S f) (MonoidAlgebra.single m s) = MonoidAlgebra.single (f m) s

theorem AddMonoidAlgebra.mapDomainLinearMap_comp E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {O : Type u_5} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (g : N → O),
  AddMonoidAlgebra.mapDomainLinearMap R S (g ∘ f) =
    AddMonoidAlgebra.mapDomainLinearMap R S g ∘ₗ AddMonoidAlgebra.mapDomainLinearMap R S f

theorem MonoidAlgebra.mapDomainLinearMap_comp E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {O : Type u_5} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (f : M → N) (g : N → O),
  MonoidAlgebra.mapDomainLinearMap R S (g ∘ f) =
    MonoidAlgebra.mapDomainLinearMap R S g ∘ₗ MonoidAlgebra.mapDomainLinearMap R S f

def MonoidAlgebra.mapDomainLinearEquiv E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      {N : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : Semiring S] → [inst_2 : Module R S] → M ≃ N → MonoidAlgebra S M ≃ₗ[R] MonoidAlgebra S N

MonoidAlgebra.mapDomain as a linear equiv.

def AddMonoidAlgebra.mapDomainLinearEquiv E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      {N : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : Semiring S] → [inst_2 : Module R S] → M ≃ N → AddMonoidAlgebra S M ≃ₗ[R] AddMonoidAlgebra S N

AddMonoidAlgebra.mapDomain as a linear equiv.

theorem MonoidAlgebra.coeff_mapDomainLinearEquiv E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N) (x : MonoidAlgebra S M),
  ((MonoidAlgebra.mapDomainLinearEquiv R S e) x).coeff = Finsupp.equivMapDomain e x.coeff

theorem AddMonoidAlgebra.coeff_mapDomainLinearEquiv E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N) (x : AddMonoidAlgebra S M),
  ((AddMonoidAlgebra.mapDomainLinearEquiv R S e) x).coeff = Finsupp.equivMapDomain e x.coeff

theorem AddMonoidAlgebra.mapDomainLinearEquiv_single E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N) (s : S) (m : M),
  (AddMonoidAlgebra.mapDomainLinearEquiv R S e) (AddMonoidAlgebra.single m s) = AddMonoidAlgebra.single (e m) s

theorem MonoidAlgebra.mapDomainLinearEquiv_single E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N) (s : S) (m : M),
  (MonoidAlgebra.mapDomainLinearEquiv R S e) (MonoidAlgebra.single m s) = MonoidAlgebra.single (e m) s

theorem AddMonoidAlgebra.symm_mapDomainLinearEquiv E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N),
  (AddMonoidAlgebra.mapDomainLinearEquiv R S e).symm = AddMonoidAlgebra.mapDomainLinearEquiv R S e.symm

theorem MonoidAlgebra.symm_mapDomainLinearEquiv E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e : M ≃ N),
  (MonoidAlgebra.mapDomainLinearEquiv R S e).symm = MonoidAlgebra.mapDomainLinearEquiv R S e.symm

theorem MonoidAlgebra.mapDomainLinearEquiv_trans E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {O : Type u_5} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e₁ : M ≃ N) (e₂ : N ≃ O),
  MonoidAlgebra.mapDomainLinearEquiv R S (e₁.trans e₂) =
    MonoidAlgebra.mapDomainLinearEquiv R S e₁ ≪≫ₗ MonoidAlgebra.mapDomainLinearEquiv R S e₂

theorem AddMonoidAlgebra.mapDomainLinearEquiv_trans E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {O : Type u_5} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : Module R S] (e₁ : M ≃ N) (e₂ : N ≃ O),
  AddMonoidAlgebra.mapDomainLinearEquiv R S (e₁.trans e₂) =
    AddMonoidAlgebra.mapDomainLinearEquiv R S e₁ ≪≫ₗ AddMonoidAlgebra.mapDomainLinearEquiv R S e₂

def MonoidAlgebra.uniqueLinearEquiv E1 #

(R : Type u_1) →
  {S : Type u_2} →
    (M : Type u_3) →
      [inst : Semiring R] →
        [inst_1 : Semiring S] → [inst_2 : Module R S] → [One M] → [Subsingleton M] → MonoidAlgebra S M ≃ₗ[R] S

The trivial monoid algebra is the base ring.

def AddMonoidAlgebra.uniqueLinearEquiv E1 #

(R : Type u_1) →
  {S : Type u_2} →
    (M : Type u_3) →
      [inst : Semiring R] →
        [inst_1 : Semiring S] → [inst_2 : Module R S] → [Zero M] → [Subsingleton M] → AddMonoidAlgebra S M ≃ₗ[R] S

The trivial monoid algebra is the base ring.

theorem AddMonoidAlgebra.uniqueLinearEquiv_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : Zero M] [inst_4 : Subsingleton M] (x : AddMonoidAlgebra S M),
  (AddMonoidAlgebra.uniqueLinearEquiv R M) x = x.coeff 0

theorem MonoidAlgebra.uniqueLinearEquiv_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : One M] [inst_4 : Subsingleton M] (x : MonoidAlgebra S M),
  (MonoidAlgebra.uniqueLinearEquiv R M) x = x.coeff 1

theorem AddMonoidAlgebra.uniqueLinearEquiv_symm_apply E0 #

∀ (R : Type u_1) {S : Type u_2} (M : Type u_3) [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : Zero M] [inst_4 : Subsingleton M] (s : S),
  (AddMonoidAlgebra.uniqueLinearEquiv R M).symm s = AddMonoidAlgebra.single 0 s

theorem MonoidAlgebra.uniqueLinearEquiv_symm_apply E0 #

∀ (R : Type u_1) {S : Type u_2} (M : Type u_3) [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : One M] [inst_4 : Subsingleton M] (s : S),
  (MonoidAlgebra.uniqueLinearEquiv R M).symm s = MonoidAlgebra.single 1 s

def MonoidAlgebra.supported E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : Module R S] → Set M → Submodule R (MonoidAlgebra S M)

The R-submodule of all elements of S[M] supported on a subset s of M.

def AddMonoidAlgebra.supported E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {M : Type u_3} →
      [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : Module R S] → Set M → Submodule R (AddMonoidAlgebra S M)

The R-submodule of all elements of S[M] supported on a subset s of M.

theorem MonoidAlgebra.mem_supported E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s : Set M} {x : MonoidAlgebra S M}, x ∈ MonoidAlgebra.supported R S s ↔ ↑x.coeff.support ⊆ s

theorem AddMonoidAlgebra.mem_supported E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s : Set M} {x : AddMonoidAlgebra S M}, x ∈ AddMonoidAlgebra.supported R S s ↔ ↑x.coeff.support ⊆ s

theorem AddMonoidAlgebra.mem_supported' E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s : Set M} {x : AddMonoidAlgebra S M}, x ∈ AddMonoidAlgebra.supported R S s ↔ ∀ m ∉ s, x.coeff m = 0

theorem MonoidAlgebra.mem_supported' E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s : Set M} {x : MonoidAlgebra S M}, x ∈ MonoidAlgebra.supported R S s ↔ ∀ m ∉ s, x.coeff m = 0

theorem AddMonoidAlgebra.supported_eq_map E1 #

∀ (R : Type u_1) (S : Type u_2) {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M),
  AddMonoidAlgebra.supported R S s =
    Submodule.map (↑(AddMonoidAlgebra.coeffLinearEquiv R).symm) (Finsupp.supported S R s)

theorem MonoidAlgebra.supported_eq_map E1 #

∀ (R : Type u_1) (S : Type u_2) {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M),
  MonoidAlgebra.supported R S s = Submodule.map (↑(MonoidAlgebra.coeffLinearEquiv R).symm) (Finsupp.supported S R s)

theorem MonoidAlgebra.supported_eq_span_single E1 #

∀ (R : Type u_1) {M : Type u_3} [inst : Semiring R] (s : Set M),
  MonoidAlgebra.supported R R s = Submodule.span R ((fun m ↦ MonoidAlgebra.single m 1) '' s)

theorem AddMonoidAlgebra.supported_eq_span_single E1 #

∀ (R : Type u_1) {M : Type u_3} [inst : Semiring R] (s : Set M),
  AddMonoidAlgebra.supported R R s = Submodule.span R ((fun m ↦ AddMonoidAlgebra.single m 1) '' s)

theorem AddMonoidAlgebra.supported_mono E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s t : Set M}, s ⊆ t → AddMonoidAlgebra.supported R S s ≤ AddMonoidAlgebra.supported R S t

theorem MonoidAlgebra.supported_mono E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  {s t : Set M}, s ⊆ t → MonoidAlgebra.supported R S s ≤ MonoidAlgebra.supported R S t

def MonoidAlgebra.supportedEquivFinsupp E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring R] →
        [inst_1 : Semiring S] → [inst_2 : Module R S] → (s : Set M) → ↥(MonoidAlgebra.supported R S s) ≃ₗ[R] ↑s →₀ S

Interpret Finsupp.restrictSupportEquiv as a linear equivalence between supported M R s and s →₀ M.

theorem AddMonoidAlgebra.supportedEquivFinsupp_apply_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (x : ↥(AddMonoidAlgebra.supported R S s)) (a : { x // x ∈ s }),
  ((AddMonoidAlgebra.supportedEquivFinsupp s) x) a = (↑x).coeff ↑a

theorem AddMonoidAlgebra.supportedEquivFinsupp_apply_support_val E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (x : ↥(AddMonoidAlgebra.supported R S s)),
  ((AddMonoidAlgebra.supportedEquivFinsupp s) x).support.val =
    Multiset.map (fun x_1 ↦ ⟨↑x_1, ⋯⟩) (Multiset.filter (fun x ↦ x ∈ s) (↑x).coeff.support.val).attach

def AddMonoidAlgebra.supportedEquivFinsupp E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring R] →
        [inst_1 : Semiring S] → [inst_2 : Module R S] → (s : Set M) → ↥(AddMonoidAlgebra.supported R S s) ≃ₗ[R] ↑s →₀ S

Interpret Finsupp.restrictSupportEquiv as a linear equivalence between supported M R s and s →₀ M.

theorem MonoidAlgebra.coeff_supportedEquivFinsupp_symm_apply_coe_support_val E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (a : ↑s →₀ S),
  (↑((MonoidAlgebra.supportedEquivFinsupp s).symm a)).coeff.support.val = Multiset.map Subtype.val a.support.val

theorem MonoidAlgebra.supportedEquivFinsupp_apply_support_val E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (x : ↥(MonoidAlgebra.supported R S s)),
  ((MonoidAlgebra.supportedEquivFinsupp s) x).support.val =
    Multiset.map (fun x_1 ↦ ⟨↑x_1, ⋯⟩) (Multiset.filter (fun x ↦ x ∈ s) (↑x).coeff.support.val).attach

theorem MonoidAlgebra.supportedEquivFinsupp_apply_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (x : ↥(MonoidAlgebra.supported R S s)) (a : { x // x ∈ s }),
  ((MonoidAlgebra.supportedEquivFinsupp s) x) a = (↑x).coeff ↑a

theorem MonoidAlgebra.coeff_supportedEquivFinsupp_symm_apply_coe_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (a : ↑s →₀ S) (a_1 : M),
  (↑((MonoidAlgebra.supportedEquivFinsupp s).symm a)).coeff a_1 = if h : a_1 ∈ s then a ⟨a_1, h⟩ else 0

theorem AddMonoidAlgebra.coeff_supportedEquivFinsupp_symm_apply_coe_support_val E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (a : ↑s →₀ S),
  (↑((AddMonoidAlgebra.supportedEquivFinsupp s).symm a)).coeff.support.val = Multiset.map Subtype.val a.support.val

theorem AddMonoidAlgebra.coeff_supportedEquivFinsupp_symm_apply_coe_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
  (s : Set M) (a : ↑s →₀ S) (a_1 : M),
  (↑((AddMonoidAlgebra.supportedEquivFinsupp s).symm a)).coeff a_1 = if h : a_1 ∈ s then a ⟨a_1, h⟩ else 0

instance MonoidAlgebra.faithfulSMul E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] [inst_1 : SMulZeroClass R S] [FaithfulSMul R S]
  [Nonempty M], FaithfulSMul R (MonoidAlgebra S M)

instance AddMonoidAlgebra.faithfulSMul E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] [inst_1 : SMulZeroClass R S] [FaithfulSMul R S]
  [Nonempty M], FaithfulSMul R (AddMonoidAlgebra S M)

def MonoidAlgebra.basis E1 #

(R : Type u_7) → (k : Type u_8) → [inst : Semiring k] → Module.Basis R k (MonoidAlgebra k R)

The standard basis for a monoid algebra.

def AddMonoidAlgebra.basis E1 #

(R : Type u_7) → (k : Type u_8) → [inst : Semiring k] → Module.Basis R k (AddMonoidAlgebra k R)

The standard basis for an additive monoid algebra.

theorem MonoidAlgebra.basis_apply E0 #

∀ {R : Type u_1} (k : Type u_7) [inst : Semiring k] (r : R), (MonoidAlgebra.basis R k) r = MonoidAlgebra.single r 1

theorem AddMonoidAlgebra.basis_apply E0 #

∀ {R : Type u_1} (k : Type u_7) [inst : Semiring k] (r : R),
  (AddMonoidAlgebra.basis R k) r = AddMonoidAlgebra.single r 1

def MonoidAlgebra.comapDistribMulActionSelf E1 #

{S : Type u_2} → {G : Type u_6} → [inst : Group G] → [inst_1 : Semiring S] → DistribMulAction G (MonoidAlgebra S G)

This is not an instance as it conflicts with MonoidAlgebra.distribMulAction when M = kˣ.

TODO: Change the type to DistribMulAction Gᵈᵐᵃ S[M] and then it can be an instance. TODO: Generalise to a group acting on another, instead of just the left multiplication action.

theorem AddMonoidAlgebra.single_mem_span_single E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [Nontrivial R] {m : M} {s : Set M},
  AddMonoidAlgebra.single m 1 ∈ Submodule.span R ((fun x ↦ AddMonoidAlgebra.single x 1) '' s) ↔ m ∈ s

theorem MonoidAlgebra.single_mem_span_single E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [Nontrivial R] {m : M} {s : Set M},
  MonoidAlgebra.single m 1 ∈ Submodule.span R ((fun x ↦ MonoidAlgebra.single x 1) '' s) ↔ m ∈ s

def MonoidAlgebra.singleDistribMulActionHom E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring S] → [inst_1 : Monoid R] → [inst_2 : DistribMulAction R S] → M → S →+[R] MonoidAlgebra S M

MonoidAlgebra.single as a DistribMulActionHom.

def AddMonoidAlgebra.singleDistribMulActionHom E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring S] → [inst_1 : Monoid R] → [inst_2 : DistribMulAction R S] → M → S →+[R] AddMonoidAlgebra S M

AddMonoidAlgebra.single as a DistribMulActionHom.

theorem MonoidAlgebra.distribMulActionHom_ext' E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Monoid R]
  [inst_2 : AddMonoid N] [inst_3 : DistribMulAction R N] [inst_4 : DistribMulAction R S]
  {f g : MonoidAlgebra S M →+[R] N},
  (∀ (a : M), f.comp (MonoidAlgebra.singleDistribMulActionHom a) = g.comp (MonoidAlgebra.singleDistribMulActionHom a)) →
    f = g

A copy of Finsupp.distribMulActionHom_ext' for MonoidAlgebra.

theorem MonoidAlgebra.distribMulActionHom_ext'_iff E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Monoid R]
  [inst_2 : AddMonoid N] [inst_3 : DistribMulAction R N] [inst_4 : DistribMulAction R S]
  {f g : MonoidAlgebra S M →+[R] N},
  f = g ↔
    ∀ (a : M), f.comp (MonoidAlgebra.singleDistribMulActionHom a) = g.comp (MonoidAlgebra.singleDistribMulActionHom a)

theorem AddMonoidAlgebra.distribMulActionHom_ext'_iff E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Monoid R]
  [inst_2 : AddMonoid N] [inst_3 : DistribMulAction R N] [inst_4 : DistribMulAction R S]
  {f g : AddMonoidAlgebra S M →+[R] N},
  f = g ↔
    ∀ (a : M),
      f.comp (AddMonoidAlgebra.singleDistribMulActionHom a) = g.comp (AddMonoidAlgebra.singleDistribMulActionHom a)

theorem AddMonoidAlgebra.distribMulActionHom_ext' E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Monoid R]
  [inst_2 : AddMonoid N] [inst_3 : DistribMulAction R N] [inst_4 : DistribMulAction R S]
  {f g : AddMonoidAlgebra S M →+[R] N},
  (∀ (a : M),
      f.comp (AddMonoidAlgebra.singleDistribMulActionHom a) = g.comp (AddMonoidAlgebra.singleDistribMulActionHom a)) →
    f = g

A copy of Finsupp.distribMulActionHom_ext' for AddMonoidAlgebra.

def MonoidAlgebra.lsingle E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} → [inst : Semiring S] → [inst_1 : Semiring R] → [inst_2 : Module R S] → M → S →ₗ[R] MonoidAlgebra S M

A copy of Finsupp.lsingle for MonoidAlgebra.

def AddMonoidAlgebra.lsingle E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      [inst : Semiring S] → [inst_1 : Semiring R] → [inst_2 : Module R S] → M → S →ₗ[R] AddMonoidAlgebra S M

A copy of Finsupp.lsingle for AddMonoidAlgebra.

theorem AddMonoidAlgebra.lsingle_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] [inst_1 : Semiring R] [inst_2 : Module R S] (a : M)
  (b : S), (AddMonoidAlgebra.lsingle a) b = AddMonoidAlgebra.single a b

theorem MonoidAlgebra.lsingle_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] [inst_1 : Semiring R] [inst_2 : Module R S] (a : M)
  (b : S), (MonoidAlgebra.lsingle a) b = MonoidAlgebra.single a b

theorem MonoidAlgebra.lhom_ext' E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R N] [inst_4 : Module R S] ⦃f g : MonoidAlgebra S M →ₗ[R] N⦄,
  (∀ (x : M), f ∘ₗ MonoidAlgebra.lsingle x = g ∘ₗ MonoidAlgebra.lsingle x) → f = g

A copy of Finsupp.lhom_ext' for MonoidAlgebra.

theorem AddMonoidAlgebra.lhom_ext' E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R N] [inst_4 : Module R S] ⦃f g : AddMonoidAlgebra S M →ₗ[R] N⦄,
  (∀ (x : M), f ∘ₗ AddMonoidAlgebra.lsingle x = g ∘ₗ AddMonoidAlgebra.lsingle x) → f = g

theorem MonoidAlgebra.lhom_ext'_iff E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R N] [inst_4 : Module R S] {f g : MonoidAlgebra S M →ₗ[R] N},
  f = g ↔ ∀ (x : M), f ∘ₗ MonoidAlgebra.lsingle x = g ∘ₗ MonoidAlgebra.lsingle x

theorem AddMonoidAlgebra.lhom_ext'_iff E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring S] {N : Type u_7} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R N] [inst_4 : Module R S] {f g : AddMonoidAlgebra S M →ₗ[R] N},
  f = g ↔ ∀ (x : M), f ∘ₗ AddMonoidAlgebra.lsingle x = g ∘ₗ AddMonoidAlgebra.lsingle x

theorem MonoidAlgebra.smul_of E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : MulOneClass M] (m : M) (r : R),
  r • (MonoidAlgebra.of R M) m = MonoidAlgebra.single m r

theorem MonoidAlgebra.of_mem_span_of_iff E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : MulOneClass M] {s : Set M} {m : M} [Nontrivial R],
  (MonoidAlgebra.of R M) m ∈ Submodule.span R (⇑(MonoidAlgebra.of R M) '' s) ↔ m ∈ s

The image of an element m : M in R[M] belongs to the submodule generated by s : Set M if and only if m ∈ s.

theorem MonoidAlgebra.mem_closure_of_mem_span_closure E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : MulOneClass M] {s : Set M} {m : M} [Nontrivial R],
  (MonoidAlgebra.of R M) m ∈ Submodule.span R ↑(Submonoid.closure (⇑(MonoidAlgebra.of R M) '' s)) →
    m ∈ Submonoid.closure s

If the image of an element m : M in R[M] belongs to the submodule generated by the closure of some s : Set M then m ∈ closure s.

theorem MonoidAlgebra.liftNC_smul E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : MulOneClass M]
  (f : S →+* R) (g : M →* R) (c : S) (φ : MonoidAlgebra S M),
  (MonoidAlgebra.liftNC ↑f ⇑g) (c • φ) = f c * (MonoidAlgebra.liftNC ↑f ⇑g) φ

instance AddMonoidAlgebra.isScalarTower_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Add M]
  [IsScalarTower R S S], IsScalarTower R (AddMonoidAlgebra S M) (AddMonoidAlgebra S M)

instance MonoidAlgebra.isScalarTower_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Mul M]
  [IsScalarTower R S S], IsScalarTower R (MonoidAlgebra S M) (MonoidAlgebra S M)

instance MonoidAlgebra.smulCommClass_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Mul M]
  [SMulCommClass R S S], SMulCommClass R (MonoidAlgebra S M) (MonoidAlgebra S M)

Note that if S is a CommSemiring then we have SMulCommClass S S S and so we can take R = S in the below. In other words, if the coefficients are commutative amongst themselves, they also commute with the algebra multiplication.

instance AddMonoidAlgebra.smulCommClass_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Add M]
  [SMulCommClass R S S], SMulCommClass R (AddMonoidAlgebra S M) (AddMonoidAlgebra S M)

instance AddMonoidAlgebra.smulCommClass_symm_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Add M]
  [SMulCommClass S R S], SMulCommClass (AddMonoidAlgebra S M) R (AddMonoidAlgebra S M)

instance MonoidAlgebra.smulCommClass_symm_self E0 #

∀ {R : Type u_1} (S : Type u_2) {M : Type u_3} [inst : Semiring S] [inst_1 : DistribSMul R S] [inst_2 : Mul M]
  [SMulCommClass S R S], SMulCommClass (MonoidAlgebra S M) R (MonoidAlgebra S M)

def MonoidAlgebra.submoduleOfSMulMem E1 #

{S : Type u_2} →
  {M : Type u_3} →
    [inst : CommSemiring S] →
      [inst_1 : Monoid M] →
        {V : Type u_7} →
          [inst_2 : AddCommMonoid V] →
            [inst_3 : Module S V] →
              [inst_4 : Module (MonoidAlgebra S M) V] →
                [IsScalarTower S (MonoidAlgebra S M) V] →
                  (W : Submodule S V) →
                    (∀ (g : M), ∀ v ∈ W, (MonoidAlgebra.of S M) g • v ∈ W) → Submodule (MonoidAlgebra S M) V

A submodule over S which is stable under scalar multiplication by elements of M is a submodule over S[M]

theorem AddMonoidAlgebra.of'_mem_span E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [Nontrivial R] {m : M} {s : Set M},
  AddMonoidAlgebra.of' R M m ∈ Submodule.span R (AddMonoidAlgebra.of' R M '' s) ↔ m ∈ s

The image of an element m : M in R[M] belongs the submodule generated by s : Set M if and only if m ∈ s.

theorem AddMonoidAlgebra.mem_closure_of_mem_span_closure E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddMonoid M] [Nontrivial R] {m : M} {s : Set M},
  AddMonoidAlgebra.of' R M m ∈ Submodule.span R ↑(Submonoid.closure (AddMonoidAlgebra.of' R M '' s)) →
    m ∈ AddSubmonoid.closure s

If the image of an element m : M in R[M] belongs the submodule generated by the closure of some s : Set M then m ∈ closure s.

theorem AddMonoidAlgebra.liftNC_smul E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddZeroClass M]
  (f : S →+* R) (g : Multiplicative M →* R) (c : S) (φ : AddMonoidAlgebra S M),
  (AddMonoidAlgebra.liftNC ↑f ⇑g) (c • φ) = f c * (AddMonoidAlgebra.liftNC ↑f ⇑g) φ