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.GeometricComparison.IntegralCech.ScalarProjection |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralCech.CoordinatePullback |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicCech.ScalarNaturality |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Functor.SquareCongr |
| 5 | import OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralFirst.ThreeCechScalarTotal |
| 6 | |
| 7 | /-! # Scalar Naturality -/ |
| 8 | |
| 9 | namespace OAI |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NumberTheory.PadicHodge.GeometricComparison.IntegralCech.ScalarNaturality.IntegralCechScalarGeometricNaturality |
| 14 | |
| 15 | /-! The actual first-three Cech scalar map commutes with geometric pullback |
| 16 | and the induced refinement of pulled-back covers. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits ZeroObject _root_.AlgebraicGeometry |
| 19 | |
| 20 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 21 | {X₁ X₂ : Over (Spec (CommRingCat.of R))} {Y₁ Y₂ : Over (Spec (CommRingCat.of S))} |
| 22 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 23 | (h₁ : f₁ ≫ X₁.hom = Y₁.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 24 | (h₂ : f₂ ≫ X₂.hom = Y₂.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 25 | (hsquare : f₁ ≫ u.left = v.left ≫ f₂) |
| 26 | {ι κ : Type} [Finite ι] [Finite κ] (U : ι → X₂.left.Opens) (V : κ → X₁.left.Opens) |
| 27 | (r : κ → ι) (hr : ∀ i, V i ≤ u.left ⁻¹ᵁ U (r i)) |
| 28 | (hv : ∀ i, f₁ ⁻¹ᵁ V i ≤ v.left ⁻¹ᵁ (f₂ ⁻¹ᵁ U (r i))) |
| 29 | |
| 30 | include hsquare in |
| 31 | theorem naturality : |
| 32 | GeometricComparison.Finite.TotalIso.FiniteTotalNaturality.map (FlatScalar.FlatScalarExtension.moduleFunctor R S) |
| 33 | (CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap R u U V r hr) ≫ |
| 34 | ScalarProjection.IntegralCechScalarProjection.map R S X₁ Y₁ f₁ h₁ V = |
| 35 | ScalarProjection.IntegralCechScalarProjection.map R S X₂ Y₂ f₂ h₂ U ≫ |
| 36 | CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap S v |
| 37 | (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv := by |
| 38 | let F := FlatScalar.FlatScalarExtension.moduleFunctor R S |
| 39 | have h := IntrinsicCech.ScalarNaturality.IntrinsicCechScalarGeometricNaturality.naturality R S u v f₁ f₂ h₁ h₂ hsquare U V r hr hv |
| 40 | apply HomologicalComplex.Hom.ext |
| 41 | funext q |
| 42 | rcases q with _ | (_ | (_ | q)) |
| 43 | · change (F.mapHomologicalComplex (.up ℕ)).map ((CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap R u U V r hr).f 0) ≫ |
| 44 | (ScalarProjection.IntegralCechScalarProjection.map R S X₁ Y₁ f₁ h₁ V).f 0 = |
| 45 | (ScalarProjection.IntegralCechScalarProjection.map R S X₂ Y₂ f₂ h₂ U).f 0 ≫ |
| 46 | (CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv).f 0 |
| 47 | exact Functor.SquareCongr.FunctorSquareCongr.square (F.mapHomologicalComplex (.up ℕ)) _ _ _ _ _ _ _ _ |
| 48 | (CoordinatePullback.IntegralCechCoordinatePullback.row_zero R u U V r hr) |
| 49 | (CoordinatePullback.IntegralCechCoordinatePullback.row_zero S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv) |
| 50 | (ScalarProjection.IntegralCechScalarProjection.row_zero R S X₂ Y₂ f₂ h₂ U) |
| 51 | (ScalarProjection.IntegralCechScalarProjection.row_zero R S X₁ Y₁ f₁ h₁ V) |
| 52 | (congrArg (fun a => a.f 0) h) |
| 53 | · change (F.mapHomologicalComplex (.up ℕ)).map ((CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap R u U V r hr).f 1) ≫ |
| 54 | (ScalarProjection.IntegralCechScalarProjection.map R S X₁ Y₁ f₁ h₁ V).f 1 = |
| 55 | (ScalarProjection.IntegralCechScalarProjection.map R S X₂ Y₂ f₂ h₂ U).f 1 ≫ |
| 56 | (CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv).f 1 |
| 57 | exact Functor.SquareCongr.FunctorSquareCongr.square (F.mapHomologicalComplex (.up ℕ)) _ _ _ _ _ _ _ _ |
| 58 | (CoordinatePullback.IntegralCechCoordinatePullback.row_one R u U V r hr) |
| 59 | (CoordinatePullback.IntegralCechCoordinatePullback.row_one S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv) |
| 60 | (ScalarProjection.IntegralCechScalarProjection.row_one R S X₂ Y₂ f₂ h₂ U) |
| 61 | (ScalarProjection.IntegralCechScalarProjection.row_one R S X₁ Y₁ f₁ h₁ V) |
| 62 | (congrArg (fun a => a.f 1) h) |
| 63 | · change (F.mapHomologicalComplex (.up ℕ)).map ((CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap R u U V r hr).f 2) ≫ |
| 64 | (ScalarProjection.IntegralCechScalarProjection.map R S X₁ Y₁ f₁ h₁ V).f 2 = |
| 65 | (ScalarProjection.IntegralCechScalarProjection.map R S X₂ Y₂ f₂ h₂ U).f 2 ≫ |
| 66 | (CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv).f 2 |
| 67 | exact Functor.SquareCongr.FunctorSquareCongr.square (F.mapHomologicalComplex (.up ℕ)) _ _ _ _ _ _ _ _ |
| 68 | (CoordinatePullback.IntegralCechCoordinatePullback.row_two R u U V r hr) |
| 69 | (CoordinatePullback.IntegralCechCoordinatePullback.row_two S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv) |
| 70 | (ScalarProjection.IntegralCechScalarProjection.row_two R S X₂ Y₂ f₂ h₂ U) |
| 71 | (ScalarProjection.IntegralCechScalarProjection.row_two R S X₁ Y₁ f₁ h₁ V) |
| 72 | (congrArg (fun a => a.f 2) h) |
| 73 | · let T := AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor S Y₁ (fun i => f₁ ⁻¹ᵁ V i) |
| 74 | let : T.Additive := by |
| 75 | change (FormalCoproduct.cochainComplexFunctor |
| 76 | (FormalCoproduct.mk κ (fun i => f₁ ⁻¹ᵁ V i)).cech).Additive |
| 77 | infer_instance |
| 78 | exact (T.map_isZero (isZero_zero (Y₁.left.Opensᵒᵖ ⥤ ModuleCat S))).eq_of_tgt _ _ |
| 79 | |
| 80 | end NumberTheory.PadicHodge.GeometricComparison.IntegralCech.ScalarNaturality.IntegralCechScalarGeometricNaturality |
| 81 | |
| 82 | namespace NumberTheory.PadicHodge.GeometricComparison.IntegralCech.ScalarNaturality.IntegralCechScalarTotalNaturality |
| 83 | |
| 84 | /-! The existing integral Cech scalar equivalences on total complexes and |
| 85 | their cohomology commute with actual geometric pullback. -/ |
| 86 | |
| 87 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 88 | open scoped TensorProduct |
| 89 | |
| 90 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] [Module.Flat R S] |
| 91 | {X₁ X₂ : Over (Spec (CommRingCat.of R))} [IsSeparated X₁.hom] [IsSeparated X₂.hom] |
| 92 | {Y₁ Y₂ : Over (Spec (CommRingCat.of S))} |
| 93 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 94 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (algebraMap R S)))) |
| 95 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (algebraMap R S)))) |
| 96 | (hsquare : f₁ ≫ u.left = v.left ≫ f₂) |
| 97 | {ι κ : Type} [Finite ι] [Finite κ] (U : ι → X₂.left.Opens) (V : κ → X₁.left.Opens) |
| 98 | (r : κ → ι) (hr : ∀ i, V i ≤ u.left ⁻¹ᵁ U (r i)) |
| 99 | (hv : ∀ i, f₁ ⁻¹ᵁ V i ≤ v.left ⁻¹ᵁ (f₂ ⁻¹ᵁ U (r i))) |
| 100 | (hU : ∀ i, IsAffineOpen (U i)) (hV : ∀ i, IsAffineOpen (V i)) |
| 101 | |
| 102 | include hsquare in |
| 103 | theorem naturality : |
| 104 | ((FlatScalar.FlatScalarExtension.moduleFunctor R S).mapHomologicalComplex (.up ℤ)).map |
| 105 | (CoordinatePullback.IntegralCechCoordinatePullback.map R u U V r hr) ≫ |
| 106 | (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.iso R S X₁ Y₁ f₁ V hp₁ hV).hom = |
| 107 | (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.iso R S X₂ Y₂ f₂ U hp₂ hU).hom ≫ |
| 108 | CoordinatePullback.IntegralCechCoordinatePullback.map S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv := by |
| 109 | let F := FlatScalar.FlatScalarExtension.moduleFunctor R S |
| 110 | let T := TotalFinite.IntegerTotalFunctor.functor (ModuleCat.{0} S) |
| 111 | let b := CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap R u U V r hr |
| 112 | have h₁ := InverseHom.InverseHomCongr.inverse_square |
| 113 | (GeometricComparison.Finite.TotalIso.FiniteTotalExtension.iso F (IntegralAffine.CechCoordinateUnit.IntegralAffineCechCoordinateUnit.bicomplex R X₂ U)) |
| 114 | (GeometricComparison.Finite.TotalIso.FiniteTotalExtension.iso F (IntegralAffine.CechCoordinateUnit.IntegralAffineCechCoordinateUnit.bicomplex R X₁ V)) _ _ |
| 115 | (TotalFinite.FiniteTotalExtensionNaturality.naturality F b).symm |
| 116 | have hs : GeometricComparison.Finite.TotalIso.FiniteTotalNaturality.map F b ≫ |
| 117 | (IntegralFirst.ThreeCechScalarBicomplex.IntegralFirstThreeCechScalarBicomplex.iso R S X₁ Y₁ f₁ V hp₁ hV).hom = |
| 118 | (IntegralFirst.ThreeCechScalarBicomplex.IntegralFirstThreeCechScalarBicomplex.iso R S X₂ Y₂ f₂ U hp₂ hU).hom ≫ |
| 119 | CoordinatePullback.IntegralCechCoordinatePullback.coordinateMap S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv := by |
| 120 | rw [ScalarProjection.IntegralCechScalarProjection.iso_hom, ScalarProjection.IntegralCechScalarProjection.iso_hom] |
| 121 | exact IntegralCechScalarGeometricNaturality.naturality R S u v f₁ f₂ hp₁.w hp₂.w hsquare U V r hr hv |
| 122 | have h₂ := (T.map_comp _ _).symm.trans ((congrArg T.map hs).trans (T.map_comp _ _)) |
| 123 | exact ExactHomology.ExactHomologyComparison.compose _ _ _ _ _ _ _ h₁ h₂ |
| 124 | |
| 125 | include hsquare in |
| 126 | theorem cohomology_naturality (n : ℤ) |
| 127 | (x : S ⊗[R] (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.complex R X₂ U).homology n) : |
| 128 | IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.cohomologyEquiv R S X₁ Y₁ f₁ V hp₁ hV n |
| 129 | ((HomologicalComplex.homologyMap (CoordinatePullback.IntegralCechCoordinatePullback.map R u U V r hr) n).hom.baseChange S x) = |
| 130 | HomologicalComplex.homologyMap |
| 131 | (CoordinatePullback.IntegralCechCoordinatePullback.map S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv) n |
| 132 | (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.cohomologyEquiv R S X₂ Y₂ f₂ U hp₂ hU n x) := by |
| 133 | have h := ExactHomology.ExactHomologyComparison.naturality (FlatScalar.FlatScalarExtension.moduleFunctor R S) (.up ℤ) |
| 134 | (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.iso R S X₂ Y₂ f₂ U hp₂ hU) |
| 135 | (IntegralFirst.ThreeCechScalarTotal.IntegralFirstThreeCechScalarTotal.iso R S X₁ Y₁ f₁ V hp₁ hV) |
| 136 | (CoordinatePullback.IntegralCechCoordinatePullback.map R u U V r hr) |
| 137 | (CoordinatePullback.IntegralCechCoordinatePullback.map S v (fun i => f₂ ⁻¹ᵁ U i) (fun i => f₁ ⁻¹ᵁ V i) r hv) |
| 138 | (naturality R S u v f₁ f₂ hp₁ hp₂ hsquare U V r hr hv hU hV) n |
| 139 | exact ConcreteCategory.congr_hom h x |
| 140 | |
| 141 | end NumberTheory.PadicHodge.GeometricComparison.IntegralCech.ScalarNaturality.IntegralCechScalarTotalNaturality |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI |