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.ExhaustiveLinearSections |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 3 | import Mathlib.CategoryTheory.Category.Preorder |
| 4 | |
| 5 | /-! # Limit -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedSection.Limit |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: compatible bounded sections form the native inverse limit |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustivePresheafSections OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustiveLinearSections |
| 18 | |
| 19 | universe u v w z t |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] {D : Type w} [Category.{z} D] |
| 22 | [Preadditive D] (R : Type t) [CommRing R] [Linear R D] |
| 23 | (P : ℕ → ObjectProperty C) (hP : Monotone P) (M : D) (F : Cᵒᵖ ⥤ D) |
| 24 | |
| 25 | def diagram : ℕᵒᵖ ⥤ ModuleCat.{max u z} R where |
| 26 | obj n := ModuleCat.of R (ExhaustivePresheafSections.Stage P M F n.unop) |
| 27 | map {n m} α := ModuleCat.ofHom |
| 28 | { toFun := ExhaustivePresheafSections.restrict P hP M F m.unop n.unop (leOfHom α.unop) |
| 29 | map_add' := fun _ _ => rfl |
| 30 | map_smul' := fun _ _ => rfl } |
| 31 | map_id n := by |
| 32 | apply ModuleCat.hom_ext |
| 33 | apply LinearMap.ext |
| 34 | intro a |
| 35 | apply NatTrans.ext |
| 36 | funext U |
| 37 | rfl |
| 38 | map_comp α β := by |
| 39 | apply ModuleCat.hom_ext |
| 40 | apply LinearMap.ext |
| 41 | intro a |
| 42 | apply NatTrans.ext |
| 43 | funext U |
| 44 | rfl |
| 45 | |
| 46 | def cone : Cone (diagram R P hP M F) where |
| 47 | pt := ModuleCat.of R (ExhaustiveLinearSections.compatibleSubmodule R P hP M F) |
| 48 | π := |
| 49 | { app := fun n => ModuleCat.ofHom |
| 50 | { toFun := fun a => a.val n.unop |
| 51 | map_add' := fun _ _ => rfl |
| 52 | map_smul' := fun _ _ => rfl } |
| 53 | naturality := by |
| 54 | intro n m α |
| 55 | apply ModuleCat.hom_ext |
| 56 | apply LinearMap.ext |
| 57 | intro a |
| 58 | exact (a.property m.unop n.unop (leOfHom α.unop)).symm } |
| 59 | |
| 60 | def lift (s : Cone (diagram R P hP M F)) : s.pt ⟶ (cone R P hP M F).pt := |
| 61 | ModuleCat.ofHom |
| 62 | { toFun := fun x => ⟨fun n => s.π.app (op n) x, by |
| 63 | intro n m hnm |
| 64 | exact (congrArg (fun g : s.pt ⟶ (diagram R P hP M F).obj (op n) => g x) |
| 65 | (s.π.naturality (homOfLE hnm).op)).symm⟩ |
| 66 | map_add' := fun x y => Subtype.ext (funext (fun n => (s.π.app (op n)).hom.map_add x y)) |
| 67 | map_smul' := fun r x => Subtype.ext (funext (fun n => (s.π.app (op n)).hom.map_smul r x)) } |
| 68 | |
| 69 | def isLimit : IsLimit (cone R P hP M F) where |
| 70 | lift := Limit.lift R P hP M F |
| 71 | fac s n := by |
| 72 | apply ModuleCat.hom_ext |
| 73 | apply LinearMap.ext |
| 74 | intro x |
| 75 | rfl |
| 76 | uniq s a ha := by |
| 77 | apply ModuleCat.hom_ext |
| 78 | apply LinearMap.ext |
| 79 | intro x |
| 80 | apply Subtype.ext |
| 81 | funext n |
| 82 | exact congrArg (fun g : s.pt ⟶ (diagram R P hP M F).obj (op n) => g x) (ha (op n)) |
| 83 | |
| 84 | def limitIso : ModuleCat.of R (ExhaustiveLinearSections.compatibleSubmodule R P hP M F) ≅ limit (diagram R P hP M F) := |
| 85 | (Limit.isLimit R P hP M F).conePointUniqueUpToIso (limit.isLimit (diagram R P hP M F)) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedSection.Limit |