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.NumberTheory.PadicHodge.GeometricComparison.FirstThree.ThreeComplex |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.TruncationBoundsGE |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 4 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 5 | |
| 6 | /-! # Quotient -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FirstThree.Quotient.FirstThreeComplex |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The discarded tail begins in degree three and forms the actual kernel of the three-term quotient. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits ZeroObject |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] (K : CochainComplex C ℕ) |
| 19 | |
| 20 | theorem tail_projection : AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K 3 ≫ ThreeComplex.FirstThreeComplex.projection K = 0 := by |
| 21 | apply HomologicalComplex.Hom.ext |
| 22 | funext n |
| 23 | rcases n with _ | (_ | (_ | n)) |
| 24 | · change AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K 3 0 ≫ 𝟙 (K.X 0) = 0 |
| 25 | rw [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_right (show ¬ (3 : ℤ) ≤ (0 : ℕ) by omega)] |
| 26 | exact zero_comp |
| 27 | · change AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K 3 1 ≫ 𝟙 (K.X 1) = 0 |
| 28 | rw [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_right (show ¬ (3 : ℤ) ≤ (1 : ℕ) by omega)] |
| 29 | exact zero_comp |
| 30 | · change AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K 3 2 ≫ 𝟙 (K.X 2) = 0 |
| 31 | rw [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_right (show ¬ (3 : ℤ) ≤ (2 : ℕ) by omega)] |
| 32 | exact zero_comp |
| 33 | · exact comp_zero |
| 34 | |
| 35 | def quotientSequence : ShortComplex (CochainComplex C ℕ) := |
| 36 | ShortComplex.mk (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K 3) (ThreeComplex.FirstThreeComplex.projection K) (tail_projection K) |
| 37 | |
| 38 | theorem tail_zero (n : ℕ) (hn : n ≤ 2) : IsZero ((AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal K 3).X n) := by |
| 39 | change IsZero (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K 3 n) |
| 40 | rw [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term, ite_eq_right (show ¬ (3 : ℤ) ≤ (n : ℤ) by omega)] |
| 41 | exact isZero_zero C |
| 42 | |
| 43 | theorem tail_inclusion_isIso (n : ℕ) (hn : 3 ≤ n) : IsIso ((AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K 3).f n) := by |
| 44 | change IsIso (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K 3 n) |
| 45 | rw [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_left (show (3 : ℤ) ≤ (n : ℤ) by omega)] |
| 46 | infer_instance |
| 47 | |
| 48 | def quotientSplitting (n : ℕ) : |
| 49 | ((quotientSequence K).map (HomologicalComplex.eval C (.up ℕ) n)).Splitting := by |
| 50 | rcases n with _ | (_ | (_ | n)) |
| 51 | · apply ShortComplex.Splitting.ofIsZeroOfIsIso _ (tail_zero K 0 (by omega)) |
| 52 | exact inferInstanceAs (IsIso (𝟙 (K.X 0))) |
| 53 | · apply ShortComplex.Splitting.ofIsZeroOfIsIso _ (tail_zero K 1 (by omega)) |
| 54 | exact inferInstanceAs (IsIso (𝟙 (K.X 1))) |
| 55 | · apply ShortComplex.Splitting.ofIsZeroOfIsIso _ (tail_zero K 2 (by omega)) |
| 56 | exact inferInstanceAs (IsIso (𝟙 (K.X 2))) |
| 57 | · exact ShortComplex.Splitting.ofIsIsoOfIsZero _ (tail_inclusion_isIso K (n + 3) (by omega)) |
| 58 | (isZero_zero C) |
| 59 | |
| 60 | theorem quotient_shortExact : (quotientSequence K).ShortExact := |
| 61 | HomologicalComplex.shortExact_of_degreewise_shortExact _ (fun n => (quotientSplitting K n).shortExact) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FirstThree.Quotient.FirstThreeComplex |