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.CategoryTheory.Adjunction.Unique |
| 2 | |
| 3 | /-! # Adjunction Sections Left -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AdjunctionSectionsLeft |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Normalization of the sections comparison obtained from affine adjunctions. -/ |
| 10 | |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | namespace Construction.AdjunctionSections |
| 16 | |
| 17 | variable {C D C' D' : Type*} [Category* C] [Category* D] [Category* C'] [Category* D'] |
| 18 | variable {F : C ⥤ D} {G : D ⥤ C} {F' : C' ⥤ D'} {G' : D' ⥤ C'} |
| 19 | variable {L : D ⥤ D'} {Q : D' ⥤ D} {E : C ⥤ C'} {H : C' ⥤ C} |
| 20 | variable (a : F ⊣ G) (b : F' ⊣ G') (l : L ⊣ Q) (e : E ⊣ H) |
| 21 | variable (t : Q ⋙ G ≅ G' ⋙ H) |
| 22 | |
| 23 | def leftComparison : F ⋙ L ≅ E ⋙ F' := |
| 24 | (a.comp l).leftAdjointUniq ((e.comp b).ofNatIsoRight t.symm) |
| 25 | |
| 26 | def sectionsMap (M : D) : E.obj (G.obj M) ⟶ G'.obj (L.obj M) := |
| 27 | b.homEquiv _ _ ((leftComparison a b l e t).inv.app (G.obj M) ≫ L.map (a.counit.app M)) |
| 28 | |
| 29 | private theorem compare_homEquiv {X : C} {Y : D'} (f : (F ⋙ L).obj X ⟶ Y) : |
| 30 | ((e.comp b).ofNatIsoRight t.symm).homEquiv X Y |
| 31 | ((leftComparison a b l e t).inv.app X ≫ f) = (a.comp l).homEquiv X Y f := by |
| 32 | rw [Adjunction.homEquiv_naturality_right] |
| 33 | change ((e.comp b).ofNatIsoRight t.symm).homEquiv _ _ |
| 34 | (((a.comp l).leftAdjointUniq ((e.comp b).ofNatIsoRight t.symm)).inv.app X) ≫ _ = _ |
| 35 | rw [Adjunction.leftAdjointUniq_inv_app, Adjunction.homEquiv_leftAdjointUniq_hom_app, |
| 36 | Adjunction.homEquiv_unit] |
| 37 | |
| 38 | private theorem counit_homEquiv (M : D) : |
| 39 | (a.comp l).homEquiv (G.obj M) (L.obj M) (L.map (a.counit.app M)) = |
| 40 | G.map (l.unit.app M) := by |
| 41 | have hn : l.unit.app (F.obj (G.obj M)) ≫ Q.map (L.map (a.counit.app M)) = |
| 42 | a.counit.app M ≫ l.unit.app M := (l.unit.naturality (a.counit.app M)).symm |
| 43 | have ht : a.unit.app (G.obj M) ≫ G.map (a.counit.app M) = 𝟙 (G.obj M) := |
| 44 | a.right_triangle_components M |
| 45 | simp only [Adjunction.homEquiv_unit, Adjunction.comp_unit_app, Functor.comp_map, |
| 46 | Category.assoc, ← G.map_comp] |
| 47 | rw [hn, G.map_comp, ← Category.assoc, ht, Category.id_comp] |
| 48 | |
| 49 | theorem normalization (M : D) : |
| 50 | e.homEquiv _ _ (sectionsMap a b l e t M) = G.map (l.unit.app M) ≫ t.hom.app (L.obj M) := by |
| 51 | have hc := compare_homEquiv a b l e t (L.map (a.counit.app M)) |
| 52 | have hc := hc.trans (counit_homEquiv a l M) |
| 53 | rw [Adjunction.homEquiv_ofNatIsoRight_apply, Adjunction.comp_homEquiv] at hc |
| 54 | change e.homEquiv _ _ (sectionsMap a b l e t M) ≫ t.inv.app (L.obj M) = |
| 55 | G.map (l.unit.app M) at hc |
| 56 | have h := congrArg (fun z => z ≫ t.hom.app (L.obj M)) hc |
| 57 | simpa only [Category.assoc, Iso.inv_hom_id_app, Functor.comp_obj, Category.comp_id] using h |
| 58 | |
| 59 | end Construction.AdjunctionSections |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AdjunctionSectionsLeft |