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.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.TypedMap |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.Pushforward |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.CohomologyNaturality |
| 4 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.OpenBaseChangeNaturality |
| 5 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OrderedCechNaturality |
| 6 | |
| 7 | /-! # Pushforward Naturality -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.PushforwardNaturality |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual inverse-cover to pushforward Čech comparison is |
| 14 | natural in its coefficient module. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | theorem compose {C : Type*} [Category C] {A B D A' B' D' : C} |
| 20 | (e : A ⟶ B) (e' : A' ⟶ B') (s : B ⟶ D) (s' : B' ⟶ D') |
| 21 | (a : A ⟶ A') (b : B ⟶ B') (d : D ⟶ D') |
| 22 | (h : a ≫ e' = e ≫ b) (h' : b ≫ s' = s ≫ d) : |
| 23 | a ≫ (e' ≫ s') = (e ≫ s) ≫ d := by |
| 24 | rw [← Category.assoc, h, Category.assoc, h', ← Category.assoc] |
| 25 | |
| 26 | theorem inverse {C : Type*} [Category C] {A B A' B' : C} |
| 27 | (e : A ≅ B) (e' : A' ≅ B') (a : A ⟶ A') (b : B ⟶ B') |
| 28 | (h : a ≫ e'.hom = e.hom ≫ b) : b ≫ e'.inv = e.inv ≫ a := by |
| 29 | apply (cancel_epi e.hom).1 |
| 30 | rw [← Category.assoc, ← h] |
| 31 | simp only [Category.assoc, Iso.hom_inv_id_assoc, Iso.hom_inv_id, Category.comp_id] |
| 32 | |
| 33 | universe u |
| 34 | variable (R : Type u) [CommRing R] |
| 35 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 36 | {ι : Type u} (U : ι → Y.left.Opens) {M N : X.left.Modules} (a : M ⟶ N) |
| 37 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.CohomologyNaturality.forgetCoefficients R |
| 38 | local notation "J" => OAI.AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseModuleForget (Spec (CommRingCat.of R)) |
| 39 | local notation "F" => Opens.map f.left.base |
| 40 | local notation "V" => (fun i => CategoryTheory.Functor.obj (Opens.map f.left.base) (U i)) |
| 41 | local notation "a'" => CategoryTheory.Functor.map (Scheme.Modules.pushforward f.left) a |
| 42 | local instance opens_finiteLimits : PreservesFiniteLimits (Opens.map f.left.base) := by |
| 43 | change PreservesFiniteLimits (OrderHom.ofClass f.left.base.frameHom).toFunctor |
| 44 | infer_instance |
| 45 | |
| 46 | def baseMap : |
| 47 | AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj M) U ⟶ |
| 48 | AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj N) U := |
| 49 | TypedMap.map Y.hom U (a') |
| 50 | |
| 51 | def targetMap : |
| 52 | ((J).mapHomologicalComplex (.up ℕ)).obj |
| 53 | (AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj M) U) ⟶ |
| 54 | ((J).mapHomologicalComplex (.up ℕ)).obj |
| 55 | (AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj N) U) := |
| 56 | ((J).mapHomologicalComplex (.up ℕ)).map (baseMap R X Y f U a) |
| 57 | |
| 58 | theorem complex_naturality : |
| 59 | ((G).mapHomologicalComplex (.up ℕ)).map (CohomologyNaturality.map R X V a) ≫ |
| 60 | (Pushforward.Comparison.complexIso R X Y f N U).hom = |
| 61 | (Pushforward.Comparison.complexIso R X Y f M U).hom ≫ |
| 62 | targetMap R X Y f U a := by |
| 63 | have h₁ := CohomologyNaturality.forget_natural R X V a |
| 64 | have h₂ := inverse (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U M.presheaf) |
| 65 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U N.presheaf) _ _ |
| 66 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.OpenBaseChangeNaturality.CechOpenBaseChangeNaturality.naturality (F) U |
| 67 | ((SheafOfModules.toSheaf X.left.ringCatSheaf).map a).hom) |
| 68 | have h₃ := inverse |
| 69 | (AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseCechComplexForgetIso Y.hom ((Scheme.Modules.pushforward f.left).obj M) U) |
| 70 | (AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseCechComplexForgetIso Y.hom ((Scheme.Modules.pushforward f.left).obj N) U) _ _ |
| 71 | (AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseCechComplexForgetIso_naturality Y.hom (a') U) |
| 72 | have h₁₂ := compose |
| 73 | (DimensionBound.forgetIso R X M V).hom |
| 74 | (DimensionBound.forgetIso R X N V).hom |
| 75 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U M.presheaf).inv |
| 76 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U N.presheaf).inv _ _ _ h₁ h₂ |
| 77 | exact compose |
| 78 | ((DimensionBound.forgetIso R X M V).hom ≫ (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U M.presheaf).inv) |
| 79 | ((DimensionBound.forgetIso R X N V).hom ≫ (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (F) U N.presheaf).inv) |
| 80 | (AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseCechComplexForgetIso Y.hom ((Scheme.Modules.pushforward f.left).obj M) U).inv |
| 81 | (AlgebraicGeometry.SheafCohomology.Projective.BaseCechForget.Scheme.Modules.baseCechComplexForgetIso Y.hom ((Scheme.Modules.pushforward f.left).obj N) U).inv |
| 82 | _ _ _ h₁₂ h₃ |
| 83 | |
| 84 | variable [LinearOrder ι] |
| 85 | |
| 86 | theorem cohomology_naturality (n : ℕ) : |
| 87 | (G).map (HomologicalComplex.homologyMap (CohomologyNaturality.map R X V a) n) ≫ |
| 88 | (Pushforward.Comparison.cohomologyIso R X Y f N U n).hom = |
| 89 | (Pushforward.Comparison.cohomologyIso R X Y f M U n).hom ≫ |
| 90 | (J).map (HomologicalComplex.homologyMap |
| 91 | ((AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCechFunctor.Scheme.Modules.orderedBaseCechComplexFunctor Y.hom U).map (a')) n) := by |
| 92 | have h₁ := ShortComplex.mapHomologyIso_inv_naturality |
| 93 | ((HomologicalComplex.shortComplexFunctor (ModuleCat.{u} R) (.up ℕ) n).map |
| 94 | (CohomologyNaturality.map R X V a)) (G) |
| 95 | change (G).map (HomologicalComplex.homologyMap (CohomologyNaturality.map R X V a) n) ≫ |
| 96 | (((DimensionBound.complex R X N V).sc n).mapHomologyIso (G)).inv = |
| 97 | (((DimensionBound.complex R X M V).sc n).mapHomologyIso (G)).inv ≫ |
| 98 | HomologicalComplex.homologyMap (((G).mapHomologicalComplex (.up ℕ)).map |
| 99 | (CohomologyNaturality.map R X V a)) n at h₁ |
| 100 | have h₂ := congrArg (fun z => HomologicalComplex.homologyMap z n) |
| 101 | (complex_naturality R X Y f U a) |
| 102 | simp only [HomologicalComplex.homologyMap_comp] at h₂ |
| 103 | have h₃ := ShortComplex.mapHomologyIso_hom_naturality |
| 104 | ((HomologicalComplex.shortComplexFunctor _ (.up ℕ) n).map |
| 105 | ((AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplexFunctor Y.hom U).map (a'))) (J) |
| 106 | have h₄ := congrArg (J).map |
| 107 | (ArithmeticGeometry.OrdinaryLocus.Openness.OrderedCechNaturality.Construction.baseCechOrderedHomologyIso_naturality Y.hom (a') U n) |
| 108 | simp only [Functor.map_comp] at h₄ |
| 109 | have h₁₂ := compose |
| 110 | (((DimensionBound.complex R X M V).sc n).mapHomologyIso (G)).inv |
| 111 | (((DimensionBound.complex R X N V).sc n).mapHomologyIso (G)).inv |
| 112 | (HomologicalComplex.homologyMap (Pushforward.Comparison.complexIso R X Y f M U).hom n) |
| 113 | (HomologicalComplex.homologyMap (Pushforward.Comparison.complexIso R X Y f N U).hom n) |
| 114 | _ _ _ h₁ h₂ |
| 115 | have h₃₄ := compose |
| 116 | (((AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj M) U).sc n).mapHomologyIso (J)).hom |
| 117 | (((AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex Y.hom ((Scheme.Modules.pushforward f.left).obj N) U).sc n).mapHomologyIso (J)).hom |
| 118 | ((J).map (AlgebraicGeometry.SheafCohomology.Projective.BaseCechHomotopyEquiv.Scheme.Modules.baseCechOrderedHomologyIso Y.hom ((Scheme.Modules.pushforward f.left).obj M) U n).hom) |
| 119 | ((J).map (AlgebraicGeometry.SheafCohomology.Projective.BaseCechHomotopyEquiv.Scheme.Modules.baseCechOrderedHomologyIso Y.hom ((Scheme.Modules.pushforward f.left).obj N) U n).hom) |
| 120 | _ _ _ h₃ h₄ |
| 121 | have h := compose _ _ _ _ _ _ _ h₁₂ h₃₄ |
| 122 | simpa only [Pushforward.Comparison.cohomologyIso, Iso.trans_hom, Iso.symm_hom, |
| 123 | HomologicalComplex.homologyMapIso_hom, Functor.mapIso_hom, Category.assoc] using h |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ModuleCech.PushforwardNaturality |