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.Bounded.LargeOpenMap |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Section.CochainPullback |
| 4 | |
| 5 | /-! # Open Naturality -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenNaturality.FrameGeometricOpenNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Original frame-to-open-section comparison commutes with arbitrary |
| 12 | geometric pullback to inverse-image opens. -/ |
| 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 | universe u |
| 30 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 31 | {X Y : Scheme.{u}} {fX : X ⟶ Spec (CommRingCat.of B)} {fY : Y ⟶ Spec (CommRingCat.of B)} |
| 32 | [IsSeparated fX] [IsSeparated fY] (g : X ⟶ Y) (hg : g ≫ fY = fX) (n : ℕ) |
| 33 | {FX : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) fX n} |
| 34 | {FY : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) fY n} |
| 35 | (a : (IntegralComparison.BoundedOpen.Equivalence.postcompose (p := p) (J := J) (δ := δ) g hg n).obj FX ⟶ FY) |
| 36 | |
| 37 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 38 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.PostcomposeTopology.restriction (p := p) (J := J) (δ := δ) g hg n |
| 39 | local notation "Kn" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex fX n FX |
| 40 | local notation "Km" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex fY n FY |
| 41 | local notation "b" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedGeneral.FrameGeometricMap.map g hg n a |
| 42 | local notation "SX" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionComplex.functor (p := p) (J := J) (δ := δ) fX n |
| 43 | local notation "SY" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionComplex.functor (p := p) (J := J) (δ := δ) fY n |
| 44 | local notation "H" => OAI.NumberTheory.PadicHodge.GeometricComparison.Bounded.LargeOpenMap.BoundedGeometricLargeOpenMap.precompose (B := B) g |
| 45 | |
| 46 | local instance constXZero : |
| 47 | (Functor.const X.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ X.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).PreservesZeroMorphisms where |
| 48 | map_zero _ _ := rfl |
| 49 | local instance constYZero : |
| 50 | (Functor.const Y.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ Y.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).PreservesZeroMorphisms where |
| 51 | map_zero _ _ := rfl |
| 52 | |
| 53 | def sectionsMap : ((SY).mapHomologicalComplex (.up ℕ)).obj Km ⟶ |
| 54 | ((SX ⋙ H).mapHomologicalComplex (.up ℕ)).obj Kn := |
| 55 | Section.CochainPullback.SectionCochainPullback.map T SY (SX ⋙ H) (Bounded.LargeOpenMap.BoundedGeometricLargeOpenMap.functorMap g hg n) b |
| 56 | |
| 57 | theorem natural : (OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fY n).app (op FY) ≫ |
| 58 | sectionsMap g hg n a = |
| 59 | ((Functor.const Y.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ Y.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).mapHomologicalComplex (.up ℕ)).map |
| 60 | (((ModuleCat.uliftFunctor.{u + 2, u + 1} R).mapHomologicalComplex (.up ℕ)).map |
| 61 | (IntegralComparison.BoundedFrame.SectionChange.frameMap a)) ≫ |
| 62 | ((H).mapHomologicalComplex (.up ℕ)).map |
| 63 | ((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fX n).app (op FX)) := by |
| 64 | apply HomologicalComplex.Hom.ext |
| 65 | funext i |
| 66 | apply NatTrans.ext |
| 67 | funext V |
| 68 | have hL := congrArg (fun q => (q.app ((Km).X i)).app V) |
| 69 | (Bounded.LargeOpenMap.BoundedGeometricLargeOpenMap.natural g hg n) |
| 70 | have hN := congrArg (fun q => q.app (op (g ⁻¹ᵁ V.unop))) |
| 71 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation fX n).naturality ((b).f i)) |
| 72 | have hG := congrArg (fun q => q.f i) (GlobalSectionPullback.FrameGlobalSectionPullback.natural g hg n a) |
| 73 | change (((OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation fY n).app (op FY)).f i ≫ |
| 74 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation fY n).app ((Km).X i)).app V) ≫ |
| 75 | (((Bounded.LargeOpenMap.BoundedGeometricLargeOpenMap.functorMap g hg n).app ((Km).X i)).app V ≫ |
| 76 | ((SX).map ((b).f i)).app (op (g ⁻¹ᵁ V.unop))) = |
| 77 | ((ModuleCat.uliftFunctor.{u + 2, u + 1} R).map ((IntegralComparison.BoundedFrame.SectionChange.frameMap a).f i)) ≫ |
| 78 | (((OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation fX n).app (op FX)).f i ≫ |
| 79 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation fX n).app ((Kn).X i)).app (op (g ⁻¹ᵁ V.unop))) |
| 80 | exact composeSquares _ _ _ _ _ _ _ _ _ _ hL hN.symm hG |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenNaturality.FrameGeometricOpenNaturality |