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 Mathlib |
| 2 | |
| 3 | /-! # Compact Open -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.CompactOpen |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compact open subgroups constructed by stabilizing compact open sets. |
| 10 | This supplies the nonarchimedean-group property of the actual finite |
| 11 | special-unitary groups from their usual locally compact topology. -/ |
| 12 | |
| 13 | open Filter Set |
| 14 | open scoped _root_.Topology Pointwise |
| 15 | |
| 16 | variable {G : Type*} [Group G] |
| 17 | |
| 18 | def setwiseStabilizer (W : Set G) : Subgroup G where |
| 19 | carrier := {g | ∀ x, x ∈ W ↔ g * x ∈ W} |
| 20 | one_mem' := by intro x; simp |
| 21 | mul_mem' := by |
| 22 | intro g h hg hh x |
| 23 | exact (hh x).trans (by simpa only [mul_assoc] using hg (h * x)) |
| 24 | inv_mem' := by |
| 25 | intro g hg x |
| 26 | simpa only [mul_inv_cancel_left] using (hg (g⁻¹ * x)).symm |
| 27 | |
| 28 | variable [TopologicalSpace G] [IsTopologicalGroup G] |
| 29 | |
| 30 | theorem compact_open_set_stabilizer_open (W : Set G) |
| 31 | (hWc : IsCompact W) (hWo : IsOpen W) : |
| 32 | IsOpen (setwiseStabilizer W : Set G) := by |
| 33 | obtain ⟨V, hV, hVW⟩ := compact_open_separated_mul_left hWc hWo (Subset.refl W) |
| 34 | have hVi : ∀ᶠ g : G in 𝓝 1, g⁻¹ ∈ V := by |
| 35 | exact (by simpa using (continuous_inv : Continuous (fun g : G => g⁻¹)).tendsto (1 : G) : |
| 36 | Tendsto (fun g : G => g⁻¹) (𝓝 1) (𝓝 1)).eventually hV |
| 37 | apply (setwiseStabilizer W).isOpen_of_mem_nhds |
| 38 | filter_upwards [hV, hVi] with g hg hgi |
| 39 | intro x |
| 40 | constructor |
| 41 | · intro hx |
| 42 | exact hVW (Set.mul_mem_mul hg hx) |
| 43 | · intro hx |
| 44 | simpa only [inv_mul_cancel_left] using hVW (Set.mul_mem_mul hgi hx) |
| 45 | |
| 46 | theorem compact_open_subgroup_basis |
| 47 | [LocallyCompactSpace G] [T2Space G] [TotallyDisconnectedSpace G] |
| 48 | (U : Set G) (hU : U ∈ 𝓝 (1 : G)) : |
| 49 | ∃ K : OpenSubgroup G, IsCompact (K : Set G) ∧ (K : Set G) ⊆ U := by |
| 50 | obtain ⟨C, hCc, hC⟩ := exists_compact_mem_nhds (1 : G) |
| 51 | obtain ⟨W, hWcl, h1, hW⟩ := |
| 52 | loc_compact_Haus_tot_disc_of_zero_dim.mem_nhds_iff.mp (inter_mem hU hC) |
| 53 | have hWc : IsCompact W := hCc.of_isClosed_subset hWcl.isClosed (fun x hx => (hW hx).2) |
| 54 | let K : OpenSubgroup G := |
| 55 | ⟨setwiseStabilizer W, compact_open_set_stabilizer_open W hWc hWcl.isOpen⟩ |
| 56 | have hKW : (K : Set G) ⊆ W := by |
| 57 | intro g hg |
| 58 | have h := (hg 1).mp h1 |
| 59 | simpa only [mul_one] using h |
| 60 | refine ⟨K, hWc.of_isClosed_subset K.isClosed hKW, ?_⟩ |
| 61 | exact fun g hg => (hW (hKW hg)).1 |
| 62 | |
| 63 | theorem nonarchimedean_of_locallyCompact_totallyDisconnected |
| 64 | [LocallyCompactSpace G] [T2Space G] [TotallyDisconnectedSpace G] : |
| 65 | NonarchimedeanGroup G where |
| 66 | is_nonarchimedean U hU := by |
| 67 | obtain ⟨K, _, hK⟩ := compact_open_subgroup_basis U hU |
| 68 | exact ⟨K, hK⟩ |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.RepresentationTheory.Theta.Adelic.CompactOpen |