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.Incoming.SectionRestriction |
| 2 | import Mathlib.CategoryTheory.Category.Preorder |
| 3 | |
| 4 | /-! # Section Presheaf -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionPresheaf |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: section presheaves from monotone families of full subsites |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Opposite |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionRestriction |
| 17 | |
| 18 | universe u v w z |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] {A : Type z} [Preorder A] |
| 21 | (R : Type w) [CommRing R] (M : ModuleCat.{w} R) |
| 22 | (P : A → ObjectProperty C) (hP : Monotone P) (F : Cᵒᵖ ⥤ ModuleCat.{w} R) |
| 23 | |
| 24 | def presheaf : Aᵒᵖ ⥤ ModuleCat.{max u w} R where |
| 25 | obj U := ModuleCat.of R (SectionRestriction.Sections R M (P U.unop) F) |
| 26 | map α := ModuleCat.ofHom (SectionRestriction.restrict R M (P _) (P _) F (hP α.unop.le)) |
| 27 | map_id U := by |
| 28 | apply ModuleCat.hom_ext |
| 29 | apply LinearMap.ext |
| 30 | intro a |
| 31 | exact SectionRestriction.restrict_refl R M (P U.unop) F a |
| 32 | map_comp α β := by |
| 33 | apply ModuleCat.hom_ext |
| 34 | apply LinearMap.ext |
| 35 | intro a |
| 36 | exact (SectionRestriction.restrict_comp R M (P _) (P _) F (P _) (hP β.unop.le) (hP α.unop.le) a).symm |
| 37 | |
| 38 | def map {G : Cᵒᵖ ⥤ ModuleCat.{w} R} (β : F ⟶ G) : |
| 39 | presheaf R M P hP F ⟶ presheaf R M P hP G where |
| 40 | app U := ModuleCat.ofHom (SectionRestriction.map R M (P U.unop) F β) |
| 41 | naturality U V α := by |
| 42 | apply ModuleCat.hom_ext |
| 43 | apply LinearMap.ext |
| 44 | intro a |
| 45 | exact (SectionRestriction.restrict_map R M (P V.unop) (P U.unop) F β (hP α.unop.le) a).symm |
| 46 | |
| 47 | def functor : (Cᵒᵖ ⥤ ModuleCat.{w} R) ⥤ (Aᵒᵖ ⥤ ModuleCat.{max u w} R) where |
| 48 | obj := presheaf R M P hP |
| 49 | map := SectionPresheaf.map R M P hP _ |
| 50 | map_id F := by |
| 51 | apply NatTrans.ext |
| 52 | funext U |
| 53 | apply ModuleCat.hom_ext |
| 54 | apply LinearMap.ext |
| 55 | intro a |
| 56 | exact Category.comp_id a |
| 57 | map_comp α β := by |
| 58 | apply NatTrans.ext |
| 59 | funext U |
| 60 | apply ModuleCat.hom_ext |
| 61 | apply LinearMap.ext |
| 62 | intro a |
| 63 | exact (Category.assoc a (Functor.whiskerLeft (P U.unop).ι.op α) |
| 64 | (Functor.whiskerLeft (P U.unop).ι.op β)).symm |
| 65 | |
| 66 | instance functor_additive : (functor R M P hP).Additive where |
| 67 | map_add {F G} α β := by |
| 68 | apply NatTrans.ext |
| 69 | funext U |
| 70 | apply ModuleCat.hom_ext |
| 71 | apply LinearMap.ext |
| 72 | intro a |
| 73 | exact Preadditive.comp_add _ _ _ a |
| 74 | (Functor.whiskerLeft (P U.unop).ι.op α) (Functor.whiskerLeft (P U.unop).ι.op β) |
| 75 | |
| 76 | variable (hIncoming : ∀ a {U V : C}, (U ⟶ V) → P a V → P a U) |
| 77 | |
| 78 | include hIncoming in |
| 79 | theorem map_surjective [Injective F] {U V : Aᵒᵖ} (α : U ⟶ V) : |
| 80 | Function.Surjective ((presheaf R M P hP F).map α) := |
| 81 | SectionRestriction.restrict_surjective R M (P V.unop) (P U.unop) F (hIncoming V.unop) (hP α.unop.le) |
| 82 | |
| 83 | include hIncoming in |
| 84 | theorem sheaf_map_surjective (T : GrothendieckTopology C) |
| 85 | [HasSheafify T (ModuleCat.{w} R)] (G : Sheaf T (ModuleCat.{w} R)) [Injective G] |
| 86 | {U V : Aᵒᵖ} (α : U ⟶ V) : Function.Surjective ((presheaf R M P hP G.obj).map α) := |
| 87 | SectionRestriction.sheaf_restrict_surjective R M (P V.unop) (P U.unop) (hIncoming V.unop) T G (hP α.unop.le) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionPresheaf |