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.AlgebraicTopology.SimplicialSet.Homology.Basic |
| 18 | import Mathlib.AlgebraicTopology.SingularHomology.Basic |
| 19 | |
| 20 | /-! # Chain Complex Split -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.SimplicialSet.ChainComplexSplit |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open _root_.AlgebraicTopology |
| 27 | open _root_.SSet |
| 28 | |
| 29 | /-! |
| 30 | # Split monomorphisms of simplicial chains |
| 31 | |
| 32 | Simplicial `n`-chains are a coproduct of copies of the coefficient object indexed by the |
| 33 | `n`-simplices, so a map of simplicial sets injective on `n`-simplices induces a *split* |
| 34 | monomorphism on `n`-chains: the summands outside the image go to zero. Being split, unlike being |
| 35 | monic, is preserved by `Module.Dual` over an arbitrary coefficient ring. |
| 36 | -/ |
| 37 | |
| 38 | open _root_.CategoryTheory Limits Opposite |
| 39 | |
| 40 | open scoped Simplicial |
| 41 | |
| 42 | universe w v u |
| 43 | |
| 44 | namespace SSet |
| 45 | |
| 46 | variable {C : Type u} [Category.{v} C] [HasCoproducts.{w} C] [Preadditive C] |
| 47 | variable {X Y : SSet.{w}} (f : X ⟶ Y) (R : C) (n : ℕ) |
| 48 | |
| 49 | /-- The map on simplicial `n`-chains sending the summand of a simplex in the image of `f` to the |
| 50 | summand of a chosen preimage, and every other summand to zero. It retracts `chainComplexMap f R` |
| 51 | when `f` is injective on `n`-simplices; see `SSet.isSplitMono_chainComplexMap_f`. -/ |
| 52 | def chainComplexMapRetraction : |
| 53 | (Y.chainComplex R).X n ⟶ (X.chainComplex R).X n := |
| 54 | Cofan.IsColimit.desc (Y.isColimitChainComplexXCofan R n) fun y => |
| 55 | open Classical in |
| 56 | if h : ∃ x : X _⦋n⦌, f.app (op ⦋n⦌) x = y then X.ιChainComplex h.choose else 0 |
| 57 | |
| 58 | @[reassoc] |
| 59 | lemma ιChainComplex_comp_chainComplexMapRetraction (x : X _⦋n⦌) |
| 60 | (hf : Function.Injective (f.app (op ⦋n⦌))) : |
| 61 | Y.ιChainComplex (f.app (op ⦋n⦌) x) ≫ chainComplexMapRetraction f R n = |
| 62 | X.ιChainComplex x := by |
| 63 | have h : ∃ x' : X _⦋n⦌, f.app (op ⦋n⦌) x' = f.app (op ⦋n⦌) x := ⟨x, rfl⟩ |
| 64 | refine (Cofan.IsColimit.fac (Y.isColimitChainComplexXCofan R n) _ |
| 65 | (f.app (op ⦋n⦌) x)).trans ?_ |
| 66 | rw [dite_eq_left h, hf h.choose_spec] |
| 67 | |
| 68 | /-- A map of simplicial sets that is injective on `n`-simplices induces a split monomorphism on |
| 69 | simplicial `n`-chains. -/ |
| 70 | lemma isSplitMono_chainComplexMap_f (hf : Function.Injective (f.app (op ⦋n⦌))) : |
| 71 | IsSplitMono ((chainComplexMap f R).f n) := |
| 72 | ⟨⟨{ retraction := chainComplexMapRetraction f R n |
| 73 | id := by |
| 74 | refine chainComplex_hom_ext fun x => ?_ |
| 75 | rw [← Category.assoc, ι_chainComplexMap_f, |
| 76 | ιChainComplex_comp_chainComplexMapRetraction f R n x hf, Category.comp_id] }⟩⟩ |
| 77 | |
| 78 | end SSet |
| 79 | |
| 80 | variable {C : Type u} [Category.{v} C] [HasCoproducts.{w} C] [Preadditive C] |
| 81 | |
| 82 | /-- A monomorphism of topological spaces induces a split monomorphism on singular `n`-chains. -/ |
| 83 | lemma isSplitMono_singularChainComplexFunctor_map_f |
| 84 | {X Y : TopCat.{w}} (g : X ⟶ Y) [Mono g] (R : C) (n : ℕ) : |
| 85 | IsSplitMono ((((singularChainComplexFunctor C).obj R).map g).f n) := |
| 86 | ChainComplexSplit.SSet.isSplitMono_chainComplexMap_f (TopCat.toSSet.map g) R n <| by |
| 87 | have h : Mono ((TopCat.toSSet.map g).app (op ⦋n⦌)) := inferInstance |
| 88 | rwa [mono_iff_injective] at h |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicTopology.SimplicialSet.ChainComplexSplit |