Controlled integer polynomial families #
A polynomial is a mathematical specification, not machine input. A controlled family supplies polynomial-time binary degree, logarithmic coefficient-mass and prime-cutoff bounds, a polynomial-time unary arity, and one total modular evaluator at a fixed counting level. Bounds depend only on the primary instance. Evaluation points are lists of binary naturals; missing coordinates are zero.
The interface allows exponential degrees and exponentially long coefficients without assuming their expanded encodings are available. Constants, variables, addition, multiplication and binary powers construct actual evaluators at the original function level. Adapted from lean-canny’s controlled-polynomial interface.
Main definitions #
Cslib.Complexity.RealAlgebraic.Controlled: uniform modular evaluation and source bounds.Cslib.Complexity.RealAlgebraic.evaluation: finite-field evaluation, padding coordinates by zero.
Main results #
Cslib.Complexity.RealAlgebraic.Controlled.add,Cslib.Complexity.RealAlgebraic.Controlled.mul,Cslib.Complexity.RealAlgebraic.Controlled.pow: constructed arithmetic closures with no increase in counting level.
Polynomial evaluation at the supplied coordinates, padded by zeros.
Uniform finite-field access with bounds independent of the evaluation prime. The polynomial family is never passed to the realizing machine.
- arity_computable : Turing.MultiTapeTM.ComputableInPolyTime n enc Turing.MultiTapeTM.encUnary
Arity is polynomially bounded, witnessed by its unary computation.
- degreeBound : α → ℕ
Binary total-degree bound.
- degree_computable : Turing.MultiTapeTM.ComputableInPolyTime self.degreeBound enc Turing.MultiTapeTM.encNat
- massExponent : α → ℕ
Binary exponent bounding the sum of absolute coefficients.
- mass_computable : Turing.MultiTapeTM.ComputableInPolyTime self.massExponent enc Turing.MultiTapeTM.encNat
- cutoff : α → ℕ
Binary lower bound on the evaluation prime.
- cutoff_computable : Turing.MultiTapeTM.ComputableInPolyTime self.cutoff enc Turing.MultiTapeTM.encNat
One total evaluator, also defined for small or composite moduli.
Reindex a controlled family along a polynomial-time map, keeping the source's arity, bounds and modular evaluator at the same counting level.
Increasing the fixed counting level retains the same bounds and evaluator.
A polynomial-time guard selects one of two controlled families at their common counting level. The degree, norm exponent and prime cutoff are the maxima of the two branch bounds.
A guarded family uses the maximum degree bound of its two branches.
A guarded family uses the maximum norm exponent of its two branches.
A guarded family uses the maximum prime cutoff of its two branches.
A polynomial-time integer family gives a controlled constant polynomial.
A selected coordinate is controlled. The index is unary because it is bounded by the polynomially many variables, whereas coordinate values are binary.
Adding controlled polynomials preserves the common counting level.
Multiplication uses only the two modular values and ordinary modular arithmetic.
Binary exponents may have exponential value. Modular powering preserves the level, while degree and logarithmic mass bounds require only binary multiplication.