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.Frame.GlobalSectionPullback |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.LevelZero.FrobeniusGlobalOpenMap |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Section.CochainPullback |
| 4 | |
| 5 | /-! # Frame Open Frobenius -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.LevelZero.FrameOpenFrobenius.LevelZeroFrameOpenFrobenius |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original frame-to-open-section maps commute with the actual level-zero |
| 12 | Frobenius restriction and its original geometric frame map. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | private theorem composeSquares {D : Type*} [Category* D] {A B C E F G H K : D} |
| 17 | (a : A ⟶ B) (b : B ⟶ C) (c : C ⟶ E) (d : E ⟶ K) |
| 18 | (e : B ⟶ F) (f : F ⟶ E) (g : F ⟶ G) (i : G ⟶ K) (l : A ⟶ H) (j : H ⟶ G) |
| 19 | (h₁ : b ≫ c = e ≫ f) (h₂ : f ≫ d = g ≫ i) (h₃ : a ≫ e ≫ g = l ≫ j) : |
| 20 | (a ≫ b) ≫ (c ≫ d) = l ≫ (j ≫ i) := by |
| 21 | have h : b ≫ c ≫ d = (e ≫ g) ≫ i := by |
| 22 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 23 | exact (Category.assoc _ _ _).trans |
| 24 | ((congrArg (fun q => a ≫ q) h).trans |
| 25 | ((Category.assoc a (e ≫ g) i).symm.trans |
| 26 | ((congrArg (fun q => q ≫ i) h₃).trans (Category.assoc _ _ _)))) |
| 27 | |
| 28 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction |
| 29 | variable (p : ℕ) [Fact p.Prime] |
| 30 | (Y : Over (Spec (CommRingCat.of (ZMod p)))) [IsSeparated Y.hom] |
| 31 | (F : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := Ideal.span {(p : WittVector p (ZMod p))}) |
| 32 | (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 33 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y) 0) |
| 34 | |
| 35 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p (ZMod p)) |
| 36 | local notation "w" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y |
| 37 | local notation "g" => Over.Hom.left (OAI.AlgebraicGeometry.FormalGeometry.Completion.Frobenius.Construction.finiteFieldSchemeFrobenius (ZMod p) Y) |
| 38 | local notation "hg" => OAI.NumberTheory.PadicHodge.GeometricComparison.LevelZero.CrystallineFrobenius.LevelZeroCrystallineFrobenius.over_witt p Y |
| 39 | local notation "a" => OAI.NumberTheory.PadicHodge.GeometricComparison.LevelZero.CrystallineFrobenius.LevelZeroCrystallineFrobenius.map p Y F |
| 40 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.PostcomposeTopology.restriction (p := p) |
| 41 | (J := Ideal.span {(p : WittVector p (ZMod p))}) |
| 42 | (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) g hg 0 |
| 43 | local notation "Kn" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex w 0 F |
| 44 | local notation "Km" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex w 0 F |
| 45 | local notation "b" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedGeneral.FrameGeometricMap.map g hg 0 a |
| 46 | local notation "Sn" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionComplex.functor (p := p) |
| 47 | (J := Ideal.span {(p : WittVector p (ZMod p))}) |
| 48 | (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) w 0 |
| 49 | |
| 50 | local instance separated : IsSeparated w := by |
| 51 | dsimp only [IntegralComparison.Witt.Crystalline.wittStructureMap] |
| 52 | infer_instance |
| 53 | |
| 54 | local instance constPreservesZero : |
| 55 | (Functor.const Y.left.Opensᵒᵖ : ModuleCat.{2} R ⥤ Y.left.Opensᵒᵖ ⥤ ModuleCat.{2} R).PreservesZeroMorphisms where |
| 56 | map_zero _ _ := rfl |
| 57 | |
| 58 | def sectionsMap : ((Sn).mapHomologicalComplex (.up ℕ)).obj Km ⟶ |
| 59 | ((Sn).mapHomologicalComplex (.up ℕ)).obj Kn := |
| 60 | Section.CochainPullback.SectionCochainPullback.map T Sn Sn (FrobeniusOpenMap.LevelZeroFrobeniusOpenMap.largeFunctorMap p Y) b |
| 61 | |
| 62 | theorem natural : (Frame.OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation w 0).app (op F) ≫ |
| 63 | sectionsMap p Y F = |
| 64 | ((Functor.const Y.left.Opensᵒᵖ : ModuleCat.{2} R ⥤ Y.left.Opensᵒᵖ ⥤ ModuleCat.{2} R).mapHomologicalComplex (.up ℕ)).map |
| 65 | (((ModuleCat.uliftFunctor.{2, 1} R).mapHomologicalComplex (.up ℕ)).map |
| 66 | (IntegralComparison.BoundedFrame.SectionChange.frameMap a)) ≫ |
| 67 | (Frame.OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation w 0).app (op F) := by |
| 68 | apply HomologicalComplex.Hom.ext |
| 69 | funext i |
| 70 | apply NatTrans.ext |
| 71 | funext V |
| 72 | have hL := congrArg (fun q => (q.app ((Km).X i)).app V) |
| 73 | (FrobeniusGlobalOpenMap.LevelZeroFrobeniusGlobalOpenMap.natural p Y) |
| 74 | have hN := congrArg (fun q => q.app V) |
| 75 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation w 0).naturality ((b).f i)) |
| 76 | have hG := congrArg (fun q => q.f i) (Frame.GlobalSectionPullback.FrameGlobalSectionPullback.natural g hg 0 a) |
| 77 | change (((Frame.OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation w 0).app (op F)).f i ≫ |
| 78 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation w 0).app ((Km).X i)).app V) ≫ |
| 79 | (((FrobeniusOpenMap.LevelZeroFrobeniusOpenMap.largeFunctorMap p Y).app ((Km).X i)).app V ≫ |
| 80 | ((Sn).map ((b).f i)).app V) = |
| 81 | ((ModuleCat.uliftFunctor.{2, 1} R).map ((IntegralComparison.BoundedFrame.SectionChange.frameMap a).f i)) ≫ |
| 82 | (((Frame.OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation w 0).app (op F)).f i ≫ |
| 83 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation w 0).app ((Kn).X i)).app V) |
| 84 | exact composeSquares _ _ _ _ _ _ _ _ _ _ hL hN.symm hG |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.NumberTheory.PadicHodge.GeometricComparison.LevelZero.FrameOpenFrobenius.LevelZeroFrameOpenFrobenius |