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.Noetherian.AffineParameterCoordinates |
| 2 | |
| 3 | /-! # Affine Classification -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineClassification.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Native polynomial families over every noetherian affine test scheme |
| 10 | have a unique actual parameter on the bounded Hilbert scheme. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 16 | variable {S : Scheme.{u}} [IsLocallyNoetherian S] {n N : ℕ} |
| 17 | variable {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 18 | |
| 19 | theorem existsUnique_noetherian_affine_hilbert_parameter (f : Spec (.of R) ⟶ S) |
| 20 | (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)) (P : Polynomial ℚ) |
| 21 | (hP : ∀ p : PrimeSpectrum R, Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 22 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 23 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P) |
| 24 | (hN : Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) |
| 25 | (hr : Fintype.card ι = (P.eval (N : ℚ)).num.toNat) : |
| 26 | ∃! x : Over.mk f ⟶ BoundedHilbert.Data.GradedHilbert.boundedHilbertOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P), |
| 27 | Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) x |
| 28 | (BoundedHilbert.UniversalFamily.GradedHilbert.boundedHilbertUniversalFamily (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) = F := by |
| 29 | obtain ⟨x, hx, _⟩ := AffineCoordinateLift.GradedHilbert.existsUnique_noetherian_affine_hilbert_coordinate_lift f F P hP hN hr |
| 30 | refine ⟨x, AffineParameterFamily.GradedHilbert.noetherianAffine_hilbert_coordinate_lift_family f F P hP hN hr x hx, ?_⟩ |
| 31 | intro y hy |
| 32 | apply (cancel_mono (BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S |
| 33 | (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P))).mp |
| 34 | exact (AffineParameterCoordinates.GradedHilbert.noetherianAffine_hilbert_parameter_coordinates f F P hP hN hr y hy).trans hx.symm |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineClassification.GradedHilbert |