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