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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import Mathlib.Algebra.Homology.DerivedCategory.Basic |
| 18 | |
| 19 | /-! # Mapping Cone Quasi Iso -/ |
| 20 | |
| 21 | namespace OAI.Algebra.Homology.MappingConeQuasiIso.CochainComplex.mappingCone |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open _root_.CochainComplex |
| 26 | open _root_.CochainComplex.mappingCone |
| 27 | |
| 28 | /-! |
| 29 | # Quasi-isomorphisms between mapping cones |
| 30 | |
| 31 | A commutative square of cochain complexes induces a map between its mapping cones. If both |
| 32 | vertical maps are quasi-isomorphisms, then so is the induced cone map. The proof applies the |
| 33 | five-lemma property for morphisms of distinguished triangles in the derived category. |
| 34 | |
| 35 | This is the categorical comparison needed to pass from ordinary cohomology comparisons on a |
| 36 | space and an open complement to the corresponding comparison with support. |
| 37 | -/ |
| 38 | |
| 39 | open _root_.CategoryTheory Limits |
| 40 | open _root_.CategoryTheory.Pretriangulated |
| 41 | |
| 42 | universe u |
| 43 | |
| 44 | /-- A map of mapping cones induced by a commutative square is a quasi-isomorphism when both |
| 45 | vertical maps in the square are quasi-isomorphisms. -/ |
| 46 | lemma map_quasiIso_of_vertical_quasiIso |
| 47 | {C : Type u} [Category C] [Abelian C] [HasDerivedCategory C] |
| 48 | {K₁ L₁ K₂ L₂ : CochainComplex C ℤ} |
| 49 | (φ₁ : K₁ ⟶ L₁) (φ₂ : K₂ ⟶ L₂) |
| 50 | (a : K₁ ⟶ K₂) (b : L₁ ⟶ L₂) |
| 51 | (comm : φ₁ ≫ b = a ≫ φ₂) [QuasiIso a] [QuasiIso b] : |
| 52 | QuasiIso (map φ₁ φ₂ a b comm) := by |
| 53 | let tmap := (DerivedCategory.Q.mapTriangle).map |
| 54 | (triangleMap φ₁ φ₂ a b comm) |
| 55 | have h₁ : IsIso tmap.hom₁ := by |
| 56 | change IsIso (DerivedCategory.Q.map a) |
| 57 | rw [DerivedCategory.isIso_Q_map_iff_quasiIso] |
| 58 | infer_instance |
| 59 | have h₂ : IsIso tmap.hom₂ := by |
| 60 | change IsIso (DerivedCategory.Q.map b) |
| 61 | rw [DerivedCategory.isIso_Q_map_iff_quasiIso] |
| 62 | infer_instance |
| 63 | have h₃ : IsIso tmap.hom₃ := |
| 64 | CategoryTheory.Pretriangulated.isIso₃_of_isIso₁₂ tmap |
| 65 | (DerivedCategory.mappingCone_triangle_distinguished φ₁) |
| 66 | (DerivedCategory.mappingCone_triangle_distinguished φ₂) |
| 67 | h₁ h₂ |
| 68 | rw [← DerivedCategory.isIso_Q_map_iff_quasiIso] |
| 69 | exact h₃ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.Algebra.Homology.MappingConeQuasiIso.CochainComplex.mappingCone |