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.Maps.Basic |
| 2 | import Mathlib.Topology.Sets.Opens |
| 3 | |
| 4 | /-! # Fiberwise Open Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FiberwiseOpenLocus |
| 7 | |
| 8 | /-! A closed family map has an open locus where each whole fiber |
| 9 | lies in a specified open. For an open family map and a clopen |
| 10 | condition this locus is also closed. Its base-change criterion |
| 11 | retains the actual lifting of pairs of fiber points. -/ |
| 12 | |
| 13 | variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 14 | (f : X → Y) (hf : IsClosedMap f) (U : TopologicalSpace.Opens X) |
| 15 | |
| 16 | def fiberwiseOpenLocus : TopologicalSpace.Opens Y := |
| 17 | ⟨(f '' (U : Set X)ᶜ)ᶜ, (hf _ U.isOpen.isClosed_compl).isOpen_compl⟩ |
| 18 | |
| 19 | theorem fiberwiseOpenLocus_mem_iff (y : Y) : |
| 20 | y ∈ fiberwiseOpenLocus f hf U ↔ ∀ x, f x = y → x ∈ U := by |
| 21 | constructor |
| 22 | · intro hy x hx |
| 23 | by_contra h |
| 24 | exact hy ⟨x, h, hx⟩ |
| 25 | · intro hy |
| 26 | rintro ⟨x, hx, rfl⟩ |
| 27 | exact hx (hy x rfl) |
| 28 | |
| 29 | theorem fiberwiseOpenLocus_preimage : |
| 30 | f ⁻¹' (fiberwiseOpenLocus f hf U : Set Y) ⊆ U := by |
| 31 | intro x hx |
| 32 | exact (fiberwiseOpenLocus_mem_iff f hf U (f x)).mp hx x rfl |
| 33 | |
| 34 | theorem fiberwiseOpenLocus_isClosed (ho : IsOpenMap f) (hU : IsClosed (U : Set X)) : |
| 35 | IsClosed (fiberwiseOpenLocus f hf U : Set Y) := |
| 36 | (ho _ hU.isOpen_compl).isClosed_compl |
| 37 | |
| 38 | theorem fiberwiseOpenLocus_baseChange {T Z : Type*} |
| 39 | (p : Z → X) (g : Z → T) (q : T → Y) |
| 40 | (hcomm : ∀ z, f (p z) = q (g z)) |
| 41 | (hlift : ∀ x t, f x = q t → ∃ z, p z = x ∧ g z = t) : |
| 42 | Set.range q ⊆ fiberwiseOpenLocus f hf U ↔ ∀ z, p z ∈ U := by |
| 43 | constructor |
| 44 | · intro h z |
| 45 | exact (fiberwiseOpenLocus_mem_iff f hf U (q (g z))).mp |
| 46 | (h ⟨g z, rfl⟩) (p z) (hcomm z) |
| 47 | · intro h y hy |
| 48 | obtain ⟨t, rfl⟩ := hy |
| 49 | apply (fiberwiseOpenLocus_mem_iff f hf U (q t)).mpr |
| 50 | intro x hx |
| 51 | obtain ⟨z, hz, _⟩ := hlift x t hx |
| 52 | exact hz ▸ h z |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FiberwiseOpenLocus |