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.Topology.Algebra.Group.OpenMapping |
| 2 | import Mathlib.Topology.Algebra.Group.Quotient |
| 3 | import Mathlib.Topology.Maps.Proper.Basic |
| 4 | import Mathlib.Topology.Baire.LocallyCompactRegular |
| 5 | |
| 6 | /-! # Kernel Proper Map -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Finite.KernelProperMap.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A continuous homomorphism from a sigma-compact group with finite |
| 13 | kernel and closed image in a locally compact group is proper. -/ |
| 14 | |
| 15 | open scoped Classical Pointwise |
| 16 | open Set |
| 17 | |
| 18 | theorem hom_preimage_image_eq_mul_kernel |
| 19 | {G H : Type*} [Group G] [Group H] (f : G →* H) (S : Set G) : |
| 20 | f ⁻¹' (f '' S) = S * (f.ker : Set G) := by |
| 21 | ext g |
| 22 | constructor |
| 23 | · rintro ⟨s, hs, hsg⟩ |
| 24 | refine ⟨s, hs, s⁻¹ * g, ?_, by simp⟩ |
| 25 | change f (s⁻¹ * g) = 1 |
| 26 | rw [map_mul, map_inv, ← hsg, inv_mul_cancel] |
| 27 | · rintro ⟨s, hs, t, ht, rfl⟩ |
| 28 | refine ⟨s, hs, ?_⟩ |
| 29 | rw [map_mul, (show f t = 1 from ht), mul_one] |
| 30 | |
| 31 | theorem surjective_open_hom_finite_kernel_proper |
| 32 | {G H : Type*} [Group G] [TopologicalSpace G] [IsTopologicalGroup G] |
| 33 | [Group H] [TopologicalSpace H] |
| 34 | (f : G →* H) [Finite f.ker] (hf : Continuous f) (hsurj : Function.Surjective f) |
| 35 | (hopen : IsOpenMap f) : IsProperMap f := by |
| 36 | have hquot := hopen.isQuotientMap hf hsurj |
| 37 | have hclosed : IsClosedMap f := by |
| 38 | intro S hS |
| 39 | apply hquot.isClosed_preimage.mp |
| 40 | rw [hom_preimage_image_eq_mul_kernel] |
| 41 | exact hS.mul_right_of_isCompact (Set.toFinite (f.ker : Set G)).isCompact |
| 42 | apply isProperMap_iff_isClosedMap_and_compact_fibers.mpr |
| 43 | refine ⟨hf, hclosed, fun y => ?_⟩ |
| 44 | obtain ⟨x, hx⟩ := hsurj y |
| 45 | let j : (f ⁻¹' {y}) → f.ker := fun z => ⟨x⁻¹ * z.val, by |
| 46 | change f (x⁻¹ * z.val) = 1 |
| 47 | rw [map_mul, map_inv, hx, (show f z.val = y from z.property), inv_mul_cancel]⟩ |
| 48 | let : Finite (f ⁻¹' {y}) := Finite.of_injective j (by |
| 49 | intro z w h |
| 50 | apply Subtype.ext |
| 51 | exact mul_left_cancel (congrArg Subtype.val h)) |
| 52 | exact (Set.toFinite (f ⁻¹' {y})).isCompact |
| 53 | |
| 54 | theorem continuous_hom_finite_kernel_closed_range_proper |
| 55 | {G H : Type*} [Group G] [TopologicalSpace G] [IsTopologicalGroup G] [SigmaCompactSpace G] |
| 56 | [Group H] [TopologicalSpace H] [IsTopologicalGroup H] [T2Space H] [LocallyCompactSpace H] |
| 57 | (f : G →* H) [Finite f.ker] (hf : Continuous f) (hclosed : IsClosed (Set.range f)) : |
| 58 | IsProperMap f := by |
| 59 | let : LocallyCompactSpace f.range := hclosed.isClosedEmbedding_subtypeVal.locallyCompactSpace |
| 60 | let r : G →* f.range := f.rangeRestrict |
| 61 | have hr : Continuous r := hf.subtype_mk _ |
| 62 | have hsurj : Function.Surjective r := by |
| 63 | rintro ⟨y, x, hx⟩ |
| 64 | exact ⟨x, Subtype.ext hx⟩ |
| 65 | let j : r.ker → f.ker := fun x => ⟨x.val, congrArg Subtype.val x.property⟩ |
| 66 | let : Finite r.ker := Finite.of_injective j (by |
| 67 | intro x y h |
| 68 | apply Subtype.ext |
| 69 | exact congrArg (fun z : f.ker => z.val) h) |
| 70 | have hproper : IsProperMap r := surjective_open_hom_finite_kernel_proper r hr hsurj |
| 71 | (r.isOpenMap_of_sigmaCompact hsurj hr) |
| 72 | exact hclosed.isClosedEmbedding_subtypeVal.isProperMap.comp hproper |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Finite.KernelProperMap.Construction |