Integer signs from uniform modular residues #
The general window operations consume only a residue evaluator, short binary cutoffs and
doubling limit, and a unary dyadic precision. Cofactors and weighted residues cost F_max(a,5),
the rounded sum costs one more level, and first-flag classification costs two more.
The represented integer, its magnitude bound 2^m, and the full prime product are never
machine data. The same total evaluators serve every modulus and doubling index.
The IntegerResidueAccess application chooses the manuscript parameters and proves correctness
from the access contract, including zero, negative integers and excluded small primes.
The binary magnitude exponent and excluded-prime cutoff may have exponential values.
Main definitions #
Cslib.Complexity.residueWindowNumerator: a natural dyadic numerator from weighted residues.Cslib.Complexity.residueWindowSign: bounded first-flag classification for generic parameters.Cslib.Complexity.IntegerResidueAccess.primeWindowSign: the manuscript-parameter application.
Main results #
Cslib.Complexity.CountingFunction.residueWindowSign_mem: the general computational bound.Cslib.Complexity.IntegerResidueAccess.primeWindowSign_eq_sign: mathematical correctness.Cslib.Complexity.IntegerResidueAccess.sign_mem_CountingFunction: Proposition 2.6's bound.
References #
- [OAI26f], Section 2, Proposition 2.6 (Sign from residues). The proof uses the existing strict oracle-program and fixed-length majority-verifier levels. It does not establish an additional oracle-machine characterization or the ETR theorem.
Total first-flag classifier with arbitrary window, precision and doubling limit.
Correct integer-sign behavior requires the numerical CRT conditions; the computational
certificate holds for all parameters. The endpoint includes K.
The natural approximation is exactly the rational CRT approximation of its coefficients.
Uniform residue access gives dyadic numerator access in F_(max(a,5)+1). The primary instance is paired with one binary doubling index; all moduli use one evaluator.
Uniform residue access, binary window/limit preparation and unary precision give the total window classifier in F_(max(a,5)+3). Correctness is independent of this cost certificate.
Recover a sign using the manuscript window derived from the access bound and an excluded prime cutoff. Only bound/residue operations are read from the access record.
The computed window classifier has the asserted level on every input, even before the residue correctness domain is checked. All query sizes follow from strict composition.
Correctness for all signs, including zero. Only prime moduli in the stated window need belong to the access domain; no admissibility recognizer is used by the algorithm.
Sign from modular residues, with the manuscript's F_(max(a,5)+3) bound. The bound exponent and excluded cutoff are polynomial-time binary values and may be exponentially large. Residues are supplied by one fixed F_a evaluator; every prime in the specified window must be admissible. No full integer or prime product is constructed.