Skip to content

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

Python

refactor: keep the named residue-field factorization in the tower proof

alkor2000dffc32b18015
diff --git a/src/Lib/Shimura/IntegralModel/TowerExistence.lean b/src/Lib/Shimura/IntegralModel/TowerExistence.lean
index 824a65fe281..294f1bda57f 100644
--- a/src/Lib/Shimura/IntegralModel/TowerExistence.lean
+++ b/src/Lib/Shimura/IntegralModel/TowerExistence.lean
@@ -148,10 +148,7 @@ lemma New.Variety.UniversalFamily.GraphClosure.congruenceRelation {E : Type} [Fi
-- `x` comes from the residue field of a point `z`, and `z` is the centre of an arc `α` over a
-- valuation ring `V` of `ℂ`. By `along`, a map that sends the complex point of `b` to that of
-- `a` sends `α` to the `V`-point of `a`.
- obtain ⟨⟨z, ψ⟩, hψ⟩ := (Scheme.SpecToEquivOfField k C.scheme.left).symm.surjective x
- let ρ := ψ.hom
- change specMap ρ ≫ C.scheme.left.fromSpecResidueField z = x at hψ
- subst x
+ obtain ⟨z, ρ, rfl, -⟩ := exists_countable_residue_point C.scheme.hom x
obtain ⟨V, α, b, ρ', centre, along⟩ := C.exists_arc z
have hz_charP : CharP (C.scheme.left.residueField z) l := ρ.charP ρ.injective l
have hV_charP : CharP (ResidueField V) l := charP_of_injective_ringHom ρ'.injective l