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.PrimeTorsion |
| 2 | import Mathlib.CategoryTheory.Triangulated.Pretriangulated |
| 3 | import Mathlib.CategoryTheory.Linear.LinearFunctor |
| 4 | |
| 5 | /-! # Triangle Prime -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.TrianglePrime.TrianglePrimeTorsion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A reduction triangle and surjectivity in degree zero imply absence of prime torsion in degree one. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] |
| 18 | [HasShift C ℤ] [∀ n : ℤ, (shiftFunctor C n).Additive] [Pretriangulated C] |
| 19 | |
| 20 | theorem shifted_injective (T : Triangle C) (hT : T ∈ distTriang C) (A : C) |
| 21 | (hs : Function.Surjective (fun f : A ⟶ T.obj₂ => f ≫ T.mor₂)) : |
| 22 | Function.Injective (fun f : A ⟶ T.obj₁⟦(1 : ℤ)⟧ => f ≫ T.mor₁⟦(1 : ℤ)⟧') := by |
| 23 | intro x y hxy |
| 24 | dsimp only at hxy |
| 25 | have hz : (x - y) ≫ T.mor₁⟦(1 : ℤ)⟧' = 0 := by rw [Preadditive.sub_comp, hxy, sub_self] |
| 26 | obtain ⟨z, hz⟩ := T.coyoneda_exact₁ hT (x - y) hz |
| 27 | obtain ⟨w, rfl⟩ := hs z |
| 28 | apply sub_eq_zero.mp |
| 29 | rw [hz, Category.assoc, comp_distTriang_mor_zero₂₃ T hT, comp_zero] |
| 30 | |
| 31 | theorem torsionFree (p : ℕ) [Fact p.Prime] [Linear ℤ_[p] C] |
| 32 | [(shiftFunctor C (1 : ℤ)).Linear ℤ_[p]] |
| 33 | (X Y A : C) (r : X ⟶ Y) (δ : Y ⟶ X⟦(1 : ℤ)⟧) |
| 34 | (hT : Triangle.mk ((p : ℤ_[p]) • 𝟙 X) r δ ∈ distTriang C) |
| 35 | (hs : Function.Surjective (fun f : A ⟶ X => f ≫ r)) : |
| 36 | Module.IsTorsionFree ℤ_[p] (A ⟶ X⟦(1 : ℤ)⟧) := by |
| 37 | apply PrimeTorsion.PrimeTorsionCriterion.torsionFree p |
| 38 | intro x hx |
| 39 | apply shifted_injective (Triangle.mk ((p : ℤ_[p]) • 𝟙 X) r δ) hT A hs |
| 40 | change x ≫ (shiftFunctor C (1 : ℤ)).map ((p : ℤ_[p]) • 𝟙 X) = |
| 41 | 0 ≫ (shiftFunctor C (1 : ℤ)).map ((p : ℤ_[p]) • 𝟙 X) |
| 42 | rw [Functor.map_smul, CategoryTheory.Functor.map_id, Linear.comp_smul, |
| 43 | Category.comp_id, hx, zero_comp] |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.GeometricComparison.TrianglePrime.TrianglePrimeTorsion |