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.Support.DerivedSectionsLocalization |
| 7 | |
| 8 | /-! # Derived Sections Exact -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicTopology.Support.DerivedSectionsExact.TopCat.Sheaf |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open _root_.TopCat |
| 15 | open _root_.TopCat.Sheaf |
| 16 | |
| 17 | /-! |
| 18 | # The localization sequence on injective coefficient complexes |
| 19 | |
| 20 | -/ |
| 21 | |
| 22 | /-! ### Constructions used only in proofs -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable (X : TopCat.{u}) (U : Opens X) |
| 29 | |
| 30 | /-- Let `U` be open in a topological space `X` and `F` a sheaf of abelian groups. This is the |
| 31 | sequence `Γ_{X \ U}(F) → F → j_*(F|_U)`, where `j: U → X` is inclusion. The maps include |
| 32 | sections vanishing on `U` and restrict to `U`. -/ |
| 33 | def supportRestrictionShortComplex (F : Sheaf AddCommGrpCat.{u} X) : |
| 34 | ShortComplex (Sheaf AddCommGrpCat.{u} X) := |
| 35 | ShortComplex.mk ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F) |
| 36 | ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F) |
| 37 | (DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion_restriction X U F) |
| 38 | |
| 39 | /-- Let `U,V` be open in a topological space `X` and `F` a sheaf of abelian groups. This sequence |
| 40 | takes sections on `V` of `Γ_{X \ U}(F) → F → j_*(F|_U)`. Under the intersection identification |
| 41 | it is `ker(F(V) → F(V ∩ U)) → F(V) → F(V ∩ U)`. -/ |
| 42 | def supportRestrictionSectionsShortComplex (V : Opens X) |
| 43 | (F : Sheaf AddCommGrpCat.{u} X) : ShortComplex AddCommGrpCat.{u} := |
| 44 | (supportRestrictionShortComplex X U F).map (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V) |
| 45 | |
| 46 | set_option backward.defeqAttrib.useBackward true in |
| 47 | set_option backward.isDefEq.respectTransparency false in |
| 48 | /-- For injective coefficients, evaluation on every open set preserves this localization |
| 49 | sequence. -/ |
| 50 | private lemma supportRestrictionSectionsShortComplex_shortExact (V : Opens X) |
| 51 | (F : Sheaf AddCommGrpCat.{u} X) [Injective F] : |
| 52 | (supportRestrictionSectionsShortComplex X U V F).ShortExact where |
| 53 | exact := ShortComplex.exact_of_f_is_kernel _ |
| 54 | (KernelFork.mapIsLimit _ (kernelIsKernel _) (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V)) |
| 55 | mono_f := mono_of_isLimit_fork |
| 56 | (KernelFork.mapIsLimit _ (kernelIsKernel _) (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V)) |
| 57 | epi_g := DerivedSectionsLocalization.TopCat.Sheaf.toOpenRestrictionPushforward_app_epi X U F V |
| 58 | |
| 59 | /-- The support/restriction sequence is short exact even after taking sections |
| 60 | on an arbitrary open set, for a termwise injective coefficient complex. -/ |
| 61 | lemma supportRestrictionSectionsComplexShortComplex_shortExact (V : Opens X) |
| 62 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) [∀ n, Injective (K.X n)] : |
| 63 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K).ShortExact := |
| 64 | HomologicalComplex.shortExact_of_degreewise_shortExact _ fun n => |
| 65 | supportRestrictionSectionsShortComplex_shortExact X U V (K.X n) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicTopology.Support.DerivedSectionsExact.TopCat.Sheaf |