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.Homogeneous.QuotientParameters |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quotient.ChartKernels |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Single.DegreeIdealRelations |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.KernelBaseChange |
| 5 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationPresentation |
| 6 | |
| 7 | /-! # Homogeneous Generators -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.HomogeneousGenerators |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Explicit homogeneous generators for the relation kernel on a normalized Grassmann chart. -/ |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationPresentation.GradedHilbert |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {n N : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 20 | variable (a : ι → ULift.{u} (Homogeneous.Coordinates.HomogeneousMonomials (Fin (n + 1)) N)) |
| 21 | variable (Q : Matrix ι (ULift.{u} (Homogeneous.Coordinates.HomogeneousMonomials (Fin (n + 1)) N)) R) |
| 22 | |
| 23 | def normalizedHomogeneousGenerator (j : ULift.{u} (Homogeneous.Coordinates.HomogeneousMonomials (Fin (n + 1)) N)) : |
| 24 | MvPolynomial.homogeneousSubmodule (Fin (n + 1)) R N := |
| 25 | (Homogeneous.QuotientParameters.homogeneousLiftedCoordinates.{u, 0} (Fin (n + 1)) N R).symm |
| 26 | (fun i => HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.normalizedKernelMatrix a Q i j) |
| 27 | |
| 28 | def normalizedHomogeneousRelations : Submodule R (MvPolynomial.homogeneousSubmodule (Fin (n + 1)) R N) := |
| 29 | (Matrix.toLin' Q).ker.map |
| 30 | (Homogeneous.QuotientParameters.homogeneousLiftedCoordinates.{u, 0} (Fin (n + 1)) N R).symm.toLinearMap |
| 31 | |
| 32 | theorem normalizedHomogeneousGenerator_span (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) : |
| 33 | Submodule.span R (Set.range (normalizedHomogeneousGenerator a Q)) = normalizedHomogeneousRelations Q := by |
| 34 | let K := HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.normalizedKernelMatrix a Q |
| 35 | have hc : Submodule.span R (Set.range (fun j => fun i => K i j)) = (Matrix.toLin' Q).ker := by |
| 36 | rw [← HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.normalizedKernelMatrix_range a Q hQ] |
| 37 | have h := Quotient.ChartKernels.linearMap_range_span_basis (Pi.basisFun R _) (Matrix.toLin' K) |
| 38 | simp only [Pi.basisFun_apply, Matrix.toLin'_apply, Matrix.mulVec_single_one] at h |
| 39 | exact h.symm |
| 40 | change Submodule.span R (Set.range |
| 41 | ((Homogeneous.QuotientParameters.homogeneousLiftedCoordinates.{u, 0} (Fin (n + 1)) N R).symm ∘ (fun j => fun i => K i j))) = _ |
| 42 | rw [Set.range_comp] |
| 43 | exact (Submodule.map_span |
| 44 | (Homogeneous.QuotientParameters.homogeneousLiftedCoordinates.{u, 0} (Fin (n + 1)) N R).symm.toLinearMap _).symm.trans |
| 45 | (congrArg (fun L => L.map |
| 46 | (Homogeneous.QuotientParameters.homogeneousLiftedCoordinates.{u, 0} (Fin (n + 1)) N R).symm.toLinearMap) hc) |
| 47 | |
| 48 | def normalizedHomogeneousIdeal : HomogeneousIdeal (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n) := |
| 49 | HilbertScheme.Presentations.Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (fun j => (normalizedHomogeneousGenerator a Q j).val) N |
| 50 | (fun j => (normalizedHomogeneousGenerator a Q j).property) |
| 51 | |
| 52 | theorem normalizedHomogeneousIdeal_eq (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) : |
| 53 | normalizedHomogeneousIdeal a Q = (Single.DegreeRelationExtension.singleDegreeRelations N (normalizedHomogeneousRelations Q)).toHomogeneousIdeal := by |
| 54 | apply HomogeneousIdeal.ext |
| 55 | change Ideal.span (Set.range (fun j => (normalizedHomogeneousGenerator a Q j).val)) = |
| 56 | (Single.DegreeRelationExtension.singleDegreeRelations N (normalizedHomogeneousRelations Q)).toIdeal |
| 57 | rw [Single.DegreeRelationExtension.singleDegreeRelations_ideal, ← normalizedHomogeneousGenerator_span a Q hQ, |
| 58 | Submodule.map_span, ← Set.range_comp] |
| 59 | exact (Submodule.span_span_of_tower R (MvPolynomial (Fin (n + 1)) R) _).symm |
| 60 | |
| 61 | theorem normalizedHomogeneousIdeal_degree (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) (d : ℕ) : |
| 62 | Homogeneous.IdealIncidence.homogeneousDegreeRelations (normalizedHomogeneousIdeal a Q) d = |
| 63 | Single.DegreeRelationExtension.singleDegreePiece N (normalizedHomogeneousRelations Q) d := by |
| 64 | rw [normalizedHomogeneousIdeal_eq a Q hQ] |
| 65 | exact (Single.DegreeRelationExtension.singleDegreeRelations N (normalizedHomogeneousRelations Q)).toHomogeneousIdeal_degree d |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.HomogeneousGenerators |