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.ArbitraryAffineClassification |
| 2 | |
| 3 | /-! # Classification Affine Base -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClassificationAffineBase.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Hilbert classification over arbitrary test schemes whose structural |
| 10 | map factors through a Noetherian affine scheme. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {S : Scheme.{u}} [IsLocallyNoetherian S] |
| 16 | variable {B : Type u} [CommRing B] [IsNoetherianRing B] |
| 17 | variable {n N : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] {T : Over S} |
| 18 | |
| 19 | theorem existsUnique_hilbert_parameter_of_affine_base |
| 20 | (c : Spec (.of B) ⟶ S) (d : T.left ⟶ Spec (.of B)) (hd : d ≫ c = T.hom) |
| 21 | (F : Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) |
| 22 | (P : Polynomial ℚ) (hP : CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial F P) |
| 23 | (hN : Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) |
| 24 | (hr : Fintype.card ι = (P.eval (N : ℚ)).num.toNat) : |
| 25 | ∃! x : T ⟶ BoundedHilbert.Data.GradedHilbert.boundedHilbertOver (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P), |
| 26 | Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) x |
| 27 | (BoundedHilbert.UniversalFamily.GradedHilbert.boundedHilbertUniversalFamily (ι := ι) n N S (Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n N P)) = F := by |
| 28 | let C := T.left.affineOpenCover |
| 29 | let U (i : C.I₀) : Over S := Over.mk (C.f i ≫ T.hom) |
| 30 | let b (i : C.I₀) : U i ⟶ T := Over.homMk (C.f i) rfl |
| 31 | let : ∀ i, IsOpenImmersion (b i).left := fun i => inferInstanceAs (IsOpenImmersion (C.f i)) |
| 32 | apply ParameterOpenCoverGluing.GradedHilbert.hilbert_parameter_of_openCover F P hP hN hr U b (fun t => C.openCover.exists_eq t) |
| 33 | intro i |
| 34 | let A : Type u := C.X i |
| 35 | let j : Spec (.of A) ⟶ T.left := C.f i |
| 36 | let φ : B →+* A := (Spec.preimage (j ≫ d)).hom |
| 37 | let : Algebra B A := φ.toAlgebra |
| 38 | have ha : Spec.map (CommRingCat.ofHom (algebraMap B A)) ≫ c = j ≫ T.hom := by |
| 39 | change Spec.map (Spec.preimage (j ≫ d)) ≫ c = _ |
| 40 | rw [Spec.map_preimage, Category.assoc, hd] |
| 41 | exact (ArbitraryAffineClassification.GradedHilbert.existsUnique_affine_hilbert_parameter_of_base_factorization c (j ≫ T.hom) ha |
| 42 | (Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (b i) F) P (hP.pullback (b i)) hN hr).exists |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClassificationAffineBase.GradedHilbert |