Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.ArithmeticGroups.Lattices.IntegralLattice |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Realizations |
| 3 | |
| 4 | /-! # Discrete -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Discrete.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Discreteness of arithmetic matrix stabilizers in the full archimedean |
| 13 | product, by evaluation on finitely many spanning lattice vectors. -/ |
| 14 | |
| 15 | open scoped Classical _root_.NumberField |
| 16 | open _root_.NumberField _root_.NumberField.mixedEmbedding OAI.NumberTheory.ArithmeticGroups.Lattices.IntegralLattice |
| 17 | |
| 18 | variable {k : Type} [Field k] [NumberField k] |
| 19 | |
| 20 | omit [NumberField k] in |
| 21 | @[fun_prop] theorem continuous_adele_to_mixed : |
| 22 | Continuous (InfiniteAdeleRing.ringEquiv_mixedSpace k) := by |
| 23 | apply Continuous.prodMk |
| 24 | · apply continuous_pi |
| 25 | intro v |
| 26 | exact (InfinitePlace.Completion.isometry_extensionEmbeddingOfIsReal v.property).continuous.comp |
| 27 | (continuous_apply v.val) |
| 28 | · apply continuous_pi |
| 29 | intro v |
| 30 | exact (InfinitePlace.Completion.isometry_extensionEmbedding v.val).continuous.comp |
| 31 | (continuous_apply v.val) |
| 32 | |
| 33 | variable {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 34 | |
| 35 | def archimedeanEvaluate (g : G.ArchimedeanProduct Set.univ) (x : Fin n → k) : |
| 36 | Fin n → mixedSpace k := fun i => InfiniteAdeleRing.ringEquiv_mixedSpace k |
| 37 | (fun v => ∑ j, (g ⟨v, Set.mem_univ v⟩).val i j * algebraMap k v.Completion (x j)) |
| 38 | |
| 39 | omit [NumberField k] in |
| 40 | theorem continuous_archimedeanEntry (v : InfinitePlace k) (i j : Fin n) : |
| 41 | Continuous (fun g : G.ArchimedeanProduct Set.univ => |
| 42 | (g ⟨v, Set.mem_univ v⟩).val i j) := by |
| 43 | have h0 : Continuous (fun g : G.ArchimedeanProduct Set.univ => |
| 44 | g ⟨v, Set.mem_univ v⟩) := continuous_apply _ |
| 45 | exact (continuous_apply j).comp |
| 46 | (Matrix.SpecialLinearGroup.continuous_apply _ (continuous_subtype_val.comp h0) i) |
| 47 | |
| 48 | omit [NumberField k] in |
| 49 | theorem continuous_archimedeanEvaluate (x : Fin n → k) : |
| 50 | Continuous (fun g : G.ArchimedeanProduct Set.univ => archimedeanEvaluate G g x) := by |
| 51 | apply continuous_pi |
| 52 | intro i |
| 53 | apply continuous_adele_to_mixed.comp |
| 54 | change Continuous (fun g : G.ArchimedeanProduct Set.univ => |
| 55 | fun v : InfinitePlace k => |
| 56 | ∑ j, (g ⟨v, Set.mem_univ v⟩).val i j * algebraMap k v.Completion (x j)) |
| 57 | apply continuous_pi |
| 58 | intro v |
| 59 | apply continuous_finsetSum |
| 60 | intro j _ |
| 61 | exact (continuous_archimedeanEntry G v i j).mul continuous_const |
| 62 | |
| 63 | omit [NumberField k] in |
| 64 | theorem archimedeanEvaluate_diagonal (g : G.RationalPoints) (x : Fin n → k) : |
| 65 | archimedeanEvaluate G (G.diagonal Set.univ g) x = |
| 66 | IntegralLattice.Construction.vectorMixedEmbedding (k := k) n (G.representation g x) := by |
| 67 | funext i |
| 68 | change InfiniteAdeleRing.ringEquiv_mixedSpace k _ = |
| 69 | mixedEmbedding k (G.representation g x i) |
| 70 | rw [InfiniteAdeleRing.mixedEmbedding_eq_algebraMap_comp] |
| 71 | apply congrArg (InfiniteAdeleRing.ringEquiv_mixedSpace k) |
| 72 | funext v |
| 73 | change (∑ j, algebraMap k v.Completion (g.val i j) * algebraMap k v.Completion (x j)) = |
| 74 | algebraMap k v.Completion (∑ j, g.val i j * x j) |
| 75 | simp only [map_sum, map_mul] |
| 76 | |
| 77 | theorem vectorMixedEmbedding_injective (n : ℕ) : |
| 78 | Function.Injective (IntegralLattice.Construction.vectorMixedEmbedding (k := k) n) := by |
| 79 | intro x y he |
| 80 | funext i |
| 81 | exact mixedEmbedding_injective k (congrFun he i) |
| 82 | |
| 83 | /-- Every full integral lattice stabilizer is discrete in the product of |
| 84 | all archimedean point groups. Semisimplicity is not needed for this part. -/ |
| 85 | theorem full_diagonal_stabilizer_discrete (Λ : IntegralLattice.FullLattice k n) : |
| 86 | DiscreteTopology ((G.latticeStabilizer Λ).map (G.diagonal Set.univ)) := by |
| 87 | obtain ⟨s, hs⟩ := Λ.finite |
| 88 | have hspan : Submodule.span k (s : Set (Fin n → k)) = ⊤ := by |
| 89 | rw [← Submodule.span_span_of_tower (𝓞 k) k, hs, Λ.full] |
| 90 | have hsΛ : ∀ x ∈ s, x ∈ Λ.module := by |
| 91 | intro x hx |
| 92 | rw [← hs] |
| 93 | exact Submodule.subset_span hx |
| 94 | let : DiscreteTopology (IntegralLattice.Construction.vectorLatticeImage Λ.module) := |
| 95 | IntegralLattice.Construction.vectorLatticeImage_discrete Λ.module Λ.finite |
| 96 | let f : ((G.latticeStabilizer Λ).map (G.diagonal Set.univ)) → |
| 97 | (s → IntegralLattice.Construction.vectorLatticeImage Λ.module) := fun a x => |
| 98 | ⟨archimedeanEvaluate G a.val x.val, by |
| 99 | obtain ⟨g, hg, he⟩ := a.property |
| 100 | rw [← he, archimedeanEvaluate_diagonal] |
| 101 | apply (IntegralLattice.Construction.mem_vectorLatticeImage Λ.module _).mpr |
| 102 | refine ⟨G.representation g x.val, ?_, rfl⟩ |
| 103 | exact ((G.mem_latticeStabilizer Λ g).mp hg x.val).mpr (hsΛ x.val x.property)⟩ |
| 104 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 105 | · apply continuous_pi |
| 106 | intro x |
| 107 | exact ((continuous_archimedeanEvaluate G x.val).comp continuous_subtype_val).subtype_mk _ |
| 108 | · intro a b hab |
| 109 | obtain ⟨g, hg, hga⟩ := a.property |
| 110 | obtain ⟨h, hh, hhb⟩ := b.property |
| 111 | have hgh : g = h := by |
| 112 | apply G.representation_injective |
| 113 | apply LinearEquiv.toLinearMap_injective |
| 114 | apply LinearMap.ext_on hspan |
| 115 | intro x hx |
| 116 | have he := congrArg (fun F : s → IntegralLattice.Construction.vectorLatticeImage Λ.module => (F ⟨x, hx⟩).val) hab |
| 117 | change archimedeanEvaluate G a.val x = archimedeanEvaluate G b.val x at he |
| 118 | rw [← hga, ← hhb, archimedeanEvaluate_diagonal, archimedeanEvaluate_diagonal] at he |
| 119 | exact vectorMixedEmbedding_injective n he |
| 120 | apply Subtype.ext |
| 121 | exact hga.symm.trans ((congrArg (G.diagonal Set.univ) hgh).trans hhb) |
| 122 | |
| 123 | end |
| 124 | |
| 125 | /-! Discreteness survives commensurability and omission of compact |
| 126 | archimedean factors. -/ |
| 127 | |
| 128 | open scoped Classical |
| 129 | open OAI.NumberTheory.ArithmeticGroups.Lattices.IntegralLattice |
| 130 | |
| 131 | theorem discrete_map_of_closedMap |
| 132 | {A B : Type*} [Group A] [Group B] |
| 133 | [TopologicalSpace A] [TopologicalSpace B] [IsTopologicalGroup A] [T2Space A] |
| 134 | (f : A →* B) (hf : IsClosedMap f) (H : Subgroup A) [DiscreteTopology H] : |
| 135 | DiscreteTopology (H.map f) := by |
| 136 | let q : H → H.map f := fun x => ⟨f x.val, ⟨x.val, x.property, rfl⟩⟩ |
| 137 | have hq : Function.Surjective q := by |
| 138 | rintro ⟨y, x, hx, rfl⟩ |
| 139 | exact ⟨⟨x, hx⟩, rfl⟩ |
| 140 | have hc : IsClosedMap (fun x : H => f x.val) := |
| 141 | hf.comp Subgroup.isClosed_of_discreteTopology.isClosedMap_subtype_val |
| 142 | apply discreteTopology_iff_forall_isClosed.mpr |
| 143 | intro s |
| 144 | have hs := (hc (q ⁻¹' s) (isClosed_discrete _)).preimage |
| 145 | (continuous_subtype_val : Continuous (Subtype.val : H.map f → B)) |
| 146 | convert hs using 1 |
| 147 | ext x |
| 148 | constructor |
| 149 | · intro hx |
| 150 | obtain ⟨y, rfl⟩ := hq x |
| 151 | exact ⟨y, hx, rfl⟩ |
| 152 | · rintro ⟨y, hy, he⟩ |
| 153 | have hxy : q y = x := Subtype.ext he |
| 154 | exact hxy ▸ hy |
| 155 | |
| 156 | theorem commensurable_map_of_injective |
| 157 | {A B : Type*} [Group A] [Group B] {H J : Subgroup A} |
| 158 | (h : H.Commensurable J) (f : A →* B) (hf : Function.Injective f) : |
| 159 | (H.map f).Commensurable (J.map f) := by |
| 160 | simpa only [Subgroup.Commensurable, Subgroup.isFiniteRelIndex_iff_relIndex_ne_zero, |
| 161 | Subgroup.relIndex_map_map_of_injective _ _ hf] using h |
| 162 | |
| 163 | variable {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 164 | variable (G : Algebraic.MatrixAlgebraicGroup k n) |
| 165 | |
| 166 | def univProductHomeomorph : |
| 167 | G.ArchimedeanProduct Set.univ ≃ₜ ((v : NumberField.InfinitePlace k) → G.AtPlace v) where |
| 168 | toFun g v := g ⟨v, Set.mem_univ v⟩ |
| 169 | invFun g v := g v.val |
| 170 | left_inv _ := rfl |
| 171 | right_inv _ := rfl |
| 172 | continuous_toFun := by apply continuous_pi; intro v; exact continuous_apply _ |
| 173 | continuous_invFun := continuous_pi fun v => continuous_apply v.val |
| 174 | |
| 175 | def archimedeanProjection (S : Set (NumberField.InfinitePlace k)) : |
| 176 | G.ArchimedeanProduct Set.univ →* G.ArchimedeanProduct S where |
| 177 | toFun g v := g ⟨v.val, Set.mem_univ v.val⟩ |
| 178 | map_one' := rfl |
| 179 | map_mul' _ _ := rfl |
| 180 | |
| 181 | omit [NumberField k] in |
| 182 | theorem archimedeanProjection_closed (S : Set (NumberField.InfinitePlace k)) |
| 183 | (hcompact : ∀ v, v ∉ S → CompactSpace (G.AtPlace v)) : |
| 184 | IsClosedMap (archimedeanProjection G S) := by |
| 185 | let : ∀ v : {v : NumberField.InfinitePlace k // v ∉ S}, |
| 186 | CompactSpace (G.AtPlace v.val) := fun v => hcompact v.val v.property |
| 187 | let e := (univProductHomeomorph G).trans |
| 188 | (Homeomorph.piEquivPiSubtypeProd (· ∈ S) (fun v => G.AtPlace v)) |
| 189 | have he : (archimedeanProjection G S : _ → _) = Prod.fst ∘ e := rfl |
| 190 | rw [he] |
| 191 | exact isClosedMap_fst_of_compactSpace.comp e.isClosedMap |
| 192 | |
| 193 | omit [NumberField k] in |
| 194 | theorem projection_diagonal (S : Set (NumberField.InfinitePlace k)) : |
| 195 | (archimedeanProjection G S).comp (G.diagonal Set.univ) = G.diagonal S := by |
| 196 | apply MonoidHom.ext |
| 197 | intro g |
| 198 | funext v |
| 199 | rfl |
| 200 | |
| 201 | theorem full_diagonal_injective : Function.Injective (G.diagonal Set.univ) := by |
| 202 | obtain ⟨v⟩ := (inferInstance : Nonempty (NumberField.InfinitePlace k)) |
| 203 | intro g h he |
| 204 | apply G.map_injective (RingHom.id k) (algebraMap k v.Completion) |
| 205 | exact congrFun he ⟨v, Set.mem_univ v⟩ |
| 206 | |
| 207 | /-- Arithmetic subgroups remain discrete after compact local factors are omitted. -/ |
| 208 | theorem selected_diagonal_arithmetic_discrete |
| 209 | (Λ : IntegralLattice.FullLattice k n) (Γ : Subgroup G.RationalPoints) |
| 210 | (hΓ : Γ.Commensurable (G.latticeStabilizer Λ)) |
| 211 | (S : Set (NumberField.InfinitePlace k)) |
| 212 | (hcompact : ∀ v, v ∉ S → CompactSpace (G.AtPlace v)) : |
| 213 | DiscreteTopology (Γ.map (G.diagonal S)) := by |
| 214 | let : DiscreteTopology ((G.latticeStabilizer Λ).map (G.diagonal Set.univ)) := |
| 215 | full_diagonal_stabilizer_discrete G Λ |
| 216 | have hcomm := commensurable_map_of_injective hΓ (G.diagonal Set.univ) |
| 217 | (full_diagonal_injective G) |
| 218 | let : DiscreteTopology (Γ.map (G.diagonal Set.univ)) := hcomm.discreteTopology_iff.mpr |
| 219 | (full_diagonal_stabilizer_discrete G Λ) |
| 220 | have hd := discrete_map_of_closedMap (archimedeanProjection G S) |
| 221 | (archimedeanProjection_closed G S hcompact) (Γ.map (G.diagonal Set.univ)) |
| 222 | rw [Subgroup.map_map, projection_diagonal] at hd |
| 223 | exact hd |
| 224 | |
| 225 | theorem discrete_of_continuous_equiv_map |
| 226 | {A B : Type*} [Group A] [Group B] [TopologicalSpace A] [TopologicalSpace B] |
| 227 | (e : A ≃ₜ* B) (H : Subgroup A) [DiscreteTopology (H.map e.toMonoidHom)] : |
| 228 | DiscreteTopology H := by |
| 229 | let f : H → H.map e.toMonoidHom := fun x => ⟨e x.val, ⟨x.val, x.property, rfl⟩⟩ |
| 230 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 231 | · exact (e.continuous.comp continuous_subtype_val).subtype_mk _ |
| 232 | · intro x y he |
| 233 | apply Subtype.ext |
| 234 | apply e.injective |
| 235 | exact congrArg Subtype.val he |
| 236 | |
| 237 | /-- The discreteness assertion for the exact repaired Lattices interface. -/ |
| 238 | theorem arithmetic_subgroup_discrete |
| 239 | {Gk GInf : Type} [Group Gk] [Group GInf] |
| 240 | [TopologicalSpace GInf] [IsTopologicalGroup GInf] [T2Space GInf] |
| 241 | (D : Algebraic.ConnectedSemisimpleKGroup k) (δ : Gk →* GInf) (Γ₀ Γ : Subgroup Gk) |
| 242 | (hmodel : IntegralLattice.IsArithmeticPresentation D δ Γ₀) (hΓ : Γ.Commensurable Γ₀) : |
| 243 | DiscreteTopology (Γ.map δ) := by |
| 244 | obtain ⟨Λ, r, S, e, hcompact, hΓ₀, hδ⟩ := hmodel |
| 245 | have hcomm := commensurable_map_of_injective hΓ r.toMonoidHom r.injective |
| 246 | rw [hΓ₀] at hcomm |
| 247 | have hd := selected_diagonal_arithmetic_discrete D.matrixGroup Λ (Γ.map r.toMonoidHom) |
| 248 | hcomm S hcompact |
| 249 | have heq : (Γ.map δ).map e.toMonoidHom = |
| 250 | (Γ.map r.toMonoidHom).map (D.matrixGroup.diagonal S) := by |
| 251 | rw [Subgroup.map_map, Subgroup.map_map] |
| 252 | congr 1 |
| 253 | apply MonoidHom.ext |
| 254 | exact hδ |
| 255 | let : DiscreteTopology ((Γ.map δ).map e.toMonoidHom) := heq.symm ▸ hd |
| 256 | exact discrete_of_continuous_equiv_map e (Γ.map δ) |
| 257 | |
| 258 | end |
| 259 | |
| 260 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Discrete.Construction |