Chinese remaindering on the rational circle #
For pairwise coprime positive integer moduli, normalized CRT coefficients sum to the represented integer divided by the product, modulo one. The product is a mathematical quantity in the correctness proof. The rounding operation only receives the coefficient fractions and its precision, and never constructs the represented integer or product.
This generalizes the mathematical CRT and rounding steps of Section 2 of [OAI26f]. Moduli need not be prime. The local inverse congruences are an access interface for modular arithmetic; the circle identity is proved here.
Main definitions #
Cslib.crtCofactor: the product omitting one modulus.Cslib.crtCoefficient: the canonical coefficient from a supplied modular inverse.
Main results #
Cslib.crt_circle_identity: the CRT identity modulo one.Cslib.crt_dyadicCircleApprox_close: its dyadic approximation error.
References #
- [OAI26f], Section 2, equations
crt-circle-identityandcrt-circle-error.
The mathematical CRT cofactor, the product of all moduli except at index i.
Multiplying the omitted modulus back into its cofactor recovers the full product.
Canonical CRT coefficient. The argument u is an inverse of the cofactor modulo m;
its computation is deliberately separate from this residue operation.
CRT coefficients lie in the canonical residue interval for positive moduli.
CRT circle identity for arbitrary pairwise coprime positive integer moduli. Only the individual coefficient congruences are supplied; divisibility by the entire product and the identity modulo one are conclusions of the proof.
Dyadic rounding of normalized CRT coefficients approximates the represented integer modulo the product, for every sign of the integer. The precision condition is explicit.