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.HilbertConstruction.Intrinsic.ExternalFactorCohomologyNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafTermCohomology |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.Isomorphism |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.FirstDifferentialInjectivity |
| 5 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 6 | |
| 7 | /-! # External Factor Cech Tensor -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ExternalFactorCechTensor |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The cohomology-factor Cech complex of an external line bundle is the right tensor of the parameter's coefficient Cech complex with proper-factor cohomology. The tuple isomorphisms use actual factor restrictions. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 15 | open _root_.TopologicalSpace _root_.AlgebraicGeometry Opposite |
| 16 | universe u |
| 17 | |
| 18 | theorem moduleTensorRight_map_eq_scalarMap |
| 19 | {R : Type u} [CommRing R] {A B : ModuleCat.{u} R} (f : A ⟶ B) (V : ModuleCat.{u} R) : |
| 20 | (tensorRight V).map f = (Module.TensorHomologyNaturality.ModuleTensorFunctor.scalarMap f.hom).app V := by |
| 21 | apply ModuleCat.hom_ext |
| 22 | apply TensorProduct.ext |
| 23 | ext a v |
| 24 | rfl |
| 25 | |
| 26 | variable {k : Type u} [Field k] {X Y P : Scheme.{u}} |
| 27 | variable [X.IsSeparated] [Y.IsSeparated] [P.IsSeparated] |
| 28 | variable {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ Spec (.of k)} {g : Y ⟶ Spec (.of k)} |
| 29 | variable (H : IsPullback a b f g) (L : Line.Bundles.LineBundle X) (N : Line.Bundles.LineBundle Y) |
| 30 | variable {ι : Type u} [Finite ι] (V : ι → X.Opens) |
| 31 | variable (hV : iSup V = ⊤) (haV : ∀ i, IsAffineOpen (V i)) |
| 32 | variable (heV : ∀ i, Nonempty ((Scheme.Modules.pullback (V i).ι).obj L.sheaf ≅ Line.Bundles.structureModule (V i).toScheme)) |
| 33 | variable {κ : Type u} [Finite κ] (U : κ → Y.Opens) (haU : ∀ i, IsAffineOpen (U i)) |
| 34 | variable (heU : ∀ i, Nonempty ((Scheme.Modules.pullback (U i).ι).obj N.sheaf ≅ Line.Bundles.structureModule (U i).toScheme)) |
| 35 | |
| 36 | def fieldExternalFactorCechTensorIso (n : ℕ) : |
| 37 | ((tensorRight ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom (n + 1)).obj L.sheaf) ⋙ |
| 38 | Module.ProductForget.moduleForget Γ(Spec (.of k), ⊤)).mapHomologicalComplex (.up ℕ)).obj |
| 39 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex g.appTop.hom N.sheaf U) ≅ |
| 40 | (cechComplexFunctor (fun i => b ⁻¹ᵁ U i)).obj |
| 41 | (Cech.SheafTermCohomology.IntrinsicCech.cechFactorCohomologyPresheaf |
| 42 | (UnderlyingAdditiveSheafExactness.ModuleSheaf.sheaf (((L.pullback a).tensor (N.pullback b)).sheaf)) (n + 1)) := by |
| 43 | let : Field Γ(Spec (.of k), ⊤) := |
| 44 | ((Scheme.ΓSpecIso (.of k)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 45 | (Field.toIsField k)).toField |
| 46 | let W (p : ℕ) (i : Fin (p + 1) → κ) : Y.Opens := ∏ᶜ fun j => U (i j) |
| 47 | have hW (p : ℕ) (i : Fin (p + 1) → κ) : IsAffineOpen (W p i) := Affine.CechIntersections.affine_cechIntersection U haU p i |
| 48 | let eW (p : ℕ) (i : Fin (p + 1) → κ) : |
| 49 | (Scheme.Modules.pullback (W p i).ι).obj N.sheaf ≅ Line.Bundles.structureModule (W p i).toScheme := |
| 50 | N.frameRestrict (leOfHom (Pi.π (fun j : Fin (p + 1) => U (i j)) 0)) (heU (i 0)).some |
| 51 | let B := (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom (n + 1)).obj L.sheaf |
| 52 | let T := tensorRight B ⋙ Module.ProductForget.moduleForget Γ(Spec (.of k), ⊤) |
| 53 | let F := Coefficient.ModulePresheaf.coefficientModulePresheaf g.appTop.hom N.sheaf ⋙ T |
| 54 | let E := UnderlyingAdditiveSheafExactness.ModuleSheaf.sheaf (((L.pullback a).tensor (N.pullback b)).sheaf) |
| 55 | let G := (Opens.map b.base).op ⋙ Cech.SheafTermCohomology.IntrinsicCech.cechFactorCohomologyPresheaf E (n + 1) |
| 56 | let e (p : ℕ) (i : Fin (p + 1) → κ) : F.obj (op (W p i)) ≅ G.obj (op (W p i)) := |
| 57 | Intrinsic.ExternalFactorCohomology.nativeExternalFactorCohomologyIso H L N (W p i) (hW p i) (eW p i) V hV haV heV n |
| 58 | have he : ∀ (p : ℕ) (j : Fin (p + 2)) (i : Fin (p + 2) → κ), |
| 59 | F.map (((FormalCoproduct.mk _ U).mapPower (SimplexCategory.δ j).toOrderHom.toFun).φ i).op ≫ |
| 60 | (e (p + 1) i).hom = |
| 61 | (e p (i ∘ (SimplexCategory.δ j).toOrderHom.toFun)).hom ≫ |
| 62 | G.map (((FormalCoproduct.mk _ U).mapPower (SimplexCategory.δ j).toOrderHom.toFun).φ i).op := by |
| 63 | intro p j i |
| 64 | let i' := i ∘ (SimplexCategory.δ j).toOrderHom.toFun |
| 65 | let hle : W (p + 1) i ≤ W p i' := Cech.SheafCofaces.IntrinsicCech.cechTupleLE U p j i |
| 66 | have h := Intrinsic.ExternalFactorCohomologyNaturality.nativeExternalFactorCohomologyIso_restrict H L N hle |
| 67 | (hW p i') (hW (p + 1) i) (eW p i') (eW (p + 1) i) V hV haV heV n |
| 68 | change (Module.ProductForget.moduleForget Γ(Spec (.of k), ⊤)).map |
| 69 | ((tensorRight B).map ((Coefficient.ModulePresheaf.coefficientModulePresheaf g.appTop.hom N.sheaf).map |
| 70 | (((FormalCoproduct.mk _ U).mapPower (SimplexCategory.δ j).toOrderHom.toFun).φ i).op)) ≫ |
| 71 | (e (p + 1) i).hom = _ |
| 72 | rw [moduleTensorRight_map_eq_scalarMap] |
| 73 | exact h |
| 74 | exact HilbertConstruction.Finite.CechFunctorComparison.finiteCechFunctorIso T (Coefficient.ModulePresheaf.coefficientModulePresheaf g.appTop.hom N.sheaf) U ≪≫ |
| 75 | CechTuple.Isomorphism.cechComplexIsoOfTupleIsos U e he ≪≫ |
| 76 | (Additive.CechPushforward.additiveCechPushforwardComplexIso b (Cech.SheafTermCohomology.IntrinsicCech.cechFactorCohomologyPresheaf E (n + 1)) U).symm |
| 77 | |
| 78 | include H hV haV heV haU heU in |
| 79 | theorem fieldExternal_cechCohomology_firstDifferential_injective |
| 80 | (hU : iSup U = ⊤) (hN : Subsingleton Γ(N.sheaf, ⊤)) (n : ℕ) : |
| 81 | Function.Injective (CategoryTheory.Sheaf.H.map |
| 82 | (Cech.SheafDifferential.IntrinsicCech.cechDifferential |
| 83 | (UnderlyingAdditiveSheafExactness.ModuleSheaf.sheaf (((L.pullback a).tensor (N.pullback b)).sheaf)) |
| 84 | (fun i => b ⁻¹ᵁ U i) 0) (n + 1)) := by |
| 85 | let : Field Γ(Spec (.of k), ⊤) := |
| 86 | ((Scheme.ΓSpecIso (.of k)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 87 | (Field.toIsField k)).toField |
| 88 | apply Cech.SheafTermCohomology.IntrinsicCech.cechCohomology_firstDifferential_injective |
| 89 | apply CechTuple.Isomorphism.additiveCochain_firstDifferential_injective_of_iso |
| 90 | (fieldExternalFactorCechTensorIso H L N V hV haV heV U haU heU n) |
| 91 | exact Cech.FirstDifferentialInjectivity.coefficientCech_tensorRight_firstDifferential_injective g.appTop.hom N.sheaf U hU hN |
| 92 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom (n + 1)).obj L.sheaf) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ExternalFactorCechTensor |