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.GeometricComparison.IncomingSection |
| 2 | |
| 3 | /-! # Section Subsite -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionSubsite |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Sections on a family of opens contained in one fixed subsite |
| 10 | are unchanged by restricting the coefficient presheaf to that subsite. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory Opposite |
| 13 | |
| 14 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionRestriction |
| 15 | universe u v w z |
| 16 | variable {C : Type u} [Category.{v} C] {D : Type z} [Preorder D] |
| 17 | (R : Type w) [CommRing R] (M : ModuleCat.{w} R) |
| 18 | (P : ObjectProperty C) (Q : D → ObjectProperty C) (hQ : Monotone Q) |
| 19 | (h : ∀ d, Q d ≤ P) |
| 20 | |
| 21 | def nested (d : D) : ObjectProperty P.FullSubcategory := fun X => Q d X.obj |
| 22 | |
| 23 | include hQ in |
| 24 | theorem nested_monotone : Monotone (nested P Q) := by |
| 25 | intro a b hab X hX |
| 26 | exact hQ hab X.obj hX |
| 27 | |
| 28 | def sectionsEquiv (d : D) (F : Cᵒᵖ ⥤ ModuleCat.{w} R) : |
| 29 | SectionRestriction.Sections R M (Q d) F ≃ₗ[R] SectionRestriction.Sections R M (nested P Q d) (P.ι.op ⋙ F) where |
| 30 | toFun a := |
| 31 | { app X := a.app (op ⟨X.unop.obj.obj, X.unop.property⟩) |
| 32 | naturality X Y f := a.naturality |
| 33 | (ObjectProperty.homMk f.unop.hom.hom : |
| 34 | (⟨Y.unop.obj.obj, Y.unop.property⟩ : (Q d).FullSubcategory) ⟶ |
| 35 | ⟨X.unop.obj.obj, X.unop.property⟩).op } |
| 36 | invFun a := |
| 37 | { app X := a.app (op ⟨⟨X.unop.obj, h d X.unop.obj X.unop.property⟩, X.unop.property⟩) |
| 38 | naturality X Y f := a.naturality |
| 39 | (ObjectProperty.homMk (ObjectProperty.homMk f.unop.hom) : |
| 40 | (⟨⟨Y.unop.obj, h d Y.unop.obj Y.unop.property⟩, Y.unop.property⟩ : |
| 41 | (nested P Q d).FullSubcategory) ⟶ |
| 42 | ⟨⟨X.unop.obj, h d X.unop.obj X.unop.property⟩, X.unop.property⟩).op } |
| 43 | left_inv a := by |
| 44 | apply NatTrans.ext |
| 45 | funext X |
| 46 | rfl |
| 47 | right_inv a := by |
| 48 | apply NatTrans.ext |
| 49 | funext X |
| 50 | rfl |
| 51 | map_add' _ _ := rfl |
| 52 | map_smul' _ _ := rfl |
| 53 | |
| 54 | def presheafIso (F : Cᵒᵖ ⥤ ModuleCat.{w} R) : |
| 55 | SectionPresheaf.presheaf R M Q hQ F ≅ |
| 56 | SectionPresheaf.presheaf R M (nested P Q) |
| 57 | (nested_monotone P Q hQ) (P.ι.op ⋙ F) := |
| 58 | NatIso.ofComponents (fun d => (sectionsEquiv R M P Q h d.unop F).toModuleIso) (by |
| 59 | intro a b f |
| 60 | apply ModuleCat.hom_ext |
| 61 | apply LinearMap.ext |
| 62 | intro x |
| 63 | apply NatTrans.ext |
| 64 | funext X |
| 65 | rfl) |
| 66 | |
| 67 | def iso : SectionPresheaf.functor R M Q hQ ≅ |
| 68 | (Functor.whiskeringLeft _ _ _).obj P.ι.op ⋙ |
| 69 | SectionPresheaf.functor R M (nested P Q) (nested_monotone P Q hQ) := |
| 70 | NatIso.ofComponents (presheafIso R M P Q hQ h) (by |
| 71 | intro F G a |
| 72 | apply NatTrans.ext |
| 73 | funext d |
| 74 | apply ModuleCat.hom_ext |
| 75 | apply LinearMap.ext |
| 76 | intro x |
| 77 | apply NatTrans.ext |
| 78 | funext X |
| 79 | rfl) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionSubsite |