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 / V08. Multilinear algebra and forms

Mathlib.Algebra.GradedMonoid

118 declarations. Mathlib docs · Source

Additively-graded multiplicative structures

This module provides a set of heterogeneous typeclasses for defining a multiplicative structure over the sigma type GradedMonoid A such that (*) : A i → A j → A (i + j); that is to say, A forms an additively-graded monoid. The typeclasses are:

  • GradedMonoid.GOne A
  • GradedMonoid.GMul A
  • GradedMonoid.GMonoid A
  • GradedMonoid.GCommMonoid A

These respectively imbue:

  • One (GradedMonoid A)
  • Mul (GradedMonoid A)
  • Monoid (GradedMonoid A)
  • CommMonoid (GradedMonoid A)

the base type A 0 with:

  • GradedMonoid.GradeZero.One
  • GradedMonoid.GradeZero.Mul
  • GradedMonoid.GradeZero.Monoid
  • GradedMonoid.GradeZero.CommMonoid

and the ith grade A i with A 0-actions (•) defined as left-multiplication:

  • (nothing)
  • GradedMonoid.GradeZero.SMul (A 0)
  • GradedMonoid.GradeZero.MulAction (A 0)
  • (nothing)

For now, these typeclasses are primarily used in the construction of DirectSum.Ring and the rest of that file.

Dependent graded products

This also introduces List.dProd, which takes the (possibly non-commutative) product of a list of graded elements of type A i. This definition primarily exists to allow GradedMonoid.mk and DirectSum.of to be pulled outside a product, such as in GradedMonoid.mk_list_dProd and DirectSum.of_list_dProd.

Internally graded monoids

In addition to the above typeclasses, in the most frequent case when A is an indexed collection of SetLike subobjects (such as AddSubmonoids, AddSubgroups, or Submodules), this file provides the Prop typeclasses:

  • SetLike.GradedOne A (which provides the obvious GradedMonoid.GOne A instance)
  • SetLike.GradedMul A (which provides the obvious GradedMonoid.GMul A instance)
  • SetLike.GradedMonoid A (which provides the obvious GradedMonoid.GMonoid A and GradedMonoid.GCommMonoid A instances)

which respectively provide the API lemmas

  • SetLike.one_mem_graded
  • SetLike.mul_mem_graded
  • SetLike.pow_mem_graded, SetLike.list_prod_map_mem_graded

Strictly this last class is unnecessary as it has no fields not present in its parents, but it is included for convenience. Note that there is no need for SetLike.GradedRing or similar, as all the information it would contain is already supplied by GradedMonoid when A is a collection of objects satisfying AddSubmonoidClass such as Submodules. These constructions are explored in Algebra.DirectSum.Internal.

This file also defines:

  • SetLike.IsHomogeneousElem A (which says that a is homogeneous iff a ∈ A i for some i : ι)
  • SetLike.homogeneousSubmonoid A, which is, as the name suggests, the submonoid consisting of all the homogeneous elements.

Tags

graded monoid

Actions

Typeclasses

Instances for A 0

The various g* instances are enough to promote the AddCommMonoid (A 0) structure to various types of multiplicative structure.

Dependent products of graded elements

Concrete instances

Shorthands for creating instance of the above typeclasses for collections of subobjects

def GradedMonoid.GCommMonoid.ctorIdx E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : AddCommMonoid ι} → GradedMonoid.GCommMonoid A → ℕ

def GradedMonoid.GOne.ctorIdx E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : Zero ι} → GradedMonoid.GOne A → ℕ

def GradedMonoid.GMul.ctorIdx E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : Add ι} → GradedMonoid.GMul A → ℕ

def GradedMonoid.GMonoid.ctorIdx E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : AddMonoid ι} → GradedMonoid.GMonoid A → ℕ

def GradedMonoid E1 #

{ι : Type u_1} → (ι → Type u_2) → Type (max u_1 u_2)

A type alias of sigma types for graded monoids.

instance GradedMonoid.instInhabitedOfDefault E0 #

{ι : Type u_1} → {A : ι → Type u_2} → [inst : Inhabited ι] → [Inhabited (A default)] → Inhabited (GradedMonoid A)

def GradedMonoid.mk E1 #

{ι : Type u_1} → {A : ι → Type u_2} → (i : ι) → A i → GradedMonoid A

Construct an element of a graded monoid.

instance GradedMonoid.instSMul E0 #

{ι : Type u_1} → {α : Type u_3} → {A : ι → Type u_2} → [(i : ι) → SMul α (A i)] → SMul α (GradedMonoid A)

If R acts on each A i, then it acts on GradedMonoid A via the .2 projection.

theorem GradedMonoid.fst_smul E0 #

∀ {ι : Type u_1} {α : Type u_3} {A : ι → Type u_2} [inst : (i : ι) → SMul α (A i)] (a : α) (x : GradedMonoid A),
  (a • x).fst = x.fst

theorem GradedMonoid.snd_smul E0 #

∀ {ι : Type u_1} {α : Type u_3} {A : ι → Type u_2} [inst : (i : ι) → SMul α (A i)] (a : α) (x : GradedMonoid A),
  (a • x).snd = a • x.snd

theorem GradedMonoid.smul_mk E0 #

∀ {ι : Type u_1} {α : Type u_3} {A : ι → Type u_2} [inst : (i : ι) → SMul α (A i)] {i : ι} (c : α) (a : A i),
  c • GradedMonoid.mk i a = GradedMonoid.mk i (c • a)

instance GradedMonoid.instSMulCommClass E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : Type u_4} {A : ι → Type u_2} [inst : (i : ι) → SMul α (A i)]
  [inst_1 : (i : ι) → SMul β (A i)] [∀ (i : ι), SMulCommClass α β (A i)], SMulCommClass α β (GradedMonoid A)

instance GradedMonoid.instIsScalarTower E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : Type u_4} {A : ι → Type u_2} [inst : SMul α β] [inst_1 : (i : ι) → SMul α (A i)]
  [inst_2 : (i : ι) → SMul β (A i)] [∀ (i : ι), IsScalarTower α β (A i)], IsScalarTower α β (GradedMonoid A)

instance GradedMonoid.instMulAction E0 #

{ι : Type u_1} →
  {α : Type u_3} → {A : ι → Type u_2} → [inst : Monoid α] → [(i : ι) → MulAction α (A i)] → MulAction α (GradedMonoid A)

class GradedMonoid.GOne E1 #

{ι : Type u_1} → (ι → Type u_2) → [Zero ι] → Type u_2

A graded version of One, which must be of grade 0.

ctor GradedMonoid.GOne.mk E0 #

{ι : Type u_1} → {A : ι → Type u_2} → [inst : Zero ι] → A 0 → GradedMonoid.GOne A

abbrev GradedMonoid.GOne.one E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : Zero ι} → [self : GradedMonoid.GOne A] → A 0

The term one of grade 0

instance GradedMonoid.GOne.toOne E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : Zero ι] → [GradedMonoid.GOne A] → One (GradedMonoid A)

GOne implies One (GradedMonoid A)

theorem GradedMonoid.fst_one E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : Zero ι] [inst_1 : GradedMonoid.GOne A], Sigma.fst 1 = 0

theorem GradedMonoid.snd_one E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : Zero ι] [inst_1 : GradedMonoid.GOne A], Sigma.snd 1 = GradedMonoid.GOne.one

class GradedMonoid.GMul E1 #

{ι : Type u_1} → (ι → Type u_2) → [Add ι] → Type (max u_1 u_2)

A graded version of Mul. Multiplication combines grades additively, like AddMonoidAlgebra.

ctor GradedMonoid.GMul.mk E0 #

{ι : Type u_1} → {A : ι → Type u_2} → [inst : Add ι] → ({i j : ι} → A i → A j → A (i + j)) → GradedMonoid.GMul A

abbrev GradedMonoid.GMul.mul E1 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : Add ι} → [self : GradedMonoid.GMul A] → {i j : ι} → A i → A j → A (i + j)

The homogeneous multiplication map mul

instance GradedMonoid.GMul.toMul E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : Add ι] → [GradedMonoid.GMul A] → Mul (GradedMonoid A)

GMul implies Mul (GradedMonoid A).

theorem GradedMonoid.fst_mul E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : Add ι] [inst_1 : GradedMonoid.GMul A] (x y : GradedMonoid A),
  (x * y).fst = x.fst + y.fst

theorem GradedMonoid.snd_mul E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : Add ι] [inst_1 : GradedMonoid.GMul A] (x y : GradedMonoid A),
  (x * y).snd = GradedMonoid.GMul.mul x.snd y.snd

theorem GradedMonoid.mk_mul_mk E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : Add ι] [inst_1 : GradedMonoid.GMul A] {i j : ι} (a : A i) (b : A j),
  GradedMonoid.mk i a * GradedMonoid.mk j b = GradedMonoid.mk (i + j) (GradedMonoid.GMul.mul a b)

def GradedMonoid.GMonoid.gnpowRec E1 #

{ι : Type u_1} →
  {A : ι → Type u_2} →
    [inst : AddMonoid ι] → [GradedMonoid.GMul A] → [GradedMonoid.GOne A] → (n : ℕ) → {i : ι} → A i → A (n • i)

A default implementation of power on a graded monoid, like npowRec. GMonoid.gnpow should be used instead.

theorem GradedMonoid.GMonoid.gnpowRec_zero E0 #

∀ {ι : Type u_1} {A : ι → Type u_2} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMul A] [inst_2 : GradedMonoid.GOne A]
  (a : GradedMonoid A), GradedMonoid.mk (0 • a.fst) (GradedMonoid.GMonoid.gnpowRec 0 a.snd) = 1

theorem GradedMonoid.GMonoid.gnpowRec_succ E0 #

∀ {ι : Type u_1} {A : ι → Type u_2} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMul A] [inst_2 : GradedMonoid.GOne A]
  (n : ℕ) (a : GradedMonoid A),
  GradedMonoid.mk (n.succ • a.fst) (GradedMonoid.GMonoid.gnpowRec n.succ a.snd) =
    ⟨n • a.fst, GradedMonoid.GMonoid.gnpowRec n a.snd⟩ * a

def GradedMonoid.tacticApply_gmonoid_gnpowRec_zero_tac E1 #

Lean.ParserDescr

A tactic to for use as an optional value for GMonoid.gnpow_zero'.

def GradedMonoid.tacticApply_gmonoid_gnpowRec_succ_tac E1 #

Lean.ParserDescr

A tactic to for use as an optional value for GMonoid.gnpow_succ'.

class GradedMonoid.GMonoid E1 #

{ι : Type u_1} → (ι → Type u_2) → [AddMonoid ι] → Type (max u_1 u_2)

A graded version of Monoid

Like Monoid.npow, this has an optional GMonoid.gnpow field to allow definitional control of natural powers of a graded monoid.

instance GradedMonoid.GMonoid.toGMul E0 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : AddMonoid ι} → [self : GradedMonoid.GMonoid A] → GradedMonoid.GMul A

ctor GradedMonoid.GMonoid.mk E0 #

{ι : Type u_1} →
  {A : ι → Type u_2} →
    [inst : AddMonoid ι] →
      [toGMul : GradedMonoid.GMul A] →
        [toGOne : GradedMonoid.GOne A] →
          (∀ (a : GradedMonoid A), 1 * a = a) →
            (∀ (a : GradedMonoid A), a * 1 = a) →
              (∀ (a b c : GradedMonoid A), a * b * c = a * (b * c)) →
                (gnpow : (n : ℕ) → {i : ι} → A i → A (n • i)) →
                  autoParam (∀ (a : GradedMonoid A), GradedMonoid.mk (0 • a.fst) (gnpow 0 a.snd) = 1)
                      GradedMonoid.GMonoid.gnpow_zero'._autoParam →
                    autoParam
                        (∀ (n : ℕ) (a : GradedMonoid A),
                          GradedMonoid.mk (n.succ • a.fst) (gnpow n.succ a.snd) = ⟨n • a.fst, gnpow n a.snd⟩ * a)
                        GradedMonoid.GMonoid.gnpow_succ'._autoParam →
                      GradedMonoid.GMonoid A

instance GradedMonoid.GMonoid.toGOne E0 #

{ι : Type u_1} → {A : ι → Type u_2} → {inst : AddMonoid ι} → [self : GradedMonoid.GMonoid A] → GradedMonoid.GOne A

theorem GradedMonoid.GMonoid.one_mul E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddMonoid ι} [self : GradedMonoid.GMonoid A] (a : GradedMonoid A), 1 * a = a

Multiplication by one on the left is the identity

theorem GradedMonoid.GMonoid.mul_one E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddMonoid ι} [self : GradedMonoid.GMonoid A] (a : GradedMonoid A), a * 1 = a

Multiplication by one on the right is the identity

theorem GradedMonoid.GMonoid.mul_assoc E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddMonoid ι} [self : GradedMonoid.GMonoid A] (a b c : GradedMonoid A),
  a * b * c = a * (b * c)

Multiplication is associative

abbrev GradedMonoid.GMonoid.gnpow E1 #

{ι : Type u_1} →
  {A : ι → Type u_2} → {inst : AddMonoid ι} → [self : GradedMonoid.GMonoid A] → (n : ℕ) → {i : ι} → A i → A (n • i)

Optional field to allow definitional control of natural powers

theorem GradedMonoid.GMonoid.gnpow_zero' E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddMonoid ι} [self : GradedMonoid.GMonoid A] (a : GradedMonoid A),
  GradedMonoid.mk (0 • a.fst) (GradedMonoid.GMonoid.gnpow 0 a.snd) = 1

The zeroth power will yield 1

theorem GradedMonoid.GMonoid.gnpow_succ' E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddMonoid ι} [self : GradedMonoid.GMonoid A] (n : ℕ) (a : GradedMonoid A),
  GradedMonoid.mk (n.succ • a.fst) (GradedMonoid.GMonoid.gnpow n.succ a.snd) =
    ⟨n • a.fst, GradedMonoid.GMonoid.gnpow n a.snd⟩ * a

Successor powers behave as expected

instance GradedMonoid.GMonoid.toMonoid E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddMonoid ι] → [GradedMonoid.GMonoid A] → Monoid (GradedMonoid A)

GMonoid implies a Monoid (GradedMonoid A).

theorem GradedMonoid.fst_pow E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (x : GradedMonoid A) (n : ℕ),
  (x ^ n).fst = n • x.fst

theorem GradedMonoid.snd_pow E0 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (x : GradedMonoid A) (n : ℕ),
  (x ^ n).snd = GradedMonoid.GMonoid.gnpow n x.snd

theorem GradedMonoid.mk_pow E1 #

∀ {ι : Type u_1} (A : ι → Type u_2) [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] {i : ι} (a : A i) (n : ℕ),
  GradedMonoid.mk i a ^ n = GradedMonoid.mk (n • i) (GradedMonoid.GMonoid.gnpow n a)

class GradedMonoid.GCommMonoid E1 #

{ι : Type u_1} → (ι → Type u_2) → [AddCommMonoid ι] → Type (max u_1 u_2)

A graded version of CommMonoid.

ctor GradedMonoid.GCommMonoid.mk E0 #

{ι : Type u_1} →
  {A : ι → Type u_2} →
    [inst : AddCommMonoid ι] →
      [toGMonoid : GradedMonoid.GMonoid A] → (∀ (a b : GradedMonoid A), a * b = b * a) → GradedMonoid.GCommMonoid A

instance GradedMonoid.GCommMonoid.toGMonoid E0 #

{ι : Type u_1} →
  {A : ι → Type u_2} → {inst : AddCommMonoid ι} → [self : GradedMonoid.GCommMonoid A] → GradedMonoid.GMonoid A

theorem GradedMonoid.GCommMonoid.mul_comm E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} {inst : AddCommMonoid ι} [self : GradedMonoid.GCommMonoid A] (a b : GradedMonoid A),
  a * b = b * a

Multiplication is commutative

instance GradedMonoid.GCommMonoid.toCommMonoid E0 #

{ι : Type u_1} →
  (A : ι → Type u_2) → [inst : AddCommMonoid ι] → [GradedMonoid.GCommMonoid A] → CommMonoid (GradedMonoid A)

GCommMonoid implies a CommMonoid (GradedMonoid A), although this is only used as an instance locally to define notation in gmonoid and similar typeclasses.

instance GradedMonoid.GradeZero.one E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : Zero ι] → [GradedMonoid.GOne A] → One (A 0)

1 : A 0 is the value provided in GOne.one.

instance GradedMonoid.GradeZero.smul E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddZeroClass ι] → [GradedMonoid.GMul A] → (i : ι) → SMul (A 0) (A i)

(•) : A 0 → A i → A i is the value provided in GradedMonoid.GMul.mul, composed with an Eq.rec to turn A (0 + i) into A i.

instance GradedMonoid.GradeZero.mul E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddZeroClass ι] → [GradedMonoid.GMul A] → Mul (A 0)

(*) : A 0 → A 0 → A 0 is the value provided in GradedMonoid.GMul.mul, composed with an Eq.rec to turn A (0 + 0) into A 0.

theorem GradedMonoid.mk_zero_smul E0 #

∀ {ι : Type u_1} {A : ι → Type u_2} [inst : AddZeroClass ι] [inst_1 : GradedMonoid.GMul A] {i : ι} (a : A 0) (b : A i),
  GradedMonoid.mk i (a • b) = GradedMonoid.mk 0 a * GradedMonoid.mk i b

theorem GradedMonoid.GradeZero.smul_eq_mul E1 #

∀ {ι : Type u_1} {A : ι → Type u_2} [inst : AddZeroClass ι] [inst_1 : GradedMonoid.GMul A] (a b : A 0), a • b = a * b

instance GradedMonoid.instNatPowOfNat E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddMonoid ι] → [GradedMonoid.GMonoid A] → NatPow (A 0)

theorem GradedMonoid.mk_zero_pow E0 #

∀ {ι : Type u_1} {A : ι → Type u_2} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (a : A 0) (n : ℕ),
  GradedMonoid.mk 0 (a ^ n) = GradedMonoid.mk 0 a ^ n

instance GradedMonoid.GradeZero.monoid E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddMonoid ι] → [GradedMonoid.GMonoid A] → Monoid (A 0)

The Monoid structure derived from GMonoid A.

instance GradedMonoid.GradeZero.commMonoid E0 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddCommMonoid ι] → [GradedMonoid.GCommMonoid A] → CommMonoid (A 0)

The CommMonoid structure derived from GCommMonoid A.

def GradedMonoid.mkZeroMonoidHom E1 #

{ι : Type u_1} → (A : ι → Type u_2) → [inst : AddMonoid ι] → [inst_1 : GradedMonoid.GMonoid A] → A 0 →* GradedMonoid A

GradedMonoid.mk 0 is a MonoidHom, using the GradedMonoid.GradeZero.monoid structure.

instance GradedMonoid.GradeZero.mulAction E0 #

{ι : Type u_1} →
  (A : ι → Type u_2) → [inst : AddMonoid ι] → [inst_1 : GradedMonoid.GMonoid A] → {i : ι} → MulAction (A 0) (A i)

Each grade A i derives an A 0-action structure from GMonoid A.

def List.dProdIndex E1 #

{ι : Type u_1} → {α : Type u_2} → [AddMonoid ι] → List α → (α → ι) → ι

The index used by List.dProd. Propositionally this is equal to (l.map fι).Sum, but definitionally it needs to have a different form to avoid introducing Eq.recs in List.dProd.

theorem List.dProdIndex_nil E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : AddMonoid ι] (fι : α → ι), [].dProdIndex fι = 0

theorem List.dProdIndex_cons E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : AddMonoid ι] (a : α) (l : List α) (fι : α → ι),
  (a :: l).dProdIndex fι = fι a + l.dProdIndex fι

theorem List.dProdIndex_eq_map_sum E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : AddMonoid ι] (l : List α) (fι : α → ι), l.dProdIndex fι = (List.map fι l).sum

def List.dProd E1 #

{ι : Type u_1} →
  {α : Type u_2} →
    {A : ι → Type u_3} →
      [inst : AddMonoid ι] →
        [GradedMonoid.GMonoid A] → (l : List α) → (fι : α → ι) → ((a : α) → A (fι a)) → A (l.dProdIndex fι)

A dependent product for graded monoids represented by the indexed family of types A i. This is a dependent version of (l.map fA).prod.

For a list l : List α, this computes the product of fA a over a, where each fA is of type A (fι a).

theorem List.dProd_nil E0 #

∀ {ι : Type u_1} {α : Type u_2} {A : ι → Type u_3} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (fι : α → ι)
  (fA : (a : α) → A (fι a)), [].dProd fι fA = GradedMonoid.GOne.one

theorem List.dProd_cons E0 #

∀ {ι : Type u_1} {α : Type u_2} {A : ι → Type u_3} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (fι : α → ι)
  (fA : (a : α) → A (fι a)) (a : α) (l : List α), (a :: l).dProd fι fA = GradedMonoid.GMul.mul (fA a) (l.dProd fι fA)

theorem GradedMonoid.mk_list_dProd E1 #

∀ {ι : Type u_1} {α : Type u_2} {A : ι → Type u_3} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (l : List α)
  (fι : α → ι) (fA : (a : α) → A (fι a)),
  GradedMonoid.mk (l.dProdIndex fι) (l.dProd fι fA) = (List.map (fun a ↦ GradedMonoid.mk (fι a) (fA a)) l).prod

theorem GradedMonoid.list_prod_map_eq_dProd E1 #

∀ {ι : Type u_1} {α : Type u_2} {A : ι → Type u_3} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] (l : List α)
  (f : α → GradedMonoid A),
  (List.map f l).prod = GradedMonoid.mk (l.dProdIndex fun i ↦ (f i).fst) (l.dProd (fun i ↦ (f i).fst) fun i ↦ (f i).snd)

A variant of GradedMonoid.mk_list_dProd for rewriting in the other direction.

theorem GradedMonoid.list_prod_ofFn_eq_dProd E1 #

∀ {ι : Type u_1} {A : ι → Type u_3} [inst : AddMonoid ι] [inst_1 : GradedMonoid.GMonoid A] {n : ℕ}
  (f : Fin n → GradedMonoid A),
  (List.ofFn f).prod =
    GradedMonoid.mk ((List.finRange n).dProdIndex fun i ↦ (f i).fst)
      ((List.finRange n).dProd (fun i ↦ (f i).fst) fun i ↦ (f i).snd)

theorem One.gOne_one E0 #

∀ (ι : Type u_1) {R : Type u_2} [inst : Zero ι] [inst_1 : One R], GradedMonoid.GOne.one = 1

instance One.gOne E0 #

(ι : Type u_1) → {R : Type u_2} → [inst : Zero ι] → [One R] → GradedMonoid.GOne fun x ↦ R

instance Mul.gMul E0 #

(ι : Type u_1) → {R : Type u_2} → [inst : Add ι] → [Mul R] → GradedMonoid.GMul fun x ↦ R

theorem Mul.gMul_mul E0 #

∀ (ι : Type u_1) {R : Type u_2} [inst : Add ι] [inst_1 : Mul R] {i j : ι} (x y : R), GradedMonoid.GMul.mul x y = x * y

instance Monoid.gMonoid E0 #

(ι : Type u_1) → {R : Type u_2} → [inst : AddMonoid ι] → [Monoid R] → GradedMonoid.GMonoid fun x ↦ R

If all grades are the same type and themselves form a monoid, then there is a trivial grading structure.

theorem Monoid.gMonoid_gnpow E0 #

∀ (ι : Type u_1) {R : Type u_2} [inst : AddMonoid ι] [inst_1 : Monoid R] (n : ℕ) (x : ι) (a : R),
  GradedMonoid.GMonoid.gnpow n a = a ^ n

instance CommMonoid.gCommMonoid E0 #

(ι : Type u_1) → {R : Type u_2} → [inst : AddCommMonoid ι] → [CommMonoid R] → GradedMonoid.GCommMonoid fun x ↦ R

If all grades are the same type and themselves form a commutative monoid, then there is a trivial grading structure.

theorem List.dProd_monoid E0 #

∀ (ι : Type u_1) {R : Type u_2} {α : Type u_3} [inst : AddMonoid ι] [inst_1 : Monoid R] (l : List α) (fι : α → ι)
  (fA : α → R), l.dProd fι fA = (List.map fA l).prod

When all the indexed types are the same, the dependent product is just the regular product.

class SetLike.GradedOne E1 #

{ι : Type u_1} → {R : Type u_2} → {S : Type u_3} → [SetLike S R] → [One R] → [Zero ι] → (ι → S) → Prop

A version of GradedMonoid.GOne for internally graded objects.

ctor SetLike.GradedOne.mk E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : One R] [inst_2 : Zero ι] {A : ι → S},
  1 ∈ A 0 → SetLike.GradedOne A

theorem SetLike.GradedOne.one_mem E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} {inst : SetLike S R} {inst_1 : One R} {inst_2 : Zero ι} {A : ι → S}
  [self : SetLike.GradedOne A], 1 ∈ A 0

One has grade zero

theorem SetLike.one_mem_graded E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : One R] [inst_2 : Zero ι] (A : ι → S)
  [SetLike.GradedOne A], 1 ∈ A 0

instance SetLike.gOne E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : One R] → [inst_2 : Zero ι] → (A : ι → S) → [SetLike.GradedOne A] → GradedMonoid.GOne fun i ↦ ↥(A i)

theorem SetLike.coe_gOne E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : One R] [inst_2 : Zero ι] (A : ι → S)
  [inst_3 : SetLike.GradedOne A], ↑GradedMonoid.GOne.one = 1

class SetLike.GradedMul E1 #

{ι : Type u_1} → {R : Type u_2} → {S : Type u_3} → [SetLike S R] → [Mul R] → [Add ι] → (ι → S) → Prop

A version of GradedMonoid.ghas_one for internally graded objects.

ctor SetLike.GradedMul.mk E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Mul R] [inst_2 : Add ι] {A : ι → S},
  (∀ ⦃i j : ι⦄ {gi gj : R}, gi ∈ A i → gj ∈ A j → gi * gj ∈ A (i + j)) → SetLike.GradedMul A

theorem SetLike.GradedMul.mul_mem E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} {inst : SetLike S R} {inst_1 : Mul R} {inst_2 : Add ι} {A : ι → S}
  [self : SetLike.GradedMul A] ⦃i j : ι⦄ {gi gj : R}, gi ∈ A i → gj ∈ A j → gi * gj ∈ A (i + j)

Multiplication is homogeneous

theorem SetLike.mul_mem_graded E2 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Mul R] [inst_2 : Add ι] {A : ι → S}
  [SetLike.GradedMul A] ⦃i j : ι⦄ {gi gj : R}, gi ∈ A i → gj ∈ A j → gi * gj ∈ A (i + j)

instance SetLike.gMul E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : Mul R] → [inst_2 : Add ι] → (A : ι → S) → [SetLike.GradedMul A] → GradedMonoid.GMul fun i ↦ ↥(A i)

theorem SetLike.coe_gMul E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Mul R] [inst_2 : Add ι] (A : ι → S)
  [inst_3 : SetLike.GradedMul A] {i j : ι} (x : ↥(A i)) (y : ↥(A j)), ↑(GradedMonoid.GMul.mul x y) = ↑x * ↑y

class SetLike.GradedMonoid E3 #

{ι : Type u_1} → {R : Type u_2} → {S : Type u_3} → [SetLike S R] → [Monoid R] → [AddMonoid ι] → (ι → S) → Prop

A version of GradedMonoid.GMonoid for internally graded objects.

instance SetLike.GradedMonoid.toGradedMul E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} {inst : SetLike S R} {inst_1 : Monoid R} {inst_2 : AddMonoid ι}
  {A : ι → S} [self : SetLike.GradedMonoid A], SetLike.GradedMul A

ctor SetLike.GradedMonoid.mk E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [toGradedOne : SetLike.GradedOne A] [toGradedMul : SetLike.GradedMul A], SetLike.GradedMonoid A

instance SetLike.GradedMonoid.toGradedOne E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} {inst : SetLike S R} {inst_1 : Monoid R} {inst_2 : AddMonoid ι}
  {A : ι → S} [self : SetLike.GradedMonoid A], SetLike.GradedOne A

def SetLike.GradeZero.submonoid E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : Monoid R] → [inst_2 : AddMonoid ι] → (A : ι → S) → [SetLike.GradedMonoid A] → Submonoid R

The submonoid A 0 of R.

theorem SetLike.GradeZero.coe_submonoid E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  (A : ι → S) [inst_3 : SetLike.GradedMonoid A], ↑(SetLike.GradeZero.submonoid A) = ↑(A 0)

instance SetLike.GradeZero.instMonoid E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : Monoid R] → [inst_2 : AddMonoid ι] → {A : ι → S} → [SetLike.GradedMonoid A] → Monoid ↥(A 0)

The monoid A 0 inherited from R in the presence of SetLike.GradedMonoid A.

instance SetLike.GradeZero.instCommMonoid E0 #

{ι : Type u_1} →
  [inst : AddMonoid ι] →
    {R : Type u_4} →
      {S : Type u_5} →
        [inst_1 : SetLike S R] → [inst_2 : CommMonoid R] → {A : ι → S} → [SetLike.GradedMonoid A] → CommMonoid ↥(A 0)

The commutative monoid A 0 inherited from R in the presence of SetLike.GradedMonoid A.

theorem SetLike.GradeZero.coe_one E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [inst_3 : SetLike.GradedMonoid A], ↑1 = 1

theorem SetLike.GradeZero.coe_mul E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [inst_3 : SetLike.GradedMonoid A] (a b : ↥(A 0)), ↑(a * b) = ↑a * ↑b

theorem SetLike.GradeZero.coe_pow E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [inst_3 : SetLike.GradedMonoid A] (a : ↥(A 0)) (n : ℕ), ↑(a ^ n) = ↑a ^ n

theorem SetLike.pow_mem_graded E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [SetLike.GradedMonoid A] (n : ℕ) {r : R} {i : ι}, r ∈ A i → r ^ n ∈ A (n • i)

theorem SetLike.list_prod_map_mem_graded E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [SetLike.GradedMonoid A] {ι' : Type u_4} (l : List ι') (i : ι' → ι) (r : ι' → R),
  (∀ j ∈ l, r j ∈ A (i j)) → (List.map r l).prod ∈ A (List.map i l).sum

theorem SetLike.list_prod_ofFn_mem_graded E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  {A : ι → S} [SetLike.GradedMonoid A] {n : ℕ} (i : Fin n → ι) (r : Fin n → R),
  (∀ (j : Fin n), r j ∈ A (i j)) → (List.ofFn r).prod ∈ A (List.ofFn i).sum

instance SetLike.gMonoid E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : Monoid R] →
          [inst_2 : AddMonoid ι] → (A : ι → S) → [SetLike.GradedMonoid A] → GradedMonoid.GMonoid fun i ↦ ↥(A i)

Build a GMonoid instance for a collection of subobjects.

theorem SetLike.coe_gnpow E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Monoid R] [inst_2 : AddMonoid ι]
  (A : ι → S) [inst_3 : SetLike.GradedMonoid A] {i : ι} (x : ↥(A i)) (n : ℕ), ↑(GradedMonoid.GMonoid.gnpow n x) = ↑x ^ n

instance SetLike.gCommMonoid E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : CommMonoid R] →
          [inst_2 : AddCommMonoid ι] → (A : ι → S) → [SetLike.GradedMonoid A] → GradedMonoid.GCommMonoid fun i ↦ ↥(A i)

Build a GCommMonoid instance for a collection of subobjects.

theorem SetLike.coe_list_dProd E0 #

∀ {ι : Type u_1} {R : Type u_2} {α : Type u_3} {S : Type u_4} [inst : SetLike S R] [inst_1 : Monoid R]
  [inst_2 : AddMonoid ι] (A : ι → S) [inst_3 : SetLike.GradedMonoid A] (fι : α → ι) (fA : (a : α) → ↥(A (fι a)))
  (l : List α), ↑(l.dProd fι fA) = (List.map (fun a ↦ ↑(fA a)) l).prod

theorem SetLike.list_dProd_eq E0 #

∀ {ι : Type u_1} {R : Type u_2} {α : Type u_3} {S : Type u_4} [inst : SetLike S R] [inst_1 : Monoid R]
  [inst_2 : AddMonoid ι] (A : ι → S) [inst_3 : SetLike.GradedMonoid A] (fι : α → ι) (fA : (a : α) → ↥(A (fι a)))
  (l : List α), l.dProd fι fA = ⟨(List.map (fun a ↦ ↑(fA a)) l).prod, ⋯⟩

A version of List.coe_dProd_set_like with Subtype.mk.

def SetLike.IsHomogeneousElem E1 #

{ι : Type u_1} → {R : Type u_2} → {S : Type u_3} → [SetLike S R] → (ι → S) → R → Prop

An element a : R is said to be homogeneous if there is some i : ι such that a ∈ A i.

theorem SetLike.isHomogeneousElem_coe E0 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] {A : ι → S} {i : ι} (x : ↥(A i)),
  SetLike.IsHomogeneousElem A ↑x

theorem SetLike.isHomogeneousElem_one E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Zero ι] [inst_2 : One R] (A : ι → S)
  [SetLike.GradedOne A], SetLike.IsHomogeneousElem A 1

theorem SetLike.IsHomogeneousElem.mul E1 #

∀ {ι : Type u_1} {R : Type u_2} {S : Type u_3} [inst : SetLike S R] [inst_1 : Add ι] [inst_2 : Mul R] {A : ι → S}
  [SetLike.GradedMul A] {a b : R},
  SetLike.IsHomogeneousElem A a → SetLike.IsHomogeneousElem A b → SetLike.IsHomogeneousElem A (a * b)

def SetLike.homogeneousSubmonoid E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    {S : Type u_3} →
      [inst : SetLike S R] →
        [inst_1 : AddMonoid ι] → [inst_2 : Monoid R] → (A : ι → S) → [SetLike.GradedMonoid A] → Submonoid R

When A is a SetLike.GradedMonoid A, then the homogeneous elements forms a submonoid.

theorem SetLike.prod_mem_graded E1 #

∀ {ι : Type u_2} {R : Type u_3} {S : Type u_4} [inst : SetLike S R] [inst_1 : CommMonoid R] [inst_2 : AddCommMonoid ι]
  (A : ι → S) [SetLike.GradedMonoid A] {κ : Type u_5} (i : κ → ι) (g : κ → R) {F : Finset κ},
  (∀ k ∈ F, g k ∈ A (i k)) → ∏ k ∈ F, g k ∈ A (∑ k ∈ F, i k)

theorem SetLike.prod_pow_mem_graded E1 #

∀ {ι : Type u_2} {R : Type u_3} {S : Type u_4} [inst : SetLike S R] [inst_1 : CommMonoid R] [inst_2 : AddCommMonoid ι]
  (A : ι → S) [SetLike.GradedMonoid A] {κ : Type u_5} (i : κ → ι) (g : κ → R) {F : Finset κ} (n : κ → ℕ),
  (∀ k ∈ F, g k ∈ A (i k)) → ∏ k ∈ F, g k ^ n k ∈ A (∑ k ∈ F, n k • i k)