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 OAI.AlgebraicTopology.Singular.SheafCochainRestriction |
| 18 | import OAI.AlgebraicTopology.Singular.SheafSubdivisionCochain |
| 19 | |
| 20 | /-! # Global Restriction -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.GlobalRestriction |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | # Global singular restriction |
| 28 | |
| 29 | This file identifies the top-open comparison with the chosen sheafification unit and proves |
| 30 | that global singular restriction commutes strictly with that unit. This is the naturality square |
| 31 | needed to compare a support cone built from singular-cochain sheaves with the corresponding raw |
| 32 | singular-cochain cone. |
| 33 | -/ |
| 34 | |
| 35 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 36 | |
| 37 | variable (R : Type) [CommRing R] {U X : TopCat.{0}} (j : U ⟶ X) |
| 38 | |
| 39 | /-- Restriction of the raw singular-cochain presheaf complexes. -/ |
| 40 | def singularRawRestrictionComplex : |
| 41 | SheafCochain.singularCochainPresheafComplex R X ⟶ |
| 42 | ((Functor.whiskeringLeft _ _ _).obj (Opens.map j).op).mapHomologicalComplex |
| 43 | (ComplexShape.up ℕ) |>.obj (SheafCochain.singularCochainPresheafComplex R U) where |
| 44 | f n := SheafCochainRestriction.singularRestrictionToRawPushforward R j n |
| 45 | comm' i k hik := by |
| 46 | obtain rfl := hik |
| 47 | rw [SheafCochain.singularCochainPresheafComplex_d, Functor.mapHomologicalComplex_obj_d, |
| 48 | SheafCochain.singularCochainPresheafComplex_d] |
| 49 | exact (SheafCochainRestriction.singularRestrictionToRawPushforward_coboundary R j i).symm |
| 50 | |
| 51 | /-- Raw singular cochains on the inverse image of the top open. -/ |
| 52 | def globalRawPushforwardSingularCochainComplex : CochainComplex AddCommGrpCat ℕ := |
| 53 | ((((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op (⊤ : Opens X))).mapHomologicalComplex |
| 54 | (ComplexShape.up ℕ)).obj |
| 55 | ((((Functor.whiskeringLeft _ _ _).obj (Opens.map j).op).mapHomologicalComplex |
| 56 | (ComplexShape.up ℕ)).obj (SheafCochain.singularCochainPresheafComplex R U))) |
| 57 | |
| 58 | /-- Global sections of the pushforward singular-cochain sheaf complex. -/ |
| 59 | def globalPushforwardSingularCochainSheafComplex : CochainComplex AddCommGrpCat ℕ := |
| 60 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 61 | (ComplexShape.up ℕ)).obj |
| 62 | (((TopCat.Sheaf.forget AddCommGrpCat X).mapHomologicalComplex |
| 63 | (ComplexShape.up ℕ)).obj |
| 64 | (((TopCat.Sheaf.pushforward AddCommGrpCat j).mapHomologicalComplex |
| 65 | (ComplexShape.up ℕ)).obj (SheafCochain.singularCochainSheafComplex R U))) |
| 66 | |
| 67 | /-- Restriction of raw global singular cochains to the inverse image of the top open. -/ |
| 68 | def globalRawSingularRestriction : |
| 69 | SheafSubdivisionCochain.globalRawSingularCochainComplex R X ⟶ |
| 70 | globalRawPushforwardSingularCochainComplex R j := |
| 71 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 72 | (ComplexShape.up ℕ)).map (singularRawRestrictionComplex R j) |
| 73 | |
| 74 | /-- Restriction on the global-section complexes of singular-cochain sheaves. -/ |
| 75 | def globalSingularSheafRestriction : |
| 76 | SheafSubdivisionCochain.globalSingularCochainSheafComplex R X ⟶ |
| 77 | globalPushforwardSingularCochainSheafComplex R j := |
| 78 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 79 | (ComplexShape.up ℕ)).map |
| 80 | (((TopCat.Sheaf.forget AddCommGrpCat X).mapHomologicalComplex |
| 81 | (ComplexShape.up ℕ)).map (SheafCochainRestriction.singularRestrictionSheafComplex R j)) |
| 82 | |
| 83 | /-- The sheafification unit evaluated after restriction to the inverse image of the top open. -/ |
| 84 | def globalRawPushforwardToSingularSheaf : |
| 85 | globalRawPushforwardSingularCochainComplex R j ⟶ |
| 86 | globalPushforwardSingularCochainSheafComplex R j := |
| 87 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 88 | (ComplexShape.up ℕ)).map |
| 89 | ((((Functor.whiskeringLeft _ _ _).obj (Opens.map j).op).mapHomologicalComplex |
| 90 | (ComplexShape.up ℕ)).map (SheafCochain.singularCochainSheafificationUnit R U)) |
| 91 | |
| 92 | /-- The double-plus presentation of the comparison is the chosen sheafification unit in each |
| 93 | degree. -/ |
| 94 | lemma topOpenToGlobalSingularCochainSheafComplex_f (n : ℕ) : |
| 95 | (SheafSubdivisionCochain.topOpenToGlobalSingularCochainSheafComplex R X).f n = |
| 96 | (toSheafify (Opens.grothendieckTopology X) |
| 97 | (SheafCochain.singularCochainPresheaf R X n)).app (.op ⊤) := by |
| 98 | change ((SheafSubdivisionCochain.singularCochainToPlusPlusPresheafComplex R X).f n ≫ |
| 99 | (SheafSubdivisionCochain.singularCochainPlusPlusPresheafComplexIsoSheafComplex R X).hom.f n).app |
| 100 | (.op ⊤) = _ |
| 101 | rw [SheafSubdivisionCochain.singularCochainToPlusPlusPresheafComplex_f] |
| 102 | change ((Opens.grothendieckTopology X).toSheafify |
| 103 | (SheafCochain.singularCochainPresheaf R X n) ≫ |
| 104 | (plusPlusIsoSheafify (Opens.grothendieckTopology X) |
| 105 | AddCommGrpCat (SheafCochain.singularCochainPresheaf R X n)).hom).app (.op ⊤) = _ |
| 106 | rw [toSheafify_plusPlusIsoSheafify_hom] |
| 107 | |
| 108 | /-- Global restriction commutes strictly with sheafification. -/ |
| 109 | lemma globalSingularSheafRestriction_naturality : |
| 110 | SheafSubdivisionCochain.topOpenToGlobalSingularCochainSheafComplex R X ≫ |
| 111 | globalSingularSheafRestriction R j = |
| 112 | globalRawSingularRestriction R j ≫ |
| 113 | globalRawPushforwardToSingularSheaf R j := by |
| 114 | apply HomologicalComplex.Hom.ext |
| 115 | funext n |
| 116 | rw [HomologicalComplex.comp_f, HomologicalComplex.comp_f, |
| 117 | topOpenToGlobalSingularCochainSheafComplex_f] |
| 118 | exact congrArg (fun f ↦ f.app (.op ⊤)) |
| 119 | (SheafCochainRestriction.toSheafify_comp_singularRestrictionSheaf R j n) |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicTopology.Singular.GlobalRestriction |