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.Integral.AdditiveSheafCohomology |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.FunctionsSheaf |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantSheaf |
| 4 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCoherentCoefficient |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraSheafScalars |
| 6 | |
| 7 | /-! # Coherent Cohomology -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.CoherentCohomology.IntegralCoherentCohomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual integral coefficient cohomology of scheme modules agrees with coherent cohomology, including its base action. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.SheafCoefficientAdjunction.IntegralSheafCoefficientAdjunction OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.IntegerSheafEquivalence.IntegralIntegerSheafEquivalence |
| 18 | |
| 19 | variable (R : Type) [CommRing R] [Module.Flat ℤ R] |
| 20 | (X : Over (Spec (CommRingCat.of R))) (M : X.left.Modules) |
| 21 | |
| 22 | local notation "J" => Opens.grothendieckTopology X.left |
| 23 | local notation "V" => OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.Sheaves R X |
| 24 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraSheafScalars.obj R X M |
| 25 | |
| 26 | local instance : HasExt.{1} V := HasExt.standard _ |
| 27 | local instance : HasExt.{0} (Sheaf J (ModuleCat ℤ)) := hasExt_of_enoughInjectives _ |
| 28 | local instance : HasExt.{0} (Sheaf J AddCommGrpCat) := hasExt_of_enoughInjectives _ |
| 29 | |
| 30 | def underlyingIso : AdditiveSheafCohomology.IntegralAdditiveSheafCohomology.underlyingSheaf R J F ≅ |
| 31 | (SheafOfModules.toSheaf X.left.ringCatSheaf).obj M := Iso.refl _ |
| 32 | |
| 33 | def additiveEquiv (n : ℕ) : |
| 34 | Ext.{1} (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R X) F n ≃+ AlgebraicGeometry.SheafCohomology.AffineH.Projective.H M n := |
| 35 | (AdditiveSheafCohomology.IntegralAdditiveSheafCohomology.equiv R J F n).trans |
| 36 | (((Sheaf.functorH J n).mapIso (underlyingIso R X M)).addCommGroupIsoToAddEquiv) |
| 37 | |
| 38 | def baseScalar (r : R) : Γ(X.left, ⊤) := |
| 39 | X.hom.appTop ((Scheme.ΓSpecIso (CommRingCat.of R)).inv r) |
| 40 | |
| 41 | omit [Module.Flat ℤ R] in |
| 42 | theorem baseScalar_eq (r : R) : baseScalar R X r = AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X ⊤ r := by |
| 43 | simp [baseScalar, AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap, Scheme.Hom.appLE, Scheme.Hom.appTop] |
| 44 | rfl |
| 45 | |
| 46 | omit [Module.Flat ℤ R] in |
| 47 | theorem scalar_map (r : R) : |
| 48 | (IntegerSheafEquivalence.IntegralIntegerSheafEquivalence.forgetSheaf J).map ((SheafCoefficientAdjunction.IntegralSheafCoefficientAdjunction.restrictSheaf R J).map (r • 𝟙 F)) ≫ (underlyingIso R X M).hom = |
| 49 | (underlyingIso R X M).hom ≫ (SheafOfModules.toSheaf X.left.ringCatSheaf).map |
| 50 | (AlgebraicGeometry.SheafCohomology.AffineH.Projective.globalSmulHom M (baseScalar R X r)) := by |
| 51 | apply Sheaf.hom_ext |
| 52 | apply NatTrans.ext |
| 53 | funext U |
| 54 | apply AddCommGrpCat.hom_ext |
| 55 | apply AddMonoidHom.ext |
| 56 | intro x |
| 57 | let y : M.val.obj U := x |
| 58 | let : Module Γ(X.left, U.unop) (M.val.obj U) := (M.val.obj U).isModule |
| 59 | change AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X U.unop r • y = |
| 60 | X.left.presheaf.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op (baseScalar R X r) • y |
| 61 | rw [baseScalar_eq, AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap_naturality] |
| 62 | |
| 63 | def linearEquiv (n : ℕ) : |
| 64 | letI := IntegralComparison.Projective.CoherentFiniteness.coefficientModule R X.hom M n |
| 65 | Ext.{1} (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R X) F n ≃ₗ[R] AlgebraicGeometry.SheafCohomology.AffineH.Projective.H M n := by |
| 66 | let := IntegralComparison.Projective.CoherentFiniteness.coefficientModule R X.hom M n |
| 67 | refine { additiveEquiv R X M n with map_smul' := ?_ } |
| 68 | intro r x |
| 69 | rw [Ext.smul_eq_comp_mk₀] |
| 70 | change Sheaf.H.map (underlyingIso R X M).hom n |
| 71 | (AdditiveSheafCohomology.IntegralAdditiveSheafCohomology.equiv R J F n |
| 72 | (x.comp (Ext.mk₀ (r • 𝟙 F)) (Nat.add_zero n))) = _ |
| 73 | erw [AdditiveSheafCohomology.IntegralAdditiveSheafCohomology.naturality] |
| 74 | change Sheaf.H.map (underlyingIso R X M).hom n |
| 75 | (Sheaf.H.map ((IntegerSheafEquivalence.IntegralIntegerSheafEquivalence.forgetSheaf J).map ((SheafCoefficientAdjunction.IntegralSheafCoefficientAdjunction.restrictSheaf R J).map (r • 𝟙 F))) n |
| 76 | (AdditiveSheafCohomology.IntegralAdditiveSheafCohomology.equiv R J F n x)) = |
| 77 | Sheaf.H.map ((SheafOfModules.toSheaf X.left.ringCatSheaf).map |
| 78 | (AlgebraicGeometry.SheafCohomology.AffineH.Projective.globalSmulHom M (baseScalar R X r))) n (additiveEquiv R X M n x) |
| 79 | rw [← Sheaf.H.map_comp_apply, scalar_map, Sheaf.H.map_comp_apply] |
| 80 | rfl |
| 81 | |
| 82 | theorem finite [M.IsQuasicoherent] [M.IsFiniteType] [IsNoetherianRing R] [IsProper X.hom] (n : ℕ) : |
| 83 | Module.Finite R (Ext.{1} (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R X) F n) := by |
| 84 | let := IntegralComparison.Projective.CoherentFiniteness.coefficientModule R X.hom M n |
| 85 | let := AlgebraicGeometry.Crystalline.Cohomology.ProperCoherentCoefficient.ProperCoherentFiniteness.coefficient R X.hom M n |
| 86 | exact Module.Finite.equiv (linearEquiv R X M n).symm |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.CoherentCohomology.IntegralCoherentCohomology |