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.AbelianModuli.ReferenceFamily.IntegerSingularSheafComparison |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.RestrictionCochainEvaluation |
| 3 | import OAI.AlgebraicGeometry.DivisorClass.Chern.ModuleGlobalSectionsForget |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.PositiveCycleHomology |
| 5 | import OAI.AlgebraicTopology.Cohomology.Singular.LeftExactHomologyComposition |
| 6 | |
| 7 | /-! # Module Forget Cocycle Classes -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleForgetCocycleClasses |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The literal rational singular cochains, with scalars forgotten to |
| 16 | integers. The comparison preserves the value on every original simplex. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 19 | open scoped Simplicial |
| 20 | |
| 21 | open OAI.AlgebraicTopology.Cohomology.Singular.LeftExactHomologyComposition |
| 22 | |
| 23 | def rationalIntegerAbelianCochainIso (X : TopCat.{0}) : |
| 24 | (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.mapHomologicalComplex (.up ℕ)).obj (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) ≅ |
| 25 | (IntegerSingularSheafComparison.integerModuleForget.mapHomologicalComplex (.up ℕ)).obj |
| 26 | (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X) := |
| 27 | (IntegerSingularSheafComparison.integerModuleForget.mapHomologicalComplex (.up ℕ)).mapIso |
| 28 | (AlgebraicTopology.Cohomology.Singular.Chains.singularCochainsRestrictScalarsIso (algebraMap ℤ ℚ) (ModuleCat.of ℚ ℚ) X) |
| 29 | |
| 30 | theorem rationalIntegerAbelianCochainIso_evaluation (X : TopCat.{0}) {n : ℕ} |
| 31 | (s : (TopCat.toSSet.obj X) _⦋n⦌) |
| 32 | (c : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).X n) : |
| 33 | AlgebraicTopology.Cohomology.Singular.Coefficients.simplicialEvaluation (TopCat.toSSet.obj X) (ModuleCat.of ℤ ℚ) s |
| 34 | ((rationalIntegerAbelianCochainIso X).hom.f n c) = |
| 35 | AlgebraicTopology.Cohomology.Singular.Coefficients.simplicialEvaluation (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) s c := |
| 36 | ConcreteCategory.congr_hom |
| 37 | (DivisorClass.Chern.RestrictionCochainEvaluation.singularCochainsRestrictScalarsIso_hom_evaluation |
| 38 | (algebraMap ℤ ℚ) (ModuleCat.of ℚ ℚ) X s) c |
| 39 | |
| 40 | theorem rationalIntegerAbelianCochainIso_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) : |
| 41 | (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.mapHomologicalComplex (.up ℕ)).map |
| 42 | (AlgebraicTopology.Cohomology.Singular.Functor.singularPullback (ModuleCat.of ℚ ℚ) f) ≫ (rationalIntegerAbelianCochainIso X).hom = |
| 43 | (rationalIntegerAbelianCochainIso Y).hom ≫ |
| 44 | (IntegerSingularSheafComparison.integerModuleForget.mapHomologicalComplex (.up ℕ)).map |
| 45 | (AlgebraicTopology.Cohomology.Singular.Functor.singularPullback (ModuleCat.of ℤ ℚ) f) := by |
| 46 | have h := AlgebraicTopology.Cohomology.Singular.Chains.singularCochainsRestrictScalarsIso_naturality |
| 47 | (algebraMap ℤ ℚ) (ModuleCat.of ℚ ℚ) f |
| 48 | ext n : 1 |
| 49 | apply ConcreteCategory.hom_ext |
| 50 | intro c |
| 51 | have hn := congrArg (fun g => g.f n) h |
| 52 | have he := ConcreteCategory.congr_hom hn c |
| 53 | exact he |
| 54 | |
| 55 | def rationalIntegerPresheafIso (X : TopCat.{0}) : |
| 56 | DivisorClass.Chern.ModuleSheafificationForget.moduleForgetPresheafComplex ℚ X (AlgebraicTopology.DeRham.Comparison.SingularPresheaf.singularPresheafComplex (ModuleCat.of ℚ ℚ) X) ≅ |
| 57 | DivisorClass.Chern.ModuleSheafificationForget.moduleForgetPresheafComplex ℤ X (AlgebraicTopology.DeRham.Comparison.SingularPresheaf.singularPresheafComplex (ModuleCat.of ℤ ℚ) X) := |
| 58 | HomologicalComplex.Hom.isoOfComponents (fun n => |
| 59 | NatIso.ofComponents (fun U => |
| 60 | (HomologicalComplex.eval AddCommGrpCat.{0} (.up ℕ) n).mapIso |
| 61 | (rationalIntegerAbelianCochainIso (TopCat.of U.unop))) (by |
| 62 | intro U V i |
| 63 | exact congrArg (fun g => g.f n) |
| 64 | (rationalIntegerAbelianCochainIso_naturality ((Opens.toTopCat X).map i.unop)))) (by |
| 65 | intro i j _ |
| 66 | apply NatTrans.ext |
| 67 | funext U |
| 68 | exact (rationalIntegerAbelianCochainIso (TopCat.of U.unop)).hom.comm i j) |
| 69 | |
| 70 | def rationalIntegerCohomologyIso (X : TopCat.{0}) (n : ℕ) : |
| 71 | AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.obj (AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of ℚ ℚ) X n) ≅ |
| 72 | IntegerSingularSheafComparison.integerModuleForget.obj (AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of ℤ ℚ) X n) := |
| 73 | (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForgetHomologyIso (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) n).symm ≪≫ |
| 74 | (HomologicalComplex.homologyFunctor AddCommGrpCat.{0} (.up ℕ) n).mapIso |
| 75 | (rationalIntegerAbelianCochainIso X) ≪≫ |
| 76 | (((AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X).sc n).mapHomologyIso IntegerSingularSheafComparison.integerModuleForget) |
| 77 | |
| 78 | theorem rationalIntegerAbelianCochainIso_locallyConstant |
| 79 | (X : TopCat.{0}) (q : LocallyConstant X ℚ) : |
| 80 | (rationalIntegerAbelianCochainIso X).hom.f 0 |
| 81 | (AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero (ModuleCat.of ℚ ℚ) X q) = |
| 82 | AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero (ModuleCat.of ℤ ℚ) X q := by |
| 83 | let cQ : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).X 0 := |
| 84 | AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero (ModuleCat.of ℚ ℚ) X q |
| 85 | let cI : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X).X 0 := |
| 86 | (rationalIntegerAbelianCochainIso X).hom.f 0 cQ |
| 87 | change cI = AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero (ModuleCat.of ℤ ℚ) X q |
| 88 | apply (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso (ModuleCat.of ℤ ℚ) X).toLinearEquiv.injective |
| 89 | ext x |
| 90 | let s := TopCat.toSSetObj₀Equiv.symm x |
| 91 | have hI := (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso_apply (ModuleCat.of ℤ ℚ) X cI x).trans |
| 92 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso_hom_apply (TopCat.toSSet.obj X) (ModuleCat.of ℤ ℚ) cI s) |
| 93 | have hQ := (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso_apply (ModuleCat.of ℚ ℚ) X cQ x).trans |
| 94 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso_hom_apply (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) cQ s) |
| 95 | exact hI.trans ((rationalIntegerAbelianCochainIso_evaluation X s cQ).trans |
| 96 | (hQ.symm.trans ((AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero_apply (ModuleCat.of ℚ ℚ) X q x).trans |
| 97 | (AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero_apply (ModuleCat.of ℤ ℚ) X q x).symm))) |
| 98 | |
| 99 | end |
| 100 | |
| 101 | /-! Forgetting module scalars preserves the class of the same cocycle. |
| 102 | The comparison is expressed through the original categorical cycle inclusion. -/ |
| 103 | |
| 104 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 105 | |
| 106 | open OAI.AlgebraicTopology.Cohomology.Singular.LeftExactHomologyComposition |
| 107 | open OAI.AlgebraicGeometry.SheafCohomology.Cech.PositiveCycleHomology.Projective.CycleHomology |
| 108 | |
| 109 | variable {R : Type} [Ring R] |
| 110 | |
| 111 | def moduleForgetCocycleClass (K : CochainComplex (ModuleCat.{0} R) ℕ) |
| 112 | (n : ℕ) (c : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles K (n + 1)) : |
| 113 | (((forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}).mapHomologicalComplex (.up ℕ)).obj K).homology |
| 114 | (n + 1) := |
| 115 | (((forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}).mapHomologicalComplex (.up ℕ)).obj K).homologyπ |
| 116 | (n + 1) (SheafCohomology.Cech.PositiveCycleHomology.Projective.CycleHomology.abCyclesMk n _ c.val ((AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff K (n + 1) c.val).mp c.property)) |
| 117 | |
| 118 | theorem moduleForgetCocycleClass_map (K : CochainComplex (ModuleCat.{0} R) ℕ) |
| 119 | (n : ℕ) (c : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles K (n + 1)) : |
| 120 | (((K.sc (n + 1)).mapHomologyIso (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0})).hom) |
| 121 | (moduleForgetCocycleClass K n c) = AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass K (n + 1) c := by |
| 122 | let G := forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0} |
| 123 | let L := (G.mapHomologicalComplex (.up ℕ)).obj K |
| 124 | let S := K.sc (n + 1) |
| 125 | let z := SheafCohomology.Cech.PositiveCycleHomology.Projective.CycleHomology.abCyclesMk n L c.val ((AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff K (n + 1) c.val).mp c.property) |
| 126 | have hz : (AlgebraicTopology.Cohomology.Singular.LeftExactHomology.leftExactCyclesIso S G).hom z = (K.sc (n + 1)).moduleCatCyclesIso.inv c := by |
| 127 | apply (ModuleCat.mono_iff_injective (K.iCycles (n + 1))).mp inferInstance |
| 128 | have hh := ConcreteCategory.congr_hom (AlgebraicTopology.Cohomology.Singular.LeftExactHomology.leftExactCyclesIso_hom_iCycles S G) z |
| 129 | change (K.iCycles (n + 1)) ((AlgebraicTopology.Cohomology.Singular.LeftExactHomology.leftExactCyclesIso S G).hom z) = (L.iCycles (n + 1)) z at hh |
| 130 | have hzval : (L.iCycles (n + 1)) z = c.val := |
| 131 | SheafCohomology.Cech.PositiveCycleHomology.Projective.CycleHomology.i_abCyclesMk n L c.val ((AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff K (n + 1) c.val).mp c.property) |
| 132 | have hk := ConcreteCategory.congr_hom ((K.sc (n + 1)).moduleCatCyclesIso_inv_iCycles) c |
| 133 | change (K.iCycles (n + 1)) ((K.sc (n + 1)).moduleCatCyclesIso.inv c) = c.val at hk |
| 134 | exact hh.trans (hzval.trans hk.symm) |
| 135 | have h := ConcreteCategory.congr_hom (AlgebraicTopology.Cohomology.Singular.LeftExactHomology.homologyπ_leftExactHomologyComparison S G) z |
| 136 | rw [AlgebraicTopology.Cohomology.Singular.LeftExactHomologyIso.leftExactHomologyComparison_eq_mapHomologyIso', |
| 137 | ShortComplex.mapHomologyIso'_eq_mapHomologyIso] at h |
| 138 | change ((S.mapHomologyIso G).hom) (L.homologyπ (n + 1) z) = |
| 139 | (K.homologyπ (n + 1)) ((AlgebraicTopology.Cohomology.Singular.LeftExactHomology.leftExactCyclesIso S G).hom z) at h |
| 140 | exact h.trans ((congrArg (K.homologyπ (n + 1)) hz).trans |
| 141 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_homologyπ K (n + 1) c).symm) |
| 142 | |
| 143 | def rationalIntegerCocycle (X : TopCat.{0}) (n : ℕ) |
| 144 | (c : AlgebraicTopology.Cohomology.Singular.Representatives.singularCocycles (ModuleCat.of ℚ ℚ) X n) : |
| 145 | AlgebraicTopology.Cohomology.Singular.Representatives.singularCocycles (ModuleCat.of ℤ ℚ) X n := |
| 146 | AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainCocycleMap |
| 147 | (AlgebraicTopology.Cohomology.Singular.Chains.singularCochainsRestrictScalarsIso (algebraMap ℤ ℚ) (ModuleCat.of ℚ ℚ) X).hom n |
| 148 | ⟨c.val, c.property⟩ |
| 149 | |
| 150 | theorem rationalIntegerCohomologyIso_class (X : TopCat.{0}) (n : ℕ) |
| 151 | (c : AlgebraicTopology.Cohomology.Singular.Representatives.singularCocycles (ModuleCat.of ℚ ℚ) X (n + 1)) : |
| 152 | (rationalIntegerCohomologyIso X (n + 1)).hom |
| 153 | (AlgebraicTopology.Cohomology.Singular.Representatives.singularClass (ModuleCat.of ℚ ℚ) X (n + 1) c) = |
| 154 | AlgebraicTopology.Cohomology.Singular.Representatives.singularClass (ModuleCat.of ℤ ℚ) X (n + 1) (rationalIntegerCocycle X (n + 1) c) := by |
| 155 | have hcQ := moduleForgetCocycleClass_map (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) n c |
| 156 | have hcZ := moduleForgetCocycleClass_map (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X) n |
| 157 | (rationalIntegerCocycle X (n + 1) c) |
| 158 | have hm : HomologicalComplex.homologyMap (rationalIntegerAbelianCochainIso X).hom (n + 1) |
| 159 | (moduleForgetCocycleClass (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) n c) = |
| 160 | moduleForgetCocycleClass (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X) n |
| 161 | (rationalIntegerCocycle X (n + 1) c) := |
| 162 | SheafCohomology.Cech.PositiveCycleHomology.Projective.CycleHomology.homologyMap_abCyclesMk n (rationalIntegerAbelianCochainIso X).hom c.val |
| 163 | ((AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff _ _ _).mp c.property) |
| 164 | ((AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff _ _ _).mp (rationalIntegerCocycle X (n + 1) c).property) |
| 165 | change (rationalIntegerCohomologyIso X (n + 1)).hom (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ (n + 1) c) = _ |
| 166 | rw [← hcQ] |
| 167 | change (((AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℤ ℚ) X).sc (n + 1)).mapHomologyIso IntegerSingularSheafComparison.integerModuleForget).hom |
| 168 | (HomologicalComplex.homologyMap (rationalIntegerAbelianCochainIso X).hom (n + 1) |
| 169 | ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForgetHomologyIso (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) (n + 1)).inv |
| 170 | ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForgetHomologyIso (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) (n + 1)).hom |
| 171 | (moduleForgetCocycleClass (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X) n c)))) = _ |
| 172 | rw [Iso.hom_inv_id_apply, hm] |
| 173 | exact hcZ |
| 174 | |
| 175 | end |
| 176 | |
| 177 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleForgetCocycleClasses |