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.Algebra.MonoidAlgebra.MapDomain |
| 4 | public import Lib.Adelic.Hecke.Basic |
| 5 | |
| 6 | /-! |
| 7 | # The elements of a group algebra that keep a level |
| 8 | |
| 9 | For a representation `ρ` of a group `G` over a commutative ring `R` and a subgroup `K`, the elements |
| 10 | of the group algebra `R[G]` that map `K`-fixed vectors to `K`-fixed vectors form an algebra, and it |
| 11 | acts on the `K`-fixed vectors. |
| 12 | |
| 13 | Notions from other files: |
| 14 | |
| 15 | * `levelSpace ρ K`: the subspace of the vectors that `ρ k` fixes for every `k ∈ K`. |
| 16 | |
| 17 | ## Relation to the literature |
| 18 | |
| 19 | Known result: the elements of a group algebra that keep the vectors fixed by a subgroup, and their |
| 20 | action on these vectors. The related class sums are in `Lib.Adelic.Hecke.ClassSums`. |
| 21 | -/ |
| 22 | |
| 23 | @[expose] public section |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | namespace New |
| 28 | |
| 29 | open MonoidAlgebra |
| 30 | |
| 31 | variable {R G M : Type*} [CommRing R] [Group G] [AddCommGroup M] [Module R M] |
| 32 | (ρ : Representation R G M) (K : Subgroup G) |
| 33 | |
| 34 | /-- Pushing an element of `H`'s group algebra forward along `f : H →* G` and letting it act by `ρ` |
| 35 | is letting it act by the restricted representation `ρ ∘ f`. -/ |
| 36 | lemma asAlgebraHom_mapDomain {H : Type*} [Group H] (f : H →* G) (a : R[H]) : |
| 37 | ρ.asAlgebraHom (mapDomain f a) = Representation.asAlgebraHom (ρ.comp f) a := |
| 38 | lift_mapDomain ρ f a |
| 39 | |
| 40 | /-- The elements of the group algebra that map `K`-fixed vectors of `ρ` to `K`-fixed vectors. -/ |
| 41 | def levelAlgebra : Subalgebra R R[G] where |
| 42 | carrier := {a : R[G] | ∀ y ∈ levelSpace ρ K, ρ.asAlgebraHom a y ∈ levelSpace ρ K} |
| 43 | mul_mem' {a b} ha hb y hy := by |
| 44 | simpa using ha _ (hb y hy) |
| 45 | add_mem' {a b} ha hb y hy := by |
| 46 | simpa using add_mem (ha y hy) (hb y hy) |
| 47 | algebraMap_mem' c y hy := by |
| 48 | simpa using Submodule.smul_mem (levelSpace ρ K) c hy |
| 49 | |
| 50 | variable {ρ K} in |
| 51 | /-- An element `a` of `R[G]` lies in `levelAlgebra ρ K` if and only if |
| 52 | `ρ.asAlgebraHom a` sends every `K`-invariant vector in `M` into |
| 53 | `levelSpace ρ K`. -/ |
| 54 | lemma mem_levelAlgebra {a : R[G]} : |
| 55 | a ∈ levelAlgebra ρ K ↔ ∀ y ∈ levelSpace ρ K, ρ.asAlgebraHom a y ∈ levelSpace ρ K := |
| 56 | Iff.rfl |
| 57 | |
| 58 | /-- The action of `levelAlgebra ρ K` on the `K`-fixed vectors. -/ |
| 59 | def levelAction : levelAlgebra ρ K →ₐ[R] Module.End R (levelSpace ρ K) where |
| 60 | toFun a := (ρ.asAlgebraHom a).restrict a.property |
| 61 | map_one' := by simp [LinearMap.ext_iff, Subtype.ext_iff] |
| 62 | map_mul' a b := by |
| 63 | ext y |
| 64 | exact LinearMap.congr_fun (map_mul ρ.asAlgebraHom a.val b.val) y |
| 65 | map_zero' := by simp [LinearMap.ext_iff, Subtype.ext_iff] |
| 66 | map_add' a b := by |
| 67 | ext y |
| 68 | exact LinearMap.congr_fun (map_add ρ.asAlgebraHom a.val b.val) y |
| 69 | commutes' c := by |
| 70 | ext y |
| 71 | simp |
| 72 | |
| 73 | variable (R) in |
| 74 | /-- The elements of the group algebra that keep the `K`-fixed vectors in every representation of |
| 75 | `G` on an `R`-module in `Type`. -/ |
| 76 | def universalLevelAlgebra : Subalgebra R R[G] := |
| 77 | ⨅ (M : Type) (_ : AddCommGroup M) (_ : Module R M) (ρ : Representation R G M), levelAlgebra ρ K |
| 78 | |
| 79 | variable {K} in |
| 80 | /-- An element of `R[G]` lies in `universalLevelAlgebra R K` iff, for every representation `ρ` of |
| 81 | `G` on an `R`-module in `Type`, it lies in `levelAlgebra ρ K`, i.e. keeps the `K`-fixed vectors. -/ |
| 82 | lemma mem_universalLevelAlgebra {a : R[G]} : |
| 83 | a ∈ universalLevelAlgebra R K ↔ ∀ (M : Type) [AddCommGroup M] [Module R M] |
| 84 | (ρ : Representation R G M), a ∈ levelAlgebra ρ K := by |
| 85 | simp only [universalLevelAlgebra, Algebra.mem_iInf] |
| 86 | |
| 87 | /-- For every representation `ρ` of `G` on an `R`-module in `Type`, the algebra |
| 88 | `universalLevelAlgebra R K` is contained in `levelAlgebra ρ K`. -/ |
| 89 | lemma universalLevelAlgebra_le {M : Type} [AddCommGroup M] [Module R M] (ρ : Representation R G M) : |
| 90 | universalLevelAlgebra R K ≤ levelAlgebra ρ K := |
| 91 | fun _ ha ↦ mem_universalLevelAlgebra.mp ha M ρ |
| 92 | |
| 93 | end New |
| 94 | |
| 95 | end |