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 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.Evaluation |
| 3 | |
| 4 | /-! # Relative Scalar Chains -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles |
| 11 | |
| 12 | /-! |
| 13 | # Relative singular chains with scalar coefficients |
| 14 | |
| 15 | These are the actual scalar singular chains of a pair, defined by the cokernel |
| 16 | of the map from the subspace. Their degreewise quotient description follows |
| 17 | from the genuine short exact sequence. At integral coefficients the objects |
| 18 | are definitionally the relative chain models used in the local homology |
| 19 | calculation. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicTopology |
| 23 | |
| 24 | variable (R : Type) [CommRing R] |
| 25 | |
| 26 | /-- The existing scalar singular-chain functor. -/ |
| 27 | abbrev scalarSingularChainFunctor : TopCat.{0} ⥤ ChainComplex (ModuleCat.{0} R) ℕ := |
| 28 | (singularChainComplexFunctor (ModuleCat.{0} R)).obj (ModuleCat.of R R) |
| 29 | |
| 30 | /-- The actual singular chain map of the subspace inclusion. -/ |
| 31 | abbrev scalarSubspaceChainInclusion (X : TopCat.{0}) (A : Set X) : |
| 32 | AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) (TopCat.of A) ⟶ |
| 33 | AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) X := |
| 34 | (scalarSingularChainFunctor R).map (LocalHomology.Cycles.subspaceInclusion X A) |
| 35 | |
| 36 | set_option backward.defeqAttrib.useBackward true in |
| 37 | set_option backward.isDefEq.respectTransparency false in |
| 38 | instance scalarSubspaceChainInclusion_mono (X : TopCat.{0}) (A : Set X) : |
| 39 | Mono (scalarSubspaceChainInclusion R X A) := by |
| 40 | exact Functor.map_mono |
| 41 | ((singularChainComplexFunctor (ModuleCat.{0} R)).obj (ModuleCat.of R R)) |
| 42 | (LocalHomology.Cycles.subspaceInclusion X A) |
| 43 | |
| 44 | /-- Relative scalar chains are the actual cokernel of the subspace-chain map. -/ |
| 45 | abbrev relativeScalarChains (X : TopCat.{0}) (A : Set X) : |
| 46 | ChainComplex (ModuleCat.{0} R) ℕ := |
| 47 | cokernel (scalarSubspaceChainInclusion R X A) |
| 48 | |
| 49 | /-- The actual quotient map to relative scalar chains. -/ |
| 50 | abbrev relativeScalarChainProjection (X : TopCat.{0}) (A : Set X) : |
| 51 | AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) X ⟶ relativeScalarChains R X A := |
| 52 | cokernel.π (scalarSubspaceChainInclusion R X A) |
| 53 | |
| 54 | @[reassoc (attr := simp)] |
| 55 | theorem scalarSubspaceChainInclusion_projection (X : TopCat.{0}) (A : Set X) : |
| 56 | scalarSubspaceChainInclusion R X A ≫ relativeScalarChainProjection R X A = 0 := |
| 57 | cokernel.condition _ |
| 58 | |
| 59 | /-- The short complex underlying the scalar singular-chain sequence of a pair. -/ |
| 60 | def relativeScalarChainSequence (X : TopCat.{0}) (A : Set X) : |
| 61 | ShortComplex (ChainComplex (ModuleCat.{0} R) ℕ) := |
| 62 | ShortComplex.mk (scalarSubspaceChainInclusion R X A) (relativeScalarChainProjection R X A) |
| 63 | (scalarSubspaceChainInclusion_projection R X A) |
| 64 | |
| 65 | /-- The scalar pair sequence is short exact. -/ |
| 66 | theorem relativeScalarChainSequence_shortExact (X : TopCat.{0}) (A : Set X) : |
| 67 | (relativeScalarChainSequence R X A).ShortExact := by |
| 68 | change (ShortComplex.mk (scalarSubspaceChainInclusion R X A) |
| 69 | (cokernel.π (scalarSubspaceChainInclusion R X A)) _).ShortExact |
| 70 | exact { exact := ShortComplex.cokernelSequence_exact (scalarSubspaceChainInclusion R X A) } |
| 71 | |
| 72 | /-- The actual pair sequence is short exact in each chain degree. -/ |
| 73 | theorem relativeScalarChainSequence_degreewiseShortExact |
| 74 | (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 75 | ((relativeScalarChainSequence R X A).map |
| 76 | (HomologicalComplex.eval (ModuleCat.{0} R) (ComplexShape.down ℕ) n)).ShortExact := |
| 77 | (HomologicalComplex.shortExact_iff_degreewise_shortExact _).mp |
| 78 | (relativeScalarChainSequence_shortExact R X A) n |
| 79 | |
| 80 | instance relativeScalarChainProjection_f_epi (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 81 | Epi ((relativeScalarChainProjection R X A).f n) := |
| 82 | (relativeScalarChainSequence_degreewiseShortExact R X A n).epi_g |
| 83 | |
| 84 | /-- Every relative chain is the projection of an actual absolute chain. -/ |
| 85 | theorem relativeScalarChainProjection_surjective (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 86 | Function.Surjective ((relativeScalarChainProjection R X A).f n) := |
| 87 | (ModuleCat.epi_iff_surjective _).mp inferInstance |
| 88 | |
| 89 | /-- A chain maps to zero in the relative quotient exactly when it comes from |
| 90 | the actual subspace chain complex. -/ |
| 91 | theorem relativeScalarChainProjection_ker (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 92 | LinearMap.ker ((relativeScalarChainProjection R X A).f n).hom = |
| 93 | LinearMap.range ((scalarSubspaceChainInclusion R X A).f n).hom := |
| 94 | (relativeScalarChainSequence_degreewiseShortExact R X A n).exact.moduleCat_range_eq_ker.symm |
| 95 | |
| 96 | /-- Genuine relative singular homology over the scalar coefficient ring. -/ |
| 97 | abbrev relativeScalarHomology (X : TopCat.{0}) (A : Set X) (n : ℕ) : ModuleCat.{0} R := |
| 98 | (relativeScalarChains R X A).homology n |
| 99 | |
| 100 | /-- Genuine local scalar homology is the homology relative to the punctured space. -/ |
| 101 | abbrev localScalarHomology (X : TopCat.{0}) (x : X) (n : ℕ) : ModuleCat.{0} R := |
| 102 | relativeScalarHomology R X ({x}ᶜ : Set X) n |
| 103 | |
| 104 | /-- A continuous map of pairs gives the actual map of scalar relative chains. -/ |
| 105 | def relativeScalarChainsMap {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 106 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 107 | relativeScalarChains R X A ⟶ relativeScalarChains R Y B := |
| 108 | cokernel.map (scalarSubspaceChainInclusion R X A) (scalarSubspaceChainInclusion R Y B) |
| 109 | ((scalarSingularChainFunctor R).map (LocalHomology.Cycles.subspaceMap f h)) |
| 110 | ((scalarSingularChainFunctor R).map f) (by |
| 111 | change (scalarSingularChainFunctor R).map (LocalHomology.Cycles.subspaceInclusion X A) ≫ |
| 112 | (scalarSingularChainFunctor R).map f = |
| 113 | (scalarSingularChainFunctor R).map (LocalHomology.Cycles.subspaceMap f h) ≫ |
| 114 | (scalarSingularChainFunctor R).map (LocalHomology.Cycles.subspaceInclusion Y B) |
| 115 | rw [← Functor.map_comp, ← Functor.map_comp, LocalHomology.Cycles.subspaceMap_inclusion]) |
| 116 | |
| 117 | @[reassoc (attr := simp)] |
| 118 | theorem relativeScalarChainProjection_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 119 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 120 | relativeScalarChainProjection R X A ≫ relativeScalarChainsMap R f h = |
| 121 | (scalarSingularChainFunctor R).map f ≫ relativeScalarChainProjection R Y B := |
| 122 | cokernel.π_desc _ _ _ |
| 123 | |
| 124 | /-- Integral specialization is exactly the established relative singular complex. -/ |
| 125 | theorem relativeScalarChains_int (X : TopCat.{0}) (A : Set X) : |
| 126 | relativeScalarChains ℤ X A = LocalHomology.Cycles.relativeSingularChains X A := rfl |
| 127 | |
| 128 | /-- Integral specialization gives exactly the established quotient map. -/ |
| 129 | theorem relativeScalarChainProjection_int (X : TopCat.{0}) (A : Set X) : |
| 130 | relativeScalarChainProjection ℤ X A = LocalHomology.Cycles.relativeChainProjection X A := rfl |
| 131 | |
| 132 | end AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles |
| 133 | |
| 134 | namespace AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains |
| 135 | |
| 136 | /-! |
| 137 | # Functoriality of actual scalar relative singular chains |
| 138 | |
| 139 | Identity and composition follow from the actual cokernel projections. |
| 140 | The homology composition law therefore concerns the same scalar maps used |
| 141 | in the two-support cap product. |
| 142 | -/ |
| 143 | |
| 144 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 145 | |
| 146 | set_option backward.defeqAttrib.useBackward true |
| 147 | set_option backward.isDefEq.respectTransparency false |
| 148 | set_option backward.isDefEq.respectTransparency.types false |
| 149 | |
| 150 | namespace Cycles |
| 151 | |
| 152 | variable (R : Type) [CommRing R] |
| 153 | |
| 154 | @[simp] |
| 155 | theorem relativeScalarChainsMap_id (X : TopCat.{0}) (A : Set X) : |
| 156 | relativeScalarChainsMap R (𝟙 X) (A := A) (B := A) (fun _ hx => hx) = |
| 157 | 𝟙 (relativeScalarChains R X A) := by |
| 158 | apply (cancel_epi (relativeScalarChainProjection R X A)).mp |
| 159 | rw [relativeScalarChainProjection_naturality, CategoryTheory.Functor.map_id, |
| 160 | Category.id_comp, Category.comp_id] |
| 161 | |
| 162 | @[reassoc] |
| 163 | theorem relativeScalarChainsMap_comp {X Y Z : TopCat.{0}} |
| 164 | (f : X ⟶ Y) (g : Y ⟶ Z) {A : Set X} {B : Set Y} {C : Set Z} |
| 165 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B C) : |
| 166 | relativeScalarChainsMap R f hf ≫ relativeScalarChainsMap R g hg = |
| 167 | relativeScalarChainsMap R (f ≫ g) (fun _ hx => hg (hf hx)) := by |
| 168 | apply (cancel_epi (relativeScalarChainProjection R X A)).mp |
| 169 | rw [← Category.assoc, relativeScalarChainProjection_naturality, Category.assoc, |
| 170 | relativeScalarChainProjection_naturality, ← Category.assoc, |
| 171 | ← CategoryTheory.Functor.map_comp, relativeScalarChainProjection_naturality] |
| 172 | |
| 173 | @[reassoc] |
| 174 | theorem relativeScalarHomologyMap_comp {X Y Z : TopCat.{0}} |
| 175 | (f : X ⟶ Y) (g : Y ⟶ Z) {A : Set X} {B : Set Y} {C : Set Z} |
| 176 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B C) (n : ℕ) : |
| 177 | HomologicalComplex.homologyMap (relativeScalarChainsMap R f hf) n ≫ |
| 178 | HomologicalComplex.homologyMap (relativeScalarChainsMap R g hg) n = |
| 179 | HomologicalComplex.homologyMap |
| 180 | (relativeScalarChainsMap R (f ≫ g) (fun _ hx => hg (hf hx))) n := by |
| 181 | rw [← HomologicalComplex.homologyMap_comp, relativeScalarChainsMap_comp] |
| 182 | |
| 183 | end Cycles |
| 184 | |
| 185 | end AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains |
| 186 | |
| 187 | end |
| 188 | |
| 189 | end OAI |