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.ZeroLevel.AffineOpenSections |
| 2 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 4 | |
| 5 | /-! # Global Functions -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.GlobalFunctions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Original crystalline section values glue to actual global regular functions. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.AffineOpenSections |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 20 | (X : Over (Spec (CommRingCat.of k))) [IsSeparated X.hom] |
| 21 | |
| 22 | omit p [Fact p.Prime] [CharP k p] in |
| 23 | theorem affine_inf {U V : X.left.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 24 | IsAffineOpen (U ⊓ V) := |
| 25 | (isAffineHom_diagonal_iff (f := X.hom)).mp (inferInstance : IsAffineHom (pullback.diagonal X.hom)) |
| 26 | ⊤ (isAffineOpen_top _) U (by simp) V (by simp) hU hV |
| 27 | |
| 28 | theorem exists_unique (s : AffineOpenSections.Sections p k X) : |
| 29 | ∃! a : Γ(X.left, ⊤), ∀ (U : X.left.Opens) (hU : IsAffineOpen U), |
| 30 | X.left.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op a = AffineOpenSections.value p k X s U hU := by |
| 31 | let V : X.left.affineOpens → X.left.Opens := fun U => U.val |
| 32 | let a (U : X.left.affineOpens) := AffineOpenSections.value p k X s U.val U.property |
| 33 | have ha : TopCat.Presheaf.IsCompatible X.left.presheaf V a := by |
| 34 | intro U W |
| 35 | exact (AffineOpenSections.restriction p k X s inf_le_left U.property (affine_inf k X U.property W.property)).trans |
| 36 | (AffineOpenSections.restriction p k X s inf_le_right W.property (affine_inf k X U.property W.property)).symm |
| 37 | obtain ⟨b, hb, hu⟩ := X.left.sheaf.existsUnique_gluing' V ⊤ (fun _ => homOfLE le_top) |
| 38 | (iSup_affineOpens_eq_top X.left).ge a ha |
| 39 | refine ⟨b, fun U hU => hb ⟨U, hU⟩, ?_⟩ |
| 40 | intro c hc |
| 41 | exact hu c (fun U => hc U.val U.property) |
| 42 | |
| 43 | def value (s : AffineOpenSections.Sections p k X) : Γ(X.left, ⊤) := (exists_unique p k X s).choose |
| 44 | |
| 45 | theorem restriction (s : AffineOpenSections.Sections p k X) (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 46 | X.left.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op (value p k X s) = |
| 47 | AffineOpenSections.value p k X s U hU := |
| 48 | (exists_unique p k X s).choose_spec.1 U hU |
| 49 | |
| 50 | theorem unique (s : AffineOpenSections.Sections p k X) (a : Γ(X.left, ⊤)) |
| 51 | (h : ∀ (U : X.left.Opens) (hU : IsAffineOpen U), |
| 52 | X.left.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op a = |
| 53 | AffineOpenSections.value p k X s U hU) : a = value p k X s := |
| 54 | (exists_unique p k X s).choose_spec.2 a h |
| 55 | |
| 56 | theorem value_add (s t : AffineOpenSections.Sections p k X) : value p k X (s + t) = value p k X s + value p k X t := by |
| 57 | symm |
| 58 | apply unique p k X |
| 59 | intro U hU |
| 60 | rw [map_add, restriction, restriction, AffineOpenSections.value_add] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.GlobalFunctions |