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.Stalk |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | |
| 4 | /-! # Stalk Flat -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.StalkFlat.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Completion: the actual local-ring spectrum map is flat -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- The canonical spectrum of a stalk is a flat localization on each actual affine chart. -/ |
| 20 | theorem affineOpen_fromSpecStalk_flat {X : Scheme.{u}} {U : X.Opens} |
| 21 | (hU : IsAffineOpen U) {x : X} (hx : x ∈ U) : Flat (hU.fromSpecStalk hx) := by |
| 22 | unfold IsAffineOpen.fromSpecStalk |
| 23 | have : Flat (Spec.map (X.presheaf.germ U x hx)) := by |
| 24 | rw [Flat.SpecMap_iff] |
| 25 | let : Algebra Γ(X, U) (X.presheaf.stalk x) := (X.presheaf.germ U x hx).hom.toAlgebra |
| 26 | have := hU.isLocalization_stalk ⟨x, hx⟩ |
| 27 | exact IsLocalization.flat (X.presheaf.stalk x) (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl |
| 28 | infer_instance |
| 29 | |
| 30 | /-- The actual localization morphism at a scheme point is flat. -/ |
| 31 | theorem scheme_fromSpecStalk_flat (X : Scheme.{u}) (x : X) : Flat (X.fromSpecStalk x) := by |
| 32 | unfold Scheme.fromSpecStalk |
| 33 | exact affineOpen_fromSpecStalk_flat _ _ |
| 34 | |
| 35 | /-- The local-ring spectrum is contained in every open neighborhood of its closed point. -/ |
| 36 | theorem scheme_fromSpecStalk_preimage_eq_top (X : Scheme.{u}) (x : X) (U : X.Opens) |
| 37 | (hx : x ∈ U) : X.fromSpecStalk x ⁻¹ᵁ U = ⊤ := by |
| 38 | apply top_unique |
| 39 | intro y _ |
| 40 | have hy : X.fromSpecStalk x y ⤳ x := |
| 41 | (Scheme.range_fromSpecStalk (X := X) (x := x)).le ⟨y, rfl⟩ |
| 42 | exact hy.mem_open U.isOpen hx |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.StalkFlat.Construction |