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.HilbertScheme.Presentations.Coordinate.Hyperplane |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Projective.ClosedImmersion |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projectivity |
| 4 | |
| 5 | /-! # Padding -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.Padding |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A genuine coordinate hyperplane embedding pads every projective |
| 12 | presentation by one dimension over its original coefficient ring. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 16 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert OAI.NumberTheory.PadicHodge.IntegralComparison.Projectivity.Construction |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] |
| 19 | |
| 20 | theorem irrelevant (n : ℕ) : |
| 21 | HomogeneousIdeal.irrelevant (AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n) ≤ |
| 22 | (HomogeneousIdeal.irrelevant (AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R (n + 1))).map (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinateGraded R n) := by |
| 23 | apply (HomogeneousIdeal.irrelevant_le (AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)).mpr |
| 24 | intro d hd p hp |
| 25 | obtain ⟨q, hq, he⟩ := AlgebraicGeometry.Divisors.LineBundles.Graded.SurjectiveChart.BundleCycles.gradedSurjective_homogeneousPreimage |
| 26 | (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinateGraded R n) (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinate_surjective R n) d p hp |
| 27 | exact he ▸ Ideal.mem_map_of_mem (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinateGraded R n).toRingHom |
| 28 | (HomogeneousIdeal.mem_irrelevant_of_mem _ hd hq) |
| 29 | |
| 30 | def inclusion (n : ℕ) : Projectivity.Construction.projectiveSpace R n ⟶ Projectivity.Construction.projectiveSpace R (n + 1) := |
| 31 | Proj.map (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinateGraded R n) (Padding.irrelevant R n) |
| 32 | |
| 33 | instance inclusion_closed (n : ℕ) : IsClosedImmersion (inclusion R n) := |
| 34 | AlgebraicGeometry.Divisors.LineBundles.Projective.ClosedImmersion.BundleCycles.projectiveMap_isClosedImmersion (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinateGraded R n) |
| 35 | (Padding.irrelevant R n) (AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert.forgetZeroCoordinate_surjective R n) |
| 36 | |
| 37 | theorem inclusion_base (n : ℕ) : |
| 38 | inclusion R n ≫ Projectivity.Construction.projectiveSpaceToSpec R (n + 1) = Projectivity.Construction.projectiveSpaceToSpec R n := by |
| 39 | unfold inclusion Projectivity.Construction.projectiveSpaceToSpec |
| 40 | rw [← Category.assoc, AlgebraicGeometry.Divisors.LineBundles.Projective.MapBase.BundleCycles.projectiveMap_toSpecZero, Category.assoc, ← Spec.map_comp] |
| 41 | congr 1 |
| 42 | apply congrArg Spec.map |
| 43 | apply CommRingCat.hom_ext |
| 44 | apply RingHom.ext |
| 45 | intro z |
| 46 | apply Subtype.ext |
| 47 | exact MvPolynomial.killCompl_C (Fin.succ_injective (n := n + 1)) z |
| 48 | |
| 49 | theorem exists_positive {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) |
| 50 | (h : Projectivity.Construction.ProjectiveOver R f) : |
| 51 | ∃ (n : ℕ) (i : X ⟶ Projectivity.Construction.projectiveSpace R (n + 1)), |
| 52 | IsClosedImmersion i ∧ i ≫ Projectivity.Construction.projectiveSpaceToSpec R (n + 1) = f := by |
| 53 | obtain ⟨n, i, hi, hf⟩ := h |
| 54 | let : IsClosedImmersion i := hi |
| 55 | refine ⟨n, i ≫ inclusion R n, inferInstance, ?_⟩ |
| 56 | rw [Category.assoc, inclusion_base, hf] |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.Padding |