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.Local.ParameterCoordinates |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.AffineGrassmannianNaturality |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.StalkFactorization |
| 4 | |
| 5 | /-! # Affine Coordinate Lift -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineCoordinateLift.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical Grassmannian point of any native noetherian affine |
| 12 | family factors uniquely through the actual bounded Hilbert scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 18 | variable {S : Scheme.{u}} [IsLocallyNoetherian S] {n N : ℕ} |
| 19 | variable {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 20 | |
| 21 | theorem existsUnique_noetherian_affine_hilbert_coordinate_lift (f : Spec (.of R) ⟶ S) |
| 22 | (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)) (P : Polynomial ℚ) |
| 23 | (hP : ∀ p : PrimeSpectrum R, Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 24 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 25 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P) |
| 26 | (hN : Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) |
| 27 | (hr : Fintype.card ι = (P.eval (N : ℚ)).num.toNat) : |
| 28 | ∃! x : Over.mk f ⟶ BoundedHilbert.Data.GradedHilbert.boundedHilbertOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P), |
| 29 | x ≫ BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P) = |
| 30 | Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr := by |
| 31 | let : IsLocallyNoetherian (Over.mk f).left := inferInstanceAs (IsLocallyNoetherian (Spec (.of R))) |
| 32 | let : LocallyOfFiniteType |
| 33 | (BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)).left := |
| 34 | inferInstanceAs (LocallyOfFiniteType |
| 35 | (BoundedHilbert.Data.GradedHilbert.boundedHilbertParameter (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P))) |
| 36 | apply StalkFactorization.over_lift_of_fromSpecStalk (Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr) |
| 37 | (BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) |
| 38 | intro p |
| 39 | let A : Type u := (Spec (.of R)).presheaf.stalk p |
| 40 | let : IsLocalRing A := inferInstanceAs (IsLocalRing ((Spec (.of R)).presheaf.stalk p)) |
| 41 | let : IsNoetherianRing A := inferInstanceAs (IsNoetherianRing ((Spec (.of R)).presheaf.stalk p)) |
| 42 | let φ : R →+* A := (StructureSheaf.toStalk (CommRingCat.of R) p).hom |
| 43 | let g : Spec (.of A) ⟶ S := Spec.map (CommRingCat.ofHom φ) ≫ f |
| 44 | let G := Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap f φ) F |
| 45 | have hG := IntrinsicCoefficientBaseChange.GradedHilbert.noetherian_canonical_residue_polynomial_baseChange f F P hP φ |
| 46 | obtain ⟨x, hx⟩ := Local.ParameterCoordinates.GradedHilbert.exists_noetherianLocal_hilbert_coordinate_lift g G P hG hN hr |
| 47 | have hn := Intrinsic.AffineGrassmannianNaturality.GradedHilbert.nativeAffineHilbertGrassmannianPoint_natural f F P hP N hN ι hr φ |
| 48 | refine ⟨x.left, ?_⟩ |
| 49 | change x.left ≫ (BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)).left = |
| 50 | (Spec (.of R)).fromSpecStalk p ≫ (Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr).left |
| 51 | rw [Spec.fromSpecStalk_eq'] |
| 52 | exact congrArg Over.Hom.left (hx.trans hn.symm) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineCoordinateLift.GradedHilbert |