Documentation

CslibFrontier.Algorithms.ThreeSum.ChanHe.ConvolutionSizes

Dimension and magnitude transfer to the actual convolution host #

The native host passes side sqrt(8*mPar²)+1 to its Exact Triangle callee. Lower bounds on this actual side transfer original polynomial magnitudes to polynomial magnitudes in that callee dimension. Upper bounds retain the square-root scale and logarithmic factors. No output lengths or original inputs are replaced by padded values.

Main results #

These are original elementary consequences of the existing parameter definitions, for use by the charged ordinary-host composition. They assert no running-time or execution theorem.

Every magnitude parameter gives a candidate window larger than the input square root.

The actual packed side, rather than a padded proxy, controls the original length.

theorem Cslib.Algorithms.ThreeSum.ChanHe.le_packed_side_of_sq_le {N n : ℕ} (h : N ^ 2 ≤ n) (U : ℕ) :
N ≤ (8 * mPar n U ^ 2).sqrt + 1

An outer dimension threshold squared admits the same threshold at the actual callee side.

theorem Cslib.Algorithms.ThreeSum.ChanHe.packed_side_le (κ n : ℕ) :
(8 * mPar n (2 * (n + 2) ^ κ) ^ 2).sqrt + 1 ≤ 3 * ((5 * κ + 16) * (10 * κ + 40)) * ((n + 2).sqrt + 1) * (Nat.log 2 (n + 2) + 1) ^ 2 + 1

The host's actual Exact Triangle dimension is at most three times the candidate window, plus one, and hence retains its explicit square-root/logarithmic parameter estimate.

theorem Cslib.Algorithms.ThreeSum.ChanHe.packed_side_sq_le (κ n : ℕ) :
((8 * mPar n (2 * (n + 2) ^ κ) ^ 2).sqrt + 1) ^ 2 ≤ 4 * (3 * ((5 * κ + 16) * (10 * κ + 40)) + 1) ^ 2 * (n + 2) * (Nat.log 2 (n + 2) + 1) ^ 4

Squaring the actual side removes the square root while preserving only a fixed fourth power of the logarithm. This is a bound on dimensions, not on any solver's running time.

theorem Cslib.Algorithms.ThreeSum.ChanHe.packed_weight_le (κ E n : ℕ) :
2 * (n + 2) ^ E + 1 ≤ ((8 * mPar n (2 * (n + 2) ^ κ) ^ 2).sqrt + 3) ^ (2 * E + 2)

The filler sent by the ordinary host is polynomial in its actual callee dimension, including lengths zero and one. This bridges the caller's original magnitude convention without a separate runtime magnitude certificate.