OAI/NumberTheory/Ostmann/Arithmetic/ResidueQuotient.lean
6 declarations, 0 contain sorry, 0 declared as axioms
Division by a signed frequency with an explicit loss of precision
The quotient is an actual function on residue classes. It agrees with integer division whenever the frequency divides the represented integer.
- theorem
OAI.Ostmann.modEq_divide_signedline 14 - def
OAI.Ostmann.residueQuotientline 25 - theorem
OAI.Ostmann.residueQuotient_intCastline 29 - def
OAI.Ostmann.frequencyQuotientline 46 - theorem
OAI.Ostmann.frequencyQuotient_intCastline 51 - theorem
OAI.Ostmann.frequencyQuotient_reversalline 59Source documentation
The extra compensation factor is a unit, so it costs no further precision after the signed frequency has been divided out.
theorem frequencyQuotient_reversal (R M : ℕ) [NeZero M] (s : ℤ) (hs : s ≠ 0) (hsR : s.natAbs ∣ R) (u p : ℤ) (U : (ZMod M)ˣ) (hU : (U : ZMod M) = u) : frequencyQuotient R M s hsR (s * u * p : ZMod (R * M)) * ↑U⁻¹ = p := by …Mentions: OAI.Ostmann.frequencyQuotient