Enumerating the plateaus #
The index of a plateau records its level and the sets of digits selected on
each side. Its start is D * peakCode D x, its width is x.1, and its
height is Estimate.height n x.1. peakCode_injOn and peak_sum let the
analysis use this family directly without listing any example numerically.
For each plateau use its level and the two zero / one multiplicity vectors.
Equations
- Autoconvolutions.Blocks.peakSet I J n K = (Finset.range (K + 1)).sigma fun (s : ℕ) => Autoconvolutions.Blocks.goodVectors I (2 * n - s) ×ˢ Autoconvolutions.Blocks.goodVectors J (2 * n + s)
Instances For
Divide the block start by D, so a single unit of this index separates two blocks.
Equations
Instances For
theorem
Autoconvolutions.Blocks.peak_sum
{m : ℕ}
(I J : Finset (Fin m))
(n K : ℕ)
:
∑ x ∈ peakSet I J n K, ↑x.fst * Estimate.height n x.fst ^ 2 = ∑ s ∈ Finset.range (K + 1), ↑s * Estimate.count n I.card J.card s * Estimate.height n s ^ 2
Summing s A_s² once per plateau gives exactly the binomial sum in §2.