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 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.Algebra.Homology.MappingCoconeShortExact |
| 7 | |
| 8 | /-! # Derived Category Map Of -/ |
| 9 | |
| 10 | namespace OAI.Algebra.Homology.DerivedCategoryMapOf.CochainComplex |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open _root_.CochainComplex |
| 15 | |
| 16 | /-! |
| 17 | # The canonical homotopy fiber comparison for a short exact sequence |
| 18 | |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated |
| 22 | open _root_.HomologicalComplex |
| 23 | |
| 24 | variable {C : Type*} [Category* C] [Abelian C] |
| 25 | |
| 26 | namespace mappingCone |
| 27 | open _root_.CochainComplex.mappingCone |
| 28 | |
| 29 | set_option backward.defeqAttrib.useBackward true in |
| 30 | set_option backward.isDefEq.respectTransparency false in |
| 31 | /-- A map of mapping cones induced by quasi-isomorphisms is a quasi-isomorphism. -/ |
| 32 | lemma quasiIso_map_of_quasiIso {K₁ L₁ K₂ L₂ : CochainComplex C ℤ} |
| 33 | (f₁ : K₁ ⟶ L₁) (f₂ : K₂ ⟶ L₂) (a : K₁ ⟶ K₂) (b : L₁ ⟶ L₂) |
| 34 | (h : f₁ ≫ b = a ≫ f₂) [QuasiIso a] [QuasiIso b] : |
| 35 | QuasiIso (map f₁ f₂ a b h) := by |
| 36 | let := HasDerivedCategory.standard C |
| 37 | apply (DerivedCategory.isIso_Q_map_iff_quasiIso C _).1 |
| 38 | exact isIso₃_of_isIso₁₂ |
| 39 | (DerivedCategory.Q.mapTriangle.map (triangleMap f₁ f₂ a b h)) |
| 40 | (DerivedCategory.mappingCone_triangle_distinguished f₁) |
| 41 | (DerivedCategory.mappingCone_triangle_distinguished f₂) |
| 42 | (inferInstanceAs (IsIso (DerivedCategory.Q.map a))) |
| 43 | (inferInstanceAs (IsIso (DerivedCategory.Q.map b))) |
| 44 | |
| 45 | end mappingCone |
| 46 | |
| 47 | namespace mappingCocone |
| 48 | open _root_.CochainComplex.mappingCocone |
| 49 | |
| 50 | variable (S : ShortComplex (CochainComplex C ℤ)) |
| 51 | |
| 52 | lemma quasiIso_shiftedLiftShortComplex (hS : S.ShortExact) : |
| 53 | QuasiIso (MappingCoconeShortExact.CochainComplex.mappingCocone.shiftedLiftShortComplex S) := by |
| 54 | have := mappingCone.quasiIso_descShortComplex hS |
| 55 | have := DerivedCategoryMapOf.CochainComplex.mappingCone.quasiIso_map_of_quasiIso |
| 56 | (mappingCone.inr S.f) S.g (𝟙 _) (mappingCone.descShortComplex S) (by simp) |
| 57 | dsimp only [MappingCoconeShortExact.CochainComplex.mappingCocone.shiftedLiftShortComplex] |
| 58 | infer_instance |
| 59 | |
| 60 | end mappingCocone |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.Algebra.Homology.DerivedCategoryMapOf.CochainComplex |