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.AlgebraicTopology.Singular.SheafCochainOpenRestriction |
| 7 | import OAI.AlgebraicTopology.Singular.GlobalRestriction |
| 8 | |
| 9 | /-! # Sheaf Cochain Open Sections -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.Singular.SheafCochainOpenSections |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! # Singular cochains compute sheafified cochains on an arbitrary open -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 18 | |
| 19 | variable (R : Type) [CommRing R] (X : TopCat.{0}) |
| 20 | |
| 21 | /-- Let `R` be a commutative ring, `X` a topological space, and `V ⊆ X` open. This is the complex of |
| 22 | abelian groups `C^*(V; R)`, whose degree-`n` elements are `R`-linear functions on singular |
| 23 | `n`-chains of `V` and whose differential is dual to the boundary. -/ |
| 24 | def openRawSingularCochainComplex (V : Opens X) : CochainComplex AddCommGrpCat ℕ := |
| 25 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op V)).mapHomologicalComplex (.up ℕ)).obj |
| 26 | (SheafCochain.singularCochainPresheafComplex R X) |
| 27 | |
| 28 | /-- Let `R` be a commutative ring, `X` a topological space, and `V ⊆ X` open. This is the complex of |
| 29 | sections over `V` of the sheaves obtained by sheafifying `U ↦ C^n(U; R)` on `X`. The |
| 30 | differential is induced by singular coboundaries. -/ |
| 31 | def openSingularCochainSheafComplex (V : Opens X) : CochainComplex AddCommGrpCat ℕ := |
| 32 | ((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex (.up ℕ)).obj |
| 33 | (SheafCochain.singularCochainSheafComplex R X) |
| 34 | |
| 35 | /-- Let `R` be a commutative ring, `X` a topological space, and `V ⊆ X` open. This complex map sends |
| 36 | each singular cochain on `V` to the section it represents in the sheafification of `U ↦ C^n(U; |
| 37 | R)`. It commutes with the coboundary. -/ |
| 38 | def openRawToSingularCochainSheafComplex (V : Opens X) : |
| 39 | openRawSingularCochainComplex R X V ⟶ openSingularCochainSheafComplex R X V := |
| 40 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op V)).mapHomologicalComplex (.up ℕ)).map |
| 41 | (SheafCochain.singularCochainSheafificationUnit R X) |
| 42 | |
| 43 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. This map |
| 44 | `C^*(V; R) → C^*(W; R)` restricts a singular cochain to simplices whose images lie in `W`. -/ |
| 45 | def openRawSingularRestriction {V W : Opens X} (i : W ⟶ V) : |
| 46 | openRawSingularCochainComplex R X V ⟶ openRawSingularCochainComplex R X W := |
| 47 | (NatTrans.mapHomologicalComplex |
| 48 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat).map i.op) (.up ℕ)).app |
| 49 | (SheafCochain.singularCochainPresheafComplex R X) |
| 50 | |
| 51 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. This map |
| 52 | restricts sections of the sheafified singular cochain complex from `V` to `W` in every |
| 53 | nonnegative degree. -/ |
| 54 | def openSingularSheafRestriction {V W : Opens X} (i : W ⟶ V) : |
| 55 | openSingularCochainSheafComplex R X V ⟶ openSingularCochainSheafComplex R X W := |
| 56 | (NatTrans.mapHomologicalComplex |
| 57 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat).map i.op) (.up ℕ)).app |
| 58 | (((TopCat.Sheaf.forget AddCommGrpCat X).mapHomologicalComplex (.up ℕ)).obj |
| 59 | (SheafCochain.singularCochainSheafComplex R X)) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicTopology.Singular.SheafCochainOpenSections |