Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

doc: explain ideal membership in the prime cancellation proof

alkor2000e6d6041b7188
diff --git a/src/Lib/PadicHodge/PeriodRings/Ainf.lean b/src/Lib/PadicHodge/PeriodRings/Ainf.lean
index c713fa9d4aa..d2afd2d55bb 100644
--- a/src/Lib/PadicHodge/PeriodRings/Ainf.lean
+++ b/src/Lib/PadicHodge/PeriodRings/Ainf.lean
@@ -850,6 +850,7 @@ lemma Ainf.exists_frobEnd_sub_xi_pow_mul_eq (n : ℕ) (x : Ainf) :
lemma _root_.Prime.mul_mem_span_pair_pow_succ_iff {R : Type*} [CommRing R] [IsDomain R]
{q d x : R} (hq : Prime q) (hd : ¬q ∣ d) (n : ℕ) :
q * x ∈ Ideal.span {q ^ (n + 1), d} ↔ x ∈ Ideal.span {q ^ n, d} := by
+ -- Membership of `x` in `(q ^ n, d)` means `d ∣ x + b * q ^ n` for some `b`.
simp only [Ideal.mem_span_insert', Ideal.mem_span_singleton]
refine exists_congr fun b ↦ ?_
have h_factor : q * x + b * q ^ (n + 1) = q * (x + b * q ^ n) := by