Coordinates, precision changes and truncated products over (ℤ / 2 ^ p)[U] / (f) #
Supporting operations on the coefficient lists of
CslibFrontier/Computability/PolyTime/GaloisRingArithmetic.lean, for the native recovery step of
the contraction algorithm of [OAI26k] (Appendix D.4.4, pp. 60–61).
- Coordinates. The coordinates of an element of
A_pin the basis1, U, …, U ^ (e - 1)are determined modulo2 ^ p(GaloisRingArith.mod_eq_of_val_eq), and every element is the value of a reduced coefficient list (GaloisRingArith.exists_val_eq). - Precision. Reduction
A_N → A_nforn ≤ N(GaloisRingArith.reduce) keeps the coordinates (GaloisRingArith.reduce_val), and its kernel is2 ^ n A_N(GaloisRingArith.exists_eq_add_of_reduce_eq). Dividing the coordinates of2 ^ Δ yby2 ^ Δgivesymodulo2 ^ (N - Δ)(GaloisRingArith.val_shiftDown): this is how a sum that is known to be divisible by2 ^ Δloses its common power of two. - Truncated products (
GaloisRingArith.tmul) of polynomials inzoverA_p: the firstJcoefficients of a product, by the Cauchy formula (GaloisRingArith.val_tmul).
Truncated products and GaloisRingArith.shiftDown are polynomial-time, with the precision, the
length and the shift in unary (GaloisRingArith.computableInPolyTime_tmul,
GaloisRingArith.computableInPolyTime_shiftDown).
Main definitions #
Cslib.GaloisRingArith.reduce: reduction to a lower precision.Cslib.GaloisRingArith.shiftDown: division of the coordinates by2 ^ Δ.Cslib.GaloisRingArith.tmul: truncated products.
Main results #
Cslib.GaloisRingArith.mod_eq_of_val_eq,Cslib.GaloisRingArith.exists_val_eq: coordinates.Cslib.GaloisRingArith.val_shiftDown: cancelling a common power of two.Cslib.GaloisRingArith.exists_eq_add_of_reduce_eq,Cslib.GaloisRingArith.exists_val_eq_add_of_val_eq: the kernel of reduction is2 ^ n A_N.Cslib.GaloisRingArith.val_tmul: truncated products are correct.Cslib.GaloisRingArith.computableInPolyTime_tmul,Cslib.GaloisRingArith.computableInPolyTime_shiftDown: polynomial time.
References #
- OpenAI, The Exponential Time Hypothesis is False, Appendix D.4.1 and D.4.4 (pp. 57–61).
Coordinates #
A_0 is the zero ring.
A coefficient list is the class of the polynomial with those coefficients.
Changing the precision #
A value at a lower precision lifts with an error divisible by 2 ^ n: a coefficient list
whose value in A_n is the reduction of y ∈ A_N has value y + 2 ^ n c in A_N.
Cancelling a common power of two. If a coefficient list has value 2 ^ Δ y at precision
n + Δ, dividing its coordinates by 2 ^ Δ gives the reduction of y to precision n.
Truncated products #
Odd scalars are units #
Polynomial time #
The zero element is polynomial-time.
Division of the coordinates by 2 ^ Δ is polynomial-time, with Δ in unary.
Cauchy coefficients are polynomial-time, with the precision and the index in unary.
Truncated products are polynomial-time, with the precision and the length in unary.