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.TwoComplex |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | |
| 4 | /-! # Two Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoFunctor.FirstTwoComplex |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Functoriality and exactness of retaining only the first two cochain terms. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits ZeroObject |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | section Additive |
| 17 | |
| 18 | variable (C : Type u) [Category.{v} C] [Preadditive C] [HasZeroObject C] |
| 19 | |
| 20 | def functor : CochainComplex C ℕ ⥤ CochainComplex C ℕ where |
| 21 | obj := TwoComplex.FirstTwoComplex.complex |
| 22 | map := TwoComplex.FirstTwoComplex.map |
| 23 | map_id K := by |
| 24 | apply HomologicalComplex.Hom.ext |
| 25 | funext n |
| 26 | cases n with |
| 27 | | zero => rfl |
| 28 | | succ n => |
| 29 | cases n with |
| 30 | | zero => rfl |
| 31 | | succ n => exact (isZero_zero C).eq_of_tgt _ _ |
| 32 | map_comp f g := by |
| 33 | apply HomologicalComplex.Hom.ext |
| 34 | funext n |
| 35 | cases n with |
| 36 | | zero => rfl |
| 37 | | succ n => |
| 38 | cases n with |
| 39 | | zero => rfl |
| 40 | | succ n => exact (isZero_zero C).eq_of_tgt _ _ |
| 41 | |
| 42 | instance additive : (functor C).Additive where |
| 43 | map_add {K L} f g := by |
| 44 | apply HomologicalComplex.Hom.ext |
| 45 | funext n |
| 46 | cases n with |
| 47 | | zero => rfl |
| 48 | | succ n => |
| 49 | cases n with |
| 50 | | zero => rfl |
| 51 | | succ n => exact (isZero_zero C).eq_of_tgt _ _ |
| 52 | |
| 53 | instance linear (R : Type*) [CommRing R] [Linear R C] : (functor C).Linear R where |
| 54 | map_smul {K L} f r := by |
| 55 | apply HomologicalComplex.Hom.ext |
| 56 | funext n |
| 57 | cases n with |
| 58 | | zero => rfl |
| 59 | | succ n => |
| 60 | cases n with |
| 61 | | zero => rfl |
| 62 | | succ n => exact (isZero_zero C).eq_of_tgt _ _ |
| 63 | |
| 64 | end Additive |
| 65 | |
| 66 | variable (C : Type u) [Category.{v} C] [Abelian C] |
| 67 | |
| 68 | theorem shortExact (S : ShortComplex (CochainComplex C ℕ)) |
| 69 | (h : ∀ n : ℕ, n ≤ 1 → (S.map (HomologicalComplex.eval C (.up ℕ) n)).ShortExact) : |
| 70 | (S.map (functor C)).ShortExact := by |
| 71 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 72 | intro n |
| 73 | cases n with |
| 74 | | zero => exact h 0 (by omega) |
| 75 | | succ n => |
| 76 | cases n with |
| 77 | | zero => exact h 1 (by omega) |
| 78 | | succ n => |
| 79 | exact (ShortComplex.Splitting.ofIsZeroOfIsIso _ (isZero_zero C) |
| 80 | ((isZero_zero C).isIso (isZero_zero C) _)).shortExact |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoFunctor.FirstTwoComplex |