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.Finite.RetractCopies |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulTopTensorPower |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.KoszulTermIsomorphisms |
| 4 | |
| 5 | /-! # Koszul Previous Power Copies -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulPreviousPowerCopies |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The term before the last Koszul term is a finite retract of copies |
| 12 | of the power exactly two degrees below the last power. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | variable {X : Scheme.{u}} |
| 19 | |
| 20 | theorem lineBundleSquareKoszul_previousTerm_finiteRetractCopies (G : Line.Bundles.LineBundle X) |
| 21 | (ss : List (Line.Bundles.structureModule X ⟶ (G.tensorPower 2).sheaf)) (b : ℕ) : |
| 22 | Finite.RetractCopies.FiniteRetractCopies (G.tensorPower ((ss.length - 1) * 2 + b)).sheaf |
| 23 | ((LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex (G.tensorPower 2) (G.tensorPower b).sheaf ss).X (-1)) := by |
| 24 | induction ss with |
| 25 | | nil => |
| 26 | exact Finite.RetractCopies.FiniteRetractCopies.of_isZero _ _ |
| 27 | (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X (G.tensorPower 2) (G.tensorPower b).sheaf [] (-1) |
| 28 | (Or.inl (by simp))) |
| 29 | | cons s ss ih => |
| 30 | let L := G.tensorPower 2 |
| 31 | let C := LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex L (G.tensorPower b).sheaf ss |
| 32 | let F := (LineBundle.TensorEquivalence.lineBundleTensorEquivalence L).functor |
| 33 | have : F.Additive := Functor.additive_of_preserves_binary_products F |
| 34 | let Q := (G.tensorPower (ss.length * 2 + b)).sheaf |
| 35 | have hzero : Finite.RetractCopies.FiniteRetractCopies Q (C.X 0) := |
| 36 | (Finite.RetractCopies.FiniteRetractCopies.self Q).of_targetIso (KoszulTopTensorPower.lineBundleSquareKoszulTopPowerIso G ss b).symm |
| 37 | have htail : Finite.RetractCopies.FiniteRetractCopies Q (F.obj (C.X (-1))) := by |
| 38 | by_cases hnil : ss = [] |
| 39 | · subst ss |
| 40 | exact Finite.RetractCopies.FiniteRetractCopies.of_isZero Q _ (F.map_isZero |
| 41 | (LineBundle.SectionKoszulComplex.lineBundleSectionKoszulComplex_isZero_X L (G.tensorPower b).sheaf [] (-1) |
| 42 | (Or.inl (by simp)))) |
| 43 | · have hlen : 0 < ss.length := by |
| 44 | by_contra hn |
| 45 | exact hnil (List.length_eq_zero_iff.mp (by omega)) |
| 46 | let q := (ss.length - 1) * 2 + b |
| 47 | have hq : 2 + q = ss.length * 2 + b := by dsimp [q]; omega |
| 48 | let e : F.obj (G.tensorPower q).sheaf ≅ Q := |
| 49 | LineBundle.TensorEquivalence.lineBundleTensorEquivalence_objIso L (G.tensorPower q).sheaf ≪≫ |
| 50 | (G.tensorPowerAddIso 2 q).symm ≪≫ |
| 51 | eqToIso (congrArg (fun n => (G.tensorPower n).sheaf) hq) |
| 52 | exact (ih.map F).of_sourceIso e |
| 53 | change Finite.RetractCopies.FiniteRetractCopies Q ((LineBundle.SectionKoszulStep.lineBundleSectionKoszulStep L s C).X (-1)) |
| 54 | apply (hzero.biprod htail).of_targetIso |
| 55 | simpa only [F, show (-1 : ℤ) + 1 = 0 by decide] using |
| 56 | (LineBundle.KoszulTermIsomorphisms.lineBundleSectionKoszulStep_XIsoBiprod L s C (-1)).symm |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulPreviousPowerCopies |