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 Mathlib.Algebra.Homology.Single |
| 2 | import Mathlib.Algebra.Homology.Linear |
| 3 | import Mathlib.LinearAlgebra.Isomorphisms |
| 4 | import Mathlib.CategoryTheory.Linear.Yoneda |
| 5 | |
| 6 | /-! # Single Map -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SingleMap.SingleMapCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual maps from a single complex are exactly cycles in the linear Hom complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable (R : Type*) [CommRing R] {C : Type u} [Category.{v} C] [Preadditive C] |
| 19 | [HasZeroObject C] [Linear R C] (A : C) (K : CochainComplex C ℤ) (n : ℤ) |
| 20 | |
| 21 | def cycles : Submodule R (A ⟶ K.X n) := (Linear.rightComp R A (K.d n (n + 1))).ker |
| 22 | |
| 23 | def evaluate : ((HomologicalComplex.single C (.up ℤ) n).obj A ⟶ K) →ₗ[R] cycles R A K n where |
| 24 | toFun f := ⟨(HomologicalComplex.singleObjXSelf (.up ℤ) n A).inv ≫ f.f n, by |
| 25 | change ((HomologicalComplex.singleObjXSelf (.up ℤ) n A).inv ≫ f.f n) ≫ K.d n (n + 1) = 0 |
| 26 | rw [Category.assoc, f.comm] |
| 27 | simp⟩ |
| 28 | map_add' f g := by apply Subtype.ext; simp |
| 29 | map_smul' r f := by apply Subtype.ext; simp |
| 30 | |
| 31 | theorem evaluate_injective : Function.Injective (evaluate R A K n) := by |
| 32 | intro f g h |
| 33 | apply HomologicalComplex.Hom.ext |
| 34 | funext i |
| 35 | by_cases hi : i = n |
| 36 | · subst i |
| 37 | apply (cancel_epi (HomologicalComplex.singleObjXSelf (.up ℤ) n A).inv).mp |
| 38 | exact congrArg Subtype.val h |
| 39 | · exact (HomologicalComplex.isZero_single_obj_X (.up ℤ) n A i hi).eq_of_src _ _ |
| 40 | |
| 41 | theorem evaluate_surjective : Function.Surjective (evaluate R A K n) := by |
| 42 | intro x |
| 43 | let f := HomologicalComplex.mkHomFromSingle (K := K) (j := n) x.val (fun k hk => by |
| 44 | change n + 1 = k at hk |
| 45 | subst k |
| 46 | exact x.property) |
| 47 | refine ⟨f, Subtype.ext ?_⟩ |
| 48 | change (HomologicalComplex.singleObjXSelf (.up ℤ) n A).inv ≫ f.f n = x.val |
| 49 | rw [HomologicalComplex.mkHomFromSingle_f, Iso.inv_hom_id_assoc] |
| 50 | |
| 51 | def equiv : ((HomologicalComplex.single C (.up ℤ) n).obj A ⟶ K) ≃ₗ[R] cycles R A K n := |
| 52 | LinearEquiv.ofBijective (evaluate R A K n) |
| 53 | ⟨evaluate_injective R A K n, evaluate_surjective R A K n⟩ |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SingleMap.SingleMapCycles |