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 | |
| 16 | This file has been modified. |
| 17 | -/ |
| 18 | |
| 19 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 20 | import Mathlib.Algebra.Homology.HomologySequenceLemmas |
| 21 | |
| 22 | namespace OAI.Algebra.Homology.KernelAcyclic |
| 23 | |
| 24 | open _root_.HomologicalComplex |
| 25 | |
| 26 | /-! |
| 27 | # Epimorphisms of complexes with acyclic kernel |
| 28 | |
| 29 | An epimorphism of complexes in an abelian category sits in a short exact sequence with its |
| 30 | kernel, so the long exact homology sequence exchanges two conditions on it: being a |
| 31 | quasi-isomorphism, and having acyclic kernel. |
| 32 | |
| 33 | One direction holds for an arbitrary complex shape; the converse is stated for nonnegative |
| 34 | cochain complexes, where the degree `n + 1` used to kill the connecting map always exists. |
| 35 | -/ |
| 36 | |
| 37 | section |
| 38 | |
| 39 | open _root_.CategoryTheory Limits |
| 40 | |
| 41 | namespace HomologicalComplex |
| 42 | open _root_.HomologicalComplex |
| 43 | |
| 44 | variable {C : Type*} [Category C] [Abelian C] |
| 45 | variable {ι : Type*} {c : ComplexShape ι} {A B : HomologicalComplex C c} |
| 46 | |
| 47 | /-- The kernel of an epimorphic quasi-isomorphism of complexes is acyclic. -/ |
| 48 | lemma kernel_acyclic_of_epi_of_quasiIso (f : A ⟶ B) [Epi f] [QuasiIso f] : |
| 49 | (kernel f).Acyclic := by |
| 50 | let S := ShortComplex.mk (kernel.ι f) f (kernel.condition f) |
| 51 | have hS : S.ShortExact := { exact := ShortComplex.kernelSequence_exact f } |
| 52 | exact hS.acyclic_X₁ (by dsimp [S]; infer_instance) |
| 53 | |
| 54 | /-- An epimorphism of nonnegative cochain complexes with acyclic kernel is a quasi-isomorphism. -/ |
| 55 | lemma quasiIso_of_epi_of_kernel_acyclic |
| 56 | {A B : CochainComplex C ℕ} (f : A ⟶ B) [Epi f] |
| 57 | (h : (kernel f).Acyclic) : QuasiIso f := by |
| 58 | rw [quasiIso_iff] |
| 59 | intro n |
| 60 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 61 | let S := ShortComplex.mk (kernel.ι f) f (kernel.condition f) |
| 62 | have hS : S.ShortExact := { exact := ShortComplex.kernelSequence_exact f } |
| 63 | have hmono : Mono (homologyMap f n) := |
| 64 | (hS.homology_exact₂ n).mono_g ((h n).isZero_homology.eq_of_src _ _) |
| 65 | have hepi : Epi (homologyMap f n) := |
| 66 | (hS.homology_exact₃ n (n + 1) (by simp)).epi_f |
| 67 | ((h (n + 1)).isZero_homology.eq_of_tgt _ _) |
| 68 | exact @isIso_of_mono_of_epi C _ _ _ _ (homologyMap f n) hmono hepi |
| 69 | |
| 70 | end HomologicalComplex |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.Algebra.Homology.KernelAcyclic |