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.FlasqueSections |
| 8 | import OAI.AlgebraicTopology.Support.FlasqueComparison |
| 9 | import OAI.Algebra.Homology.MapExtend |
| 10 | |
| 11 | /-! # Section Restriction Cone -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicTopology.Support.SectionRestrictionCone.TopCat.Sheaf |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.TopCat |
| 18 | open _root_.TopCat.Sheaf |
| 19 | |
| 20 | /-! |
| 21 | # Supported-section kernels and open restriction cones |
| 22 | |
| 23 | For a termwise flasque coefficient complex, the kernel-defined supported section complex |
| 24 | computes the cone of restriction from `V` to `V ∩ U`, with the conventional degree shift. |
| 25 | The arrow identification displays the open-intersection map. |
| 26 | -/ |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | variable (X : TopCat.{u}) |
| 33 | |
| 34 | /-- Let `X` be a topological space and `W ⊆ V` open subsets. This natural transformation sends a |
| 35 | sheaf of abelian groups `F` to its restriction map `F(V) → F(W)`. -/ |
| 36 | def supportEvaluationRestriction {V W : Opens X} (i : W ⟶ V) : |
| 37 | DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V ⟶ DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W where |
| 38 | app F := F.obj.map i.op |
| 39 | naturality _F _G f := (f.hom.naturality i.op).symm |
| 40 | |
| 41 | /-- Let `X` be a topological space, `W ⊆ V` open subsets, and `K` a complex of sheaves of abelian |
| 42 | groups with any specified grading. This map of section complexes `K(V) → K(W)` restricts |
| 43 | sections in each degree. -/ |
| 44 | def sectionComplexRestriction {I : Type*} (c : ComplexShape I) |
| 45 | (K : HomologicalComplex (Sheaf AddCommGrpCat.{u} X) c) |
| 46 | {V W : Opens X} (i : W ⟶ V) : |
| 47 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex c).obj K ⟶ |
| 48 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).mapHomologicalComplex c).obj K := |
| 49 | ((supportEvaluationRestriction X i).mapHomologicalComplex c).app K |
| 50 | |
| 51 | /-- Section restriction commutes with extension from natural to integer degrees. -/ |
| 52 | theorem sectionComplexRestriction_extend |
| 53 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℕ) |
| 54 | {V W : Opens X} (i : W ⟶ V) : |
| 55 | sectionComplexRestriction X ℤᵘᵖ (K.extend ComplexShape.embeddingUpNat) i ≫ |
| 56 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W) K |
| 57 | ComplexShape.embeddingUpNat).hom = |
| 58 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V) K |
| 59 | ComplexShape.embeddingUpNat).hom ≫ |
| 60 | HomologicalComplex.extendMap (sectionComplexRestriction X (.up ℕ) K i) |
| 61 | ComplexShape.embeddingUpNat := |
| 62 | Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso_natTrans (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V) K |
| 63 | ComplexShape.embeddingUpNat (supportEvaluationRestriction X i) |
| 64 | |
| 65 | /-- Let `X` be a topological space, `W ⊆ V` open subsets, and `K` a nonnegative complex of sheaves |
| 66 | of abelian groups. The two ways to extend the restriction map `K(V) → K(W)` by zero to negative |
| 67 | degrees give canonically isomorphic mapping cones: extend the sheaf complex before taking |
| 68 | sections, or extend the resulting section complexes. -/ |
| 69 | def sectionComplexRestrictionExtendConeIso |
| 70 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℕ) |
| 71 | {V W : Opens X} (i : W ⟶ V) : |
| 72 | CochainComplex.mappingCone |
| 73 | (sectionComplexRestriction X ℤᵘᵖ (K.extend ComplexShape.embeddingUpNat) i) ≅ |
| 74 | CochainComplex.mappingCone |
| 75 | (HomologicalComplex.extendMap (sectionComplexRestriction X (.up ℕ) K i) |
| 76 | ComplexShape.embeddingUpNat) := |
| 77 | HomologicalComplex.homotopyCofiber.mapArrowIso _ _ |
| 78 | (fun j => ⟨j - 1, ComplexShape.up_mk _ _ (by omega)⟩) |
| 79 | (Arrow.isoMk |
| 80 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V) K |
| 81 | ComplexShape.embeddingUpNat) |
| 82 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W) K |
| 83 | ComplexShape.embeddingUpNat) |
| 84 | (sectionComplexRestriction_extend X K i).symm) |
| 85 | |
| 86 | variable (U V : Opens X) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 87 | |
| 88 | /-- Let `X` be a topological space, `U` and `V` open subsets, and `K` an integer-indexed complex of |
| 89 | sheaves of abelian groups on `X`. For `j: U → X`, this is the degreewise identification `Γ(V, |
| 90 | j_*(K|_U)) ≅ K(V ∩ U)`. It identifies the last complex in the sequence of supported sections, |
| 91 | all sections, and restricted sections. -/ |
| 92 | def supportRestrictionSectionsIntersectionIso : |
| 93 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K).X₃ ≅ |
| 94 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X (V ⊓ U)).mapHomologicalComplex ℤᵘᵖ).obj K := |
| 95 | HomologicalComplex.Hom.isoOfComponents |
| 96 | (fun n => DerivedSections.TopCat.Sheaf.supportedOutsideIntersectionIso X U V (K.X n)) |
| 97 | (fun n m _ => (K.d n m).hom.naturality |
| 98 | (eqToHom (congrArg op (Opens.functor_map_eq_inf U V)))) |
| 99 | |
| 100 | /-- The intersection identification preserves the restriction arrow. -/ |
| 101 | theorem supportRestrictionSectionsIntersectionIso_restriction : |
| 102 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K).g ≫ |
| 103 | (supportRestrictionSectionsIntersectionIso X U V K).hom = |
| 104 | sectionComplexRestriction X ℤᵘᵖ K (Opens.infLELeft V U) := |
| 105 | HomologicalComplex.Hom.ext (funext fun n ↦ |
| 106 | FlasqueSections.TopCat.Sheaf.toOpenRestrictionPushforward_intersection X U V (K.X n)) |
| 107 | |
| 108 | set_option backward.isDefEq.respectTransparency false in |
| 109 | set_option backward.defeqAttrib.useBackward true in |
| 110 | /-- Let `X` be a topological space, `U` and `V` open subsets, and `K` an integer-indexed complex of |
| 111 | sheaves of abelian groups on `X`. The equality `Γ(V, j_*(K|_U)) ≅ K(V ∩ U)`, for `j: U → X`, |
| 112 | induces this isomorphism from the cone of `K(V) → Γ(V, j_*(K|_U))` to the cone of restriction |
| 113 | `K(V) → K(V ∩ U)`. -/ |
| 114 | def supportRestrictionSectionsConeIso : |
| 115 | CochainComplex.mappingCone (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K).g ≅ |
| 116 | CochainComplex.mappingCone |
| 117 | (sectionComplexRestriction X ℤᵘᵖ K (Opens.infLELeft V U)) := |
| 118 | HomologicalComplex.homotopyCofiber.mapArrowIso _ _ |
| 119 | (fun j => ⟨j - 1, ComplexShape.up_mk _ _ (by omega)⟩) |
| 120 | (Arrow.isoMk (Iso.refl _) (supportRestrictionSectionsIntersectionIso X U V K) |
| 121 | (by simpa using (supportRestrictionSectionsIntersectionIso_restriction X U V K).symm)) |
| 122 | |
| 123 | set_option backward.isDefEq.respectTransparency false in |
| 124 | set_option backward.defeqAttrib.useBackward true in |
| 125 | /-- Let `X` be a topological space, `U` and `V` open subsets, and `K` an integer-indexed complex of |
| 126 | sheaves of abelian groups on `X`. Assume every term of `K` is flasque, so its restriction maps |
| 127 | are surjective. Then sections on `V` vanishing on `V ∩ U` form the kernel of a surjective map of |
| 128 | complexes. This gives the isomorphism `H^n(Γ_{X \ U}(V, K)) ≅ H^{n-1}(Cone(K(V) → K(V ∩ U)))`. -/ |
| 129 | def supportedSectionHomologyIsoRestrictionCone |
| 130 | (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) : |
| 131 | -- `H^n(Γ_{X \ U}(V, K)) ≅ H^{n-1}(cone(K(V) → K(V ⊓ U)))`. |
| 132 | -- `Γ_{X \ U}(V, K)`, the first term of `Γ_{X \ U}(V, K) → K(V) → K(V ⊓ U)`. |
| 133 | (DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K).X₁.homology n ≅ |
| 134 | (CochainComplex.mappingCone |
| 135 | -- The restriction `K(V) → K(V ⊓ U)`. |
| 136 | (sectionComplexRestriction X ℤᵘᵖ K (Opens.infLELeft V U))).homology (n - 1) := |
| 137 | let S := DerivedSectionsLocalization.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex X U V K |
| 138 | letI : QuasiIso (Algebra.Homology.MappingCoconeShortExact.CochainComplex.mappingCocone.shiftedLiftShortComplex S) := |
| 139 | Algebra.Homology.DerivedCategoryMapOf.CochainComplex.mappingCocone.quasiIso_shiftedLiftShortComplex S |
| 140 | (FlasqueComparison.TopCat.Sheaf.supportRestrictionSectionsComplexShortComplex_shortExact_of_flasque X U V K hK) |
| 141 | let e := ((HomologicalComplex.homologyFunctor AddCommGrpCat ℤᵘᵖ 0).shiftIso |
| 142 | 1 (n - 1) n (by omega)).app S.X₁ |
| 143 | e.symm ≪≫ |
| 144 | asIso (HomologicalComplex.homologyMap |
| 145 | (Algebra.Homology.MappingCoconeShortExact.CochainComplex.mappingCocone.shiftedLiftShortComplex S) (n - 1)) ≪≫ |
| 146 | HomologicalComplex.homologyMapIso (supportRestrictionSectionsConeIso X U V K) (n - 1) |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicTopology.Support.SectionRestrictionCone.TopCat.Sheaf |