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.Crystalline.SeparatedProductLift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SliceStructure |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SliceExactExtension |
| 4 | import Mathlib.CategoryTheory.Preadditive.Injective.Preserves |
| 5 | |
| 6 | /-! # Slice Image -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SliceImage |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # IntegralComparison: actual direct image from a crystalline slice |
| 14 | |
| 15 | The proved products over a separated scheme give the right adjoint to |
| 16 | the crystalline slice-forgetful functor. The resulting direct image on |
| 17 | the original module sheaves is right adjoint to exact slice restriction |
| 18 | and preserves injectives. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] |
| 28 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 29 | (f : X ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 30 | |
| 31 | instance bigBinaryProducts : HasBinaryProducts (BigCrystallineSite.Object p B J δ f) := by |
| 32 | have (U V : BigCrystallineSite.Object p B J δ f) : HasBinaryProduct U V := |
| 33 | HasLimit.mk ⟨SeparatedProductLift.fan f U V (Fact.out : p.Prime).pos, |
| 34 | SeparatedProductLift.isProduct f U V (Fact.out : p.Prime).pos⟩ |
| 35 | exact hasBinaryProducts_of_hasLimit_pair _ |
| 36 | |
| 37 | variable (U : BigCrystallineSite.Object p B J δ f) |
| 38 | |
| 39 | abbrev SliceSheaf := Sheaf (BigCrystallineSite.Object.topology.over U) (ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) |
| 40 | |
| 41 | abbrev restriction : ExactRestriction.ModuleSheaf (p := p) (J := J) (δ := δ) f ⥤ SliceSheaf f U := |
| 42 | BigCrystallineSite.Object.topology.overPullback (ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) U |
| 43 | |
| 44 | abbrev directImage : SliceSheaf f U ⥤ ExactRestriction.ModuleSheaf (p := p) (J := J) (δ := δ) f := |
| 45 | (Over.star U).sheafPushforwardContinuous (ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) |
| 46 | BigCrystallineSite.Object.topology (BigCrystallineSite.Object.topology.over U) |
| 47 | |
| 48 | def adjunction : restriction f U ⊣ directImage f U := |
| 49 | (Over.forgetAdjStar U).sheafPushforwardContinuous (E := ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) |
| 50 | (BigCrystallineSite.Object.topology.over U) BigCrystallineSite.Object.topology |
| 51 | |
| 52 | instance restriction_leftAdjoint : (restriction f U).IsLeftAdjoint := |
| 53 | ((Over.forget U).sheafAdjunctionCocontinuous (ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) |
| 54 | (BigCrystallineSite.Object.topology.over U) BigCrystallineSite.Object.topology).isLeftAdjoint |
| 55 | |
| 56 | instance restriction_rightAdjoint : (restriction f U).IsRightAdjoint := |
| 57 | ((Over.forget U).sheafAdjunctionContinuous (ModuleCat.{u + 1} (ExactRestriction.Coeff (B := B))) |
| 58 | (BigCrystallineSite.Object.topology.over U) BigCrystallineSite.Object.topology).isRightAdjoint |
| 59 | |
| 60 | instance restriction_preservesFiniteLimits : PreservesFiniteLimits (restriction f U) := by infer_instance |
| 61 | |
| 62 | instance restriction_preservesFiniteColimits : PreservesFiniteColimits (restriction f U) := by infer_instance |
| 63 | |
| 64 | instance restriction_additive : (restriction f U).Additive where |
| 65 | map_add := by intros; rfl |
| 66 | |
| 67 | instance restriction_preservesInjectives : (restriction f U).PreservesInjectiveObjects := |
| 68 | SliceExactExtension.restriction_preservesInjectives.{u + 1, u} |
| 69 | (ExactRestriction.Coeff (B := B)) U BigCrystallineSite.Object.topology |
| 70 | |
| 71 | instance directImage_rightAdjoint : (directImage f U).IsRightAdjoint := (adjunction f U).isRightAdjoint |
| 72 | |
| 73 | instance directImage_additive : (directImage f U).Additive where |
| 74 | map_add := by intros; rfl |
| 75 | |
| 76 | instance directImage_preservesFiniteLimits : PreservesFiniteLimits (directImage f U) := by infer_instance |
| 77 | |
| 78 | instance directImage_preservesInjectives : (directImage f U).PreservesInjectiveObjects := |
| 79 | Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms (adjunction f U) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SliceImage |