Rounded modulus switching for Module-LWE ciphertext phases #
The existing ciphertext type is converted coefficientwise using ZMod.modulusSwitch. Its
canonical centered lifts may be replaced by arbitrary integer representatives. An explicit
carry polynomial accounts for wraparound at the source modulus. The switched phase has an
integer representative differing from the rationally scaled original phase by at most half of
one plus the full coefficient
ℓ₁ norm of the integer secret.
This is original supporting nearest-integer algebra. It is not the parity-preserving switching variant: half-integer ties round toward positive infinity. No Boolean decoding preservation, security reduction, sampling law, or native runtime bound is claimed.
Main definitions #
moduleLWEModulusSwitch: coefficientwise conversion of the existing ciphertext type.
Main results #
exists_moduleLWEModulusSwitch_phase_of_lifts: phase identity and rounding-error bounds from arbitrary integer lifts and an explicit carry equation.exists_moduleLWEModulusSwitch_phase_of_intCast: the bound from any integer phase representative.exists_moduleLWEModulusSwitch_phase: the bound for the canonical original phase, constructing the carry polynomial automatically.
Convert both components of a Module-LWE ciphertext by canonical nearest-integer scaling.
A switched phase has an integer representative close to the scaled original phase.
The secret at both moduli is the cast of the same integer vector s. The carry equation is
an integer equation, not an assumption about rounded values or the desired error bound.
Both moduli are positive; no relative-size, primality or nontriviality assumption is needed.
The phase bound for any supplied integer representative of the original phase. Carries are constructed from the modular phase identity, including representatives outside the centered interval. This lets plaintext/error decompositions reuse the same rounding bound.
The actual switched ciphertext phase is close to the scaled canonical original phase.
Integer carries exist automatically; no no-wrap assumption is needed. The secret at the new
modulus is obtained from the same integer secret s, not by rounding the secret.