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.BoundedCrystalline.CrystallineSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionRestriction |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Affine Open Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.AffineOpenSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Values of original level-zero crystalline sections on canonical affine opens respect restriction. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 18 | (X : Over (Spec (CommRingCat.of k))) |
| 19 | |
| 20 | abbrev sectionRing (U : X.left.Opens) : CommAlgCat.{u} k := |
| 21 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras k X).obj (op U) |
| 22 | |
| 23 | abbrev Sections := BoundedCrystalline.CrystallineSections.Sections (p := p) |
| 24 | (J := Ideal.span {(p : WittVector p k)}) (δ := OAI.AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 25 | (Witt.Crystalline.wittStructureMap p k X) 0 |
| 26 | |
| 27 | def frame (U : X.left.Opens) (hU : IsAffineOpen U) := |
| 28 | OpenFrame.boundedFrame p k (sectionRing k X U) X hU.fromSpec |
| 29 | (AffineOpen.SectionBase.overBase k X U hU) |
| 30 | |
| 31 | def value (s : Sections p k X) (U : X.left.Opens) (hU : IsAffineOpen U) : Γ(X.left, U) := |
| 32 | BoundedCrystalline.CrystallineSections.value (Witt.Crystalline.wittStructureMap p k X) 0 s (frame p k X U hU) |
| 33 | |
| 34 | theorem restriction (s : Sections p k X) {U V : X.left.Opens} (h : V ≤ U) |
| 35 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 36 | X.left.presheaf.map (homOfLE h).op (value p k X s U hU) = value p k X s V hV := by |
| 37 | let β : frame p k X V hV ⟶ frame p k X U hU := |
| 38 | Zero.FrameChartMap.boundedMap k (sectionRing k X U) (sectionRing k X V) |
| 39 | (AffineOpen.SectionRestriction.algHom k X h) p X hU.fromSpec hV.fromSpec |
| 40 | (AffineOpen.SectionBase.overBase k X U hU) (AffineOpen.SectionBase.overBase k X V hV) |
| 41 | (AffineOpen.SectionRestriction.factorization k X h hU hV) |
| 42 | exact BoundedCrystalline.CrystallineSections.value_natural |
| 43 | (Witt.Crystalline.wittStructureMap p k X) 0 s β |
| 44 | |
| 45 | theorem value_add (s t : Sections p k X) (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 46 | value p k X (s + t) U hU = value p k X s U hU + value p k X t U hU := rfl |
| 47 | |
| 48 | theorem value_smul (w : Crystalline.ExactRestriction.Coeff (B := WittVector p k)) |
| 49 | (s : Sections p k X) (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 50 | value p k X (w • s) U hU = |
| 51 | OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap k X U (WittVector.constantCoeff w.down) * value p k X s U hU := rfl |
| 52 | |
| 53 | omit p [Fact p.Prime] [CharP k p] in |
| 54 | theorem smooth [Smooth X.hom] (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 55 | Algebra.Smooth k (sectionRing k X U) := by |
| 56 | have h : Smooth (Spec.map (CommRingCat.ofHom (algebraMap k (sectionRing k X U)))) := by |
| 57 | have hs : Smooth (hU.fromSpec ≫ X.hom) := inferInstance |
| 58 | exact AffineOpen.SectionBase.overBase k X U hU ▸ hs |
| 59 | exact RingHom.smooth_algebraMap.mp ((HasRingHomProperty.Spec_iff (P := @Smooth)).mp h) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.AffineOpenSections |