Documentation

FormalConjectures.ForMathlib.Combinatorics.Additive.Convolution

Convolution of Functions on ℕ #

This file defines the sum () convolution of functions ℕ → R.

Main Definitions #

Notation #

TODO #

def AdditiveCombinatorics.sumConv {R : Type u_1} [Semiring R] (f g : R) (n : ) :
R

The sum convolution of two functions f, g : ℕ → R, also known as the Cauchy product. (f ∗ g) n = ∑_{a+b=n} f(a)g(b).

Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def AdditiveCombinatorics.sumRep (A : Set ) :

      The number of sum representations is the sum convolution of A's indicator function with itself.

      Equations
      Instances For
        @[simp]
        theorem AdditiveCombinatorics.sumRep_def (A : Set ) (n : ) :
        sumRep A n = (Finset.filter (fun (p : × ) => p.1 A p.2 A) (Finset.antidiagonal n)).card