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.Algebra.Homology.Notation |
| 7 | import OAI.AlgebraicTopology.Support.DerivedSectionsOn |
| 8 | import OAI.AlgebraicTopology.Sheaf.InjectiveFlasque |
| 9 | import OAI.Algebra.Homology.DerivedCategoryMapOf |
| 10 | |
| 11 | /-! # Derived Sections Localization -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.TopCat |
| 18 | open _root_.TopCat.Sheaf |
| 19 | |
| 20 | /-! |
| 21 | # The localization sequence on injective coefficient complexes |
| 22 | |
| 23 | For an injective coefficient sheaf, the kernel defining sections supported outside `U` fits |
| 24 | into a short exact sequence with the coefficient sheaf and its restriction-pushforward, with |
| 25 | surjectivity coming from flasqueness of injective sheaves. The sequence stays short exact |
| 26 | after evaluation on an arbitrary open set, giving the complex of supported sections in the |
| 27 | localization calculation. The comparison with the mapping cocone is a quasi-isomorphism |
| 28 | normalized by its projection to the coefficient complex, and the resulting isomorphisms are |
| 29 | built from the `D⁺` right-derived functors and their canonical units on bounded-below |
| 30 | injective models, then displayed in `D` along the full inclusion `D⁺ → D`. |
| 31 | |
| 32 | Identifying these fibers with the constant-rational restriction-cone model requires a normalized |
| 33 | comparison between restriction of the ambient injective model and an independently chosen |
| 34 | injective resolution on the complement. That comparison is a separate statement. |
| 35 | -/ |
| 36 | |
| 37 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 38 | |
| 39 | universe u |
| 40 | |
| 41 | variable (X : TopCat.{u}) (U : Opens X) |
| 42 | |
| 43 | /-- Restriction of a flasque coefficient sheaf is surjective on every open set. -/ |
| 44 | instance toOpenRestrictionPushforward_app_epi (F : Sheaf AddCommGrpCat.{u} X) |
| 45 | [F.IsFlasque] (V : Opens X) : |
| 46 | Epi (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom.app (op V)) := by |
| 47 | change Epi (F.obj.map _) |
| 48 | infer_instance |
| 49 | |
| 50 | instance toOpenRestrictionPushforward_epi (F : Sheaf AddCommGrpCat.{u} X) |
| 51 | [F.IsFlasque] : Epi ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F) := by |
| 52 | let : ∀ V, Epi (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom.app V) := |
| 53 | fun V => toOpenRestrictionPushforward_app_epi X U F V.unop |
| 54 | have : Epi ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom := |
| 55 | NatTrans.epi_of_epi_app _ |
| 56 | exact (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat).epi_of_epi_map this |
| 57 | |
| 58 | /-- Let `X` be a topological space and `V ⊆ X` open. This functor sends a sheaf of abelian groups |
| 59 | `F` to its group of sections `F(V)` and evaluates sheaf morphisms on `V`. -/ |
| 60 | def supportEvaluation (V : Opens X) : Sheaf AddCommGrpCat.{u} X ⥤ AddCommGrpCat.{u} := |
| 61 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat ⋙ |
| 62 | (evaluation _ AddCommGrpCat).obj (op V) |
| 63 | |
| 64 | instance (V : Opens X) : (supportEvaluation X V).Additive where |
| 65 | map_add := by intros; rfl |
| 66 | |
| 67 | set_option backward.isDefEq.respectTransparency false in |
| 68 | instance (V : Opens X) : |
| 69 | PreservesLimitsOfShape WalkingParallelPair (supportEvaluation X V) := |
| 70 | comp_preservesLimitsOfShape |
| 71 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) |
| 72 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op V)) |
| 73 | |
| 74 | instance : (DerivedSections.TopCat.Sheaf.openRestrictionPushforward X U).Additive where |
| 75 | map_add := by intros; rfl |
| 76 | |
| 77 | /-- Let `X` be a topological space, `U ⊆ X` open, and `K` an integer-indexed complex of sheaves of |
| 78 | abelian groups. This is the sequence `Γ_{X \ U}(K) → K → j_*(K|_U)`, formed in every degree, |
| 79 | where `j: U → X` is inclusion. The first map includes sections vanishing on `U`; the second |
| 80 | restricts sections to `U`, so their composite is zero. -/ |
| 81 | def supportRestrictionComplexShortComplex |
| 82 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) : |
| 83 | -- The sequence `Γ_{X \ U}(K) → K → j_*(K|_U)`. |
| 84 | ShortComplex (CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) := |
| 85 | ShortComplex.mk |
| 86 | (show ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj K ⟶ K from |
| 87 | { f n := (DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app (K.X n) |
| 88 | comm' i j h := ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).naturality (K.d i j)).symm }) |
| 89 | (show K ⟶ ((DerivedSections.TopCat.Sheaf.openRestrictionPushforward X U).mapHomologicalComplex ℤᵘᵖ).obj K from |
| 90 | { f n := (DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app (K.X n) |
| 91 | comm' i j h := ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).naturality (K.d i j)).symm }) |
| 92 | (by ext n; exact DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion_restriction X U (K.X n)) |
| 93 | |
| 94 | /-- Let `X` be a topological space, `U` and `V` open subsets, and `K` an integer-indexed complex of |
| 95 | sheaves of abelian groups on `X`. This is the sequence of complexes `Γ_{X \ U}(V, K) → K(V) → |
| 96 | (j_*(K|_U))(V)`, obtained by taking sections on `V`. The first term consists of sections |
| 97 | vanishing on `V ∩ U`, and the last term identifies with `K(V ∩ U)`. -/ |
| 98 | def supportRestrictionSectionsComplexShortComplex (V : Opens X) |
| 99 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) : |
| 100 | ShortComplex (CochainComplex AddCommGrpCat.{u} ℤ) := |
| 101 | (supportRestrictionComplexShortComplex X U K).map |
| 102 | ((supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ) |
| 103 | |
| 104 | local instance derivedSupportLocalizationSheafDerivedCategory : |
| 105 | HasDerivedCategory (Sheaf AddCommGrpCat.{u} X) := |
| 106 | HasDerivedCategory.standard (Sheaf AddCommGrpCat.{u} X) |
| 107 | |
| 108 | local instance derivedSupportLocalizationGroupDerivedCategory : HasDerivedCategory AddCommGrpCat.{u} := |
| 109 | HasDerivedCategory.standard AddCommGrpCat.{u} |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf |