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 Mathlib.CategoryTheory.ObjectProperty.FullSubcategory |
| 2 | import Mathlib.CategoryTheory.Linear.FunctorCategory |
| 3 | import Mathlib.Order.Directed |
| 4 | |
| 5 | /-! # Exhaustive Presheaf Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustivePresheafSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: presheaf sections over an increasing exhaustive family of full subcategories |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Opposite |
| 16 | |
| 17 | universe u v w z |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] {D : Type w} [Category.{z} D] |
| 20 | (P : ℕ → ObjectProperty C) (hP : Monotone P) (hC : ∀ U, ∃ n, P n U) |
| 21 | (M : D) (F : Cᵒᵖ ⥤ D) |
| 22 | |
| 23 | abbrev Stage (n : ℕ) := (Functor.const (P n).FullSubcategoryᵒᵖ).obj M ⟶ (P n).ι.op ⋙ F |
| 24 | |
| 25 | def restrict (n m : ℕ) (hnm : n ≤ m) (a : Stage P M F m) : Stage P M F n := |
| 26 | Functor.whiskerLeft (ObjectProperty.ιOfLE (hP hnm)).op a |
| 27 | |
| 28 | def restrictGlobal (a : (Functor.const Cᵒᵖ).obj M ⟶ F) (n : ℕ) : Stage P M F n := |
| 29 | Functor.whiskerLeft (P n).ι.op a |
| 30 | |
| 31 | def Compatible (a : ∀ n, Stage P M F n) : Prop := |
| 32 | ∀ n m (hnm : n ≤ m), restrict P hP M F n m hnm (a m) = a n |
| 33 | |
| 34 | theorem restrictGlobal_compatible (a : (Functor.const Cᵒᵖ).obj M ⟶ F) : |
| 35 | Compatible P hP M F (restrictGlobal P M F a) := by |
| 36 | intro n m hnm |
| 37 | apply NatTrans.ext |
| 38 | funext U |
| 39 | rfl |
| 40 | |
| 41 | def level (U : C) : ℕ := (hC U).choose |
| 42 | |
| 43 | theorem level_property (U : C) : P (level P hC U) U := (hC U).choose_spec |
| 44 | |
| 45 | def value (a : ∀ n, Stage P M F n) (U : C) : M ⟶ F.obj (op U) := |
| 46 | (a (level P hC U)).app (op ⟨U, level_property P hC U⟩) |
| 47 | |
| 48 | theorem value_eq (a : ∀ n, Stage P M F n) (ha : Compatible P hP M F a) |
| 49 | (U : C) (n : ℕ) (hn : P n U) : value P hC M F a U = (a n).app (op ⟨U, hn⟩) := by |
| 50 | let l := level P hC U |
| 51 | let m := max l n |
| 52 | have h₁ := congrArg (fun t : Stage P M F l => t.app (op ⟨U, level_property P hC U⟩)) |
| 53 | (ha l m (le_max_left l n)) |
| 54 | have h₂ := congrArg (fun t : Stage P M F n => t.app (op ⟨U, hn⟩)) |
| 55 | (ha n m (le_max_right l n)) |
| 56 | exact h₁.symm.trans h₂ |
| 57 | |
| 58 | def assemble (a : ∀ n, Stage P M F n) (ha : Compatible P hP M F a) : (Functor.const Cᵒᵖ).obj M ⟶ F where |
| 59 | app U := value P hC M F a U.unop |
| 60 | naturality U V α := by |
| 61 | let l := max (level P hC U.unop) (level P hC V.unop) |
| 62 | have hU : P l U.unop := hP (le_max_left _ _) U.unop (level_property P hC U.unop) |
| 63 | have hV : P l V.unop := hP (le_max_right _ _) V.unop (level_property P hC V.unop) |
| 64 | have h := (a l).naturality (ObjectProperty.homMk α.unop : |
| 65 | (⟨V.unop, hV⟩ : (P l).FullSubcategory) ⟶ ⟨U.unop, hU⟩).op |
| 66 | exact (congrArg (fun t => 𝟙 M ≫ t) (value_eq P hP hC M F a ha V.unop l hV)).trans |
| 67 | (h.trans (congrArg (fun t => t ≫ F.map α) (value_eq P hP hC M F a ha U.unop l hU)).symm) |
| 68 | |
| 69 | theorem assemble_restrictGlobal (a : (Functor.const Cᵒᵖ).obj M ⟶ F) : |
| 70 | assemble P hP hC M F (restrictGlobal P M F a) (restrictGlobal_compatible P hP M F a) = a := by |
| 71 | apply NatTrans.ext |
| 72 | funext U |
| 73 | rfl |
| 74 | |
| 75 | theorem restrictGlobal_assemble (a : ∀ n, Stage P M F n) (ha : Compatible P hP M F a) (n : ℕ) : |
| 76 | restrictGlobal P M F (assemble P hP hC M F a ha) n = a n := by |
| 77 | apply NatTrans.ext |
| 78 | funext U |
| 79 | exact value_eq P hP hC M F a ha U.unop.obj n U.unop.property |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustivePresheafSections |