Documentation

CslibFrontier.Foundations.Algebra.Polynomial.DyadicSignProductBounds

Size bounds for dyadic sign products #

The number of linear factors, counted with repetition, bounds the degree. The coefficient norm is bounded by multiplying the shared dyadic bound for the individual factors. Composition with an integer test polynomial multiplies the degree bounds and adds the contribution of its coefficient norm.

Adapted from RationalSignProductBounds and ClearedSignTestBounds in lean-canny at commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.

theorem Polynomial.dyadicSignProduct_bounds (B s : ℕ) :
have n := 2 * s * (2 * B + 1); (dyadicSignProduct B s).natDegree ≤ n ∧ (dyadicSignProduct B s).coeffNorm1 ≤ 2 ^ (n * (2 * B + 1))

The integer sign product has degree and logarithmic coefficient norm bounded by the number of linear factors and the largest factor exponent.

theorem Polynomial.dyadicSignProduct_comp_bounds (B s : ℕ) (g : Polynomial ℤ) {D b : ℕ} (hD : g.natDegree ≤ D) (hb : g.coeffNorm1 ≤ 2 ^ b) :
have n := 2 * s * (2 * B + 1); ((dyadicSignProduct B s).comp g).natDegree ≤ n * D ∧ ((dyadicSignProduct B s).comp g).coeffNorm1 ≤ 2 ^ (n * (2 * B + 1 + b))

Composing the sign product with a bounded integer test polynomial multiplies the degree budget and adds the test's log norm per factor.