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.SkewMonoidAlgebra.Single

13 declarations and 7 deprecated aliases. Mathlib docs · Source

def SkewMonoidAlgebra.erase E1 #

{M : Type u_4} → {α : Type u_5} → [inst : AddCommMonoid M] → α → SkewMonoidAlgebra M α →+ SkewMonoidAlgebra M α

Given an element f of a skew monoid algebra, erase a f is an element with the same coefficients as f except at a where the coefficient is 0. If a is not in the support of f then erase a f = f.

theorem SkewMonoidAlgebra.coeff_erase_apply E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (a : α) (f : SkewMonoidAlgebra M α),
  ((SkewMonoidAlgebra.erase a) f).coeff = Finsupp.erase a f.coeff

theorem SkewMonoidAlgebra.support_erase E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (a : α) (f : SkewMonoidAlgebra M α) [inst_1 : DecidableEq α],
  ((SkewMonoidAlgebra.erase a) f).support = f.support.erase a

theorem SkewMonoidAlgebra.erase_single E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (a : α) (b : M),
  (SkewMonoidAlgebra.erase a) (SkewMonoidAlgebra.single a b) = 0

theorem SkewMonoidAlgebra.single_add_erase E1 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (a : α) (f : SkewMonoidAlgebra M α),
  SkewMonoidAlgebra.single a (f.coeff a) + (SkewMonoidAlgebra.erase a) f = f

theorem SkewMonoidAlgebra.induction E1 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] {p : SkewMonoidAlgebra M α → Prop} (f : SkewMonoidAlgebra M α),
  p 0 →
    (∀ (a : α) (b : M) (f : SkewMonoidAlgebra M α),
        a ∉ f.support → b ≠ 0 → p f → p (SkewMonoidAlgebra.single a b + f)) →
      p f

def SkewMonoidAlgebra.update E1 #

{M : Type u_4} → {α : Type u_5} → [inst : AddCommMonoid M] → SkewMonoidAlgebra M α → α → M → SkewMonoidAlgebra M α

Replace the coefficient of an element f of a skew monoid algebra at a given point a : α by a given value b : M. If b = 0, this amounts to removing a from the support of f. Otherwise, if a was not in the support of f, it is added to it.

theorem SkewMonoidAlgebra.coeff_update E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (f : SkewMonoidAlgebra M α) (a : α) (b : M),
  (f.update a b).coeff = f.coeff.update a b

theorem SkewMonoidAlgebra.update_self E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (f : SkewMonoidAlgebra M α) (a : α), f.update a (f.coeff a) = f

theorem SkewMonoidAlgebra.zero_update E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (a : α) (b : M),
  SkewMonoidAlgebra.update 0 a b = SkewMonoidAlgebra.single a b

theorem SkewMonoidAlgebra.support_update E1 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (f : SkewMonoidAlgebra M α) (a : α) (b : M)
  [inst_1 : DecidableEq α] [inst_2 : DecidableEq M],
  (f.update a b).support = if b = 0 then f.support.erase a else insert a f.support

theorem SkewMonoidAlgebra.update_eq_erase_add_single E1 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (f : SkewMonoidAlgebra M α) (a : α) (b : M),
  f.update a b = (SkewMonoidAlgebra.erase a) f + SkewMonoidAlgebra.single a b

theorem SkewMonoidAlgebra.update_zero_eq_erase E0 #

∀ {M : Type u_4} {α : Type u_5} [inst : AddCommMonoid M] (f : SkewMonoidAlgebra M α) (a : α),
  f.update a 0 = (SkewMonoidAlgebra.erase a) f

Deprecated aliases

NameNew nameSince
SkewMonoidAlgebra.coeff_erase_neFinsupp.erase_ne2026-07-04
SkewMonoidAlgebra.coeff_erase_sameFinsupp.erase_same2026-07-04
SkewMonoidAlgebra.coeff_update_applyFinsupp.update_apply2026-07-04
SkewMonoidAlgebra.coeff_update_neFinsupp.update_apply2026-07-04
SkewMonoidAlgebra.coeff_update_sameFinsupp.update_apply2026-07-04
SkewMonoidAlgebra.erase_apply_toFinsuppSkewMonoidAlgebra.coeff_erase_apply2026-07-04
SkewMonoidAlgebra.update_toFinsuppSkewMonoidAlgebra.coeff_update2026-07-04