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.LineBundle.KoszulTermIsomorphisms |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.SectionKoszulCoherent |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.CoherentEulerBiprod |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AlternatingConeSums |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.CochainEuler |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.LineBundleEuler |
| 7 | |
| 8 | /-! # Koszul Euler Sums -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulEulerSums |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! The alternating Euler sum of the actual section Koszul complex satisfies the tensor finite-difference recurrence. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | local instance e33KoszulEulerSumTensorAdditive {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 19 | (LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor.Additive := |
| 20 | Functor.additive_of_preserves_binary_products _ |
| 21 | |
| 22 | def lineBundleKoszulEuler {k : Type u} [Field k] {X : Scheme.{u}} |
| 23 | (p : X ⟶ Spec (.of k)) (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 24 | (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) : ℤ := |
| 25 | ∑ n ∈ Finset.range (ss.length + 1), (-1 : ℤ) ^ n * |
| 26 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).X (-(n : ℤ))) |
| 27 | |
| 28 | theorem lineBundleKoszulEuler_nil {k : Type u} [Field k] {X : Scheme.{u}} |
| 29 | (p : X ⟶ Spec (.of k)) (L : Line.Bundles.LineBundle X) (M : X.Modules) : |
| 30 | lineBundleKoszulEuler p L M [] = CohomologyEulerCharacteristic.coefficientEulerCharacteristic p M := by |
| 31 | simp [lineBundleKoszulEuler, LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex] |
| 32 | |
| 33 | theorem lineBundleKoszulEuler_coefficient_iso {k : Type u} [Field k] {X : Scheme.{u}} |
| 34 | (p : X ⟶ Spec (.of k)) (L : Line.Bundles.LineBundle X) {M N : X.Modules} (e : M ≅ N) |
| 35 | (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) : |
| 36 | lineBundleKoszulEuler p L M ss = lineBundleKoszulEuler p L N ss := by |
| 37 | apply Finset.sum_congr rfl |
| 38 | intro n _ |
| 39 | exact congrArg (fun z : ℤ => (-1 : ℤ) ^ n * z) |
| 40 | (Proper.LineBundleEuler.coefficientEulerCharacteristic_eq_of_sheafIso p (LineBundle.KoszulTermIsomorphisms.lineBundleKoszul_coefficientTermIso L e ss _)) |
| 41 | |
| 42 | theorem lineBundleKoszulEuler_tensor_terms {k : Type u} [Field k] {X : Scheme.{u}} |
| 43 | (p : X ⟶ Spec (.of k)) (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 44 | (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) : |
| 45 | (∑ n ∈ Finset.range (ss.length + 1), (-1 : ℤ) ^ n * CohomologyEulerCharacteristic.coefficientEulerCharacteristic p |
| 46 | ((LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor.obj |
| 47 | ((LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).X (-(n : ℤ))))) = |
| 48 | lineBundleKoszulEuler p L ((LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor.obj M) ss := by |
| 49 | apply Finset.sum_congr rfl |
| 50 | intro n _ |
| 51 | exact congrArg (fun z : ℤ => (-1 : ℤ) ^ n * z) |
| 52 | (Proper.LineBundleEuler.coefficientEulerCharacteristic_eq_of_sheafIso p (LineBundle.KoszulTermIsomorphisms.lineBundleKoszul_tensorTermIso L M ss _)) |
| 53 | |
| 54 | theorem lineBundleKoszulEuler_cons {k : Type u} [Field k] {X : Scheme.{u}} |
| 55 | (p : X ⟶ Spec (.of k)) [IsProper p] (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 56 | [M.IsQuasicoherent] [M.IsFiniteType] |
| 57 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) : |
| 58 | lineBundleKoszulEuler p L M (s :: ss) = |
| 59 | lineBundleKoszulEuler p L ((LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor.obj M) ss - |
| 60 | lineBundleKoszulEuler p L M ss := by |
| 61 | let C := LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss |
| 62 | let F := (LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor |
| 63 | have hq (i : ℤ) : (C.X i).IsQuasicoherent := (LineBundle.SectionKoszulCoherent.lineBundleSectionKoszulComplex_coherent L M ss i).1 |
| 64 | have ht (i : ℤ) : (C.X i).IsFiniteType := (LineBundle.SectionKoszulCoherent.lineBundleSectionKoszulComplex_coherent L M ss i).2 |
| 65 | have hfq (i : ℤ) : (F.obj (C.X i)).IsQuasicoherent := LeftTensorCoherence.lineBundleTensorLeft_quasicoherent L _ |
| 66 | have hft (i : ℤ) : (F.obj (C.X i)).IsFiniteType := LeftTensorCoherence.lineBundleTensorLeft_finiteType L _ |
| 67 | have he (i : ℤ) : CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep L s C).X i) = |
| 68 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (i + 1)) + CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (F.obj (C.X i)) := |
| 69 | (Proper.LineBundleEuler.coefficientEulerCharacteristic_eq_of_sheafIso p |
| 70 | (LineBundle.KoszulTermIsomorphisms.lineBundleSectionKoszulStep_XIsoBiprod L s C i)).trans (Proper.CoherentEulerBiprod.proper_coherent_euler_biprod p _ _) |
| 71 | let a : ℕ → ℤ := fun n => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ))) |
| 72 | let b : ℕ → ℤ := fun n => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (F.obj (C.X (-(n : ℤ)))) |
| 73 | let c : ℕ → ℤ := fun n => |
| 74 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep L s C).X (-(n : ℤ))) |
| 75 | have hz : c 0 = b 0 := by |
| 76 | have h1 : CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X 1) = 0 := |
| 77 | Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p _ |
| 78 | (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X L M ss 1 (Or.inr (by omega))) |
| 79 | change CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep L s C).X 0) = |
| 80 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (F.obj (C.X 0)) |
| 81 | simpa only [zero_add, h1] using he 0 |
| 82 | have hs (n : ℕ) : c (n + 1) = a n + b (n + 1) := by |
| 83 | have hi : -((n + 1 : ℕ) : ℤ) + 1 = -(n : ℤ) := by omega |
| 84 | change CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep L s C).X (-((n + 1 : ℕ) : ℤ))) = |
| 85 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ))) + |
| 86 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (F.obj (C.X (-((n + 1 : ℕ) : ℤ)))) |
| 87 | rw [he, hi] |
| 88 | have hlast : IsZero (C.X (-((ss.length + 1 : ℕ) : ℤ))) := |
| 89 | LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X L M ss _ (Or.inl (by omega)) |
| 90 | have ha : a (ss.length + 1) = 0 := Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p _ hlast |
| 91 | have hb : b (ss.length + 1) = 0 := |
| 92 | Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p _ (Functor.map_isZero F hlast) |
| 93 | have h := AlternatingConeSums.alternating_cone_sum a b c hz hs ss.length ha hb |
| 94 | calc |
| 95 | lineBundleKoszulEuler p L M (s :: ss) = |
| 96 | (∑ n ∈ Finset.range (ss.length + 1), (-1 : ℤ) ^ n * CohomologyEulerCharacteristic.coefficientEulerCharacteristic p |
| 97 | (F.obj (C.X (-(n : ℤ))))) - lineBundleKoszulEuler p L M ss := h |
| 98 | _ = _ := congrArg (fun z => z - lineBundleKoszulEuler p L M ss) |
| 99 | (lineBundleKoszulEuler_tensor_terms p L M ss) |
| 100 | |
| 101 | theorem lineBundleKoszulEuler_eq_zero_of_acyclic {k : Type u} [Field k] {X : Scheme.{u}} |
| 102 | [IsLocallyNoetherian X] (p : X ⟶ Spec (.of k)) [IsProper p] (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 103 | [M.IsQuasicoherent] [M.IsFiniteType] (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) |
| 104 | (hs : (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).Acyclic) : lineBundleKoszulEuler p L M ss = 0 := by |
| 105 | have hq (i : ℤ) : ((LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).X i).IsQuasicoherent := |
| 106 | (LineBundle.SectionKoszulCoherent.lineBundleSectionKoszulComplex_coherent L M ss i).1 |
| 107 | have ht (i : ℤ) : ((LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).X i).IsFiniteType := |
| 108 | (LineBundle.SectionKoszulCoherent.lineBundleSectionKoszulComplex_coherent L M ss i).2 |
| 109 | exact Coherent.CochainEuler.proper_coherent_acyclic_euler_sum p _ hs ss.length |
| 110 | (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X L M ss 1 (Or.inr (by omega))) |
| 111 | (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X L M ss (-(ss.length : ℤ) - 1) (Or.inl (by omega))) |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulEulerSums |