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.Crystalline.Cohomology.CharacteristicZeroSheaf |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Base.ModuleCoefficientPresheaf |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCoherentCoefficient |
| 4 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses |
| 6 | |
| 7 | /-! # Proper Coherent Add -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCoherentAdd.ProperCoherentCoefficientExt |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # Proper coherent finiteness in the original characteristic-zero coefficient Ext groups -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (k : Type u) [Field k] [CharZero k] (X : Over (Spec (CommRingCat.of k))) |
| 20 | |
| 21 | local notation "J" => Opens.grothendieckTopology X.left |
| 22 | abbrev IntegerRing : Type u := CharacteristicZeroFlat.CharacteristicZeroSheafCoefficients.Integers.{u} |
| 23 | |
| 24 | local instance integerSheafify : HasSheafify J (ModuleCat.{u} IntegerRing.{u}) := |
| 25 | NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses.hasSheafify.{u, u, u} J IntegerRing.{u} |
| 26 | |
| 27 | local instance integerInjectives : EnoughInjectives (Sheaf J (ModuleCat.{u} IntegerRing.{u})) := |
| 28 | NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses.enoughInjectives.{u, u, u} J IntegerRing.{u} |
| 29 | |
| 30 | local instance coefficientInjectives : EnoughInjectives (DeRhamGlobalId.DeRhamGlobal.Sheaves k X) := |
| 31 | NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses.enoughInjectives.{u, u, u} J k |
| 32 | |
| 33 | local instance integerExt : HasExt.{u + 1} (Sheaf J (ModuleCat.{u} IntegerRing.{u})) := HasExt.standard _ |
| 34 | |
| 35 | local instance coefficientExt : HasExt.{u + 1} (DeRhamGlobalId.DeRhamGlobal.Sheaves k X) := HasExt.standard _ |
| 36 | |
| 37 | abbrev sheaf (M : X.left.Modules) := (NumberTheory.PadicHodge.IntegralComparison.AlgebraSheafScalars.functor k X).obj M |
| 38 | |
| 39 | def addEquiv (M : X.left.Modules) (n : ℕ) : |
| 40 | Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf k X) (sheaf k X M) n ≃+ SheafCohomology.AffineH.Projective.H M n := |
| 41 | CharacteristicZeroSheaf.CharacteristicZeroSheafCohomology.equiv.{u, u + 1, u + 1, u} k J (sheaf k X M) n |
| 42 | |
| 43 | omit [CharZero k] in |
| 44 | theorem forget_scalar (M : X.left.Modules) (r : k) : |
| 45 | (CharacteristicZeroFlat.CharacteristicZeroSheafCoefficients.forget k J).map (r • 𝟙 (sheaf k X M)) = |
| 46 | (SheafOfModules.toSheaf X.left.ringCatSheaf).map |
| 47 | (SheafCohomology.AffineH.Projective.globalSmulHom M (X.hom.appTop ((Scheme.ΓSpecIso (CommRingCat.of k)).inv r))) := by |
| 48 | apply Sheaf.hom_ext |
| 49 | ext U x |
| 50 | change @SMul.smul (X.left.ringCatSheaf.obj.obj U) (M.val.obj U) (M.val.obj U).isModule.toSMul |
| 51 | (AlgebraicForms.AlgebraicDeRham.sectionBaseMap k X U.unop r) x = |
| 52 | @SMul.smul (X.left.ringCatSheaf.obj.obj U) (M.val.obj U) (M.val.obj U).isModule.toSMul |
| 53 | (X.left.presheaf.map U.unop.leTop.op |
| 54 | (X.hom.appTop ((Scheme.ΓSpecIso (CommRingCat.of k)).inv r))) x |
| 55 | exact congrArg (fun a : Γ(X.left, U.unop) => |
| 56 | @SMul.smul (X.left.ringCatSheaf.obj.obj U) (M.val.obj U) (M.val.obj U).isModule.toSMul a x) |
| 57 | (Base.ModuleCoefficientPresheaf.BaseModuleCoefficientPresheaf.constants k X U.unop r).symm |
| 58 | |
| 59 | def linearEquiv (M : X.left.Modules) (n : ℕ) : |
| 60 | letI := NumberTheory.PadicHodge.IntegralComparison.Projective.CoherentFiniteness.coefficientModule k X.hom M n |
| 61 | Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf k X) (sheaf k X M) n ≃ₗ[k] SheafCohomology.AffineH.Projective.H M n := by |
| 62 | letI := NumberTheory.PadicHodge.IntegralComparison.Projective.CoherentFiniteness.coefficientModule k X.hom M n |
| 63 | refine { addEquiv k X M n with map_smul' := ?_ } |
| 64 | intro r x |
| 65 | have h := CharacteristicZeroSheaf.CharacteristicZeroSheafCohomology.naturality.{u, u + 1, u + 1, u} |
| 66 | k J (r • 𝟙 (sheaf k X M)) n x |
| 67 | rw [forget_scalar] at h |
| 68 | exact (congrArg (addEquiv k X M n) (Ext.smul_eq_comp_mk₀ x r)).trans h |
| 69 | |
| 70 | theorem finite [IsProper X.hom] (M : X.left.Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 71 | (n : ℕ) : Module.Finite k (Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf k X) (sheaf k X M) n) := by |
| 72 | let := NumberTheory.PadicHodge.IntegralComparison.Projective.CoherentFiniteness.coefficientModule k X.hom M n |
| 73 | let : Module.Finite k (SheafCohomology.AffineH.Projective.H M n) := ProperCoherentCoefficient.ProperCoherentFiniteness.coefficient k X.hom M n |
| 74 | exact Module.Finite.equiv (linearEquiv k X M n).symm |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCoherentAdd.ProperCoherentCoefficientExt |