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.AbelianModuli.HilbertConstruction.Smooth.MixedKoszulSheafExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Negative.ExactCochainEuler |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulEulerDifference |
| 4 | |
| 5 | /-! # Mixed Koszul Cokernel Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulCokernelEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The final cokernel of the actual mixed Koszul complex is coherent. |
| 12 | For a proper smooth scheme with a finite complete intersection, its |
| 13 | Euler characteristic is the product of the actual tensor differences. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | def mixedKoszulCokernel {X : Scheme.{u}} (M : X.Modules) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : X.Modules := |
| 20 | cokernel ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).d (-1) 0) |
| 21 | |
| 22 | theorem mixedKoszulCokernel_coherent {X : Scheme.{u}} |
| 23 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : |
| 24 | (mixedKoszulCokernel M bs).IsQuasicoherent ∧ (mixedKoszulCokernel M bs).IsFiniteType := by |
| 25 | let C := LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs |
| 26 | have : (C.X (-1)).IsQuasicoherent := (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_coherent M bs (-1)).1 |
| 27 | have : (C.X 0).IsQuasicoherent := (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_coherent M bs 0).1 |
| 28 | have : (C.X 0).IsFiniteType := (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_coherent M bs 0).2 |
| 29 | exact ⟨Quasicoherent.Cokernels.module_quasicoherent_cokernel (C.d (-1) 0), Quasicoherent.QuotientFiniteType.quasicoherent_cokernel_finiteType (C.d (-1) 0)⟩ |
| 30 | |
| 31 | theorem smoothMixedKoszulCokernel_euler |
| 32 | {K : Type u} [Field K] [IsAlgClosed K] {X : Scheme.{u}} |
| 33 | (p : X ⟶ Spec (.of K)) [IsProper p] (g : ℕ) (hg : 0 < g) [SmoothOfRelativeDimension g p] |
| 34 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (hlen : bs.length = g) |
| 35 | (hfinite : (MixedKoszulGeometricSupport.mixedSectionZeroSet bs).Finite) : |
| 36 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (mixedKoszulCokernel M.sheaf bs) = |
| 37 | MixedKoszulEulerDifference.mixedLineBundleEulerDifference X bs (LineBundle.EulerShifts.lineBundleClassEuler p) (Line.Bundles.LineBundle.classOf M) := by |
| 38 | have : Smooth p := SmoothOfRelativeDimension.smooth g p |
| 39 | have : M.sheaf.IsQuasicoherent := M.isQuasicoherent |
| 40 | have : M.sheaf.IsFiniteType := M.isFiniteType |
| 41 | let C := LineBundleKoszulComplex.mixedLineBundleKoszulComplex M.sheaf bs |
| 42 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian p |
| 43 | have hq (i : ℤ) : (C.X i).IsQuasicoherent := (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_coherent M.sheaf bs i).1 |
| 44 | have ht (i : ℤ) : (C.X i).IsFiniteType := (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_coherent M.sheaf bs i).2 |
| 45 | have hC := HilbertConstruction.Smooth.MixedKoszulSheafExactness.smoothMixedKoszul_sheaf_exact_negative p g M bs hlen hfinite |
| 46 | have hEuler := Negative.ExactCochainEuler.proper_coherent_negative_exact_euler_sum p C hC bs.length (by omega) |
| 47 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex_isZero_X M.sheaf bs _ (Or.inl (by omega))) |
| 48 | exact hEuler.symm.trans (MixedKoszulEulerDifference.mixedKoszulEuler_eq_difference p M bs) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulCokernelEuler |