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.Crystalline.Cohomology.HodgeFiltrationD |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplex |
| 3 | |
| 4 | /-! # Truncation Map Zero -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.TruncationMapZero.HodgeTruncationMapZero |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Vanishing in positive form degrees kills the original Hodge |
| 11 | truncation map, also after an actual coefficient functor. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | private theorem rightZero {C : Type*} [Category* C] [HasZeroMorphisms C] |
| 16 | {X Y Z : C} (a : X ⟶ Y) (b : Y ⟶ Z) (h : b = 0) : a ≫ b = 0 := by |
| 17 | rw [h, comp_zero] |
| 18 | |
| 19 | private theorem leftZero {C : Type*} [Category* C] [HasZeroMorphisms C] |
| 20 | {X Y Z : C} (a : X ⟶ Y) (b : Y ⟶ Z) (h : a = 0) : a ≫ b = 0 := by |
| 21 | rw [h, zero_comp] |
| 22 | |
| 23 | universe uC vC uD vD |
| 24 | variable {C : Type uC} [Category.{vC} C] [HasZeroMorphisms C] [HasZeroObject C] |
| 25 | {D : Type uD} [Category.{vD} D] [HasZeroMorphisms D] |
| 26 | (F : C ⥤ D) [F.PreservesZeroMorphisms] |
| 27 | {K : CochainComplex C ℕ} {L M : CochainComplex D ℕ} |
| 28 | |
| 29 | theorem mapped (a : (F.mapHomologicalComplex (.up ℕ)).obj K ⟶ L) (r : ℤ) |
| 30 | (h : ∀ n : ℕ, r ≤ (n : ℤ) → a.f n = 0) : |
| 31 | (F.mapHomologicalComplex (.up ℕ)).map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K r) ≫ a = 0 := by |
| 32 | apply HomologicalComplex.Hom.ext |
| 33 | funext n |
| 34 | change F.map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K r n) ≫ a.f n = 0 |
| 35 | by_cases hn : r ≤ (n : ℤ) |
| 36 | · exact rightZero (F.map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K r n)) (a.f n) (h n hn) |
| 37 | · have he : AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K r n = 0 := by |
| 38 | simp only [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_right hn] |
| 39 | exact leftZero (F.map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K r n)) (a.f n) |
| 40 | ((congrArg F.map he).trans (F.map_zero _ _)) |
| 41 | |
| 42 | theorem after_map (a : (F.mapHomologicalComplex (.up ℕ)).obj K ⟶ L) (b : L ⟶ M) (r : ℤ) |
| 43 | (h : ∀ n : ℕ, r ≤ (n : ℤ) → b.f n = 0) : |
| 44 | (F.mapHomologicalComplex (.up ℕ)).map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K r) ≫ a ≫ b = 0 := by |
| 45 | apply mapped F (a ≫ b) r |
| 46 | intro n hn |
| 47 | change a.f n ≫ b.f n = 0 |
| 48 | rw [h n hn, comp_zero] |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.GeometricComparison.TruncationMapZero.HodgeTruncationMapZero |