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.SectionKoszulStep |
| 2 | import Mathlib.Algebra.Homology.Single |
| 3 | |
| 4 | /-! # Section Koszul Complex -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.SectionKoszulComplex |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual finite section Koszul complex has a bounded range of degrees and contracts after every pullback on which one of its sections is a frame. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | local instance e33KoszulComplexTensorAdditive {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 15 | (TensorEquivalence.lineBundleTensorEquivalence L).functor.Additive := |
| 16 | Functor.additive_of_preserves_binary_products _ |
| 17 | |
| 18 | local instance e33KoszulComplexPullbackAdditive {X Y : Scheme.{u}} (f : Y ⟶ X) : |
| 19 | (Scheme.Modules.pullback f).Additive := by |
| 20 | have := preservesBinaryBiproducts_of_preservesBinaryCoproducts (Scheme.Modules.pullback f) |
| 21 | exact CategoryTheory.Functor.additive_of_preservesBinaryBiproducts _ |
| 22 | |
| 23 | theorem lineBundleTensor_pullback_contractible {X Y : Scheme.{u}} (L : Line.Bundles.LineBundle X) |
| 24 | (f : Y ⟶ X) (K : CochainComplex X.Modules ℤ) |
| 25 | (hK : Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj K)) 0)) : |
| 26 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj |
| 27 | ((((TensorEquivalence.lineBundleTensorEquivalence L).functor).mapHomologicalComplex (.up ℤ)).obj K))) 0) := by |
| 28 | let P := Scheme.Modules.pullback f |
| 29 | let T := (TensorEquivalence.lineBundleTensorEquivalence L).functor |
| 30 | let T' := (TensorEquivalence.lineBundleTensorEquivalence (L.pullback f)).functor |
| 31 | change Nonempty (Homotopy (𝟙 (((T ⋙ P).mapHomologicalComplex (.up ℤ)).obj K)) 0) |
| 32 | let e : T ⋙ P ≅ P ⋙ T' := TensorPullbackFunctor.lineBundleTensorPullbackFunctorIso f L |
| 33 | let eK := (NatIso.mapHomologicalComplex e (.up ℤ)).app K |
| 34 | exact MappingConeContractions.cochainContractible_of_iso eK |
| 35 | (MappingConeContractions.cochainContractible_map T' ((P.mapHomologicalComplex (.up ℤ)).obj K) hK) |
| 36 | |
| 37 | theorem lineBundleSectionKoszulStep_pullback_contractible_of_tail |
| 38 | {X Y : Scheme.{u}} (L : Line.Bundles.LineBundle X) (s : Line.Bundles.structureModule X ⟶ L.sheaf) |
| 39 | (f : Y ⟶ X) (K : CochainComplex X.Modules ℤ) |
| 40 | (hK : Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj K)) 0)) : |
| 41 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj |
| 42 | (SectionKoszulStep.lineBundleSectionKoszulStep L s K))) 0) := by |
| 43 | let P := Scheme.Modules.pullback f |
| 44 | change Nonempty (Homotopy (𝟙 ((P.mapHomologicalComplex (.up ℤ)).obj |
| 45 | (CochainComplex.mappingCone (SectionKoszulStep.lineBundleSectionComplexMap L s K)))) 0) |
| 46 | let q := (P.mapHomologicalComplex (.up ℤ)).map (SectionKoszulStep.lineBundleSectionComplexMap L s K) |
| 47 | let e : (P.mapHomologicalComplex (.up ℤ)).obj |
| 48 | (CochainComplex.mappingCone (SectionKoszulStep.lineBundleSectionComplexMap L s K)) ≅ CochainComplex.mappingCone q := |
| 49 | CochainComplex.mappingCone.mapHomologicalComplexIso (SectionKoszulStep.lineBundleSectionComplexMap L s K) P |
| 50 | exact MappingConeContractions.cochainContractible_of_iso e (MappingConeContractions.mappingCone_contractible_of_contractible q hK |
| 51 | (lineBundleTensor_pullback_contractible L f K hK)) |
| 52 | |
| 53 | def lineBundleSectionKoszulComplex {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) (M : X.Modules) : |
| 54 | List (Line.Bundles.structureModule X ⟶ L.sheaf) → CochainComplex X.Modules ℤ |
| 55 | | [] => (HomologicalComplex.single X.Modules (.up ℤ) 0).obj M |
| 56 | | s :: ss => SectionKoszulStep.lineBundleSectionKoszulStep L s (lineBundleSectionKoszulComplex L M ss) |
| 57 | |
| 58 | theorem lineBundleSectionKoszulComplex_pullback_contractible |
| 59 | {X Y : Scheme.{u}} (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 60 | (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) (f : Y ⟶ X) |
| 61 | (hs : ∃ s ∈ ss, IsIso ((Scheme.Modules.pullback f).map s)) : |
| 62 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback f).mapHomologicalComplex (.up ℤ)).obj |
| 63 | (SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss))) 0) := by |
| 64 | induction ss with |
| 65 | | nil => simp at hs |
| 66 | | cons s ss ih => |
| 67 | obtain ⟨t, ht, htiso⟩ := hs |
| 68 | rcases List.mem_cons.mp ht with rfl | ht |
| 69 | · have := htiso |
| 70 | exact ⟨SectionKoszulStep.lineBundleSectionKoszulStep_pullback_contractible L t f |
| 71 | (SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss)⟩ |
| 72 | · exact lineBundleSectionKoszulStep_pullback_contractible_of_tail L s f |
| 73 | (SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss) (ih ⟨t, ht, htiso⟩) |
| 74 | |
| 75 | theorem lineBundleSectionKoszulComplex_isZero_X {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) |
| 76 | (M : X.Modules) (ss : List (Line.Bundles.structureModule X ⟶ L.sheaf)) (i : ℤ) |
| 77 | (hi : i < -(ss.length : ℤ) ∨ 0 < i) : |
| 78 | IsZero ((SectionKoszulComplex.lineBundleSectionKoszulComplex L M ss).X i) := by |
| 79 | induction ss generalizing i with |
| 80 | | nil => |
| 81 | exact HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 M i |
| 82 | (by simp only [List.length_nil, Nat.cast_zero, neg_zero] at hi; omega) |
| 83 | | cons s ss ih => |
| 84 | apply (SectionKoszulStep.lineBundleSectionKoszulStep_isZero_X_iff L s _ i).mpr |
| 85 | constructor |
| 86 | · apply ih |
| 87 | simp only [List.length_cons, Nat.cast_add, Nat.cast_one] at hi |
| 88 | omega |
| 89 | · exact Functor.map_isZero (TensorEquivalence.lineBundleTensorEquivalence L).functor |
| 90 | (ih i (by simp only [List.length_cons, Nat.cast_add, Nat.cast_one] at hi; omega)) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.SectionKoszulComplex |