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.Additive |
| 2 | |
| 3 | /-! # Map Cochain Of -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.MapCochainOf.Complex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Mapping a cochain complex given by successive differentials preserves that presentation. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | variable {C D : Type*} [Category* C] [Category* D] |
| 14 | [HasZeroMorphisms C] [HasZeroMorphisms D] |
| 15 | (F : C ⥤ D) [F.PreservesZeroMorphisms] |
| 16 | (X : ℕ → C) (d : ∀ n, X n ⟶ X (n + 1)) (w : ∀ n, d n ≫ d (n + 1) = 0) |
| 17 | |
| 18 | def mapCochainOfIso : |
| 19 | (F.mapHomologicalComplex (.up ℕ)).obj (CochainComplex.of X d w) ≅ |
| 20 | CochainComplex.of (fun n => F.obj (X n)) (fun n => F.map (d n)) |
| 21 | (fun n => by rw [← F.map_comp, w n, F.map_zero]) := |
| 22 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by |
| 23 | intro i j hij |
| 24 | obtain rfl : i + 1 = j := hij |
| 25 | change 𝟙 _ ≫ CochainComplex.of.d (fun k => F.obj (X k)) (fun k => F.map (d k)) i (i + 1) = |
| 26 | F.map (CochainComplex.of.d X d i (i + 1)) ≫ 𝟙 _ |
| 27 | rw [CochainComplex.of_d, CochainComplex.of_d, Category.id_comp, Category.comp_id]) |
| 28 | |
| 29 | end |
| 30 | |
| 31 | end OAI.AlgebraicGeometry.Comparison.Betti.MapCochainOf.Complex |