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.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 2 | |
| 3 | /-! # Complement Neighborhood -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.ComplementNeighborhood |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Outside the actual image of a closed immersion, affine subopens have |
| 10 | the unit defining ideal. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem kernel_eq_top_of_preimage_bot {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 17 | (V : Y.Opens) (hV : f ⁻¹ᵁ V = ⊥) : RingHom.ker (f.app V).hom = ⊤ := by |
| 18 | have : Subsingleton Γ(X, f ⁻¹ᵁ V) := by rw [hV]; infer_instance |
| 19 | apply top_unique |
| 20 | intro a _ |
| 21 | exact Subsingleton.elim _ _ |
| 22 | |
| 23 | theorem exists_affine {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 24 | (U : Y.Opens) (y : Y) (hyU : y ∈ U) (hy : y ∉ Set.range f) : |
| 25 | ∃ (V : Y.Opens) (_ : IsAffineOpen V), V ≤ U ∧ y ∈ V ∧ RingHom.ker (f.app V).hom = ⊤ := by |
| 26 | let W : Y.Opens := ⟨(Set.range f)ᶜ, f.isClosedEmbedding.isClosed_range.isOpen_compl⟩ |
| 27 | have hmem : y ∈ U ⊓ W := ⟨hyU, hy⟩ |
| 28 | obtain ⟨_, ⟨V, hV, rfl⟩, hyV, hVW⟩ := |
| 29 | Y.isBasis_affineOpens.exists_subset_of_mem_open hmem (U ⊓ W).isOpen |
| 30 | refine ⟨V, hV, fun z hz => (hVW hz).1, hyV, kernel_eq_top_of_preimage_bot f V ?_⟩ |
| 31 | apply le_bot_iff.mp |
| 32 | intro z hz |
| 33 | exact False.elim ((hVW hz).2 ⟨z, rfl⟩) |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.ComplementNeighborhood |