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.DirectSum.Internal

54 declarations. Mathlib docs · Source

Internally graded rings and algebras

This module provides DirectSum.GSemiring and DirectSum.GCommSemiring instances for a collection of subobjects A when a SetLike.GradedMonoid instance is available:

  • SetLike.gnonUnitalNonAssocSemiring
  • SetLike.gsemiring
  • SetLike.gcommSemiring

With these instances in place, it provides the bundled canonical maps out of a direct sum of subobjects into their carrier type:

  • DirectSum.coeRingHom (a RingHom version of DirectSum.coeAddMonoidHom)
  • DirectSum.coeAlgHom (an AlgHom version of DirectSum.coeLinearMap)

Strictly the definitions in this file are not sufficient to fully define an "internal" direct sum; to represent this case, (h : DirectSum.IsInternal A) [SetLike.GradedMonoid A] is needed. In the future there will likely be a data-carrying, constructive, typeclass version of DirectSum.IsInternal for providing an explicit decomposition function.

When iSupIndep (Set.range A) (a weaker condition than DirectSum.IsInternal A), these provide a grading of ⨆ i, A i, and the mapping ⨁ i, A i →+ ⨆ i, A i can be obtained as DirectSum.toAddMonoid (fun i ↦ AddSubmonoid.inclusion <| le_iSup A i).

This file also provides some extra structure on A 0, namely:

  • SetLike.GradeZero.subsemiring, which leads to
    • SetLike.GradeZero.instSemiring
    • SetLike.GradeZero.instCommSemiring
  • SetLike.GradeZero.subring, which leads to
    • SetLike.GradeZero.instRing
    • SetLike.GradeZero.instCommRing
  • SetLike.GradeZero.subalgebra, which leads to
    • SetLike.GradeZero.instAlgebra

Tags

internally graded ring

From AddSubmonoids and AddSubgroups

The following two lemmas only require the same hypotheses as eq_tsub_iff_add_eq_of_le, but we state them for the above typeclasses for convenience.

From Submodules

Facts about grade zero

Gradings by canonically linearly ordered additive monoids

theorem SetLike.algebraMap_mem_graded E1 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [inst : Zero ι] [inst_1 : CommSemiring S] [inst_2 : Semiring R]
  [inst_3 : Algebra S R] (A : ι → Submodule S R) [SetLike.GradedOne A] (s : S), (algebraMap S R) s ∈ A 0

theorem SetLike.natCast_mem_graded E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : Zero ι] [inst_1 : AddMonoidWithOne R] [inst_2 : SetLike σ R]
  [AddSubmonoidClass σ R] (A : ι → σ) [SetLike.GradedOne A] (n : ℕ), ↑n ∈ A 0

theorem SetLike.intCast_mem_graded E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : Zero ι] [inst_1 : AddGroupWithOne R] [inst_2 : SetLike σ R]
  [AddSubgroupClass σ R] (A : ι → σ) [SetLike.GradedOne A] (z : ℤ), ↑z ∈ A 0

instance SetLike.gnonUnitalNonAssocSemiring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : Add ι] →
        [inst_1 : NonUnitalNonAssocSemiring R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubmonoidClass σ R] →
              (A : ι → σ) → [SetLike.GradedMul A] → DirectSum.GNonUnitalNonAssocSemiring fun i ↦ ↥(A i)

Build a DirectSum.GNonUnitalNonAssocSemiring instance for a collection of additive submonoids.

instance SetLike.gsemiring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : AddMonoid ι] →
        [inst_1 : Semiring R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubmonoidClass σ R] →
              (A : ι → σ) → [SetLike.GradedMonoid A] → DirectSum.GSemiring fun i ↦ ↥(A i)

Build a DirectSum.GSemiring instance for a collection of additive submonoids.

instance SetLike.gcommSemiring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : AddCommMonoid ι] →
        [inst_1 : CommSemiring R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubmonoidClass σ R] →
              (A : ι → σ) → [SetLike.GradedMonoid A] → DirectSum.GCommSemiring fun i ↦ ↥(A i)

Build a DirectSum.GCommSemiring instance for a collection of additive submonoids.

instance SetLike.gring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : AddMonoid ι] →
        [inst_1 : Ring R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubgroupClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → DirectSum.GRing fun i ↦ ↥(A i)

Build a DirectSum.GRing instance for a collection of additive subgroups.

instance SetLike.gcommRing E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : AddCommMonoid ι] →
        [inst_1 : CommRing R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubgroupClass σ R] →
              (A : ι → σ) → [SetLike.GradedMonoid A] → DirectSum.GCommRing fun i ↦ ↥(A i)

Build a DirectSum.GCommRing instance for a collection of additive submonoids.

def DirectSum.coeRingHom E1 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : DecidableEq ι] →
        [inst_1 : Semiring R] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubmonoidClass σ R] →
              (A : ι → σ) →
                [inst_4 : AddMonoid ι] → [inst_5 : SetLike.GradedMonoid A] → (DirectSum ι fun i ↦ ↥(A i)) →+* R

The canonical ring isomorphism between ⨁ i, A i and R

theorem DirectSum.coeRingHom_of E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A] (i : ι)
  (x : ↥(A i)), (DirectSum.coeRingHom A) ((DirectSum.of (fun i ↦ ↥(A i)) i) x) = ↑x

The canonical ring isomorphism between ⨁ i, A i and R

theorem DirectSum.coe_mul_apply E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  [inst_6 : (i : ι) → (x : ↥(A i)) → Decidable (x ≠ 0)] (r r' : DirectSum ι fun i ↦ ↥(A i)) (n : ι),
  ↑((r * r') n) = ∑ ij ∈ DFinsupp.support r ×ˢ DFinsupp.support r' with ij.1 + ij.2 = n, ↑(r ij.1) * ↑(r' ij.2)

theorem DirectSum.coe_mul_apply_eq_dfinsuppSum E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  [inst_6 : (i : ι) → (x : ↥(A i)) → Decidable (x ≠ 0)] (r r' : DirectSum ι fun i ↦ ↥(A i)) (n : ι),
  ↑((r * r') n) = DFinsupp.sum r fun i ri ↦ DFinsupp.sum r' fun j rj ↦ if i + j = n then ↑ri * ↑rj else 0

theorem DirectSum.coe_mul_apply_eq_sum_antidiagonal E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : Finset.HasAntidiagonal ι]
  [inst_6 : SetLike.GradedMonoid A] (r r' : DirectSum ι fun i ↦ ↥(A i)) (n : ι),
  ↑((r * r') n) = ∑ ij ∈ Finset.HasAntidiagonal.antidiagonal n, ↑(r ij.1) * ↑(r' ij.2)

theorem DirectSum.coe_of_mul_apply_aux E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A] {i : ι}
  (r : ↥(A i)) (r' : DirectSum ι fun i ↦ ↥(A i)) {j n : ι},
  (∀ (x : ι), i + x = n ↔ x = j) → ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) r * r') n) = ↑r * ↑(r' j)

theorem DirectSum.coe_mul_of_apply_aux E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  (r : DirectSum ι fun i ↦ ↥(A i)) {i : ι} (r' : ↥(A i)) {j n : ι},
  (∀ (x : ι), x + i = n ↔ x = j) → ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) i) r') n) = ↑(r j) * ↑r'

theorem DirectSum.coe_of_mul_apply_add E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddLeftCancelMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  {i : ι} (r : ↥(A i)) (r' : DirectSum ι fun i ↦ ↥(A i)) (j : ι),
  ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) r * r') (i + j)) = ↑r * ↑(r' j)

theorem DirectSum.coe_mul_of_apply_add E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddRightCancelMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  (r : DirectSum ι fun i ↦ ↥(A i)) {i : ι} (r' : ↥(A i)) (j : ι),
  ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) i) r') (j + i)) = ↑(r j) * ↑r'

theorem DirectSum.coe_of_mul_apply_of_mem_zero E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A] (r : ↥(A 0))
  (r' : DirectSum ι fun i ↦ ↥(A i)) (j : ι), ↑(((DirectSum.of (fun i ↦ ↥(A i)) 0) r * r') j) = ↑r * ↑(r' j)

theorem DirectSum.coe_mul_of_apply_of_mem_zero E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddMonoid ι] [inst_5 : SetLike.GradedMonoid A]
  (r : DirectSum ι fun i ↦ ↥(A i)) (r' : ↥(A 0)) (j : ι), ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) 0) r') j) = ↑(r j) * ↑r'

theorem DirectSum.coe_of_mul_apply_of_not_le E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] {i : ι} (r : ↥(A i)) (r' : DirectSum ι fun i ↦ ↥(A i))
  (n : ι), ¬i ≤ n → ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) r * r') n) = 0

theorem DirectSum.coe_mul_of_apply_of_not_le E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] (r : DirectSum ι fun i ↦ ↥(A i)) {i : ι} (r' : ↥(A i))
  (n : ι), ¬i ≤ n → ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) i) r') n) = 0

theorem DirectSum.coe_mul_of_apply_of_le E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] [inst_8 : Sub ι] [OrderedSub ι] [AddLeftReflectLE ι]
  (r : DirectSum ι fun i ↦ ↥(A i)) {i : ι} (r' : ↥(A i)) (n : ι),
  i ≤ n → ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) i) r') n) = ↑(r (n - i)) * ↑r'

theorem DirectSum.coe_of_mul_apply_of_le E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] [inst_8 : Sub ι] [OrderedSub ι] [AddLeftReflectLE ι]
  {i : ι} (r : ↥(A i)) (r' : DirectSum ι fun i ↦ ↥(A i)) (n : ι),
  i ≤ n → ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) r * r') n) = ↑r * ↑(r' (n - i))

theorem DirectSum.coe_mul_of_apply E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] [inst_8 : Sub ι] [OrderedSub ι] [AddLeftReflectLE ι]
  (r : DirectSum ι fun i ↦ ↥(A i)) {i : ι} (r' : ↥(A i)) (n : ι) [inst_11 : Decidable (i ≤ n)],
  ↑((r * (DirectSum.of (fun i ↦ ↥(A i)) i) r') n) = if i ≤ n then ↑(r (n - i)) * ↑r' else 0

theorem DirectSum.coe_of_mul_apply E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : AddCommMonoid ι] [inst_5 : PartialOrder ι]
  [CanonicallyOrderedAdd ι] [inst_7 : SetLike.GradedMonoid A] [inst_8 : Sub ι] [OrderedSub ι] [AddLeftReflectLE ι]
  {i : ι} (r : ↥(A i)) (r' : DirectSum ι fun i ↦ ↥(A i)) (n : ι) [inst_11 : Decidable (i ≤ n)],
  ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) r * r') n) = if i ≤ n then ↑r * ↑(r' (n - i)) else 0

instance Submodule.galgebra E0 #

{ι : Type u_1} →
  {S : Type u_3} →
    {R : Type u_4} →
      [inst : AddMonoid ι] →
        [inst_1 : CommSemiring S] →
          [inst_2 : Semiring R] →
            [inst_3 : Algebra S R] →
              (A : ι → Submodule S R) → [inst_4 : SetLike.GradedMonoid A] → DirectSum.GAlgebra S fun i ↦ ↥(A i)

Build a DirectSum.GAlgebra instance for a collection of Submodules.

theorem Submodule.setLike.coe_galgebra_toFun E0 #

∀ {S : Type u_3} {R : Type u_4} {ι : Type u_5} [inst : AddMonoid ι] [inst_1 : CommSemiring S] [inst_2 : Semiring R]
  [inst_3 : Algebra S R] (A : ι → Submodule S R) [inst_4 : SetLike.GradedMonoid A] (s : S),
  ↑(DirectSum.GAlgebra.toFun s) = (algebraMap S R) s

instance Submodule.nat_power_gradedMonoid E0 #

∀ {S : Type u_3} {R : Type u_4} [inst : CommSemiring S] [inst_1 : Semiring R] [inst_2 : Algebra S R]
  (p : Submodule S R), SetLike.GradedMonoid fun i ↦ p ^ i

A direct sum of powers of a submodule of an algebra has a multiplicative structure.

def DirectSum.coeAlgHom E1 #

{ι : Type u_1} →
  {S : Type u_3} →
    {R : Type u_4} →
      [inst : DecidableEq ι] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : CommSemiring S] →
            [inst_3 : Semiring R] →
              [inst_4 : Algebra S R] →
                (A : ι → Submodule S R) → [inst_5 : SetLike.GradedMonoid A] → (DirectSum ι fun i ↦ ↥(A i)) →ₐ[S] R

The canonical algebra isomorphism between ⨁ i, A i and R.

theorem Submodule.iSup_eq_toSubmodule_range E1 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : AddMonoid ι] [inst_2 : CommSemiring S]
  [inst_3 : Semiring R] [inst_4 : Algebra S R] (A : ι → Submodule S R) [inst_5 : SetLike.GradedMonoid A],
  ⨆ i, A i = Subalgebra.toSubmodule (DirectSum.coeAlgHom A).range

The supremum of submodules that form a graded monoid is a subalgebra, and equal to the range of DirectSum.coeAlgHom.

theorem DirectSum.coeAlgHom_of E0 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [inst : DecidableEq ι] [inst_1 : AddMonoid ι] [inst_2 : CommSemiring S]
  [inst_3 : Semiring R] [inst_4 : Algebra S R] (A : ι → Submodule S R) [inst_5 : SetLike.GradedMonoid A] (i : ι)
  (x : ↥(A i)), (DirectSum.coeAlgHom A) ((DirectSum.of (fun i ↦ ↥(A i)) i) x) = ↑x

def SetLike.GradeZero.subsemiring E1 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] → [AddSubmonoidClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → Subsemiring R

The subsemiring A 0 of R.

instance SetLike.GradeZero.instSemiring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] → [AddSubmonoidClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → Semiring ↥(A 0)

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

theorem SetLike.GradeZero.coe_natCast E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddMonoid ι] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : SetLike.GradedMonoid A] (n : ℕ), ↑↑n = ↑n

theorem SetLike.GradeZero.coe_ofNat E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddMonoid ι] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : SetLike.GradedMonoid A] (n : ℕ) [inst_5 : n.AtLeastTwo],
  ↑(OfNat.ofNat n) = OfNat.ofNat n

instance SetLike.GradeZero.instCommSemiring E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : CommSemiring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] →
            [AddSubmonoidClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → CommSemiring ↥(A 0)

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

instance SetLike.GradeZero.instAlgebraSubtypeMemOfNat E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : CommSemiring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] →
            [inst_3 : AddSubmonoidClass σ R] → (A : ι → σ) → [inst_4 : SetLike.GradedMonoid A] → Algebra (↥(A 0)) R

theorem SetLike.GradeZero.algebraMap_apply E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : CommSemiring R] [inst_1 : AddMonoid ι] [inst_2 : SetLike σ R]
  [inst_3 : AddSubmonoidClass σ R] (A : ι → σ) [inst_4 : SetLike.GradedMonoid A] (x : ↥(A 0)),
  (algebraMap (↥(A 0)) R) x = ↑x

def SetLike.GradeZero.subring E1 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : Ring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] → [AddSubgroupClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → Subring R

The subring A 0 of R.

instance SetLike.GradeZero.instRing E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : Ring R] →
        [inst_1 : AddMonoid ι] →
          [inst_2 : SetLike σ R] → [AddSubgroupClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → Ring ↥(A 0)

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

theorem SetLike.GradeZero.coe_intCast E0 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : Ring R] [inst_1 : AddMonoid ι] [inst_2 : SetLike σ R]
  [inst_3 : AddSubgroupClass σ R] (A : ι → σ) [inst_4 : SetLike.GradedMonoid A] (z : ℤ), ↑↑z = ↑z

instance SetLike.GradeZero.instCommRing E0 #

{ι : Type u_1} →
  {σ : Type u_2} →
    {R : Type u_4} →
      [inst : CommRing R] →
        [inst_1 : AddCommMonoid ι] →
          [inst_2 : SetLike σ R] → [AddSubgroupClass σ R] → (A : ι → σ) → [SetLike.GradedMonoid A] → CommRing ↥(A 0)

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

def SetLike.GradeZero.subalgebra E1 #

{ι : Type u_1} →
  {S : Type u_3} →
    {R : Type u_4} →
      [inst : CommSemiring S] →
        [inst_1 : Semiring R] →
          [inst_2 : Algebra S R] →
            [inst_3 : AddMonoid ι] → (A : ι → Submodule S R) → [SetLike.GradedMonoid A] → Subalgebra S R

The subalgebra A 0 of R.

instance SetLike.GradeZero.instAlgebra E0 #

{ι : Type u_1} →
  {S : Type u_3} →
    {R : Type u_4} →
      [inst : CommSemiring S] →
        [inst_1 : Semiring R] →
          [inst_2 : Algebra S R] →
            [inst_3 : AddMonoid ι] → (A : ι → Submodule S R) → [inst_4 : SetLike.GradedMonoid A] → Algebra S ↥(A 0)

The S-algebra A 0 inherited from R in the presence of SetLike.GradedMonoid A.

theorem SetLike.GradeZero.coe_algebraMap E0 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [inst : CommSemiring S] [inst_1 : Semiring R] [inst_2 : Algebra S R]
  [inst_3 : AddMonoid ι] (A : ι → Submodule S R) [inst_4 : SetLike.GradedMonoid A] (s : S),
  ↑((algebraMap S ↥(A 0)) s) = (algebraMap S R) s

theorem SetLike.homogeneous_zero_submodule E1 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [Zero ι] [inst : Semiring S] [inst_1 : AddCommMonoid R]
  [inst_2 : Module S R] (A : ι → Submodule S R), SetLike.IsHomogeneousElem A 0

theorem SetLike.Homogeneous.smul E1 #

∀ {ι : Type u_1} {S : Type u_3} {R : Type u_4} [inst : CommSemiring S] [inst_1 : Semiring R] [inst_2 : Algebra S R]
  {A : ι → Submodule S R} {s : S} {r : R}, SetLike.IsHomogeneousElem A r → SetLike.IsHomogeneousElem A (s • r)

theorem mul_apply_eq_zero E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [inst_4 : Semiring R] [inst_5 : SetLike σ R] [inst_6 : AddSubmonoidClass σ R] {A : ι → σ}
  [inst_7 : SetLike.GradedMonoid A] {r r' : DirectSum ι fun i ↦ ↥(A i)} {m n : ι},
  (∀ i < m, r i = 0) → (∀ i < n, r' i = 0) → ∀ ⦃k : ι⦄, k < m + n → (r * r') k = 0

theorem listProd_apply_eq_zero' E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [inst_4 : Semiring R] [inst_5 : SetLike σ R] [inst_6 : AddSubmonoidClass σ R] {A : ι → σ}
  [inst_7 : SetLike.GradedMonoid A] [CanonicallyOrderedAdd ι] {l : List ((DirectSum ι fun i ↦ ↥(A i)) × ι)},
  (∀ xn ∈ l, ∀ k < xn.2, xn.1 k = 0) → ∀ ⦃n : ι⦄, n < (List.map Prod.snd l).sum → (List.map Prod.fst l).prod n = 0

The difference with DirectSum.listProd_apply_eq_zero is that the indices at which the terms of the list are zero is allowed to vary.

theorem listProd_apply_eq_zero E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [inst_4 : Semiring R] [inst_5 : SetLike σ R] [inst_6 : AddSubmonoidClass σ R] {A : ι → σ}
  [inst_7 : SetLike.GradedMonoid A] [CanonicallyOrderedAdd ι] {l : List (DirectSum ι fun i ↦ ↥(A i))} {m : ι},
  (∀ x ∈ l, ∀ k < m, x k = 0) → ∀ ⦃n : ι⦄, n < l.length • m → l.prod n = 0

theorem multisetProd_apply_eq_zero' E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [CanonicallyOrderedAdd ι] [inst_5 : CommSemiring R] [inst_6 : SetLike σ R]
  [inst_7 : AddSubmonoidClass σ R] {A : ι → σ} [inst_8 : SetLike.GradedMonoid A]
  {s : Multiset ((DirectSum ι fun i ↦ ↥(A i)) × ι)},
  (∀ xn ∈ s, ∀ k < xn.2, xn.1 k = 0) →
    ∀ ⦃n : ι⦄, n < (Multiset.map Prod.snd s).sum → (Multiset.map Prod.fst s).prod n = 0

The difference with DirectSum.multisetProd_apply_eq_zero is that the indices at which the terms of the multiset are zero is allowed to vary.

theorem multisetProd_apply_eq_zero E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [CanonicallyOrderedAdd ι] [inst_5 : CommSemiring R] [inst_6 : SetLike σ R]
  [inst_7 : AddSubmonoidClass σ R] {A : ι → σ} [inst_8 : SetLike.GradedMonoid A]
  {s : Multiset (DirectSum ι fun i ↦ ↥(A i))} {m : ι},
  (∀ x ∈ s, ∀ k < m, x k = 0) → ∀ ⦃n : ι⦄, n < s.card • m → s.prod n = 0

theorem finsetProd_apply_eq_zero' E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [CanonicallyOrderedAdd ι] [inst_5 : CommSemiring R] [inst_6 : SetLike σ R]
  [inst_7 : AddSubmonoidClass σ R] {A : ι → σ} [inst_8 : SetLike.GradedMonoid A]
  {s : Finset ((DirectSum ι fun i ↦ ↥(A i)) × ι)},
  (∀ xn ∈ s, ∀ k < xn.2, xn.1 k = 0) → ∀ ⦃n : ι⦄, n < ∑ xn ∈ s, xn.2 → (∏ xn ∈ s, xn.1) n = 0

The difference with DirectSum.finsetProd_apply_eq_zero is that the indices at which the terms of the multiset are zero is allowed to vary.

theorem finsetProd_apply_eq_zero E1 #

∀ {ι : Type u_1} {σ : Type u_2} {R : Type u_4} [inst : AddCommMonoid ι] [inst_1 : LinearOrder ι] [IsOrderedAddMonoid ι]
  [inst_3 : DecidableEq ι] [CanonicallyOrderedAdd ι] [inst_5 : CommSemiring R] [inst_6 : SetLike σ R]
  [inst_7 : AddSubmonoidClass σ R] {A : ι → σ} [inst_8 : SetLike.GradedMonoid A]
  {s : Finset (DirectSum ι fun i ↦ ↥(A i))} {m : ι},
  (∀ x ∈ s, ∀ k < m, x k = 0) → ∀ ⦃n : ι⦄, n < s.card • m → (∏ x ∈ s, x) n = 0