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.CrystallinePrincipal.Modules |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FlatCoefficientSheaves |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.CoefficientFlatness |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.ExtAdjunction |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.ExtIsomorphism |
| 7 | import OAI.NumberTheory.PadicHodge.IntegralComparison.CoefficientConstants |
| 8 | |
| 9 | /-! # Principal Coefficients -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.PrincipalCoefficients |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # IntegralComparison: exact integer restriction of the actual Witt coefficient sheaves |
| 17 | |
| 18 | The actual principal-open sheaf categories have enough injectives. The |
| 19 | proved flatness of lifted Witt coefficients makes restriction to the |
| 20 | lifted integers exact and preserves injective objects. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 24 | |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.CrystallinePrincipal.Extension |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | abbrev IntegerRing (_k : Type u) := CoefficientFlatness.Integers.{u} |
| 30 | |
| 31 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 32 | |
| 33 | local notation "Z" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.PrincipalCoefficients.IntegerRing k |
| 34 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.CoefficientFlatness.Coeff p k |
| 35 | |
| 36 | variable {J : Ideal (WittVector p k)} {δ : DividedPowers J} {X : Scheme.{u}} |
| 37 | {f : X ⟶ Spec (CommRingCat.of (WittVector p k))} (U : BigCrystallineSite.Object p (WittVector p k) J δ f) |
| 38 | |
| 39 | abbrev IntegerSheaf := Sheaf (Principal.Topology.topology U.ring) (ModuleCat.{u + 1} Z) |
| 40 | |
| 41 | instance integerHasSheafify : HasSheafify (Principal.Topology.topology U.ring) (ModuleCat.{u + 1} Z) := |
| 42 | Module.SheafUniverses.hasSheafify.{u + 1, u, u} (Principal.Topology.topology U.ring) Z |
| 43 | |
| 44 | instance integerEnoughInjectives : EnoughInjectives (IntegerSheaf p k U) := |
| 45 | Module.SheafUniverses.enoughInjectives.{u + 1, u, u} (Principal.Topology.topology U.ring) Z |
| 46 | |
| 47 | instance wittEnoughInjectives : EnoughInjectives (CrystallinePrincipal.Extension.PrincipalSheaf U) := |
| 48 | Module.SheafUniverses.enoughInjectives.{u + 1, u, u} (Principal.Topology.topology U.ring) R |
| 49 | |
| 50 | abbrev extension : IntegerSheaf p k U ⥤ CrystallinePrincipal.Extension.PrincipalSheaf U := |
| 51 | FlatCoefficientSheaves.extension Z R (Principal.Topology.topology U.ring) |
| 52 | |
| 53 | abbrev restriction : CrystallinePrincipal.Extension.PrincipalSheaf U ⥤ IntegerSheaf p k U := |
| 54 | FlatCoefficientSheaves.restriction Z R (Principal.Topology.topology U.ring) |
| 55 | |
| 56 | def adjunction : extension p k U ⊣ restriction p k U := |
| 57 | FlatCoefficientSheaves.adjunction Z R (Principal.Topology.topology U.ring) |
| 58 | |
| 59 | instance extension_preservesMonos : (extension p k U).PreservesMonomorphisms := by |
| 60 | have := CoefficientFlatness.coefficient_algebra_flat p k |
| 61 | exact FlatCoefficientSheaves.extension_preservesMonos Z R (Principal.Topology.topology U.ring) |
| 62 | |
| 63 | instance restriction_preservesInjectives : (restriction p k U).PreservesInjectiveObjects := by |
| 64 | have := CoefficientFlatness.coefficient_algebra_flat p k |
| 65 | exact FlatCoefficientSheaves.restriction_preservesInjectives Z R (Principal.Topology.topology U.ring) |
| 66 | |
| 67 | instance restriction_preservesFiniteLimits : PreservesFiniteLimits (restriction p k U) := by |
| 68 | infer_instance |
| 69 | |
| 70 | instance restriction_preservesFiniteColimits : PreservesFiniteColimits (restriction p k U) := by |
| 71 | infer_instance |
| 72 | |
| 73 | instance restriction_additive : (restriction p k U).Additive := by infer_instance |
| 74 | |
| 75 | instance integerHasExt : HasExt.{u + 2} (IntegerSheaf p k U) := HasExt.standard _ |
| 76 | |
| 77 | /-- The exact coefficient adjunction acts on the actual higher Ext groups. -/ |
| 78 | def extAdjunction (M : IntegerSheaf p k U) (N : CrystallinePrincipal.Extension.PrincipalSheaf U) (n : ℕ) : |
| 79 | Abelian.Ext.{u + 2} ((extension p k U).obj M) N n ≃+ |
| 80 | Abelian.Ext.{u + 2} M ((restriction p k U).obj N) n := |
| 81 | Independent.ExtAdjunction.equivalence (restriction p k U) (adjunction p k U) M N n |
| 82 | |
| 83 | abbrev integerConstantUnit : IntegerSheaf p k U := |
| 84 | (constantSheaf (Principal.Topology.topology U.ring) (ModuleCat.{u + 1} Z)).obj |
| 85 | (ModuleCat.of Z Z) |
| 86 | |
| 87 | def extensionConstantIso : |
| 88 | (extension p k U).obj (integerConstantUnit p k U) ≅ |
| 89 | CrystallinePrincipal.Constant.Comparison.principalConstantUnit U := |
| 90 | CoefficientConstants.extensionConstantIso Z R (Principal.Topology.topology U.ring) |
| 91 | |
| 92 | /-- Change coefficients in actual cohomology, including its constant source. -/ |
| 93 | def constantExtEquiv (N : CrystallinePrincipal.Extension.PrincipalSheaf U) (n : ℕ) : |
| 94 | Abelian.Ext.{u + 2} (CrystallinePrincipal.Constant.Comparison.principalConstantUnit U) N n ≃+ |
| 95 | Abelian.Ext.{u + 2} (integerConstantUnit p k U) ((restriction p k U).obj N) n := |
| 96 | (Independent.ExtIsomorphism.sourceEquiv (extensionConstantIso p k U).symm N n).trans |
| 97 | (extAdjunction p k U (integerConstantUnit p k U) N n) |
| 98 | |
| 99 | /-- The comparison applies to the original crystalline slice structure sheaf. -/ |
| 100 | def sliceCohomologyEquiv (n : ℕ) : |
| 101 | Crystalline.SliceStructure.Cohomology U n ≃+ |
| 102 | Abelian.Ext.{u + 2} (integerConstantUnit p k U) |
| 103 | ((restriction p k U).obj (CrystallinePrincipal.Modules.zariskiUnitSheaf U)) n := |
| 104 | (CrystallinePrincipal.Modules.cohomologyEquiv U n).toAddEquiv.trans |
| 105 | (constantExtEquiv p k U (CrystallinePrincipal.Modules.zariskiUnitSheaf U) n) |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.PrincipalCoefficients |