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.Order.LatticeIntervals |
| 2 | import Mathlib.CategoryTheory.Limits.Preorder |
| 3 | import Mathlib.CategoryTheory.Adjunction.Limits |
| 4 | |
| 5 | /-! # Meet Restriction -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.MeetRestriction.SemilatticeMeetRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Intersecting with a fixed element is the right adjoint to the inclusion |
| 12 | of its lower interval. The coefficient comparison uses the actual inclusions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | |
| 16 | universe u v w |
| 17 | variable (C : Type u) [SemilatticeInf C] (I : C) |
| 18 | |
| 19 | def inclusion : Set.Iic I ⥤ C where |
| 20 | obj V := V.val |
| 21 | map α := homOfLE (leOfHom α) |
| 22 | |
| 23 | def restriction : C ⥤ Set.Iic I where |
| 24 | obj V := ⟨V ⊓ I, inf_le_right⟩ |
| 25 | map α := homOfLE (inf_le_inf_right I (leOfHom α)) |
| 26 | |
| 27 | def counit : restriction C I ⋙ inclusion C I ⟶ 𝟭 C where |
| 28 | app _ := homOfLE inf_le_left |
| 29 | |
| 30 | def adjunction : inclusion C I ⊣ restriction C I := |
| 31 | Adjunction.mkOfUnitCounit |
| 32 | { unit := { app V := homOfLE (le_inf le_rfl V.property) } |
| 33 | counit := SemilatticeMeetRestriction.counit C I } |
| 34 | |
| 35 | instance preservesLimits : PreservesLimits (restriction C I) := |
| 36 | (adjunction C I).rightAdjoint_preservesLimits |
| 37 | |
| 38 | variable {A : Type v} [Category.{w} A] (P : Cᵒᵖ ⥤ A) |
| 39 | |
| 40 | def comparison : P ⟶ (restriction C I).op ⋙ (inclusion C I).op ⋙ P where |
| 41 | app V := P.map (homOfLE (inf_le_left : V.unop ⊓ I ≤ V.unop)).op |
| 42 | naturality U V α := by |
| 43 | change P.map _ ≫ P.map _ = P.map _ ≫ P.map _ |
| 44 | exact (P.map_comp _ _).symm.trans |
| 45 | ((congrArg P.map (Subsingleton.elim _ _)).trans (P.map_comp _ _)) |
| 46 | |
| 47 | variable (h : ∀ V : C, IsIso (P.map (homOfLE (inf_le_left : V ⊓ I ≤ V)).op)) |
| 48 | |
| 49 | include h in |
| 50 | theorem comparison_isIso : IsIso (comparison C I P) := by |
| 51 | let (V : Cᵒᵖ) : IsIso ((comparison C I P).app V) := h V.unop |
| 52 | exact NatIso.isIso_of_isIso_app _ |
| 53 | |
| 54 | def iso : P ≅ (restriction C I).op ⋙ (inclusion C I).op ⋙ P := by |
| 55 | let := comparison_isIso C I P h |
| 56 | exact asIso (comparison C I P) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.MeetRestriction.SemilatticeMeetRestriction |