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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Hilbert.RankNecessity |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RelativeProjective.Families |
| 3 | import Mathlib.AlgebraicGeometry.ResidueField |
| 4 | |
| 5 | /-! # Rank Obstructions -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Failure of the numerical Hilbert rank test forces every test scheme carrying such a Hilbert family to be empty. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {T : Scheme.{u}} {n N : ℕ} {P : Polynomial ℚ} |
| 18 | variable (F : RelativeProjective.Families.RelativeProjectiveHilbertFamily T n P) (hN : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) |
| 19 | |
| 20 | include F hN |
| 21 | |
| 22 | theorem RelativeProjective.Families.RelativeProjectiveHilbertFamily.generatedRankTest_of_fieldPoint (K : Type u) [Field K] (x : Spec (CommRingCat.of K) ⟶ T) : |
| 23 | Generated.RankTests.GeneratedHilbertRankTest n P N := |
| 24 | (F.affineFamily x).saturatedIdeal.generatedRankTest (F.fieldHilbert K x) hN |
| 25 | |
| 26 | theorem RelativeProjective.Families.RelativeProjectiveHilbertFamily.generatedRankTest_of_point (x : T) : Generated.RankTests.GeneratedHilbertRankTest n P N := |
| 27 | F.generatedRankTest_of_fieldPoint hN (T.residueField x) (T.fromSpecResidueField x) |
| 28 | |
| 29 | theorem RelativeProjective.Families.RelativeProjectiveHilbertFamily.isEmpty_of_failedRankTest (h : ¬ Generated.RankTests.GeneratedHilbertRankTest n P N) : IsEmpty T := |
| 30 | ⟨fun x => h (F.generatedRankTest_of_point hN x)⟩ |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |