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.AlgebraicGeometry.Picard.PoincareBundle.DescentRestriction |
| 2 | import Mathlib.CategoryTheory.Monad.Comonadicity |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Finite |
| 4 | |
| 5 | /-! # Invariant Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.InvariantRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Base change of invariant objects for PoincareBundle |
| 13 | |
| 14 | If the right-adjoint base-change map is invertible and restriction |
| 15 | preserves the defining equalizer, invariant objects commute with |
| 16 | restriction. The comparison is built from an isomorphism of the two |
| 17 | equalizer diagrams. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.CategoryTheory.Limits |
| 21 | open _root_.CategoryTheory.Comonad |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable {C D E F : Type u} [Category.{v} C] [Category.{v} D] |
| 26 | [Category.{v} E] [Category.{v} F] |
| 27 | {L₁ : C ⥤ D} {R₁ : D ⥤ C} {L₂ : E ⥤ F} {R₂ : F ⥤ E} |
| 28 | {G : C ⥤ E} {H : D ⥤ F} |
| 29 | (adj₁ : L₁ ⊣ R₁) (adj₂ : L₂ ⊣ R₂) (α : G ⋙ L₂ ≅ L₁ ⋙ H) |
| 30 | [IsIso (DescentRestriction.rightMate adj₁ adj₂ α)] |
| 31 | |
| 32 | /-- The source isomorphism between the invariant diagrams. -/ |
| 33 | def pairSourceIso (A : adj₁.toComonad.Coalgebra) : |
| 34 | G.obj (R₁.obj A.A) ≅ R₂.obj (H.obj A.A) := |
| 35 | asIso ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A) |
| 36 | |
| 37 | /-- The target isomorphism between the invariant diagrams. -/ |
| 38 | def pairTargetIso (A : adj₁.toComonad.Coalgebra) : |
| 39 | G.obj (R₁.obj (L₁.obj (R₁.obj A.A))) ≅ |
| 40 | R₂.obj (L₂.obj (R₂.obj (H.obj A.A))) := |
| 41 | asIso ((DescentRestriction.rightMate adj₁ adj₂ α).app (L₁.obj (R₁.obj A.A))) ≪≫ |
| 42 | R₂.mapIso ((α.app (R₁.obj A.A)).symm ≪≫ |
| 43 | L₂.mapIso (pairSourceIso adj₁ adj₂ α A)) |
| 44 | |
| 45 | /-- Compatibility with the coaction map in the invariant diagram. -/ |
| 46 | theorem pair_coaction (A : adj₁.toComonad.Coalgebra) : |
| 47 | G.map (R₁.map A.a) ≫ (pairTargetIso adj₁ adj₂ α A).hom = |
| 48 | (pairSourceIso adj₁ adj₂ α A).hom ≫ |
| 49 | R₂.map (DescentRestriction.restrictedCoaction adj₁ adj₂ α A) := by |
| 50 | change G.map (R₁.map A.a) ≫ |
| 51 | (DescentRestriction.rightMate adj₁ adj₂ α).app (L₁.obj (R₁.obj A.A)) ≫ |
| 52 | R₂.map (α.inv.app (R₁.obj A.A) ≫ |
| 53 | L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)) = |
| 54 | (DescentRestriction.rightMate adj₁ adj₂ α).app A.A ≫ |
| 55 | R₂.map (H.map A.a ≫ α.inv.app (R₁.obj A.A) ≫ |
| 56 | L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)) |
| 57 | erw [← Category.assoc, |
| 58 | (DescentRestriction.rightMate adj₁ adj₂ α).naturality A.a, |
| 59 | Category.assoc, ← R₂.map_comp] |
| 60 | rfl |
| 61 | |
| 62 | /-- Compatibility with the adjunction unit in the invariant diagram. -/ |
| 63 | theorem pair_unit (A : adj₁.toComonad.Coalgebra) : |
| 64 | G.map (adj₁.unit.app (R₁.obj A.A)) ≫ (pairTargetIso adj₁ adj₂ α A).hom = |
| 65 | (pairSourceIso adj₁ adj₂ α A).hom ≫ adj₂.unit.app (R₂.obj (H.obj A.A)) := by |
| 66 | change G.map (adj₁.unit.app (R₁.obj A.A)) ≫ |
| 67 | (DescentRestriction.rightMate adj₁ adj₂ α).app (L₁.obj (R₁.obj A.A)) ≫ |
| 68 | R₂.map (α.inv.app (R₁.obj A.A) ≫ |
| 69 | L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)) = |
| 70 | (DescentRestriction.rightMate adj₁ adj₂ α).app A.A ≫ |
| 71 | adj₂.unit.app (R₂.obj (H.obj A.A)) |
| 72 | erw [← adj₂.unit_naturality |
| 73 | ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A), |
| 74 | DescentRestriction.unit_via_rightMate adj₁ adj₂ α (R₁.obj A.A), |
| 75 | R₂.map_comp (α.inv.app (R₁.obj A.A)) |
| 76 | (L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)), |
| 77 | ] |
| 78 | exact ((Category.assoc (G.map (adj₁.unit.app (R₁.obj A.A))) |
| 79 | ((DescentRestriction.rightMate adj₁ adj₂ α).app (L₁.obj (R₁.obj A.A)) ≫ |
| 80 | R₂.map (α.inv.app (R₁.obj A.A))) |
| 81 | (R₂.map (L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)))).trans |
| 82 | (congrArg (fun k => G.map (adj₁.unit.app (R₁.obj A.A)) ≫ k) |
| 83 | (Category.assoc |
| 84 | ((DescentRestriction.rightMate adj₁ adj₂ α).app (L₁.obj (R₁.obj A.A))) |
| 85 | (R₂.map (α.inv.app (R₁.obj A.A))) |
| 86 | (R₂.map (L₂.map ((DescentRestriction.rightMate adj₁ adj₂ α).app A.A)))))).symm |
| 87 | |
| 88 | variable [HasEqualizers C] [HasEqualizers E] [PreservesFiniteLimits G] |
| 89 | |
| 90 | /-- The explicit invariant object commutes with restriction when the |
| 91 | right mate is invertible and restriction preserves equalizers. -/ |
| 92 | def invariantRestrictionIso (A : adj₁.toComonad.Coalgebra) : |
| 93 | G.obj (ComonadicityInternal.comparisonRightAdjointObj adj₁ A) ≅ |
| 94 | ComonadicityInternal.comparisonRightAdjointObj adj₂ |
| 95 | ((DescentRestriction.coalgebraRestriction adj₁ adj₂ α).obj A) := |
| 96 | PreservesEqualizer.iso G (R₁.map A.a) (adj₁.unit.app (R₁.obj A.A)) ≪≫ |
| 97 | HasLimit.isoOfNatIso (parallelPair.ext (pairSourceIso adj₁ adj₂ α A) |
| 98 | (pairTargetIso adj₁ adj₂ α A) |
| 99 | (pair_coaction adj₁ adj₂ α A) (pair_unit adj₁ adj₂ α A)) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.InvariantRestriction |