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 Mathlib |
| 2 | |
| 3 | /-! # Kan Extension Universes -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.KanExtensionUniverses |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: exact module-valued left Kan extension for unequal site universes |
| 11 | |
| 12 | The source and target sites may have different object and morphism universes. |
| 13 | The pointwise colimit formula and exactness of filtered module colimits |
| 14 | prove finite-limit preservation at those actual universes. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | |
| 19 | universe u v u' v' |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] {D : Type u'} [Category.{v'} D] |
| 22 | variable (R : Type (max u v u' v')) [Ring R] |
| 23 | |
| 24 | def evaluationIso (F : C ⥤ D) (X : D) : |
| 25 | F.lan ⋙ (evaluation D (ModuleCat.{max u v u' v'} R)).obj X ≅ |
| 26 | (Functor.whiskeringLeft _ _ (ModuleCat.{max u v u' v'} R)).obj (CostructuredArrow.proj F X) ⋙ colim := |
| 27 | NatIso.ofComponents (fun G => F.leftKanExtensionObjIsoColimit G X) (fun {G₁ G₂} φ => by |
| 28 | apply (Functor.isPointwiseLeftKanExtensionLeftKanExtensionUnit F G₁ X).hom_ext |
| 29 | intro T |
| 30 | let η : F.leftKanExtension G₁ ⟶ F.leftKanExtension G₂ := F.lan.map φ |
| 31 | have h₁ := fun (G : C ⥤ ModuleCat.{max u v u' v'} R) => |
| 32 | F.ι_leftKanExtensionObjIsoColimit_hom G X T |
| 33 | have h₂ : φ.app T.left ≫ (F.leftKanExtensionUnit G₂).app T.left = |
| 34 | (F.leftKanExtensionUnit G₁).app T.left ≫ η.app (F.obj T.left) := |
| 35 | congr_app (F.lanUnit.naturality φ) T.left |
| 36 | change ((F.leftKanExtensionUnit G₁).app T.left ≫ (F.leftKanExtension G₁).map T.hom) ≫ |
| 37 | (η.app X ≫ (F.leftKanExtensionObjIsoColimit G₂ X).hom) = |
| 38 | ((F.leftKanExtensionUnit G₁).app T.left ≫ (F.leftKanExtension G₁).map T.hom) ≫ |
| 39 | ((F.leftKanExtensionObjIsoColimit G₁ X).hom ≫ |
| 40 | colimMap (Functor.whiskerLeft (CostructuredArrow.proj F X) φ)) |
| 41 | simp only [Category.assoc] |
| 42 | rw [reassoc_of% h₁, NatTrans.naturality_assoc, ← reassoc_of% h₂, h₁] |
| 43 | exact (ι_colimMap (Functor.whiskerLeft (CostructuredArrow.proj F X) φ) T).symm) |
| 44 | |
| 45 | lemma preservesFiniteLimits (F : C ⥤ D) [RepresentablyFlat F] : |
| 46 | PreservesFiniteLimits (F.op.lan : (Cᵒᵖ ⥤ ModuleCat.{max u v u' v'} R) ⥤ Dᵒᵖ ⥤ ModuleCat.{max u v u' v'} R) := by |
| 47 | apply preservesFiniteLimits_of_preservesFiniteLimitsOfSize.{max u v u' v'} |
| 48 | intro K _ _ |
| 49 | apply preservesLimitsOfShape_of_evaluation |
| 50 | (F.op.lan : (Cᵒᵖ ⥤ ModuleCat.{max u v u' v'} R) ⥤ Dᵒᵖ ⥤ ModuleCat.{max u v u' v'} R) K |
| 51 | intro X |
| 52 | have : IsFiltered (CostructuredArrow F.op X) := |
| 53 | IsFiltered.of_equivalence (structuredArrowOpEquivalence F (unop X)) |
| 54 | have : AB5OfSize.{v, max u v'} (ModuleCat.{max u v u' v'} R) := |
| 55 | AB5OfSize_of_univLE (ModuleCat.{max u v u' v'} R) |
| 56 | exact preservesLimitsOfShape_of_natIso (evaluationIso R F.op X).symm |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.KanExtensionUniverses |