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.GlobalSectionLevel |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Bounded.GlobalOpenSectionLevel |
| 3 | |
| 4 | /-! # Open Section Level -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenSectionLevel.FrameOpenSectionLevel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original frame-to-open-section maps commute with bounded-level |
| 11 | restriction and the actual frame morphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | private theorem composeSquares {D : Type*} [Category* D] {A B C E F G H K : D} |
| 16 | (a : A ⟶ B) (b : B ⟶ C) (c : C ⟶ E) (d : E ⟶ K) |
| 17 | (e : B ⟶ F) (f : F ⟶ E) (g : F ⟶ G) (i : G ⟶ K) (l : A ⟶ H) (j : H ⟶ G) |
| 18 | (h₁ : b ≫ c = e ≫ f) (h₂ : f ≫ d = g ≫ i) (h₃ : a ≫ e ≫ g = l ≫ j) : |
| 19 | (a ≫ b) ≫ (c ≫ d) = l ≫ (j ≫ i) := by |
| 20 | have h : b ≫ c ≫ d = (e ≫ g) ≫ i := by |
| 21 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 22 | exact (Category.assoc _ _ _).trans |
| 23 | ((congrArg (fun q => a ≫ q) h).trans |
| 24 | ((Category.assoc a (e ≫ g) i).symm.trans |
| 25 | ((congrArg (fun q => q ≫ i) h₃).trans (Category.assoc _ _ _)))) |
| 26 | |
| 27 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction |
| 28 | universe u |
| 29 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 30 | {Y : Scheme.{u}} (f : Y ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 31 | (n m : ℕ) (hnm : n ≤ m) |
| 32 | {Fn : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) f n} |
| 33 | {Fm : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := J) (δ := δ) f m} |
| 34 | (a : (IntegralComparison.BoundedCrystalline.LevelMaps.inclusion (p := p) (J := J) (δ := δ) f n m hnm).obj Fn ⟶ Fm) |
| 35 | |
| 36 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 37 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.LevelMaps.restriction (p := p) (J := J) (δ := δ) f n m hnm |
| 38 | local notation "Kn" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex f n Fn |
| 39 | local notation "Km" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex f m Fm |
| 40 | local notation "b" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedLevel.FrameMap.map f n m hnm a |
| 41 | local notation "Sn" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionComplex.functor (p := p) (J := J) (δ := δ) f n |
| 42 | |
| 43 | local instance constPreservesZero : |
| 44 | (Functor.const Y.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ Y.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).PreservesZeroMorphisms where |
| 45 | map_zero _ _ := rfl |
| 46 | |
| 47 | theorem natural : (OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation f m).app (op Fm) ≫ |
| 48 | ((Bounded.OpenSectionLevel.BoundedOpenSectionLevel.transformation f n m hnm).mapHomologicalComplex (.up ℕ)).app Km ≫ |
| 49 | ((Sn).mapHomologicalComplex (.up ℕ)).map b = |
| 50 | ((Functor.const Y.Opensᵒᵖ : ModuleCat.{u + 2} R ⥤ Y.Opensᵒᵖ ⥤ ModuleCat.{u + 2} R).mapHomologicalComplex (.up ℕ)).map |
| 51 | (((ModuleCat.uliftFunctor.{u + 2, u + 1} R).mapHomologicalComplex (.up ℕ)).map |
| 52 | (IntegralComparison.BoundedFrame.SectionChange.frameMap a)) ≫ |
| 53 | (OpenSectionNaturality.FrameOpenSectionNaturality.openTransformation f n).app (op Fn) := by |
| 54 | apply HomologicalComplex.Hom.ext |
| 55 | funext i |
| 56 | apply NatTrans.ext |
| 57 | funext V |
| 58 | have hL := congrArg (fun q => (q.app ((Km).X i)).app V) |
| 59 | (Bounded.GlobalOpenSectionLevel.BoundedGlobalOpenSectionLevel.natural f n m hnm) |
| 60 | have hN := congrArg (fun q => q.app V) |
| 61 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation f n).naturality ((b).f i)) |
| 62 | have hG := congrArg (fun q => q.f i) (GlobalSectionLevel.FrameGlobalSectionLevel.natural f n m hnm a) |
| 63 | change (((OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation f m).app (op Fm)).f i ≫ |
| 64 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation f m).app ((Km).X i)).app V) ≫ |
| 65 | (((Bounded.OpenSectionLevel.BoundedOpenSectionLevel.transformation f n m hnm).app ((Km).X i)).app V ≫ |
| 66 | ((Sn).map ((b).f i)).app V) = |
| 67 | ((ModuleCat.uliftFunctor.{u + 2, u + 1} R).map ((IntegralComparison.BoundedFrame.SectionChange.frameMap a).f i)) ≫ |
| 68 | (((OpenSectionNaturality.FrameOpenSectionNaturality.globalTransformation f n).app (op Fn)).f i ≫ |
| 69 | ((Bounded.GlobalSectionRestriction.BoundedGlobalSectionRestriction.transformation f n).app ((Kn).X i)).app V) |
| 70 | exact composeSquares _ _ _ _ _ _ _ _ _ _ hL hN.symm hG |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.OpenSectionLevel.FrameOpenSectionLevel |