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 | /- |
| 2 | Copyright (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 8 | |
| 9 | /-! # Homological Complex Exact Retract -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.HomologicalComplexExactRetract.HomologicalComplex |
| 12 | |
| 13 | open _root_.HomologicalComplex |
| 14 | |
| 15 | /-! |
| 16 | # Exactness of retracts of homological complexes |
| 17 | |
| 18 | Exactness at a fixed degree descends from a homological complex to any chain-level retract. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] [HasZeroMorphisms C] |
| 26 | {ι : Type w} {c : ComplexShape ι} |
| 27 | |
| 28 | theorem ExactAt.of_retract |
| 29 | {K L : HomologicalComplex C c} {i : ι} |
| 30 | [K.HasHomology i] [L.HasHomology i] |
| 31 | (hK : K.ExactAt i) (f : L ⟶ K) (g : K ⟶ L) |
| 32 | (hfg : f ≫ g = 𝟙 L) : |
| 33 | L.ExactAt i := by |
| 34 | rw [exactAt_iff_isZero_homology] at hK ⊢ |
| 35 | rw [IsZero.iff_id_eq_zero] |
| 36 | calc |
| 37 | 𝟙 (L.homology i) = homologyMap (𝟙 L) i := |
| 38 | (homologyMap_id L i).symm |
| 39 | _ = homologyMap (f ≫ g) i := |
| 40 | congrArg (fun h : L ⟶ L => homologyMap h i) hfg.symm |
| 41 | _ = homologyMap f i ≫ homologyMap g i := |
| 42 | homologyMap_comp f g i |
| 43 | _ = 0 := by rw [hK.eq_of_tgt (homologyMap f i) 0, zero_comp] |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.HomologicalComplexExactRetract.HomologicalComplex |