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.ArithmeticGeometry.Models.SpreadingOut.Projective |
| 2 | import Mathlib.Algebra.Module.Submodule.Union |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 4 | import Lean.Util.CollectAxioms |
| 5 | |
| 6 | /-! # Neighborhoods -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Projective.Neighborhoods |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | Finite subsets of a projective scheme over an infinite field have affine |
| 14 | neighborhoods. A linear homogeneous form avoiding every point is constructed |
| 15 | by avoiding finitely many proper vector subspaces. This supplies the affine |
| 16 | orbit neighborhoods needed in effective finite descent. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | open OAI.ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {K : Type u} [Field K] [Infinite K] |
| 26 | |
| 27 | theorem projective_finite_set_affine_neighborhood (n : ℕ) |
| 28 | (F : Set (ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveSpace (K := K) n)) (hF : F.Finite) : |
| 29 | ∃ U : (ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveSpace (K := K) n).Opens, IsAffineOpen U ∧ F ⊆ U := by |
| 30 | classical |
| 31 | let : Finite F := hF.to_subtype |
| 32 | let V := ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveGrading (K := K) n 1 |
| 33 | let p (x : F) : Submodule K V := |
| 34 | ((x.val.asHomogeneousIdeal.toIdeal).restrictScalars K).comap |
| 35 | (ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveGrading (K := K) n 1).subtype |
| 36 | have hp (x : F) : p x ≠ ⊤ := by |
| 37 | obtain ⟨i, hi⟩ := ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.exists_mem_projectiveCoordinateOpen n x.val |
| 38 | have hn : MvPolynomial.X i ∉ x.val.asHomogeneousIdeal := |
| 39 | (ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.mem_projectiveCoordinateOpen n i x.val).mp hi |
| 40 | intro htop |
| 41 | let v : V := ⟨MvPolynomial.X i, MvPolynomial.isHomogeneous_X K i⟩ |
| 42 | have hv : v ∈ p x := htop ▸ Submodule.mem_top |
| 43 | exact hn hv |
| 44 | obtain ⟨l, hl⟩ := Submodule.exists_forall_notMem_of_forall_ne_top p hp |
| 45 | refine ⟨Proj.basicOpen (ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveGrading (K := K) n) l.val, |
| 46 | Proj.isAffineOpen_basicOpen _ _ l.property Nat.zero_lt_one, ?_⟩ |
| 47 | intro x hx |
| 48 | apply (Proj.mem_basicOpen _ _ x).mpr |
| 49 | exact hl ⟨x, hx⟩ |
| 50 | |
| 51 | /-- Pulling the affine hyperplane complement back along an actual closed |
| 52 | projective embedding gives the required affine neighborhood on the source. -/ |
| 53 | theorem finite_set_affine_neighborhood_of_projective_embedding |
| 54 | {X : Scheme.{u}} (n : ℕ) (i : X ⟶ ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveSpace (K := K) n) |
| 55 | [IsClosedImmersion i] (F : Set X) (hF : F.Finite) : |
| 56 | ∃ U : X.Opens, IsAffineOpen U ∧ F ⊆ U := by |
| 57 | obtain ⟨V, hV, hFV⟩ := projective_finite_set_affine_neighborhood n (i '' F) (hF.image i) |
| 58 | exact ⟨i ⁻¹ᵁ V, hV.preimage i, fun x hx ↦ hFV ⟨x, hx, rfl⟩⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Projective.Neighborhoods |