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.Quaternion.Arithmetic.IntegralCompact |
| 2 | |
| 3 | /-! # Compact Factor Projection -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.CompactFactorProjection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compactness of the other factors prevents a locally trivial group |
| 10 | projection from having a nondiscrete image. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open Set Filter _root_.Topology |
| 14 | |
| 15 | theorem compact_factor_projection_discrete_of_locally_trivial |
| 16 | {C B : Type*} [Group C] [Group B] |
| 17 | [TopologicalSpace C] [TopologicalSpace B] [IsTopologicalGroup C] [IsTopologicalGroup B] |
| 18 | [CompactSpace C] [T2Space B] |
| 19 | (H : Subgroup (C × B)) (hH : IsClosed (H : Set (C × B))) |
| 20 | (hlocal : ∀ᶠ x in 𝓝 (1 : C × B), x ∈ H → x.2 = 1) : |
| 21 | IsDiscrete (H.map (MonoidHom.snd C B) : Set B) := by |
| 22 | let f : H →* B := (MonoidHom.snd C B).comp H.subtype |
| 23 | have hker : IsOpen (f.ker : Set H) := by |
| 24 | apply f.ker.isOpen_of_mem_nhds (g := 1) |
| 25 | have ht := continuous_subtype_val.tendsto (1 : H) |
| 26 | have hn : ∀ᶠ x in 𝓝 (1 : H), (x.val ∈ H → x.val.2 = 1) := ht hlocal |
| 27 | filter_upwards [hn] with x hx |
| 28 | exact hx x.property |
| 29 | have hfclosed : IsClosedMap f := |
| 30 | isClosedMap_snd_of_compactSpace.comp hH.isClosedEmbedding_subtypeVal.isClosedMap |
| 31 | let U : Set B := (f '' (f.ker : Set H)ᶜ)ᶜ |
| 32 | have hU : IsOpen U := (hfclosed _ hker.isClosed_compl).isOpen_compl |
| 33 | have hU1 : (1 : B) ∈ U := by |
| 34 | rintro ⟨x, hx, hfx⟩ |
| 35 | exact hx hfx |
| 36 | let R := H.map (MonoidHom.snd C B) |
| 37 | have hpre : (Subtype.val ⁻¹' U : Set R) = {1} := by |
| 38 | ext x |
| 39 | constructor |
| 40 | · intro hx |
| 41 | apply mem_singleton_iff.mpr |
| 42 | apply Subtype.ext |
| 43 | by_contra hne |
| 44 | obtain ⟨a, ha, hax⟩ := x.property |
| 45 | exact hx ⟨⟨a, ha⟩, (by exact fun h => hne (hax ▸ h)), hax⟩ |
| 46 | · rintro rfl |
| 47 | exact hU1 |
| 48 | have hopen : IsOpen ({1} : Set R) := hpre ▸ hU.preimage continuous_subtype_val |
| 49 | let : DiscreteTopology R := discreteTopology_iff_isOpen_singleton_one.mpr hopen |
| 50 | exact isDiscrete_iff_discreteTopology.mpr inferInstance |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.Quaternion.Arithmetic.CompactFactorProjection |