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 / V14. Topological algebra and infinite sums

Mathlib.Topology.Algebra.InfiniteSum.DiscreteConvolution

68 declarations. Mathlib docs · Source

Discrete Convolution

Discrete convolution over monoids: (f ⋆[L] g) x is the sum of L (f a) (g b) over all pairs (a, b) with a * b = x, that is, over mulFiber x. Additive monoids are also supported.

Design

Uses a bilinear map L : E →ₗ[S] E' →ₗ[S] F to combine values, following MeasureTheory.convolution.

The index monoid M can be non-commutative (group algebras R[G] with non-abelian G).

@[to_additive] generates multiplicative and additive versions from a single definition. The mul/add distinction refers to the index monoid M: multiplicative sums over mulFiber x = {(a,b) | a * b = x}, additive sums over addFiber x = {(a,b) | a + b = x}.

Main Definitions

  • mulFiber x: the fiber of multiplication at x, all pairs (a, b) with a * b = x.
  • convolution L f g: the discrete convolution (f ⋆[L] g) x = ∑' ab : mulFiber x, L (f ab.1.1) (g ab.1.2).
  • ringConvolution f g: convolution using multiplication to combine the values of f and g.
  • ConvolutionExistsAt L f g x: the family indexed by mulFiber x is summable.
  • ConvolutionExists L f g: ConvolutionExistsAt L f g x holds for every x.

Main Results

  • single_convolution, convolution_single: identity element (Pi.single 1 e where L e is the identity map)
  • ConvolutionExists.distrib_add, ConvolutionExists.add_distrib: distributivity over addition
  • ConvolutionExistsAt.smul_convolution, ConvolutionExistsAt.convolution_smul: scalar multiplication
  • convolution_comm: commutativity for symmetric bilinear maps over commutative monoids
  • convolution_eq_sum_mulAntidiagonal: finite-sum formula when the index monoid has Finset.HasMulAntidiagonal
  • single_ringConvolution, ringConvolution_single: identity laws for multiplication convolution
  • ringConvolution_add, add_ringConvolution: distributivity over addition
  • smul_ringConvolution, ringConvolution_smul: external scalar multiplication
  • ringConvolution_comm: commutativity when both the indices and values are commutative

Notation

| Notation | Operation | |--------------|-------------------------------------------------| | f ⋆[L] g | ∑' ab : mulFiber x, L (f ab.1.1) (g ab.1.2) | | f ⋆₊[L] g | ∑' ab : addFiber x, L (f ab.1.1) (g ab.1.2) | | f ⋆ᵣ g | ringConvolution f g | | f ⋆ᵣ₊ g | addRingConvolution f g |

Precedence design: f:68 and g:67 gives right associativity (f ⋆ g ⋆ h parses as f ⋆ (g ⋆ h)), matching function composition ∘ and MeasureTheory.convolution.

Multiplication Fiber

Convolution Definition and Existence

Finite Multiplication Fibers

Commutativity

Convolution with Multiplication

def DiscreteConvolution.mulFiber E1 #

{M : Type u_1} → [Monoid M] → M → Set (M × M)

The fiber of multiplication at x: all pairs (a, b) with a * b = x.

def DiscreteConvolution.addFiber E1 #

{M : Type u_1} → [AddMonoid M] → M → Set (M × M)

The fiber of addition at x: all pairs (a, b) with a + b = x.

theorem DiscreteConvolution.mem_mulFiber E0 #

∀ {M : Type u_1} [inst : Monoid M] {x : M} {ab : M × M}, ab ∈ DiscreteConvolution.mulFiber x ↔ ab.1 * ab.2 = x

theorem DiscreteConvolution.mem_addFiber E0 #

∀ {M : Type u_1} [inst : AddMonoid M] {x : M} {ab : M × M}, ab ∈ DiscreteConvolution.addFiber x ↔ ab.1 + ab.2 = x

theorem DiscreteConvolution.addFiber_zero_mem E1 #

∀ {M : Type u_1} [inst : AddMonoid M], (0, 0) ∈ DiscreteConvolution.addFiber 0

theorem DiscreteConvolution.mulFiber_one_mem E1 #

∀ {M : Type u_1} [inst : Monoid M], (1, 1) ∈ DiscreteConvolution.mulFiber 1

def DiscreteConvolution.convolution E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [Monoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] → [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → M → F

The discrete convolution of f and g using bilinear map L: the value at x is the sum of L (f a) (g b) over all pairs (a, b) with a * b = x.

def DiscreteConvolution.addConvolution E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [AddMonoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] → [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → M → F

Additive convolution: the value at x is the sum of L (f a) (g b) over all pairs (a, b) with a + b = x.

def DiscreteConvolution.«term_⋆[_]_» E1 #

Lean.TrailingParserDescr

Notation for discrete convolution with explicit bilinear map: (f ⋆[L] g) x = ∑' ab : mulFiber x, L (f ab.1.1) (g ab.1.2).

def DiscreteConvolution.«term_⋆₊[_]_» E1 #

Lean.TrailingParserDescr

Notation for additive convolution with explicit bilinear map: (f ⋆₊[L] g) x = ∑' ab : addFiber x, L (f ab.1.1) (g ab.1.2).

theorem DiscreteConvolution.zero_addConvolution E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F]
  (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E'), DiscreteConvolution.addConvolution L 0 f = 0

theorem DiscreteConvolution.zero_convolution E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F]
  (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E'), DiscreteConvolution.convolution L 0 f = 0

theorem DiscreteConvolution.convolution_zero E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F]
  (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E), DiscreteConvolution.convolution L f 0 = 0

theorem DiscreteConvolution.addConvolution_zero E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F]
  (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E), DiscreteConvolution.addConvolution L f 0 = 0

theorem DiscreteConvolution.single_addConvolution E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {F : Type u_5} [inst : AddMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid F] [inst_4 : Module S E] [inst_5 : Module S F]
  [inst_6 : TopologicalSpace F] [inst_7 : DecidableEq M] (L : E →ₗ[S] F →ₗ[S] F) (e : E) (f : M → F),
  (∀ (y : F), (L e) y = y) → DiscreteConvolution.addConvolution L (Pi.single 0 e) f = f

theorem DiscreteConvolution.single_convolution E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {F : Type u_5} [inst : Monoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid F] [inst_4 : Module S E] [inst_5 : Module S F]
  [inst_6 : TopologicalSpace F] [inst_7 : DecidableEq M] (L : E →ₗ[S] F →ₗ[S] F) (e : E) (f : M → F),
  (∀ (y : F), (L e) y = y) → DiscreteConvolution.convolution L (Pi.single 1 e) f = f

theorem DiscreteConvolution.convolution_single E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {F : Type u_5} [inst : Monoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid F] [inst_4 : Module S E] [inst_5 : Module S F]
  [inst_6 : TopologicalSpace F] [inst_7 : DecidableEq M] (L : F →ₗ[S] E →ₗ[S] F) (e : E) (f : M → F),
  (∀ (y : F), (L y) e = y) → DiscreteConvolution.convolution L f (Pi.single 1 e) = f

theorem DiscreteConvolution.addConvolution_single E0 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {F : Type u_5} [inst : AddMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid F] [inst_4 : Module S E] [inst_5 : Module S F]
  [inst_6 : TopologicalSpace F] [inst_7 : DecidableEq M] (L : F →ₗ[S] E →ₗ[S] F) (e : E) (f : M → F),
  (∀ (y : F), (L y) e = y) → DiscreteConvolution.addConvolution L f (Pi.single 0 e) = f

def DiscreteConvolution.ConvolutionExistsAt E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [Monoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] →
                          [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → M → Prop

The convolution of f and g with bilinear map L exists at x: the family ab ↦ L (f ab.1.1) (g ab.1.2) indexed by mulFiber x is summable.

def DiscreteConvolution.AddConvolutionExistsAt E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [AddMonoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] →
                          [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → M → Prop

The additive convolution of f and g with bilinear map L exists at x: the family ab ↦ L (f ab.1.1) (g ab.1.2) indexed by addFiber x is summable.

def DiscreteConvolution.ConvolutionExists E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [Monoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] → [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → Prop

The convolution of f and g with bilinear map L exists at every point, that is, ConvolutionExistsAt L f g x holds for every x.

This does not assert that the resulting function convolution L f g is summable over M.

def DiscreteConvolution.AddConvolutionExists E1 #

{M : Type u_1} →
  {S : Type u_2} →
    {E : Type u_3} →
      {E' : Type u_4} →
        {F : Type u_5} →
          [AddMonoid M] →
            [inst : CommSemiring S] →
              [inst_1 : AddCommMonoid E] →
                [inst_2 : AddCommMonoid E'] →
                  [inst_3 : AddCommMonoid F] →
                    [inst_4 : Module S E] →
                      [inst_5 : Module S E'] →
                        [inst_6 : Module S F] → [TopologicalSpace F] → (E →ₗ[S] E' →ₗ[S] F) → (M → E) → (M → E') → Prop

The additive convolution of f and g with bilinear map L exists at every point, that is, AddConvolutionExistsAt L f g x holds for every x.

This does not assert that the resulting function addConvolution L f g is summable over M.

theorem DiscreteConvolution.AddConvolutionExistsAt.distrib_add E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f : M → E} {g g' : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExistsAt L f g x →
    DiscreteConvolution.AddConvolutionExistsAt L f g' x →
      DiscreteConvolution.addConvolution L f (g + g') x =
        DiscreteConvolution.addConvolution L f g x + DiscreteConvolution.addConvolution L f g' x

theorem DiscreteConvolution.ConvolutionExistsAt.distrib_add E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f : M → E} {g g' : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExistsAt L f g x →
    DiscreteConvolution.ConvolutionExistsAt L f g' x →
      DiscreteConvolution.convolution L f (g + g') x =
        DiscreteConvolution.convolution L f g x + DiscreteConvolution.convolution L f g' x

theorem DiscreteConvolution.ConvolutionExists.distrib_add E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f : M → E} {g g' : M → E'} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExists L f g →
    DiscreteConvolution.ConvolutionExists L f g' →
      DiscreteConvolution.convolution L f (g + g') =
        DiscreteConvolution.convolution L f g + DiscreteConvolution.convolution L f g'

theorem DiscreteConvolution.AddConvolutionExists.distrib_add E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f : M → E} {g g' : M → E'} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExists L f g →
    DiscreteConvolution.AddConvolutionExists L f g' →
      DiscreteConvolution.addConvolution L f (g + g') =
        DiscreteConvolution.addConvolution L f g + DiscreteConvolution.addConvolution L f g'

theorem DiscreteConvolution.ConvolutionExistsAt.add_distrib E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f f' : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExistsAt L f g x →
    DiscreteConvolution.ConvolutionExistsAt L f' g x →
      DiscreteConvolution.convolution L (f + f') g x =
        DiscreteConvolution.convolution L f g x + DiscreteConvolution.convolution L f' g x

theorem DiscreteConvolution.AddConvolutionExistsAt.add_distrib E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f f' : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExistsAt L f g x →
    DiscreteConvolution.AddConvolutionExistsAt L f' g x →
      DiscreteConvolution.addConvolution L (f + f') g x =
        DiscreteConvolution.addConvolution L f g x + DiscreteConvolution.addConvolution L f' g x

theorem DiscreteConvolution.ConvolutionExists.add_distrib E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f f' : M → E} {g : M → E'} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExists L f g →
    DiscreteConvolution.ConvolutionExists L f' g →
      DiscreteConvolution.convolution L (f + f') g =
        DiscreteConvolution.convolution L f g + DiscreteConvolution.convolution L f' g

theorem DiscreteConvolution.AddConvolutionExists.add_distrib E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : CommSemiring S] [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : AddCommMonoid F]
  [inst_5 : Module S E] [inst_6 : Module S E'] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [T2Space F]
  [ContinuousAdd F] {f f' : M → E} {g : M → E'} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExists L f g →
    DiscreteConvolution.AddConvolutionExists L f' g →
      DiscreteConvolution.addConvolution L (f + f') g =
        DiscreteConvolution.addConvolution L f g + DiscreteConvolution.addConvolution L f' g

theorem DiscreteConvolution.ConvolutionExistsAt.smul_convolution E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} [inst : Monoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : Module S E] [inst_5 : Module S E'] {F : Type u_8}
  [inst_6 : AddCommMonoid F] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [ContinuousConstSMul S F] [T2Space F]
  {c : S} {f : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExistsAt L f g x →
    DiscreteConvolution.convolution L (c • f) g x = c • DiscreteConvolution.convolution L f g x

theorem DiscreteConvolution.AddConvolutionExistsAt.vadd_convolution E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} [inst : AddMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : Module S E] [inst_5 : Module S E'] {F : Type u_8}
  [inst_6 : AddCommMonoid F] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [ContinuousConstSMul S F] [T2Space F]
  {c : S} {f : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExistsAt L f g x →
    DiscreteConvolution.addConvolution L (c • f) g x = c • DiscreteConvolution.addConvolution L f g x

theorem DiscreteConvolution.ConvolutionExistsAt.convolution_smul E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} [inst : Monoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : Module S E] [inst_5 : Module S E'] {F : Type u_8}
  [inst_6 : AddCommMonoid F] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [ContinuousConstSMul S F] [T2Space F]
  {c : S} {f : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.ConvolutionExistsAt L f g x →
    DiscreteConvolution.convolution L f (c • g) x = c • DiscreteConvolution.convolution L f g x

theorem DiscreteConvolution.AddConvolutionExistsAt.convolution_vadd E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} [inst : AddMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : AddCommMonoid E'] [inst_4 : Module S E] [inst_5 : Module S E'] {F : Type u_8}
  [inst_6 : AddCommMonoid F] [inst_7 : Module S F] [inst_8 : TopologicalSpace F] [ContinuousConstSMul S F] [T2Space F]
  {c : S} {f : M → E} {g : M → E'} {x : M} (L : E →ₗ[S] E' →ₗ[S] F),
  DiscreteConvolution.AddConvolutionExistsAt L f g x →
    DiscreteConvolution.addConvolution L f (c • g) x = c • DiscreteConvolution.addConvolution L f g x

theorem DiscreteConvolution.mulFiber_finite E1 #

∀ {M : Type u_1} [inst : Monoid M] [Finset.HasMulAntidiagonal M] (x : M), (DiscreteConvolution.mulFiber x).Finite

Multiplication fibers are finite when the index monoid has Finset.HasMulAntidiagonal.

theorem DiscreteConvolution.addFiber_finite E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [Finset.HasAntidiagonal M] (x : M), (DiscreteConvolution.addFiber x).Finite

Addition fibers are finite when the index monoid has Finset.HasAntidiagonal.

theorem DiscreteConvolution.convolution_eq_sum_mulAntidiagonal E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [inst_1 : Finset.HasMulAntidiagonal M] [inst_2 : CommSemiring S] [inst_3 : AddCommMonoid E]
  [inst_4 : AddCommMonoid E'] [inst_5 : AddCommMonoid F] [inst_6 : Module S E] [inst_7 : Module S E']
  [inst_8 : Module S F] [inst_9 : TopologicalSpace F] (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E) (g : M → E') (x : M),
  DiscreteConvolution.convolution L f g x = ∑ ab ∈ Finset.HasMulAntidiagonal.mulAntidiagonal x, (L (f ab.1)) (g ab.2)

Convolution is a finite sum when the index monoid has Finset.HasMulAntidiagonal.

theorem DiscreteConvolution.addConvolution_eq_sum_antidiagonal E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [inst_1 : Finset.HasAntidiagonal M] [inst_2 : CommSemiring S] [inst_3 : AddCommMonoid E] [inst_4 : AddCommMonoid E']
  [inst_5 : AddCommMonoid F] [inst_6 : Module S E] [inst_7 : Module S E'] [inst_8 : Module S F]
  [inst_9 : TopologicalSpace F] (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E) (g : M → E') (x : M),
  DiscreteConvolution.addConvolution L f g x = ∑ ab ∈ Finset.HasAntidiagonal.antidiagonal x, (L (f ab.1)) (g ab.2)

Additive convolution is a finite sum when the index monoid has Finset.HasAntidiagonal.

theorem DiscreteConvolution.convolutionExists_of_hasMulAntidiagonal E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : Monoid M]
  [Finset.HasMulAntidiagonal M] [inst_2 : CommSemiring S] [inst_3 : AddCommMonoid E] [inst_4 : AddCommMonoid E']
  [inst_5 : AddCommMonoid F] [inst_6 : Module S E] [inst_7 : Module S E'] [inst_8 : Module S F]
  [inst_9 : TopologicalSpace F] (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E) (g : M → E'),
  DiscreteConvolution.ConvolutionExists L f g

Convolution exists whenever the index monoid has Finset.HasMulAntidiagonal, since every fiber is then finite.

theorem DiscreteConvolution.addConvolutionExists_of_hasAntidiagonal E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} {E' : Type u_4} {F : Type u_5} [inst : AddMonoid M]
  [Finset.HasAntidiagonal M] [inst_2 : CommSemiring S] [inst_3 : AddCommMonoid E] [inst_4 : AddCommMonoid E']
  [inst_5 : AddCommMonoid F] [inst_6 : Module S E] [inst_7 : Module S E'] [inst_8 : Module S F]
  [inst_9 : TopologicalSpace F] (L : E →ₗ[S] E' →ₗ[S] F) (f : M → E) (g : M → E'),
  DiscreteConvolution.AddConvolutionExists L f g

Additive convolution exists whenever the index monoid has Finset.HasAntidiagonal, since every fiber is then finite.

theorem DiscreteConvolution.convolution_comm E3 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} [inst : CommMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : Module S E] [inst_4 : TopologicalSpace E] (L : E →ₗ[S] E →ₗ[S] E) (f g : M → E),
  (∀ (x y : E), (L x) y = (L y) x) → DiscreteConvolution.convolution L f g = DiscreteConvolution.convolution L g f

theorem DiscreteConvolution.addConvolution_comm E1 #

∀ {M : Type u_1} {S : Type u_2} {E : Type u_3} [inst : AddCommMonoid M] [inst_1 : CommSemiring S]
  [inst_2 : AddCommMonoid E] [inst_3 : Module S E] [inst_4 : TopologicalSpace E] (L : E →ₗ[S] E →ₗ[S] E) (f g : M → E),
  (∀ (x y : E), (L x) y = (L y) x) → DiscreteConvolution.addConvolution L f g = DiscreteConvolution.addConvolution L g f

def DiscreteConvolution.ringConvolution E1 #

{M : Type u_1} →
  {R : Type u_7} → [NonUnitalNonAssocSemiring R] → [Monoid M] → [TopologicalSpace R] → (M → R) → (M → R) → M → R

The discrete convolution of two functions using multiplication to combine their values.

def DiscreteConvolution.addRingConvolution E1 #

{M : Type u_1} →
  {R : Type u_7} → [NonUnitalNonAssocSemiring R] → [AddMonoid M] → [TopologicalSpace R] → (M → R) → (M → R) → M → R

The additive-index convolution using multiplication to combine values.

def DiscreteConvolution.«term_⋆ᵣ_» E1 #

Lean.TrailingParserDescr

Notation for convolution using multiplication to combine values.

def DiscreteConvolution.«term_⋆ᵣ₊_» E1 #

Lean.TrailingParserDescr

Notation for additive-index convolution using multiplication to combine values.

theorem DiscreteConvolution.addRingConvolution_apply E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : TopologicalSpace R] (f g : M → R) (x : M),
  DiscreteConvolution.addRingConvolution f g x = ∑' (ab : ↑(DiscreteConvolution.addFiber x)), f (↑ab).1 * g (↑ab).2

theorem DiscreteConvolution.ringConvolution_apply E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : Monoid M] [inst_2 : TopologicalSpace R]
  (f g : M → R) (x : M),
  DiscreteConvolution.ringConvolution f g x = ∑' (ab : ↑(DiscreteConvolution.mulFiber x)), f (↑ab).1 * g (↑ab).2

theorem DiscreteConvolution.zero_ringConvolution E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : Monoid M] [inst_2 : TopologicalSpace R]
  (f : M → R), DiscreteConvolution.ringConvolution 0 f = 0

theorem DiscreteConvolution.zero_addRingConvolution E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : TopologicalSpace R] (f : M → R), DiscreteConvolution.addRingConvolution 0 f = 0

theorem DiscreteConvolution.ringConvolution_zero E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : Monoid M] [inst_2 : TopologicalSpace R]
  (f : M → R), DiscreteConvolution.ringConvolution f 0 = 0

theorem DiscreteConvolution.addRingConvolution_zero E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : NonUnitalNonAssocSemiring R] [inst_1 : AddMonoid M]
  [inst_2 : TopologicalSpace R] (f : M → R), DiscreteConvolution.addRingConvolution f 0 = 0

theorem DiscreteConvolution.single_ringConvolution E3 #

∀ {M : Type u_1} {R : Type u_7} [inst : Monoid M] [inst_1 : NonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [inst_3 : DecidableEq M] (f : M → R), DiscreteConvolution.ringConvolution (Pi.single 1 1) f = f

theorem DiscreteConvolution.single_addRingConvolution E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [inst_3 : DecidableEq M] (f : M → R), DiscreteConvolution.addRingConvolution (Pi.single 0 1) f = f

theorem DiscreteConvolution.addRingConvolution_single E0 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [inst_3 : DecidableEq M] (f : M → R), DiscreteConvolution.addRingConvolution f (Pi.single 0 1) = f

theorem DiscreteConvolution.ringConvolution_single E3 #

∀ {M : Type u_1} {R : Type u_7} [inst : Monoid M] [inst_1 : NonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [inst_3 : DecidableEq M] (f : M → R), DiscreteConvolution.ringConvolution f (Pi.single 1 1) = f

theorem DiscreteConvolution.addRingConvolution_add E1 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : TopologicalSpace R] [T2Space R] [ContinuousAdd R] (f g h : M → R),
  DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) f h →
      DiscreteConvolution.addRingConvolution f (g + h) =
        DiscreteConvolution.addRingConvolution f g + DiscreteConvolution.addRingConvolution f h

theorem DiscreteConvolution.ringConvolution_add E3 #

∀ {M : Type u_1} {R : Type u_7} [inst : Monoid M] [inst_1 : NonUnitalNonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [T2Space R] [ContinuousAdd R] (f g h : M → R),
  DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) f h →
      DiscreteConvolution.ringConvolution f (g + h) =
        DiscreteConvolution.ringConvolution f g + DiscreteConvolution.ringConvolution f h

theorem DiscreteConvolution.add_addRingConvolution E1 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : TopologicalSpace R] [T2Space R] [ContinuousAdd R] (f g h : M → R),
  DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) f h →
    DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) g h →
      DiscreteConvolution.addRingConvolution (f + g) h =
        DiscreteConvolution.addRingConvolution f h + DiscreteConvolution.addRingConvolution g h

theorem DiscreteConvolution.add_ringConvolution E3 #

∀ {M : Type u_1} {R : Type u_7} [inst : Monoid M] [inst_1 : NonUnitalNonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [T2Space R] [ContinuousAdd R] (f g h : M → R),
  DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) f h →
    DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) g h →
      DiscreteConvolution.ringConvolution (f + g) h =
        DiscreteConvolution.ringConvolution f h + DiscreteConvolution.ringConvolution g h

theorem DiscreteConvolution.smul_ringConvolution E3 #

∀ {M : Type u_1} {S : Type u_2} {R : Type u_7} [inst : Monoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : DistribSMul S R] [inst_3 : TopologicalSpace R] [T2Space R] [ContinuousConstSMul S R] [IsScalarTower S R R]
  (c : S) (f g : M → R),
  DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.ringConvolution (c • f) g = c • DiscreteConvolution.ringConvolution f g

External scalar multiplication in the first factor commutes with convolution.

theorem DiscreteConvolution.smul_addRingConvolution E1 #

∀ {M : Type u_1} {S : Type u_2} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : DistribSMul S R] [inst_3 : TopologicalSpace R] [T2Space R] [ContinuousConstSMul S R] [IsScalarTower S R R]
  (c : S) (f g : M → R),
  DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.addRingConvolution (c • f) g = c • DiscreteConvolution.addRingConvolution f g

theorem DiscreteConvolution.ringConvolution_smul E3 #

∀ {M : Type u_1} {S : Type u_2} {R : Type u_7} [inst : Monoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : DistribSMul S R] [inst_3 : TopologicalSpace R] [T2Space R] [ContinuousConstSMul S R] [SMulCommClass S R R]
  (c : S) (f g : M → R),
  DiscreteConvolution.ConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.ringConvolution f (c • g) = c • DiscreteConvolution.ringConvolution f g

External scalar multiplication in the second factor commutes with convolution.

theorem DiscreteConvolution.addRingConvolution_smul E1 #

∀ {M : Type u_1} {S : Type u_2} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : DistribSMul S R] [inst_3 : TopologicalSpace R] [T2Space R] [ContinuousConstSMul S R] [SMulCommClass S R R]
  (c : S) (f g : M → R),
  DiscreteConvolution.AddConvolutionExists (LinearMap.mul ℕ R) f g →
    DiscreteConvolution.addRingConvolution f (c • g) = c • DiscreteConvolution.addRingConvolution f g

theorem DiscreteConvolution.ringConvolution_comm E3 #

∀ {M : Type u_1} {R : Type u_7} [inst : CommMonoid M] [inst_1 : NonUnitalNonAssocCommSemiring R]
  [inst_2 : TopologicalSpace R] (f g : M → R),
  DiscreteConvolution.ringConvolution f g = DiscreteConvolution.ringConvolution g f

theorem DiscreteConvolution.addRingConvolution_comm E1 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddCommMonoid M] [inst_1 : NonUnitalNonAssocCommSemiring R]
  [inst_2 : TopologicalSpace R] (f g : M → R),
  DiscreteConvolution.addRingConvolution f g = DiscreteConvolution.addRingConvolution g f

theorem DiscreteConvolution.ringConvolution_eq_sum_mulAntidiagonal E1 #

∀ {M : Type u_1} {R : Type u_7} [inst : Monoid M] [inst_1 : NonUnitalNonAssocSemiring R] [inst_2 : TopologicalSpace R]
  [inst_3 : Finset.HasMulAntidiagonal M] (f g : M → R) (x : M),
  DiscreteConvolution.ringConvolution f g x = ∑ ab ∈ Finset.HasMulAntidiagonal.mulAntidiagonal x, f ab.1 * g ab.2

Multiplication convolution as a finite sum over the mulAntidiagonal.

theorem DiscreteConvolution.addRingConvolution_eq_sum_antidiagonal E1 #

∀ {M : Type u_1} {R : Type u_7} [inst : AddMonoid M] [inst_1 : NonUnitalNonAssocSemiring R]
  [inst_2 : TopologicalSpace R] [inst_3 : Finset.HasAntidiagonal M] (f g : M → R) (x : M),
  DiscreteConvolution.addRingConvolution f g x = ∑ ab ∈ Finset.HasAntidiagonal.antidiagonal x, f ab.1 * g ab.2

Additive-index multiplication convolution as a finite sum over the antidiagonal.