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.NeighborhoodRestriction |
| 2 | |
| 3 | /-! # Neighborhood Inverse Image -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NeighborhoodInverseImage |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the inverse-image presheaf from actual incoming neighborhoods |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.Neighborhoods OAI.NumberTheory.PadicHodge.IntegralComparison.NeighborhoodColimit OAI.NumberTheory.PadicHodge.IntegralComparison.NeighborhoodRestriction |
| 16 | |
| 17 | universe u v w u' v' |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] {A : Type w} [SemilatticeInf A] |
| 20 | {D : Type u'} [Category.{v'} D] (P : A → ObjectProperty C) |
| 21 | (hIncoming : ∀ V {T U : C}, (T ⟶ U) → P V U → P V T) |
| 22 | [∀ T, HasColimitsOfShape (Incoming.Neighborhoods.Objects P T)ᵒᵖ D] |
| 23 | |
| 24 | def presheaf (F : Aᵒᵖ ⥤ D) : Cᵒᵖ ⥤ D where |
| 25 | obj T := colimit (NeighborhoodColimit.diagram P T.unop F) |
| 26 | map α := NeighborhoodRestriction.restriction P hIncoming α.unop F |
| 27 | map_id T := NeighborhoodRestriction.restriction_id P hIncoming F T.unop |
| 28 | map_comp α β := NeighborhoodRestriction.restriction_comp P hIncoming β.unop _ α.unop |
| 29 | |
| 30 | def map {F G : Aᵒᵖ ⥤ D} (β : F ⟶ G) : presheaf P hIncoming F ⟶ presheaf P hIncoming G where |
| 31 | app T := (NeighborhoodColimit.functor P T.unop).map β |
| 32 | naturality _ U α := colimit.pre_map (Functor.whiskerLeft (Incoming.Neighborhoods.inclusion P U.unop).op β) (Incoming.Neighborhoods.change P hIncoming α.unop).op |
| 33 | |
| 34 | def functor : (Aᵒᵖ ⥤ D) ⥤ (Cᵒᵖ ⥤ D) where |
| 35 | obj := presheaf P hIncoming |
| 36 | map := NeighborhoodInverseImage.map P hIncoming |
| 37 | map_id F := by |
| 38 | apply NatTrans.ext |
| 39 | funext T |
| 40 | exact (NeighborhoodColimit.functor P T.unop).map_id F |
| 41 | map_comp β γ := by |
| 42 | apply NatTrans.ext |
| 43 | funext T |
| 44 | exact (NeighborhoodColimit.functor P T.unop).map_comp β γ |
| 45 | |
| 46 | instance preservesFiniteLimits [HasFiniteLimits D] |
| 47 | [∀ T, HasExactColimitsOfShape (Incoming.Neighborhoods.Objects P T)ᵒᵖ D] : |
| 48 | PreservesFiniteLimits (functor (D := D) P hIncoming) := by |
| 49 | apply preservesFiniteLimits_of_evaluation |
| 50 | intro T |
| 51 | exact NeighborhoodColimit.preservesFiniteLimits P T.unop |
| 52 | |
| 53 | instance preservesMonomorphisms [HasFiniteLimits D] |
| 54 | [∀ T, HasExactColimitsOfShape (Incoming.Neighborhoods.Objects P T)ᵒᵖ D] : |
| 55 | (functor (D := D) P hIncoming).PreservesMonomorphisms := by infer_instance |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NeighborhoodInverseImage |