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 / V03. Sets, finite structures and big operators

Mathlib.Data.DFinsupp.Sigma

13 declarations. Mathlib docs · Source

DFinsupp on Sigma types

Main definitions

  • DFinsupp.sigmaCurry: turn a DFinsupp indexed by a Sigma type into a DFinsupp with two parameters.
  • DFinsupp.sigmaUncurry: turn a DFinsupp with two parameters into a DFinsupp indexed by a Sigma type. Inverse of DFinsupp.sigmaCurry.
  • DFinsupp.sigmaCurryEquiv: DFinsupp.sigmaCurry and DFinsupp.sigmaUncurry bundled into a bijection.

def DFinsupp.sigmaCurry E3 #

{ι : Type u} →
  {α : ι → Type u_1} →
    {δ : (i : ι) → α i → Type v} →
      [DecidableEq ι] →
        [inst : (i : ι) → (j : α i) → Zero (δ i j)] →
          (Π₀ (i : (x : ι) × α x), δ i.fst i.snd) → Π₀ (i : ι) (j : α i), δ i j

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

theorem DFinsupp.sigmaCurry_apply E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → Zero (δ i j)] (f : Π₀ (i : (x : ι) × α x), δ i.fst i.snd) (i : ι) (j : α i),
  (f.sigmaCurry i) j = f ⟨i, j⟩

theorem DFinsupp.sigmaCurry_zero E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → Zero (δ i j)], DFinsupp.sigmaCurry 0 = 0

theorem DFinsupp.sigmaCurry_add E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → AddZeroClass (δ i j)] (f g : Π₀ (i : (x : ι) × α x), δ i.fst i.snd),
  (f + g).sigmaCurry = f.sigmaCurry + g.sigmaCurry

theorem DFinsupp.sigmaCurry_smul E0 #

∀ {ι : Type u} {γ : Type w} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι] [inst_1 : Monoid γ]
  [inst_2 : (i : ι) → (j : α i) → AddMonoid (δ i j)] [inst_3 : (i : ι) → (j : α i) → DistribMulAction γ (δ i j)] (r : γ)
  (f : Π₀ (i : (x : ι) × α x), δ i.fst i.snd), (r • f).sigmaCurry = r • f.sigmaCurry

theorem DFinsupp.sigmaCurry_single E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → DecidableEq (α i)] [inst_2 : (i : ι) → (j : α i) → Zero (δ i j)] (ij : (i : ι) × α i)
  (x : δ ij.fst ij.snd), (fun₀ | ij => x).sigmaCurry = fun₀ | ij.fst => fun₀ | ij.snd => x

def DFinsupp.sigmaUncurry E3 #

{ι : Type u} →
  {α : ι → Type u_1} →
    {δ : (i : ι) → α i → Type v} →
      [DecidableEq ι] →
        [inst : (i : ι) → (j : α i) → Zero (δ i j)] →
          (Π₀ (i : ι) (j : α i), δ i j) → Π₀ (i : (x : ι) × α x), δ 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 DFinsupp.sigmaUncurry_apply E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → Zero (δ i j)] (f : Π₀ (i : ι) (j : α i), δ i j) (i : ι) (j : α i),
  f.sigmaUncurry ⟨i, j⟩ = (f i) j

theorem DFinsupp.sigmaUncurry_zero E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → Zero (δ i j)], DFinsupp.sigmaUncurry 0 = 0

theorem DFinsupp.sigmaUncurry_add E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → AddZeroClass (δ i j)] (f g : Π₀ (i : ι) (j : α i), δ i j),
  (f + g).sigmaUncurry = f.sigmaUncurry + g.sigmaUncurry

theorem DFinsupp.sigmaUncurry_smul E0 #

∀ {ι : Type u} {γ : Type w} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι] [inst_1 : Monoid γ]
  [inst_2 : (i : ι) → (j : α i) → AddMonoid (δ i j)] [inst_3 : (i : ι) → (j : α i) → DistribMulAction γ (δ i j)] (r : γ)
  (f : Π₀ (i : ι) (j : α i), δ i j), (r • f).sigmaUncurry = r • f.sigmaUncurry

theorem DFinsupp.sigmaUncurry_single E0 #

∀ {ι : Type u} {α : ι → Type u_1} {δ : (i : ι) → α i → Type v} [inst : DecidableEq ι]
  [inst_1 : (i : ι) → (j : α i) → Zero (δ i j)] [inst_2 : (i : ι) → DecidableEq (α i)] (i : ι) (j : α i) (x : δ i j),
  (fun₀ | i => fun₀ | j => x).sigmaUncurry = fun₀ | ⟨i, j⟩ => x

def DFinsupp.sigmaCurryEquiv E3 #

{ι : Type u} →
  {α : ι → Type u_1} →
    {δ : (i : ι) → α i → Type v} →
      [DecidableEq ι] →
        [inst : (i : ι) → (j : α i) → Zero (δ i j)] →
          (Π₀ (i : (x : ι) × α x), δ i.fst i.snd) ≃ Π₀ (i : ι) (j : α i), δ i j

The natural bijection between Π₀ (i : Σ i, α i), δ i.1 i.2 and Π₀ i (j : α i), δ i j.

This is the dfinsupp version of Equiv.piCurry.