Finite logarithmic product formula for rational numbers
ProvedGRHLeanSupport.rational_log_product_formulaLet be a rational number, written in lowest terms with integer numerator and positive denominator . Let be a natural number such that . For a prime , write for its -adic norm. Then
This is the finite-cutoff rational product formula used in the compact source's height argument: it cancels the rational norm term at the end of HeightLe.nonneg. It gives a concrete finite range of primes rather than an abstract sum over all places. The source's remaining height and GRH proof obligations are separate.
Formalization Note. The exact source statement includes : Lean sets the real logarithm of zero and the -adic norm of zero to zero. For negative rational numbers, Real.log agrees with the logarithm of the absolute value. No nonzero or positivity hypothesis on is added. This is a faithful port of an existing source lemma, under a separate support namespace to avoid collisions with the ongoing GRHLean module port.
import Mathlib.Data.Nat.Factorization.Basic import Mathlib.NumberTheory.Padics.PadicNorm import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Tactic open Real Finset set_option autoImplicit false
theorem GRHLeanSupport.rational_log_product_formula {M : ℕ} {q : ℚ} (h : q.num.natAbs ⊔ q.den < M) :
Real.log (q : ℝ) + ∑ p ∈ Finset.range M with p.Prime, Real.log (padicNorm p q) = 0 := by
sorry