OAI/NumberTheory/Ostmann/Arithmetic/SquareRootProbability.lean
4 declarations, 0 contain sorry, 0 declared as axioms
The divisor loss in the square-congruence probability
- theorem
OAI.Ostmann.two_pow_primeFactors_card_le_divisors_cardline 13 - theorem
OAI.Ostmann.le_divisors_card_mul_totientline 26 - theorem
OAI.Ostmann.square_root_density_factor_leline 37Source documentation
The loss from unit sampling and the possible power of two is bounded by two divisor factors, leaving the essential reciprocal-modulus decay.
theorem square_root_density_factor_le (q : ℕ) [NeZero q] : (2 : ℝ) ^ (q.primeFactors.card + 1) / q.totient ≤ 2 * (q.divisors.card : ℝ) ^ 2 / q := by … - theorem
OAI.Ostmann.unit_square_probability_leline 58Source documentation
A Haar unit satisfies a prescribed square congruence with probability at most
2*tau(q)^2/q. This applies also to inconsistent congruences.theorem unit_square_probability_le (q : ℕ) [NeZero q] (a : (ZMod q)ˣ) : (Nat.card {x : (ZMod q)ˣ // x ^ 2 = a} : ℝ) / Fintype.card (ZMod q)ˣ ≤ 2 * (q.divisors.card : ℝ) ^ 2 / q := by …