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.Embedding.Extend |
| 2 | import Mathlib.Algebra.Homology.Linear |
| 3 | |
| 4 | /-! # Extend Linear Core -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ExtendLinearCore.ExtendLinear |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Extension by zero is linear over the coefficient ring. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : Type*) [CommRing R] (C : Type u) [Category.{v} C] |
| 17 | [Preadditive C] [HasZeroObject C] [Linear R C] |
| 18 | {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') |
| 19 | |
| 20 | instance linear : (e.extendFunctor C).Linear R where |
| 21 | map_smul {K L} f r := by |
| 22 | apply HomologicalComplex.Hom.ext |
| 23 | funext j |
| 24 | by_cases hj : ∃ i, e.f i = j |
| 25 | · obtain ⟨i, hi⟩ := hj |
| 26 | change (HomologicalComplex.extendMap (r • f) e).f j = |
| 27 | r • (HomologicalComplex.extendMap f e).f j |
| 28 | rw [HomologicalComplex.extendMap_f _ _ hi, HomologicalComplex.extendMap_f _ _ hi] |
| 29 | change (K.extendXIso e hi).hom ≫ (r • f.f i) ≫ (L.extendXIso e hi).inv = _ |
| 30 | rw [Linear.smul_comp, Linear.comp_smul] |
| 31 | · exact (L.isZero_extend_X e j (by simpa using hj)).eq_of_tgt _ _ |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ExtendLinearCore.ExtendLinear |