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.AffineParameterFamily |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MapStalkDetection |
| 3 | |
| 4 | /-! # Affine Parameter Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineParameterCoordinates.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Grassmannian coordinates of any actual Hilbert parameter over a |
| 11 | noetherian affine test scheme are the canonical coordinates of its family. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 17 | variable {S : Scheme.{u}} [IsLocallyNoetherian S] {n N : ℕ} |
| 18 | variable {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 19 | |
| 20 | theorem noetherianAffine_hilbert_parameter_coordinates (f : Spec (.of R) ⟶ S) |
| 21 | (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)) (P : Polynomial ℚ) |
| 22 | (hP : ∀ p : PrimeSpectrum R, Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 23 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 24 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P) |
| 25 | (hN : Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) |
| 26 | (hr : Fintype.card ι = (P.eval (N : ℚ)).num.toNat) |
| 27 | (x : Over.mk f ⟶ BoundedHilbert.Data.GradedHilbert.boundedHilbertOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) |
| 28 | (hx : Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) x |
| 29 | (BoundedHilbert.UniversalFamily.GradedHilbert.boundedHilbertUniversalFamily (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) = F) : |
| 30 | x ≫ BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P) = |
| 31 | Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr := by |
| 32 | apply Over.OverMorphism.ext |
| 33 | apply MapStalkDetection.schemeHom_eq_of_fromSpecStalk (X := Spec (.of R)) |
| 34 | intro p |
| 35 | let A : Type u := (Spec (.of R)).presheaf.stalk p |
| 36 | let : IsLocalRing A := inferInstanceAs (IsLocalRing ((Spec (.of R)).presheaf.stalk p)) |
| 37 | let : IsNoetherianRing A := inferInstanceAs (IsNoetherianRing ((Spec (.of R)).presheaf.stalk p)) |
| 38 | let φ : R →+* A := (StructureSheaf.toStalk (CommRingCat.of R) p).hom |
| 39 | let g : Spec (.of A) ⟶ S := Spec.map (CommRingCat.ofHom φ) ≫ f |
| 40 | let b := Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap f φ |
| 41 | let G := Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) b F |
| 42 | have hG := IntrinsicCoefficientBaseChange.GradedHilbert.noetherian_canonical_residue_polynomial_baseChange f F P hP φ |
| 43 | have hxG : Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (b ≫ x) |
| 44 | (BoundedHilbert.UniversalFamily.GradedHilbert.boundedHilbertUniversalFamily (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) = G := by |
| 45 | rw [Hilbert.Functor.pullbackFamily_comp, hx] |
| 46 | have hc := Local.ParameterCoordinates.GradedHilbert.noetherianLocal_hilbert_parameter_coordinates g G P hG hN hr (b ≫ x) hxG |
| 47 | have hn := Intrinsic.AffineGrassmannianNaturality.GradedHilbert.nativeAffineHilbertGrassmannianPoint_natural f F P hP N hN ι hr φ |
| 48 | have he : b ≫ (x ≫ BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S |
| 49 | (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) = |
| 50 | b ≫ Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr := by |
| 51 | rw [← Category.assoc, hc, hn] |
| 52 | change (Spec (.of R)).fromSpecStalk p ≫ |
| 53 | (x ≫ BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)).left = |
| 54 | (Spec (.of R)).fromSpecStalk p ≫ (Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint f F P hP N hN ι hr).left |
| 55 | rw [Spec.fromSpecStalk_eq'] |
| 56 | exact congrArg Over.Hom.left he |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineParameterCoordinates.GradedHilbert |