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.SectionRestrictionIs |
| 8 | import OAI.Algebra.Homology.DerivedCategoryConeNaturality |
| 9 | import OAI.Algebra.Homology.MappingConeMapNaturality |
| 10 | |
| 11 | /-! # Section Restriction Cone Naturality -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicTopology.Support.SectionRestrictionConeNaturality.TopCat.Sheaf |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.TopCat |
| 18 | open _root_.TopCat.Sheaf |
| 19 | |
| 20 | /-! |
| 21 | # Restriction naturality of the supported-section kernel comparison |
| 22 | |
| 23 | Every map below is induced by the restriction of sheaf sections. In |
| 24 | particular the short-exact-sequence lift is the positive canonical lift; its |
| 25 | naturality is established before passing to homology or sheafification. |
| 26 | -/ |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | variable (X : TopCat.{u}) |
| 33 | |
| 34 | /-- Section restriction around a rectangle of open inclusions. -/ |
| 35 | lemma sectionComplexRestriction_square {I : Type*} (c : ComplexShape I) |
| 36 | (K : HomologicalComplex (Sheaf AddCommGrpCat.{u} X) c) |
| 37 | {V W V' W' : Opens X} (i : W ⟶ V) (i' : W' ⟶ V') |
| 38 | (a : V' ⟶ V) (b : W' ⟶ W) : |
| 39 | SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X c K i ≫ SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X c K b = |
| 40 | SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X c K a ≫ SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X c K i' := by |
| 41 | apply HomologicalComplex.Hom.ext |
| 42 | funext n |
| 43 | change (K.X n).obj.map i.op ≫ (K.X n).obj.map b.op = |
| 44 | (K.X n).obj.map a.op ≫ (K.X n).obj.map i'.op |
| 45 | rw [← Functor.map_comp, ← Functor.map_comp] |
| 46 | congr 1 |
| 47 | |
| 48 | /-- Let `K` be an integer-indexed complex of sheaves of abelian groups on a topological space `X`. |
| 49 | For nested opens `W ⊆ V`, `W′ ⊆ V′`, with `V′ ⊆ V` and `W′ ⊆ W`, restriction induces this map |
| 50 | `Cone(K(V) → K(W)) → Cone(K(V′) → K(W′))`. -/ |
| 51 | def sectionComplexRestrictionConeMap |
| 52 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 53 | {V W V' W' : Opens X} (i : W ⟶ V) (i' : W' ⟶ V') |
| 54 | (a : V' ⟶ V) (b : W' ⟶ W) : |
| 55 | CochainComplex.mappingCone (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K i) ⟶ |
| 56 | CochainComplex.mappingCone (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K i') := |
| 57 | CochainComplex.mappingCone.map _ _ |
| 58 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K a) |
| 59 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K b) |
| 60 | (sectionComplexRestriction_square X ℤᵘᵖ K i i' a b) |
| 61 | |
| 62 | variable (U : Opens X) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 63 | {V W : Opens X} (a : W ⟶ V) |
| 64 | |
| 65 | /-- Let `K` be an integer-indexed complex of sheaves of abelian groups on a topological space `X`, |
| 66 | with `U` open and `W ⊆ V` open. This restricts all three complexes in `Γ_{X \ U}(V,K) → K(V) → |
| 67 | K(V ∩ U)` to the corresponding complexes over `W`. -/ |
| 68 | def supportRestrictionSectionsComplexMap : |
| 69 | DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K ⟶ |
| 70 | DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U W K where |
| 71 | τ₁ := SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ |
| 72 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionComplexShortComplex X U K).X₁ a |
| 73 | τ₂ := SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K a |
| 74 | τ₃ := SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ |
| 75 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionComplexShortComplex X U K).X₃ a |
| 76 | comm₁₂ := (((SectionRestrictionCone.TopCat.Sheaf.supportEvaluationRestriction X a).mapHomologicalComplex ℤᵘᵖ).naturality |
| 77 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionComplexShortComplex X U K).f).symm |
| 78 | comm₂₃ := (((SectionRestrictionCone.TopCat.Sheaf.supportEvaluationRestriction X a).mapHomologicalComplex ℤᵘᵖ).naturality |
| 79 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionComplexShortComplex X U K).g).symm |
| 80 | |
| 81 | /-- The pushforward/intersection identification commutes with restriction. -/ |
| 82 | @[reassoc] |
| 83 | lemma supportedOutsideIntersectionIso_naturality (F : Sheaf AddCommGrpCat.{u} X) : |
| 84 | ((DerivedSections.TopCat.Sheaf.openRestrictionPushforward X U).obj F).obj.map a.op ≫ |
| 85 | (DerivedSections.TopCat.Sheaf.supportedOutsideIntersectionIso X U W F).hom = |
| 86 | (DerivedSections.TopCat.Sheaf.supportedOutsideIntersectionIso X U V F).hom ≫ |
| 87 | F.obj.map (homOfLE (inf_le_inf_right U (leOfHom a))).op := by |
| 88 | change F.obj.map _ ≫ F.obj.map _ = F.obj.map _ ≫ F.obj.map _ |
| 89 | rw [← Functor.map_comp, ← Functor.map_comp] |
| 90 | congr 1 |
| 91 | |
| 92 | /-- Naturality of the intersection identification on coefficient complexes. -/ |
| 93 | @[reassoc] |
| 94 | lemma supportRestrictionSectionsIntersectionIso_naturality : |
| 95 | (supportRestrictionSectionsComplexMap X U K a).τ₃ ≫ |
| 96 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsIntersectionIso X U W K).hom = |
| 97 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsIntersectionIso X U V K).hom ≫ |
| 98 | SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X ℤᵘᵖ K |
| 99 | (homOfLE (inf_le_inf_right U (leOfHom a))) := |
| 100 | HomologicalComplex.Hom.ext |
| 101 | (funext fun n ↦ supportedOutsideIntersectionIso_naturality X U a (K.X n)) |
| 102 | |
| 103 | set_option backward.defeqAttrib.useBackward true in |
| 104 | set_option backward.isDefEq.respectTransparency false in |
| 105 | /-- The cone identification is a standard cone map with the specified components. -/ |
| 106 | lemma supportRestrictionSectionsConeIso_hom (V : Opens X) : |
| 107 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsConeIso X U V K).hom = |
| 108 | CochainComplex.mappingCone.map _ _ (𝟙 _) |
| 109 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsIntersectionIso X U V K).hom |
| 110 | (by simpa using SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsIntersectionIso_restriction X U V K) := |
| 111 | Algebra.Homology.MappingConeMapNaturality.CochainComplex.mappingCone.mapArrowHom_eq_map _ _ _ _ _ |
| 112 | |
| 113 | set_option backward.defeqAttrib.useBackward true in |
| 114 | set_option backward.isDefEq.respectTransparency false in |
| 115 | /-- The cone identification respects restriction of the entire supported-section sequence. -/ |
| 116 | @[reassoc] |
| 117 | lemma supportRestrictionSectionsConeIso_naturality : |
| 118 | CochainComplex.mappingCone.map _ _ |
| 119 | (supportRestrictionSectionsComplexMap X U K a).τ₂ |
| 120 | (supportRestrictionSectionsComplexMap X U K a).τ₃ |
| 121 | (supportRestrictionSectionsComplexMap X U K a).comm₂₃.symm ≫ |
| 122 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsConeIso X U W K).hom = |
| 123 | (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsConeIso X U V K).hom ≫ |
| 124 | sectionComplexRestrictionConeMap X K (Opens.infLELeft V U) (Opens.infLELeft W U) |
| 125 | a (homOfLE (inf_le_inf_right U (leOfHom a))) := by |
| 126 | rw [supportRestrictionSectionsConeIso_hom, supportRestrictionSectionsConeIso_hom] |
| 127 | dsimp only [sectionComplexRestrictionConeMap] |
| 128 | rw [← CochainComplex.mappingCone.map_comp, ← CochainComplex.mappingCone.map_comp] |
| 129 | congr 1 |
| 130 | exact supportRestrictionSectionsIntersectionIso_naturality X U K a |
| 131 | |
| 132 | set_option backward.defeqAttrib.useBackward true in |
| 133 | set_option backward.isDefEq.respectTransparency false in |
| 134 | /-- The flasque kernel-to-cone comparison is natural on homology in the ambient open. -/ |
| 135 | @[reassoc] |
| 136 | lemma supportedSectionHomologyIsoRestrictionCone_naturality |
| 137 | (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) : |
| 138 | HomologicalComplex.homologyMap (supportRestrictionSectionsComplexMap X U K a).τ₁ n ≫ |
| 139 | (SectionRestrictionCone.TopCat.Sheaf.supportedSectionHomologyIsoRestrictionCone X U W K hK n).hom = |
| 140 | (SectionRestrictionCone.TopCat.Sheaf.supportedSectionHomologyIsoRestrictionCone X U V K hK n).hom ≫ |
| 141 | HomologicalComplex.homologyMap |
| 142 | (sectionComplexRestrictionConeMap X K (Opens.infLELeft V U) (Opens.infLELeft W U) |
| 143 | a (homOfLE (inf_le_inf_right U (leOfHom a)))) (n - 1) := by |
| 144 | let S := DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K |
| 145 | let T := DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U W K |
| 146 | let hS := FlasqueComparison.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex_shortExact_of_flasque X U V K hK |
| 147 | let hT := FlasqueComparison.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex_shortExact_of_flasque X U W K hK |
| 148 | let H := HomologicalComplex.homologyFunctor AddCommGrpCat.{u} ℤᵘᵖ (n - 1) |
| 149 | change HomologicalComplex.homologyMap (supportRestrictionSectionsComplexMap X U K a).τ₁ n ≫ |
| 150 | ((Algebra.Homology.CoconeShortExactNaturality.CochainComplex.mappingCocone.shortExactHomologyIsoCone T hT (n - 1) n (by omega)).hom ≫ |
| 151 | H.map (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsConeIso X U W K).hom) = |
| 152 | ((Algebra.Homology.CoconeShortExactNaturality.CochainComplex.mappingCocone.shortExactHomologyIsoCone S hS (n - 1) n (by omega)).hom ≫ |
| 153 | H.map (SectionRestrictionCone.TopCat.Sheaf.supportRestrictionSectionsConeIso X U V K).hom) ≫ _ |
| 154 | rw [Algebra.Homology.DerivedCategoryConeNaturality.CochainComplex.mappingCocone.shortExactHomologyIsoCone_naturality_assoc |
| 155 | (supportRestrictionSectionsComplexMap X U K a) hS hT (n - 1) n (by omega)] |
| 156 | simp only [Category.assoc] |
| 157 | congr 1 |
| 158 | change H.map _ ≫ H.map _ = H.map _ ≫ H.map _ |
| 159 | rw [← H.map_comp, ← H.map_comp, supportRestrictionSectionsConeIso_naturality] |
| 160 | |
| 161 | /-- The canonical grading cone comparison is the map of its two grading isomorphisms. -/ |
| 162 | lemma sectionComplexRestrictionExtendConeIso_hom |
| 163 | (L : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℕ) |
| 164 | {V W : Opens X} (i : W ⟶ V) : |
| 165 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestrictionExtendConeIso X L i).hom = |
| 166 | CochainComplex.mappingCone.map _ _ |
| 167 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V) L |
| 168 | ComplexShape.embeddingUpNat).hom |
| 169 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W) L |
| 170 | ComplexShape.embeddingUpNat).hom |
| 171 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction_extend X L i) := |
| 172 | Algebra.Homology.MappingConeMapNaturality.CochainComplex.mappingCone.mapArrowHom_eq_map _ _ _ _ _ |
| 173 | |
| 174 | /-- The canonical grading cone comparison respects the restriction rectangle. -/ |
| 175 | @[reassoc] |
| 176 | lemma sectionComplexRestrictionExtendConeIso_naturality |
| 177 | (L : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℕ) |
| 178 | {V W V' W' : Opens X} (i : W ⟶ V) (i' : W' ⟶ V') |
| 179 | (a : V' ⟶ V) (b : W' ⟶ W) : |
| 180 | sectionComplexRestrictionConeMap X (L.extend ComplexShape.embeddingUpNat) i i' a b ≫ |
| 181 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestrictionExtendConeIso X L i').hom = |
| 182 | (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestrictionExtendConeIso X L i).hom ≫ |
| 183 | CochainComplex.mappingCone.map _ _ |
| 184 | (HomologicalComplex.extendMap (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X (.up ℕ) L a) |
| 185 | ComplexShape.embeddingUpNat) |
| 186 | (HomologicalComplex.extendMap (SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction X (.up ℕ) L b) |
| 187 | ComplexShape.embeddingUpNat) |
| 188 | (by rw [← HomologicalComplex.extendMap_comp, ← HomologicalComplex.extendMap_comp, |
| 189 | sectionComplexRestriction_square X (.up ℕ) L i i' a b]) := by |
| 190 | rw [sectionComplexRestrictionExtendConeIso_hom, sectionComplexRestrictionExtendConeIso_hom] |
| 191 | dsimp only [sectionComplexRestrictionConeMap] |
| 192 | rw [← CochainComplex.mappingCone.map_comp, ← CochainComplex.mappingCone.map_comp] |
| 193 | congr 1 <;> exact SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction_extend X L _ |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI.AlgebraicTopology.Support.SectionRestrictionConeNaturality.TopCat.Sheaf |