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

85 declarations. Mathlib docs · Source

Direct sum

This file defines the direct sum of abelian groups, indexed by a discrete type.

Notation

⨁ i, β i is the n-ary direct sum DirectSum. This notation is in the DirectSum locale, accessible after open DirectSum.

References

  • https://en.wikipedia.org/wiki/Direct_sum

theorem DFinsupp.comapDomain.congr_simp E1 #

∀ {ι : Type u} {β : ι → Type v} {κ : Type u_1} [inst : (i : ι) → Zero (β i)] (h : κ → ι) (hh : Function.Injective h)
  (f f_1 : Π₀ (i : ι), β i), f = f_1 → DFinsupp.comapDomain h hh f = DFinsupp.comapDomain h hh f_1

def DirectSum E1 #

(ι : Type v) → (β : ι → Type w) → [(i : ι) → AddCommMonoid (β i)] → Type (max w v)

DirectSum ι β is the direct sum of a family of additive commutative monoids β i.

Note: open DirectSum will enable the notation ⨁ i, β i for DirectSum ι β.

instance instCoeFunDirectSumForall E0 #

(ι : Type u_1) →
  (β : ι → Type u_2) → [inst : (i : ι) → AddCommMonoid (β i)] → CoeFun (DirectSum ι β) fun x ↦ (a : ι) → β a

def DirectSum.«term⨁_,_» E1 #

Lean.ParserDescr

⨁ i, f i is notation for DirectSum _ f and equals the direct sum of fun i ↦ f i. Taking the direct sum over multiple arguments is possible, e.g. ⨁ (i) (j), f i j.

instance DirectSum.instSMulOfModule E0 #

{ι : Type v} →
  {β : ι → Type w} →
    {R : Type u} →
      [inst : Semiring R] →
        [inst_1 : (i : ι) → AddCommMonoid (β i)] → [(i : ι) → Module R (β i)] → SMul R (DirectSum ι fun i ↦ β i)

instance DirectSum.instDFunLike E0 #

(ι : Type u_1) → (β : ι → Type u_2) → [inst : (i : ι) → AddCommMonoid (β i)] → DFunLike (DirectSum ι β) ι β

instance DirectSum.instInhabited E0 #

(ι : Type u_1) → (β : ι → Type u_2) → [inst : (i : ι) → AddCommMonoid (β i)] → Inhabited (DirectSum ι β)

instance DirectSum.instAddCommMonoid E0 #

(ι : Type u_1) → (β : ι → Type u_2) → [inst : (i : ι) → AddCommMonoid (β i)] → AddCommMonoid (DirectSum ι β)

instance DirectSum.instDecidableEq E0 #

{ι : Type v} →
  {β : ι → Type w} →
    [DecidableEq ι] →
      [inst : (i : ι) → AddCommMonoid (β i)] → [(i : ι) → DecidableEq (β i)] → DecidableEq (DirectSum ι β)

def DirectSum.coeFnAddMonoidHom E1 #

{ι : Type v} → (β : ι → Type w) → [inst : (i : ι) → AddCommMonoid (β i)] → (DirectSum ι fun i ↦ β i) →+ (i : ι) → β i

Coercion from a DirectSum to a pi type is an AddMonoidHom.

theorem DirectSum.coeFnAddMonoidHom_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] (v : DirectSum ι fun i ↦ β i),
  (DirectSum.coeFnAddMonoidHom β) v = ⇑v

instance DirectSum.instAddCommGroup E0 #

{ι : Type v} → {β : ι → Type w} → [inst : (i : ι) → AddCommGroup (β i)] → AddCommGroup (DirectSum ι β)

theorem DirectSum.sub_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommGroup (β i)] (g₁ g₂ : DirectSum ι fun i ↦ β i) (i : ι),
  (g₁ - g₂) i = g₁ i - g₂ i

theorem DirectSum.ext E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] {x y : DirectSum ι β},
  (∀ (i : ι), x i = y i) → x = y

theorem DirectSum.ext_iff E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] {x y : DirectSum ι β},
  x = y ↔ ∀ (i : ι), x i = y i

theorem DirectSum.zero_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] (i : ι), 0 i = 0

theorem DirectSum.add_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] (g₁ g₂ : DirectSum ι fun i ↦ β i) (i : ι),
  (g₁ + g₂) i = g₁ i + g₂ i

theorem DirectSum.sum_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] {α : Type u_1} (s : Finset α)
  (g : α → DirectSum ι fun i ↦ β i) (i : ι), (∑ a ∈ s, g a) i = ∑ a ∈ s, (g a) i

def DirectSum.mk E1 #

{ι : Type v} →
  (β : ι → Type w) →
    [inst : (i : ι) → AddCommMonoid (β i)] →
      [DecidableEq ι] → (s : Finset ι) → ((i : ↑↑s) → β ↑i) →+ DirectSum ι fun i ↦ β i

mk β s x is the element of ⨁ i, β i that is zero outside s and has coefficient x i for i in s.

def DirectSum.of E1 #

{ι : Type v} →
  (β : ι → Type w) → [inst : (i : ι) → AddCommMonoid (β i)] → [DecidableEq ι] → (i : ι) → β i →+ DirectSum ι fun i ↦ β i

of i is the natural inclusion map from β i to ⨁ i, β i.

theorem DirectSum.of_eq_same E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] (i : ι) (x : β i),
  ((DirectSum.of β i) x) i = x

theorem DirectSum.of_eq_of_ne E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] (i j : ι) (x : β i),
  j ≠ i → ((DirectSum.of β i) x) j = 0

theorem DirectSum.of_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {i : ι} (j : ι)
  (x : β i), ((DirectSum.of β i) x) j = if h : i = j then Eq.recOn h x else 0

theorem DirectSum.mk_apply_of_mem E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {s : Finset ι}
  {f : (i : ↑↑s) → β ↑i} {n : ι} (hn : n ∈ s), ((DirectSum.mk β s) f) n = f ⟨n, hn⟩

theorem DirectSum.mk_apply_of_notMem E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {s : Finset ι}
  {f : (i : ↑↑s) → β ↑i} {n : ι}, n ∉ s → ((DirectSum.mk β s) f) n = 0

theorem DirectSum.support_zero E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → (x : β i) → Decidable (x ≠ 0)], DFinsupp.support 0 = ∅

theorem DirectSum.support_of E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → (x : β i) → Decidable (x ≠ 0)] (i : ι) (x : β i),
  x ≠ 0 → DFinsupp.support ((DirectSum.of β i) x) = {i}

theorem DirectSum.support_of_subset E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → (x : β i) → Decidable (x ≠ 0)] {i : ι} {b : β i}, DFinsupp.support ((DirectSum.of β i) b) ⊆ {i}

theorem DirectSum.sum_support_of E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → (x : β i) → Decidable (x ≠ 0)] (x : DirectSum ι fun i ↦ β i),
  ∑ i ∈ DFinsupp.support x, (DirectSum.of β i) (x i) = x

theorem DirectSum.sum_univ_of E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  (x : DirectSum ι fun i ↦ β i), ∑ i, (DirectSum.of β i) (x i) = x

theorem DirectSum.mk_injective E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] (s : Finset ι),
  Function.Injective ⇑(DirectSum.mk β s)

theorem DirectSum.of_injective E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] (i : ι),
  Function.Injective ⇑(DirectSum.of β i)

theorem DirectSum.induction_on E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  {motive : (DirectSum ι fun i ↦ β i) → Prop} (x : DirectSum ι fun i ↦ β i),
  motive 0 →
    (∀ (i : ι) (x : β i), motive ((DirectSum.of β i) x)) →
      (∀ (x y : DirectSum ι fun i ↦ β i), motive x → motive y → motive (x + y)) → motive x

theorem DirectSum.induction_on' E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι]
  {motive : (DirectSum ι fun i ↦ β i) → Prop} (f : DirectSum ι fun i ↦ β i),
  motive 0 →
    (∀ (i : ι) (b : β i) (f : DirectSum ι fun i ↦ β i),
        f i = 0 → b ≠ 0 → motive f → motive ((DirectSum.of β i) b + f)) →
      motive f

An alternative induction, where the addition assumption is restricted to singles.

theorem DirectSum.addHom_ext E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u_1}
  [inst_2 : AddZeroClass γ] ⦃f g : (DirectSum ι fun i ↦ β i) →+ γ⦄,
  (∀ (i : ι) (y : β i), f ((DirectSum.of β i) y) = g ((DirectSum.of β i) y)) → f = g

If two additive homomorphisms from ⨁ i, β i are equal on each of β i y, then they are equal.

theorem DirectSum.addHom_ext' E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u_1}
  [inst_2 : AddZeroClass γ] ⦃f g : (DirectSum ι fun i ↦ β i) →+ γ⦄,
  (∀ (i : ι), f.comp (DirectSum.of β i) = g.comp (DirectSum.of β i)) → f = g

If two additive homomorphisms from ⨁ i, β i are equal on each of β i y, then they are equal.

See note [partially-applied ext lemmas].

theorem DirectSum.addHom_ext'_iff E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u_1}
  [inst_2 : AddZeroClass γ] {f g : (DirectSum ι fun i ↦ β i) →+ γ},
  f = g ↔ ∀ (i : ι), f.comp (DirectSum.of β i) = g.comp (DirectSum.of β i)

def DirectSum.toAddMonoid E1 #

{ι : Type v} →
  {β : ι → Type w} →
    [inst : (i : ι) → AddCommMonoid (β i)] →
      [DecidableEq ι] →
        {γ : Type u₁} → [inst_2 : AddCommMonoid γ] → ((i : ι) → β i →+ γ) → (DirectSum ι fun i ↦ β i) →+ γ

toAddMonoid φ is the natural homomorphism from ⨁ i, β i to γ induced by a family φ of homomorphisms β i → γ.

theorem DirectSum.toAddMonoid_of E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ] (φ : (i : ι) → β i →+ γ) (i : ι) (x : β i),
  (DirectSum.toAddMonoid φ) ((DirectSum.of β i) x) = (φ i) x

theorem DirectSum.toAddMonoid.unique E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ] (ψ : (DirectSum ι fun i ↦ β i) →+ γ) (f : DirectSum ι fun i ↦ β i),
  ψ f = (DirectSum.toAddMonoid fun i ↦ ψ.comp (DirectSum.of β i)) f

theorem DirectSum.toAddMonoid_injective E1 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ], Function.Injective DirectSum.toAddMonoid

theorem DirectSum.toAddMonoid_inj E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ] {f g : (i : ι) → β i →+ γ}, DirectSum.toAddMonoid f = DirectSum.toAddMonoid g ↔ f = g

def DirectSum.fromAddMonoid E1 #

{ι : Type v} →
  {β : ι → Type w} →
    [inst : (i : ι) → AddCommMonoid (β i)] →
      [DecidableEq ι] →
        {γ : Type u₁} → [inst_2 : AddCommMonoid γ] → (DirectSum ι fun i ↦ γ →+ β i) →+ γ →+ DirectSum ι fun i ↦ β i

fromAddMonoid φ is the natural homomorphism from γ to ⨁ i, β i induced by a family φ of homomorphisms γ → β i.

Note that this is not an isomorphism. Not every homomorphism γ →+ ⨁ i, β i arises in this way.

theorem DirectSum.fromAddMonoid_of E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ] (i : ι) (f : γ →+ β i),
  DirectSum.fromAddMonoid ((DirectSum.of (fun i ↦ γ →+ β i) i) f) = (DirectSum.of β i).comp f

theorem DirectSum.fromAddMonoid_of_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] [inst_1 : DecidableEq ι] {γ : Type u₁}
  [inst_2 : AddCommMonoid γ] (i : ι) (f : γ →+ β i) (x : γ),
  (DirectSum.fromAddMonoid ((DirectSum.of (fun i ↦ γ →+ β i) i) f)) x = (DirectSum.of β i) (f x)

def DirectSum.setToSet E1 #

{ι : Type v} →
  (β : ι → Type w) →
    [inst : (i : ι) → AddCommMonoid (β i)] →
      [DecidableEq ι] → (S T : Set ι) → S ⊆ T → (DirectSum ↑S fun i ↦ β ↑i) →+ DirectSum ↑T fun i ↦ β ↑i

setToSet β S T h is the natural homomorphism ⨁ (i : S), β i → ⨁ (i : T), β i, where h : S ⊆ T.

instance DirectSum.unique E0 #

{ι : Type v} →
  {β : ι → Type w} →
    [inst : (i : ι) → AddCommMonoid (β i)] → [∀ (i : ι), Subsingleton (β i)] → Unique (DirectSum ι fun i ↦ β i)

instance DirectSum.uniqueOfIsEmpty E0 #

{ι : Type v} →
  {β : ι → Type w} → [inst : (i : ι) → AddCommMonoid (β i)] → [IsEmpty ι] → Unique (DirectSum ι fun i ↦ β i)

A direct sum over an empty type is trivial.

def DirectSum.id E1 #

(M : Type v) →
  (ι : optParam (Type u_1) PUnit.{u_1 + 1}) → [inst : AddCommMonoid M] → [Unique ι] → (DirectSum ι fun x ↦ M) ≃+ M

The natural equivalence between ⨁ _ : ι, M and M when Unique ι.

theorem DirectSum.id_symm_apply E0 #

∀ {M : Type v} {ι : Type u_1} [inst : AddCommMonoid M] [inst_1 : Unique ι] (x : M),
  (DirectSum.id M ι).symm x = (DirectSum.of (fun i ↦ M) default) x

theorem DirectSum.id_apply E0 #

∀ {M : Type v} {ι : Type u_1} [inst : AddCommMonoid M] [inst_1 : Unique ι] (x : DirectSum ι fun x ↦ M),
  (DirectSum.id M ι) x = x default

def DirectSum.equivCongrLeft E1 #

{ι : Type v} →
  {β : ι → Type w} →
    [inst : (i : ι) → AddCommMonoid (β i)] →
      {κ : Type u_1} → (h : ι ≃ κ) → (DirectSum ι fun i ↦ β i) ≃+ DirectSum κ fun k ↦ β (h.symm k)

Reindexing terms of a direct sum: change indexing type from ι to κ along an equivalence h : ι ≃ κ.

theorem DirectSum.equivCongrLeft_apply E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] {κ : Type u_1} (h : ι ≃ κ)
  (f : DirectSum ι fun i ↦ β i) (k : κ), ((DirectSum.equivCongrLeft h) f) k = f (h.symm k)

theorem DirectSum.equivCongrLeft_of E0 #

∀ {ι : Type v} {β : ι → Type w} [inst : (i : ι) → AddCommMonoid (β i)] {κ : Type u_1} [inst_1 : DecidableEq ι]
  [inst_2 : DecidableEq κ] (h : ι ≃ κ) (k : κ) (x : β (h.symm k)),
  (DirectSum.equivCongrLeft h) ((DirectSum.of β (h.symm k)) x) = (DirectSum.of (fun k ↦ β (h.symm k)) k) x

def DirectSum.addEquivProdDirectSum E1 #

{ι : Type v} →
  {α : Option ι → Type w} →
    [inst : (i : Option ι) → AddCommMonoid (α i)] →
      (DirectSum (Option ι) fun i ↦ α i) ≃+ α none × DirectSum ι fun i ↦ α (some i)

Isomorphism obtained by separating the term of index none of a direct sum over Option ι.

theorem DirectSum.addEquivProdDirectSum_symm_apply_toFun E0 #

∀ {ι : Type v} {α : Option ι → Type w} [inst : (i : Option ι) → AddCommMonoid (α i)]
  (f : (fun i ↦ α i) none × Π₀ (i : ι), (fun i ↦ α i) (some i)) (i : Option ι),
  (DirectSum.addEquivProdDirectSum.symm f) i =
    match i with
    | none => f.1
    | some val => f.2 val

theorem DirectSum.addEquivProdDirectSum_apply E0 #

∀ {ι : Type v} {α : Option ι → Type w} [inst : (i : Option ι) → AddCommMonoid (α i)]
  (f : Π₀ (i : Option ι), (fun i ↦ α i) i), DirectSum.addEquivProdDirectSum f = (f none, DFinsupp.comapDomain some ⋯ f)

theorem DirectSum.addEquivProdDirectSum_symm_apply_support' E0 #

∀ {ι : Type v} {α : Option ι → Type w} [inst : (i : Option ι) → AddCommMonoid (α i)]
  (f : (fun i ↦ α i) none × Π₀ (i : ι), (fun i ↦ α i) (some i)),
  (DirectSum.addEquivProdDirectSum.symm f).support' =
    Trunc.map (fun s ↦ ⟨none ::ₘ Multiset.map some ↑s, ⋯⟩) f.2.support'

def DirectSum.sigmaCurry E1 #

{ι : Type v} →
  [DecidableEq ι] →
    {α : ι → Type u} →
      {δ : (i : ι) → α i → Type w} →
        [inst : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] →
          (DirectSum ((_i : ι) × α _i) fun i ↦ δ i.fst i.snd) →+ DirectSum ι fun i ↦ DirectSum (α i) fun j ↦ δ i j

The natural map between ⨁ (i : Σ i, α i), δ i.1 i.2 and ⨁ i (j : α i), δ i j.

theorem DirectSum.sigmaCurry_apply E0 #

∀ {ι : Type v} [inst : DecidableEq ι] {α : ι → Type u} {δ : (i : ι) → α i → Type w}
  [inst_1 : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] (f : DirectSum ((_i : ι) × α _i) fun i ↦ δ i.fst i.snd) (i : ι)
  (j : α i), ((DirectSum.sigmaCurry f) i) j = f ⟨i, j⟩

theorem DirectSum.sigmaCurry_of E0 #

∀ {ι : Type v} [inst : DecidableEq ι] {α : ι → Type u} {δ : (i : ι) → α i → Type w}
  [inst_1 : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] [inst_2 : (i : ι) → DecidableEq (α i)] (k : (i : ι) × α i)
  (x : δ k.fst k.snd),
  DirectSum.sigmaCurry ((DirectSum.of (fun k ↦ δ k.fst k.snd) k) x) =
    (DirectSum.of (fun i' ↦ DirectSum (α i') fun j' ↦ δ i' j') k.fst) ((DirectSum.of (fun j' ↦ δ k.fst j') k.snd) x)

def DirectSum.sigmaUncurry E1 #

{ι : Type v} →
  [DecidableEq ι] →
    {α : ι → Type u} →
      {δ : (i : ι) → α i → Type w} →
        [inst : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] →
          (DirectSum ι fun i ↦ DirectSum (α i) fun j ↦ δ i j) →+ DirectSum ((_i : ι) × α _i) fun i ↦ δ i.fst i.snd

The natural map between ⨁ i (j : α i), δ i j and Π₀ (i : Σ i, α i), δ i.1 i.2, inverse of curry.

theorem DirectSum.sigmaUncurry_apply E0 #

∀ {ι : Type v} [inst : DecidableEq ι] {α : ι → Type u} {δ : (i : ι) → α i → Type w}
  [inst_1 : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] (f : DirectSum ι fun i ↦ DirectSum (α i) fun j ↦ δ i j) (i : ι)
  (j : α i), (DirectSum.sigmaUncurry f) ⟨i, j⟩ = (f i) j

def DirectSum.sigmaCurryEquiv E1 #

{ι : Type v} →
  [DecidableEq ι] →
    {α : ι → Type u} →
      {δ : (i : ι) → α i → Type w} →
        [inst : (i : ι) → (j : α i) → AddCommMonoid (δ i j)] →
          (DirectSum ((_i : ι) × α _i) fun i ↦ δ i.fst i.snd) ≃+ DirectSum ι fun i ↦ DirectSum (α i) fun j ↦ δ i j

The natural map between ⨁ (i : Σ i, α i), δ i.1 i.2 and ⨁ i (j : α i), δ i j.

def DirectSum.sigmaFiberAddEquiv E1 #

{ι₁ ι₂ : Type v} →
  [DecidableEq ι₂] →
    (f : ι₁ → ι₂) →
      {β : ι₁ → Type w} →
        [inst : (i : ι₁) → AddCommMonoid (β i)] →
          (DirectSum ι₁ fun i ↦ β i) ≃+ DirectSum ι₂ fun j ↦ DirectSum { i // f i = j } fun i ↦ β ↑i

The equivalence between a direct sum indexed by a type ι₁ and the double sum indexed by a type ι₂ together with the fibres of a map f : ι₁ → ι₂.

theorem DirectSum.sigmaFiberAddEquiv_apply E0 #

∀ {ι₁ ι₂ : Type v} [inst : DecidableEq ι₂] (f : ι₁ → ι₂) {β : ι₁ → Type w} [inst_1 : (i : ι₁) → AddCommMonoid (β i)]
  (x : DirectSum ι₁ fun i ↦ β i),
  (DirectSum.sigmaFiberAddEquiv f) x =
    DirectSum.sigmaCurry ((DirectSum.equivCongrLeft (Equiv.sigmaFiberEquiv f).symm) x)

theorem DirectSum.sigmaFiberAddEquiv_apply_apply E0 #

∀ {ι₁ ι₂ : Type v} [inst : DecidableEq ι₂] (f : ι₁ → ι₂) {β : ι₁ → Type w} [inst_1 : (i : ι₁) → AddCommMonoid (β i)]
  (x : DirectSum ι₁ fun i ↦ β i) (j : ι₂) (i' : { i // f i = j }), (((DirectSum.sigmaFiberAddEquiv f) x) j) i' = x ↑i'

theorem DirectSum.sigmaFiberAddEquiv_of E0 #

∀ {ι₁ ι₂ : Type v} [inst : DecidableEq ι₂] (f : ι₁ → ι₂) {β : ι₁ → Type w} [inst_1 : (i : ι₁) → AddCommMonoid (β i)]
  [inst_2 : DecidableEq ι₁] (i : ι₁) (x : β i),
  (DirectSum.sigmaFiberAddEquiv f) ((DirectSum.of β i) x) =
    (DirectSum.of (fun i ↦ DirectSum { i_1 // f i_1 = i } fun i_1 ↦ β ↑i_1) (f i))
      ((DirectSum.of (fun i_1 ↦ β ↑i_1) ⟨i, ⋯⟩) x)

def DirectSum.coeAddMonoidHom E1 #

{ι : Type v} →
  {M : Type u_1} →
    {S : Type u_2} →
      [DecidableEq ι] →
        [inst : AddCommMonoid M] →
          [inst_1 : SetLike S M] → [inst_2 : AddSubmonoidClass S M] → (A : ι → S) → (DirectSum ι fun i ↦ ↥(A i)) →+ M

The canonical embedding from ⨁ i, A i to M where A is a collection of AddSubmonoid M indexed by ι.

When S = Submodule _ M, this is available as a LinearMap, DirectSum.coe_linearMap.

theorem DirectSum.coeAddMonoidHom_eq_dfinsuppSum E1 #

∀ {ι : Type v} [inst : DecidableEq ι] {M : Type u_1} {S : Type u_2} [inst_1 : DecidableEq M] [inst_2 : AddCommMonoid M]
  [inst_3 : SetLike S M] [inst_4 : AddSubmonoidClass S M] (A : ι → S) (x : DirectSum ι fun i ↦ ↥(A i)),
  (DirectSum.coeAddMonoidHom A) x = DFinsupp.sum x fun i x ↦ ↑x

theorem DirectSum.coeAddMonoidHom_of E0 #

∀ {ι : Type v} {M : Type u_1} {S : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] [inst_2 : SetLike S M]
  [inst_3 : AddSubmonoidClass S M] (A : ι → S) (i : ι) (x : ↥(A i)),
  (DirectSum.coeAddMonoidHom A) ((DirectSum.of (fun i ↦ ↥(A i)) i) x) = ↑x

theorem DirectSum.coe_of_apply E0 #

∀ {ι : Type v} {M : Type u_1} {S : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] [inst_2 : SetLike S M]
  [inst_3 : AddSubmonoidClass S M] {A : ι → S} (i j : ι) (x : ↥(A i)),
  ↑(((DirectSum.of (fun i ↦ ↥(A i)) i) x) j) = ↑(if i = j then x else 0)

def DirectSum.IsInternal E3 #

{ι : Type v} →
  {M : Type u_1} →
    {S : Type u_2} →
      [DecidableEq ι] → [inst : AddCommMonoid M] → [inst_1 : SetLike S M] → [AddSubmonoidClass S M] → (ι → S) → Prop

The DirectSum formed by a collection of additive submonoids (or subgroups, or submodules) of M is said to be internal if the canonical map (⨁ i, A i) →+ M is bijective.

For the alternate statement in terms of independence and spanning, see DirectSum.subgroup_isInternal_iff_iSupIndep_and_supr_eq_top and DirectSum.isInternal_submodule_iff_iSupIndep_and_iSup_eq_top.

theorem DirectSum.IsInternal.addSubmonoid_iSup_eq_top E1 #

∀ {ι : Type v} {M : Type u_1} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] (A : ι → AddSubmonoid M),
  DirectSum.IsInternal A → iSup A = ⊤

theorem DirectSum.support_subset E1 #

∀ {ι : Type v} {M : Type u_1} {S : Type u_2} [inst : AddCommMonoid M] [inst_1 : SetLike S M]
  [inst_2 : AddSubmonoidClass S M] [inst_3 : DecidableEq ι] [inst_4 : DecidableEq M] (A : ι → S)
  (x : DirectSum ι fun i ↦ ↥(A i)), (Function.support fun i ↦ ↑(x i)) ⊆ ↑(DFinsupp.support x)

theorem DirectSum.hasFiniteSupport E1 #

∀ {ι : Type v} {M : Type u_1} {S : Type u_2} [inst : AddCommMonoid M] [inst_1 : SetLike S M]
  [inst_2 : AddSubmonoidClass S M] (A : ι → S) (x : DirectSum ι fun i ↦ ↥(A i)),
  Function.HasFiniteSupport fun i ↦ ↑(x i)

def DirectSum.map E1 #

{ι : Type u_3} →
  {α : ι → Type u_4} →
    {β : ι → Type u_5} →
      [inst : (i : ι) → AddCommMonoid (α i)] →
        [inst_1 : (i : ι) → AddCommMonoid (β i)] →
          ((i : ι) → α i →+ β i) → (DirectSum ι fun i ↦ α i) →+ DirectSum ι fun i ↦ β i

create a homomorphism from ⨁ i, α i to ⨁ i, β i by giving the component-wise map f.

theorem DirectSum.map_of E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i) [inst_2 : DecidableEq ι] (i : ι) (x : α i),
  (DirectSum.map f) ((DirectSum.of α i) x) = (DirectSum.of β i) ((f i) x)

theorem DirectSum.map_apply E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i) (i : ι) (x : DirectSum ι fun i ↦ α i),
  ((DirectSum.map f) x) i = (f i) (x i)

theorem DirectSum.map_id E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} [inst : (i : ι) → AddCommMonoid (α i)],
  (DirectSum.map fun i ↦ AddMonoidHom.id (α i)) = AddMonoidHom.id (DirectSum ι fun i ↦ α i)

theorem DirectSum.map_comp E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i) {γ : ι → Type u_6}
  [inst_2 : (i : ι) → AddCommMonoid (γ i)] (g : (i : ι) → β i →+ γ i),
  (DirectSum.map fun i ↦ (g i).comp (f i)) = (DirectSum.map g).comp (DirectSum.map f)

theorem DirectSum.map_injective E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i),
  Function.Injective ⇑(DirectSum.map f) ↔ ∀ (i : ι), Function.Injective ⇑(f i)

theorem DirectSum.map_surjective E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i),
  Function.Surjective ⇑(DirectSum.map f) ↔ ∀ (i : ι), Function.Surjective ⇑(f i)

theorem DirectSum.map_eq_iff E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} {β : ι → Type u_5} [inst : (i : ι) → AddCommMonoid (α i)]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] (f : (i : ι) → α i →+ β i) (x y : DirectSum ι fun i ↦ α i),
  (DirectSum.map f) x = (DirectSum.map f) y ↔ ∀ (i : ι), (f i) (x i) = (f i) (y i)

def DirectSum.addEquivProd E1 #

{ι : Type u_1} →
  [Fintype ι] → (G : ι → Type u_2) → [inst : (i : ι) → AddCommMonoid (G i)] → DirectSum ι G ≃+ ((i : ι) → G i)

The canonical isomorphism of a finite direct sum of additive commutative monoids and the corresponding finite product.