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.Projective.BaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.Properness |
| 3 | |
| 4 | /-! # Polynomial Family -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.PolynomialFamily.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual projective polynomial family over an arbitrary parameter scheme |
| 11 | is obtained by base change from its global coefficient ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} (M : Over S) {n : ℕ} |
| 17 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading Γ(M.left, ⊤) n)) |
| 18 | |
| 19 | def relativePolynomialFamily {T : Over S} (x : T ⟶ M) : Scheme.{u} := |
| 20 | pullback (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) (x.left ≫ M.left.toSpecΓ) |
| 21 | |
| 22 | def relativePolynomialProjection {T : Over S} (x : T ⟶ M) : relativePolynomialFamily M I x ⟶ T.left := |
| 23 | pullback.snd _ _ |
| 24 | |
| 25 | instance relativePolynomialProjection_isProper {T : Over S} (x : T ⟶ M) : |
| 26 | IsProper (relativePolynomialProjection M I x) := by |
| 27 | have : IsProper (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) := Projective.Properness.GradedHilbert.projectiveQuotient_proper I |
| 28 | exact inferInstanceAs (IsProper (pullback.snd (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) |
| 29 | (x.left ≫ M.left.toSpecΓ))) |
| 30 | |
| 31 | theorem relativePolynomialProjection_flat_of_coefficients {T : Over S} (x : T ⟶ M) |
| 32 | (hflat : letI : Algebra Γ(M.left, ⊤) Γ(T.left, ⊤) := x.left.appTop.hom.toAlgebra |
| 33 | Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Γ(T.left, ⊤)) I)))) : |
| 34 | Flat (relativePolynomialProjection M I x) := by |
| 35 | let : Algebra Γ(M.left, ⊤) Γ(T.left, ⊤) := x.left.appTop.hom.toAlgebra |
| 36 | let p := Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 37 | let p' := Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Γ(T.left, ⊤)) I)) |
| 38 | have : Flat p' := hflat |
| 39 | have h₁ := IsPullback.of_hasPullback p' T.left.toSpecΓ |
| 40 | have h₂ := Projective.BaseChange.GradedHilbert.projectiveQuotient_isPullback (S := Γ(T.left, ⊤)) I |
| 41 | have hcomp := h₁.paste_horiz h₂ |
| 42 | have hΓ : T.left.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (algebraMap Γ(M.left, ⊤) Γ(T.left, ⊤))) = |
| 43 | x.left ≫ M.left.toSpecΓ := (Scheme.toSpecΓ_naturality x.left).symm |
| 44 | rw [hΓ] at hcomp |
| 45 | have he := hcomp.isoPullback_inv_snd |
| 46 | have hc : Flat (hcomp.isoPullback.inv ≫ pullback.snd p' T.left.toSpecΓ) := inferInstance |
| 47 | rw [he] at hc |
| 48 | exact hc |
| 49 | |
| 50 | theorem relativePolynomialProjection_flat_of_affine_tests {T : Over S} (x : T ⟶ M) |
| 51 | (h : ∀ (U : Over S) [IsAffine U.left] (a : U ⟶ T), |
| 52 | Flat (relativePolynomialProjection M I (a ≫ x))) : |
| 53 | Flat (relativePolynomialProjection M I x) := by |
| 54 | let C := T.left.affineCover |
| 55 | have : IsZariskiLocalAtTarget @Flat.{u} := |
| 56 | HasRingHomProperty.instIsZariskiLocalAtTarget (P := @Flat.{u}) (Q := RingHom.Flat) |
| 57 | apply (IsZariskiLocalAtTarget.iff_of_openCover (P := @Flat) C).mpr |
| 58 | intro i |
| 59 | let U : Over S := Over.mk (C.f i ≫ T.hom) |
| 60 | let a : U ⟶ T := Over.homMk (C.f i) rfl |
| 61 | have : IsAffine U.left := inferInstanceAs (IsAffine (C.X i)) |
| 62 | have hp := h U a |
| 63 | let p := Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 64 | let b := x.left ≫ M.left.toSpecΓ |
| 65 | have heq : (a ≫ x).left ≫ M.left.toSpecΓ = C.f i ≫ b := Category.assoc _ _ _ |
| 66 | change Flat (pullback.snd p ((a ≫ x).left ≫ M.left.toSpecΓ)) at hp |
| 67 | rw [heq] at hp |
| 68 | let := hp |
| 69 | let e := pullbackLeftPullbackSndIso p b (C.f i) |
| 70 | have hc : Flat (e.hom ≫ pullback.snd p (C.f i ≫ b)) := inferInstance |
| 71 | dsimp only [e] at hc |
| 72 | rw [pullbackLeftPullbackSndIso_hom_snd] at hc |
| 73 | exact hc |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.PolynomialFamily.GradedHilbert |