Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
keep the original proof of h_gen_sq
sangxsh2064c6d540ba
diff --git a/src/New/OneLift/ComparisonOperator/GluedForms.lean b/src/New/OneLift/ComparisonOperator/GluedForms.leanindex fe1be260dac..cc89e49bb74 100644--- a/src/New/OneLift/ComparisonOperator/GluedForms.lean+++ b/src/New/OneLift/ComparisonOperator/GluedForms.lean@@ -268,8 +268,10 @@ lemma liftFn_datum_point_inv_mul (x : n × r → 𝔸f E) :-- as `genResidue ^ 2 = 0`, the entries of `genIdele ^ 2 γ⁻¹ x` vanish modulo `ϖ²`, so-- `γ⁻¹ x` is integral (`reduction_genIntAdele_mul_eq_zero_iff`), against `h_inv_mul`.have h_gen_sq : V.genResidue * V.genResidue = 0 := by- rw [← RingHom.map_mul]- exact (reduction_genIntAdele_mul_eq_zero_iff (mul_one _).symm).2 (one_mem _)+ rw [← RingHom.map_mul, reduction_levelModulus_eq_zero_iff]+ change O.genIdele⁻¹.val ^ 2 * (O.genIdele.val * O.genIdele.val) ∈ Ô E+ rw [sq, mul_mul_mul_comm, Units.inv_mul, mul_one]+ exact one_mem _refine (h_inv_mul fun i j ↦ ?_).elimhave h_mul : O.chosenModulusSq.reduction (O.genIntAdele *(L.integralInverse * X hx) i j) = 0 := by