Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import TauCeti.Topology.Algebra.Group.Units |
| 4 | import TauCeti.Topology.Instances.Matrix |
| 5 | public import Lib.SiegelWeil.UnramifiedSeries.VacuumCoefficients |
| 6 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 7 | import Lib.SiegelWeil.RallisInner.Doubling |
| 8 | |
| 9 | /-! |
| 10 | # Summability of the vacuum coefficients from the doubling formula |
| 11 | |
| 12 | For `2 * card n < M`, the coefficients `New.SiegelWeil.vacuumCoeff M b` of the vacuum are absolutely |
| 13 | summable over the representatives `New.SiegelWeil.cosetRep` of the cosets of the points integral at |
| 14 | any set of places (`New.SiegelWeil.summable_norm_vacuumCoeff`). |
| 15 | |
| 16 | The proof applies Rallis' inner product formula `New.SiegelWeil.inner_product_formula` to the |
| 17 | definite spaces `stdSpace E n`, `stdSpace E m` (with `card m = M`), the vacuum datum and the |
| 18 | constant function `1`: the matrix coefficient `g ↦ ⟨vac, ω(g) vac⟩` is integrable on the adelic |
| 19 | unitary group. Cutting the group into the cosets of the points integral at every place |
| 20 | (`New.hasSum_setIntegral_mul_of_existsUnique`), the integral of its modulus is the sum of the moduli |
| 21 | of the vacuum coefficients times a positive number. |
| 22 | -/ |
| 23 | |
| 24 | @[expose] public section |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | open MeasureTheory Fintype |
| 29 | |
| 30 | namespace New |
| 31 | |
| 32 | /-- Cutting an integral over a group into cosets. Let `μ` be left invariant on `H`, let `L` be a |
| 33 | measurable subgroup, and let the points `r i`, for `i` in a countable type, meet every coset `g L` |
| 34 | exactly once. The integral of an integrable `Φ` is the sum over `i` of the integrals of |
| 35 | `g ↦ Φ (r i * g)` over `L`. -/ |
| 36 | lemma hasSum_setIntegral_mul_of_existsUnique {H ι F : Type*} [Group H] [MeasurableSpace H] |
| 37 | [MeasurableMul H] {μ : Measure H} [μ.IsMulLeftInvariant] {L : Subgroup H} [Countable ι] |
| 38 | [NormedAddCommGroup F] [NormedSpace ℝ F] (hL : MeasurableSet (L : Set H)) {r : ι → H} |
| 39 | (hr : ∀ g : H, ∃! i, (r i)⁻¹ * g ∈ L) {Φ : H → F} (hΦ : Integrable Φ μ) : |
| 40 | HasSum (fun i ↦ ∫ g in (L : Set H), Φ (r i * g) ∂μ) (∫ g, Φ g ∂μ) := by |
| 41 | -- The cosets `r i L` are disjoint, cover `H`, and each is the image of `L` under a measure |
| 42 | -- preserving left translation. |
| 43 | let coset (i : ι) : Set H := (fun g ↦ (r i)⁻¹ * g) ⁻¹' L |
| 44 | have h_disjoint : Pairwise (Function.onFun Disjoint coset) := fun i j h_ne ↦ |
| 45 | Set.disjoint_left.2 fun g hi hj ↦ h_ne ((hr g).unique hi hj) |
| 46 | have h_cover : ⋃ i, coset i = Set.univ := |
| 47 | Set.eq_univ_of_forall fun g ↦ Set.mem_iUnion.2 (hr g).exists |
| 48 | have h_coset (i : ι) : ∫ g in coset i, Φ g ∂μ = ∫ g in (L : Set H), Φ (r i * g) ∂μ := by |
| 49 | simpa using (measurePreserving_mul_left μ (r i)⁻¹).setIntegral_preimage_emb |
| 50 | (measurableEmbedding_mulLeft _) (fun g ↦ Φ (r i * g)) L |
| 51 | simpa only [h_coset, h_cover, Measure.restrict_univ] using |
| 52 | hasSum_integral_iUnion (s := coset) (fun i ↦ measurable_const_mul _ hL) h_disjoint hΦ.restrict |
| 53 | |
| 54 | namespace SiegelWeil |
| 55 | |
| 56 | open Space |
| 57 | |
| 58 | variable {E n m : Type} [Field E] [CMType E] [WeilData E] [Fintype n] [DecidableEq n] [Fintype m] |
| 59 | |
| 60 | /-- The integral of the norm of the vacuum matrix coefficient of `(stdSpace E n).hom (stdSpace E m)` |
| 61 | over the points of `G E 1` that are integral at every finite place is positive, as the |
| 62 | coefficient is continuous and equals `1` at the identity. -/ |
| 63 | private lemma integral_norm_weilMatrixCoeff_localLevel_pos [DecidableEq m] |
| 64 | (h_coeff : Integrable fun g : G E (1 : n → ℤˣ) ↦ |
| 65 | weilMatrixCoeff 1 ((stdSpace E n).hom (stdSpace E m)).vacElem |
| 66 | ((stdSpace E n).hom (stdSpace E m)).vacElem g) : |
| 67 | 0 < ∫ g in (((localLevel n Set.univ).comap |
| 68 | (MonoidHom.snd (GInf E (1 : n → ℤˣ)) (Gf E n))) : Set (G E (1 : n → ℤˣ))), |
| 69 | ‖weilMatrixCoeff 1 ((stdSpace E n).hom (stdSpace E m)).vacElem |
| 70 | ((stdSpace E n).hom (stdSpace E m)).vacElem g‖ := by |
| 71 | let S : Space E n 1 := stdSpace E n |
| 72 | let T : Space E m 1 := stdSpace E m |
| 73 | let f : 𝒮 (S.hom T) := (S.hom T).vacElem |
| 74 | let L : Subgroup (G E (1 : n → ℤˣ)) := |
| 75 | (localLevel n Set.univ).comap (MonoidHom.snd (GInf E (1 : n → ℤˣ)) (Gf E n)) |
| 76 | have hL_open : IsOpen (L : Set (G E (1 : n → ℤˣ))) := |
| 77 | (isOpen_coe_localLevel (E := E) (n := n) Set.univ).preimage continuous_snd |
| 78 | have h_cont : Continuous fun g : G E (1 : n → ℤˣ) ↦ weilMatrixCoeff 1 f f g := by |
| 79 | unfold weilMatrixCoeff |
| 80 | fun_prop |
| 81 | rw [setIntegral_pos_iff_support_of_nonneg_ae (.of_forall fun _ ↦ norm_nonneg _) |
| 82 | h_coeff.norm.integrableOn] |
| 83 | exact (h_cont.norm.isOpen_support.inter hL_open).measure_pos volume |
| 84 | ⟨1, by simp [Function.mem_support, weilMatrixCoeff, f, Prod.mk_one_one, |
| 85 | dataInner_vacElem_vacElem], L.one_mem⟩ |
| 86 | |
| 87 | /-- For `2 * card n < card m`, the vacuum coefficients `vacuumCoeff (card m) 1` are absolutely |
| 88 | summable over the cosets of the points integral at every place. -/ |
| 89 | lemma summable_norm_vacuumCoeff_univ (h_rank : 2 * card n < card m) : |
| 90 | Summable fun q : Gf E n ⧸ localLevel n Set.univ ↦ |
| 91 | ‖vacuumCoeff (card m) 1 (cosetRep q).val‖ := by |
| 92 | classical |
| 93 | -- The vacuum datum on `Hom(S, T)` for the definite spaces, paired with the constant `1`. |
| 94 | let S : Space E n 1 := stdSpace E n |
| 95 | let T : Space E m 1 := stdSpace E m |
| 96 | let f : 𝒮 (S.hom T) := (S.hom T).vacElem |
| 97 | have hf_clean : IsClean f := .inl fun _ _ ↦ rfl |
| 98 | have h_one : (fun _ : G E (1 : n → ℤˣ) ↦ (1 : ℂ)) ∈ S.rapidFunctions := |
| 99 | (S.isAutomorphic_const 1).mem_rapidFunctions fun _ _ ↦ rfl |
| 100 | obtain ⟨h_int, -⟩ := |
| 101 | inner_product_formula h_rank (1 : AutChar E) (1 : AutChar E) hf_clean h_one h_one |
| 102 | -- The coefficient itself is integrable: the Petersson factor is the volume of `[U(S)]`. |
| 103 | have h_const : S.petersson (fun _ ↦ (1 : ℂ)) (fun _ ↦ (1 : ℂ)) ≠ 0 := by |
| 104 | simp [Space.petersson, measureReal_univ_ne_zero] |
| 105 | have h_coeff : Integrable fun g : G E (1 : n → ℤˣ) ↦ weilMatrixCoeff 1 f f g := by |
| 106 | refine (integrable_mul_const_iff (isUnit_iff_ne_zero.2 h_const) _).1 ?_ |
| 107 | convert h_int using 3 |
| 108 | rfl |
| 109 | -- Cut the group into the cosets of `L`, the points whose finite part is integral everywhere. |
| 110 | let L : Subgroup (G E (1 : n → ℤˣ)) := |
| 111 | (localLevel n Set.univ).comap (MonoidHom.snd (GInf E (1 : n → ℤˣ)) (Gf E n)) |
| 112 | let r (q : Gf E n ⧸ localLevel n Set.univ) : G E (1 : n → ℤˣ) := ((cosetRep q).val : G E 1) |
| 113 | have hL_open : IsOpen (L : Set (G E (1 : n → ℤˣ))) := |
| 114 | (isOpen_coe_localLevel (E := E) (n := n) Set.univ).preimage continuous_snd |
| 115 | have mem_L (q : Gf E n ⧸ localLevel n Set.univ) (g : G E (1 : n → ℤˣ)) : |
| 116 | (r q)⁻¹ * g ∈ L ↔ q = (g.2 : Gf E n ⧸ localLevel n Set.univ) := by |
| 117 | have h_snd : (r q)⁻¹ * g ∈ L ↔ ((cosetRep q).val)⁻¹ * g.2 ∈ localLevel n Set.univ := by |
| 118 | simp [L, r] |
| 119 | rw [h_snd, ← QuotientGroup.eq, mk_cosetRep] |
| 120 | have hr (g : G E (1 : n → ℤˣ)) : ∃! q, (r q)⁻¹ * g ∈ L := |
| 121 | ⟨g.2, (mem_L _ g).2 rfl, fun q hq ↦ (mem_L q g).1 hq⟩ |
| 122 | have := countable_quotient_localLevel (E := E) (n := n) Set.univ |
| 123 | have h_sum := hasSum_setIntegral_mul_of_existsUnique hL_open.measurableSet hr h_coeff.norm |
| 124 | -- On `L` the vacuum coefficient comes out of the modulus. |
| 125 | have hf_vac : projOn (S.hom T) Set.univ f = f := projOn_vacElem _ |
| 126 | set I : ℝ := ∫ g in (L : Set (G E (1 : n → ℤˣ))), ‖weilMatrixCoeff 1 f f g‖ |
| 127 | have h_terms (q : Gf E n ⧸ localLevel n Set.univ) : |
| 128 | ∫ g in (L : Set (G E (1 : n → ℤˣ))), ‖weilMatrixCoeff 1 f f (r q * g)‖ = |
| 129 | ‖vacuumCoeff (card m) 1 (cosetRep q).val‖ * I := by |
| 130 | rw [← integral_const_mul] |
| 131 | refine setIntegral_congr_fun hL_open.measurableSet fun g (hg : g.2 ∈ localLevel n Set.univ) ↦ ?_ |
| 132 | simp only [r, weilMatrixCoeff_mul 1 hf_vac (by simp [Gf.mem_supportedOn]) hg, norm_mul] |
| 133 | have h_pos : 0 < I := integral_norm_weilMatrixCoeff_localLevel_pos h_coeff |
| 134 | exact (summable_mul_right_iff h_pos.ne').1 (h_sum.congr_fun fun q ↦ (h_terms q).symm).summable |
| 135 | |
| 136 | /-- For `2 * card n < card m`, consider the numbers `vacuumCoeff (card m) b g = (b(det g) * |
| 137 | finMultiplier g ^ card m)⁻¹`. This is the factor by which `g` changes the vacuum matrix coefficient |
| 138 | when the second space has rank `m`. These numbers are absolutely summable over the representatives |
| 139 | `cosetRep q` of the cosets `q` of `Gf E n` modulo `localLevel n A`, the points integral at `A`. -/ |
| 140 | theorem summable_norm_vacuumCoeff (h_rank : 2 * card n < card m) (b : AutChar E) |
| 141 | (A : Set (FinPlace E)) : |
| 142 | Summable fun q : Gf E n ⧸ localLevel n A ↦ ‖vacuumCoeff (card m) b (cosetRep q).val‖ := by |
| 143 | classical |
| 144 | -- The norms do not see `b`, and the cosets at `A` inject into the cosets at all places. |
| 145 | let ι (q : Gf E n ⧸ localLevel n A) : Gf E n ⧸ localLevel n Set.univ := ((cosetRep q).val : _) |
| 146 | have hι : Function.Injective ι := cosetRep_injective_of_subset (Set.subset_univ A) |
| 147 | refine ((summable_norm_vacuumCoeff_univ (E := E) h_rank).comp_injective hι).congr fun q ↦ ?_ |
| 148 | have h_supp : (cosetRep q).val ∈ Gf.supportedOn n Set.univ := by simp |
| 149 | simp only [Function.comp_apply, ι, norm_vacuumCoeff] |
| 150 | rw [finMultiplier_cosetRep_mk h_supp] |
| 151 | |
| 152 | end SiegelWeil |
| 153 | |
| 154 | end New |