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.First.TwoOneInjection |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoZeroSurjectivity |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ExtendLinearCore |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.TrianglePrime |
| 5 | import Mathlib.Algebra.Homology.DerivedCategory.Linear |
| 6 | |
| 7 | /-! # Two Prime Torsion -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoPrimeTorsion.FirstTwoComplex |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A native low-degree reduction sequence and global constant lifting imply torsion-free degree-one derived sections. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated Opposite |
| 16 | |
| 17 | variable (p : ℕ) [Fact p.Prime] (X : TopCat.{0}) |
| 18 | |
| 19 | local notation "V" => OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantSheaf.ConstantSheafSections.Sheaves ℤ_[p] X |
| 20 | local notation "A" => OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantSheaf.ConstantSheafSections.coefficient ℤ_[p] X |
| 21 | |
| 22 | local instance : HasDerivedCategory.{1} V := HasDerivedCategory.standard _ |
| 23 | |
| 24 | theorem truncated_torsionFree (K L : CochainComplex V ℕ) (f : K ⟶ L) |
| 25 | (hz : ((p : ℤ_[p]) • 𝟙 K) ≫ f = 0) |
| 26 | (he : ∀ n : ℕ, n ≤ 1 → |
| 27 | ((ShortComplex.mk ((p : ℤ_[p]) • 𝟙 K) f hz).map |
| 28 | (HomologicalComplex.eval V (.up ℕ) n)).ShortExact) |
| 29 | (hf : Function.Surjective ((f.f 0).hom.app (op ⊤))) |
| 30 | (hd : ∀ x : (K.X 0).obj.obj (op ⊤), (K.d 0 1).hom.app (op ⊤) x = 0) : |
| 31 | Module.IsTorsionFree ℤ_[p] |
| 32 | ((DerivedCategory.singleFunctor V 0).obj A ⟶ |
| 33 | (DerivedCategory.Q.obj (TwoZeroSurjectivity.FirstTwoComplex.integerComplex ℤ_[p] X K))⟦(1 : ℤ)⟧) := by |
| 34 | let S := ShortComplex.mk ((p : ℤ_[p]) • 𝟙 K) f hz |
| 35 | let F := TwoFunctor.FirstTwoComplex.functor V ⋙ ComplexShape.embeddingUpNat.extendFunctor V |
| 36 | have hS : (S.map F).ShortExact := |
| 37 | ExtendShort.ExtendShortExact.shortExact _ _ (TwoFunctor.FirstTwoComplex.shortExact V S he) |
| 38 | have hmap : DerivedCategory.Q.map (S.map F).f = |
| 39 | (p : ℤ_[p]) • 𝟙 (DerivedCategory.Q.obj (TwoZeroSurjectivity.FirstTwoComplex.integerComplex ℤ_[p] X K)) := by |
| 40 | change DerivedCategory.Q.map (F.map ((p : ℤ_[p]) • 𝟙 K)) = _ |
| 41 | rw [Functor.map_smul, CategoryTheory.Functor.map_id, |
| 42 | Functor.map_smul, CategoryTheory.Functor.map_id] |
| 43 | rfl |
| 44 | apply TrianglePrime.TrianglePrimeTorsion.torsionFree p _ _ _ |
| 45 | (DerivedCategory.Q.map (TwoZeroSurjectivity.FirstTwoComplex.integerMap ℤ_[p] X f)) (DerivedCategory.triangleOfSESδ hS) |
| 46 | · rw [← hmap] |
| 47 | exact DerivedCategory.triangleOfSES_distinguished hS |
| 48 | · exact TwoZeroSurjectivity.FirstTwoComplex.derived_hzero_surjective ℤ_[p] X f hf hd |
| 49 | |
| 50 | theorem torsionFree (K L : CochainComplex V ℕ) (f : K ⟶ L) |
| 51 | (hz : ((p : ℤ_[p]) • 𝟙 K) ≫ f = 0) |
| 52 | (he : ∀ n : ℕ, n ≤ 1 → |
| 53 | ((ShortComplex.mk ((p : ℤ_[p]) • 𝟙 K) f hz).map |
| 54 | (HomologicalComplex.eval V (.up ℕ) n)).ShortExact) |
| 55 | (hf : Function.Surjective ((f.f 0).hom.app (op ⊤))) |
| 56 | (hd : ∀ x : (K.X 0).obj.obj (op ⊤), (K.d 0 1).hom.app (op ⊤) x = 0) : |
| 57 | Module.IsTorsionFree ℤ_[p] |
| 58 | ((DerivedCategory.singleFunctor V 0).obj A ⟶ |
| 59 | (DerivedCategory.Q.obj (K.extend ComplexShape.embeddingUpNat))⟦(1 : ℤ)⟧) := by |
| 60 | let : Module.IsTorsionFree ℤ_[p] |
| 61 | ((DerivedCategory.singleFunctor V 0).obj A ⟶ |
| 62 | (DerivedCategory.Q.obj ((TwoComplex.FirstTwoComplex.complex K).extend ComplexShape.embeddingUpNat))⟦(1 : ℤ)⟧) := |
| 63 | truncated_torsionFree p X K L f hz he hf hd |
| 64 | apply PrimeTorsion.PrimeTorsionCriterion.torsionFree p |
| 65 | intro x hx |
| 66 | apply TwoOneInjection.FirstTwoComplex.hone_injective K A |
| 67 | let g := (DerivedCategory.Q.map |
| 68 | (HomologicalComplex.extendMap (TwoComplex.FirstTwoComplex.projection K) ComplexShape.embeddingUpNat))⟦(1 : ℤ)⟧' |
| 69 | change x ≫ g = 0 ≫ g |
| 70 | rw [zero_comp] |
| 71 | have hpg : (p : ℤ_[p]) • (x ≫ g) = 0 := by |
| 72 | rw [← Linear.smul_comp, hx, zero_comp] |
| 73 | exact (smul_eq_zero.mp hpg).resolve_left |
| 74 | (Nat.cast_ne_zero.mpr (Fact.out : p.Prime).ne_zero) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoPrimeTorsion.FirstTwoComplex |