Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.TranslatedPoint

Modular translation of evaluation points #

translatedPoint adds two coordinate lists modulo the supplied modulus, ignoring surplus entries and padding absent entries with zero. Its polynomial-time certificate charges a unary output arity, binary modulus, and both lists of binary coordinates. This preprocessing is used before a single coefficient-extraction sum.

Adapted from lean-canny.

Add two zero-padded coordinate lists modulo p, returning exactly n entries.

theorem Cslib.Complexity.RealAlgebraic.translatedPoint_get {p n i : ℕ} (z y : List ℕ) (hi : i < n) :
(translatedPoint p n z y)[i]?.getD 0 = (z[i]?.getD 0 + y[i]?.getD 0) % p