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 | |
| 4 | /-! # Line Bundle Koszul Complex -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundleKoszulComplex |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual Koszul complex of sections belonging to different line |
| 11 | bundles. Its terms are coherent, its degrees lie in the expected finite |
| 12 | interval, and it contracts after a pullback where any chosen section |
| 13 | is a frame. This permits one hyperplane cut and several cuts by powers. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | |
| 17 | abbrev LineBundleSection (X : Scheme.{u}) := |
| 18 | Σ L : Line.Bundles.LineBundle X, Line.Bundles.structureModule X ⟶ L.sheaf |
| 19 | |
| 20 | local instance mixedKoszulPullbackAdditive {X Y : Scheme.{u}} (f : Y ⟶ X) : |
| 21 | (Scheme.Modules.pullback f).Additive := by |
| 22 | have := preservesBinaryBiproducts_of_preservesBinaryCoproducts (Scheme.Modules.pullback f) |
| 23 | exact Functor.additive_of_preservesBinaryBiproducts _ |
| 24 | |
| 25 | def mixedLineBundleKoszulComplex {X : Scheme.{u}} (M : X.Modules) : |
| 26 | List (LineBundleSection X) → CochainComplex X.Modules ℤ |
| 27 | | [] => (HomologicalComplex.single X.Modules (.up ℤ) 0).obj M |
| 28 | | b :: bs => LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep b.1 b.2 (mixedLineBundleKoszulComplex M bs) |
| 29 | |
| 30 | theorem mixedLineBundleKoszulComplex_isZero_X {X : Scheme.{u}} |
| 31 | (M : X.Modules) (bs : List (LineBundleSection X)) (i : ℤ) |
| 32 | (hi : i < -(bs.length : ℤ) ∨ 0 < i) : |
| 33 | IsZero ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i) := by |
| 34 | induction bs generalizing i with |
| 35 | | nil => |
| 36 | exact HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 M i |
| 37 | (by simp only [List.length_nil, Nat.cast_zero, neg_zero] at hi; omega) |
| 38 | | cons b bs ih => |
| 39 | apply (LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep_isZero_X_iff b.1 b.2 _ i).mpr |
| 40 | constructor |
| 41 | · apply ih |
| 42 | simp only [List.length_cons, Nat.cast_add, Nat.cast_one] at hi |
| 43 | omega |
| 44 | · exact Functor.map_isZero (LineBundle.TensorEquivalence.lineBundleTensorEquivalence b.1).functor |
| 45 | (ih i (by simp only [List.length_cons, Nat.cast_add, Nat.cast_one] at hi; omega)) |
| 46 | |
| 47 | theorem mixedLineBundleKoszulComplex_pullback_contractible |
| 48 | {X Y : Scheme.{u}} (M : X.Modules) (bs : List (LineBundleSection X)) (f : Y ⟶ X) |
| 49 | (hs : ∃ b ∈ bs, IsIso ((Scheme.Modules.pullback f).map b.2)) : |
| 50 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj |
| 51 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs))) 0) := by |
| 52 | induction bs with |
| 53 | | nil => simp at hs |
| 54 | | cons b bs ih => |
| 55 | obtain ⟨a, ha, hiso⟩ := hs |
| 56 | rcases List.mem_cons.mp ha with rfl | ha |
| 57 | · have := hiso |
| 58 | exact ⟨LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep_pullback_contractible a.1 a.2 f |
| 59 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs)⟩ |
| 60 | · exact LineBundle.SectionKoszulComplex.lineBundleSectionKoszulStep_pullback_contractible_of_tail b.1 b.2 f |
| 61 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs) (ih ⟨a, ha, hiso⟩) |
| 62 | |
| 63 | theorem mixedLineBundleKoszulComplex_coherent {X : Scheme.{u}} |
| 64 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 65 | (bs : List (LineBundleSection X)) (i : ℤ) : |
| 66 | ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i).IsQuasicoherent ∧ |
| 67 | ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i).IsFiniteType := by |
| 68 | induction bs generalizing i with |
| 69 | | nil => |
| 70 | by_cases hi : i = 0 |
| 71 | · subst i |
| 72 | simpa only [LineBundleKoszulComplex.mixedLineBundleKoszulComplex, HomologicalComplex.single_obj_X_self] using |
| 73 | (show M.IsQuasicoherent ∧ M.IsFiniteType from ⟨inferInstance, inferInstance⟩) |
| 74 | · exact ZeroModuleCoherence.module_coherent_of_isZero _ |
| 75 | (HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 M i hi) |
| 76 | | cons b bs ih => |
| 77 | let C := LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs |
| 78 | let F := (LineBundle.TensorEquivalence.lineBundleTensorEquivalence b.1).functor |
| 79 | have hnext := ih (i + 1) |
| 80 | have hhere := ih i |
| 81 | have : (C.X (i + 1)).IsQuasicoherent := hnext.1 |
| 82 | have : (C.X (i + 1)).IsFiniteType := hnext.2 |
| 83 | have : (C.X i).IsQuasicoherent := hhere.1 |
| 84 | have : (C.X i).IsFiniteType := hhere.2 |
| 85 | have : (F.obj (C.X i)).IsQuasicoherent := LeftTensorCoherence.lineBundleTensorLeft_quasicoherent b.1 _ |
| 86 | have : (F.obj (C.X i)).IsFiniteType := LeftTensorCoherence.lineBundleTensorLeft_finiteType b.1 _ |
| 87 | have hq := Coherent.BinaryBiproduct.module_biprod_quasicoherent (C.X (i + 1)) (F.obj (C.X i)) |
| 88 | have := Coherent.BinaryBiproduct.module_biprod_finiteType (C.X (i + 1)) (F.obj (C.X i)) |
| 89 | let e := LineBundle.KoszulTermIsomorphisms.lineBundleSectionKoszulStep_XIsoBiprod b.1 b.2 C i |
| 90 | have hsource : ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M (b :: bs)).X i).IsQuasicoherent := |
| 91 | (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso e.symm hq |
| 92 | exact ⟨hsource, Quasicoherent.RestrictionFiniteType.quasicoherent_finiteType_of_iso e.symm⟩ |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundleKoszulComplex |