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.OpenCombined |
| 2 | |
| 3 | /-! # Open Restriction -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenRestriction.FrameGeometricOpenRestriction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The geometric frame-to-section square restricts to every open |
| 10 | contained in the inverse image of the target open. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | private theorem restrictSquare {D : Type*} [Category* D] {A B C E F G H : D} |
| 15 | (a : A ⟶ B) (b : B ⟶ C) (c : C ⟶ E) (d : A ⟶ F) (e : F ⟶ E) |
| 16 | (r : C ⟶ G) (s : G ⟶ H) (t : E ⟶ H) (f : F ⟶ H) |
| 17 | (h₁ : a ≫ b ≫ c = d ≫ e) (h₂ : r ≫ s = c ≫ t) (h₃ : e ≫ t = f) : |
| 18 | a ≫ (b ≫ r) ≫ s = d ≫ f := by |
| 19 | calc |
| 20 | a ≫ (b ≫ r) ≫ s = (a ≫ b) ≫ (r ≫ s) := by simp only [Category.assoc] |
| 21 | _ = (a ≫ b) ≫ (c ≫ t) := congrArg (fun q => (a ≫ b) ≫ q) h₂ |
| 22 | _ = (a ≫ b ≫ c) ≫ t := by simp only [Category.assoc] |
| 23 | _ = (d ≫ e) ≫ t := congrArg (fun q => q ≫ t) h₁ |
| 24 | _ = d ≫ f := by rw [Category.assoc, h₃] |
| 25 | |
| 26 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction |
| 27 | universe u |
| 28 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 29 | {X Y : Scheme.{u}} {fX : X ⟶ Spec (CommRingCat.of B)} {fY : Y ⟶ Spec (CommRingCat.of B)} |
| 30 | [IsSeparated fX] [IsSeparated fY] (g : X ⟶ Y) (hg : g ≫ fY = fX) (n : ℕ) |
| 31 | {FX : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) fX n} |
| 32 | {FY : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) fY n} |
| 33 | (a : (IntegralComparison.BoundedOpen.Equivalence.postcompose (p := p) (J := J) (δ := δ) g hg n).obj FX ⟶ FY) |
| 34 | |
| 35 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 36 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.PostcomposeTopology.restriction (p := p) (J := J) (δ := δ) g hg n |
| 37 | local notation "Kn" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex fX n FX |
| 38 | local notation "Km" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex fY n FY |
| 39 | local notation "SX" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionComplex.functor (p := p) (J := J) (δ := δ) fX n |
| 40 | local notation "b" => OAI.NumberTheory.PadicHodge.GeometricComparison.BoundedFrame.PullbackSheaf.BoundedFramePullbackSheaf.map g hg n FX FY a |
| 41 | |
| 42 | local instance constXZero : |
| 43 | (Functor.const X.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ X.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).PreservesZeroMorphisms where |
| 44 | map_zero _ _ := rfl |
| 45 | local instance constYZero : |
| 46 | (Functor.const Y.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ Y.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).PreservesZeroMorphisms where |
| 47 | map_zero _ _ := rfl |
| 48 | |
| 49 | theorem natural (U : Y.Opens) (V : X.Opens) (h : V ≤ g ⁻¹ᵁ U) (i : ℕ) : |
| 50 | (((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fY n).app (op FY)).f i).app (op U) ≫ |
| 51 | (((Bounded.LargeOpenMap.BoundedGeometricLargeOpenMap.functorMap g hg n).app ((Km).X i)).app (op U) ≫ |
| 52 | ((SX).obj ((T).obj ((Km).X i))).map (homOfLE h).op) ≫ |
| 53 | ((SX).map ((b).f i)).app (op V) = |
| 54 | (ModuleCat.uliftFunctor.{u + 2, u + 1} R).map ((IntegralComparison.BoundedFrame.SectionChange.frameMap a).f i) ≫ |
| 55 | (((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fX n).app (op FX)).f i).app (op V) := by |
| 56 | have h₁ := congrArg (fun q => (q.f i).app (op U)) (OpenCombined.FrameGeometricOpenCombined.natural g hg n a) |
| 57 | have h₂ := ((SX).map ((b).f i)).naturality (homOfLE h).op |
| 58 | have h₃ := (((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fX n).app (op FX)).f i).naturality (homOfLE h).op |
| 59 | have h₃' : (((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fX n).app (op FX)).f i).app (op (g ⁻¹ᵁ U)) ≫ |
| 60 | ((SX).obj ((Kn).X i)).map (homOfLE h).op = |
| 61 | (((OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation fX n).app (op FX)).f i).app (op V) := by |
| 62 | exact h₃.symm.trans (Category.id_comp _) |
| 63 | exact restrictSquare _ _ _ _ _ _ _ _ _ h₁ h₂ h₃' |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenRestriction.FrameGeometricOpenRestriction |