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.ExhaustiveSectionNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedSection.Difference |
| 3 | |
| 4 | /-! # All Bounded Sections Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AllBoundedSectionsFunctor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the product of all bounded section functors and its difference transformation |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustivePresheafSections OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustiveLinearSections |
| 17 | |
| 18 | universe u v w z t |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] {D : Type w} [Category.{z} D] |
| 21 | [Preadditive D] (R : Type t) [CommRing R] [Linear R D] |
| 22 | (P : ℕ → ObjectProperty C) (hP : Monotone P) (M : D) |
| 23 | |
| 24 | def map {F G : Cᵒᵖ ⥤ D} (β : F ⟶ G) : (∀ n, ExhaustivePresheafSections.Stage P M F n) →ₗ[R] (∀ n, ExhaustivePresheafSections.Stage P M G n) where |
| 25 | toFun a n := a n ≫ Functor.whiskerLeft (P n).ι.op β |
| 26 | map_add' a b := by |
| 27 | funext n |
| 28 | exact Preadditive.add_comp _ _ _ (a n) (b n) (Functor.whiskerLeft (P n).ι.op β) |
| 29 | map_smul' r a := by |
| 30 | funext n |
| 31 | exact Linear.smul_comp _ _ _ r (a n) (Functor.whiskerLeft (P n).ι.op β) |
| 32 | |
| 33 | def functor : (Cᵒᵖ ⥤ D) ⥤ ModuleCat.{max u z} R where |
| 34 | obj F := ModuleCat.of R (∀ n, ExhaustivePresheafSections.Stage P M F n) |
| 35 | map β := ModuleCat.ofHom (AllBoundedSectionsFunctor.map R P M β) |
| 36 | map_id F := by |
| 37 | apply ModuleCat.hom_ext |
| 38 | apply LinearMap.ext |
| 39 | intro a |
| 40 | funext n |
| 41 | exact Category.comp_id (a n) |
| 42 | map_comp α β := by |
| 43 | apply ModuleCat.hom_ext |
| 44 | apply LinearMap.ext |
| 45 | intro a |
| 46 | funext n |
| 47 | exact (Category.assoc (a n) (Functor.whiskerLeft (P n).ι.op α) (Functor.whiskerLeft (P n).ι.op β)).symm |
| 48 | |
| 49 | instance additive : (functor R P M).Additive where |
| 50 | map_add {F G} α β := by |
| 51 | apply ModuleCat.hom_ext |
| 52 | apply LinearMap.ext |
| 53 | intro a |
| 54 | funext n |
| 55 | exact Preadditive.comp_add _ _ _ (a n) (Functor.whiskerLeft (P n).ι.op α) (Functor.whiskerLeft (P n).ι.op β) |
| 56 | |
| 57 | def inclusion : ExhaustiveSectionNaturality.boundedSectionsFunctor R P hP M ⟶ functor R P M where |
| 58 | app F := ModuleCat.ofHom (ExhaustiveLinearSections.compatibleSubmodule R P hP M F).subtype |
| 59 | naturality _ _ _ := ModuleCat.hom_ext (LinearMap.ext (fun _ => rfl)) |
| 60 | |
| 61 | def difference : functor R P M ⟶ functor R P M where |
| 62 | app F := ModuleCat.ofHom (BoundedSection.Difference.difference P hP M F R) |
| 63 | naturality F G β := by |
| 64 | apply ModuleCat.hom_ext |
| 65 | apply LinearMap.ext |
| 66 | intro a |
| 67 | funext n |
| 68 | change (a n ≫ Functor.whiskerLeft (P n).ι.op β) - |
| 69 | (ExhaustivePresheafSections.restrict P hP M F n (n + 1) (Nat.le_succ n) (a (n + 1)) ≫ Functor.whiskerLeft (P n).ι.op β) = |
| 70 | (a n - ExhaustivePresheafSections.restrict P hP M F n (n + 1) (Nat.le_succ n) (a (n + 1))) ≫ Functor.whiskerLeft (P n).ι.op β |
| 71 | rw [Preadditive.sub_comp] |
| 72 | |
| 73 | theorem inclusion_difference : inclusion R P hP M ≫ difference R P hP M = 0 := by |
| 74 | apply NatTrans.ext |
| 75 | funext F |
| 76 | apply ModuleCat.hom_ext |
| 77 | apply LinearMap.ext |
| 78 | intro a |
| 79 | exact (BoundedSection.Difference.compatible_iff_difference_zero P hP M F R a.val).mp a.property |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AllBoundedSectionsFunctor |