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.Functor.FullyFaithful |
| 2 | |
| 3 | /-! # Recovery Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.RecoveryComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Two uniquely recovering objects have isomorphic pullback comparisons |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | variable {C D : Type*} [Category C] [Category D] |
| 16 | |
| 17 | /-- Maps between two recovery objects are inverse when their pullback factorizations are unique. -/ |
| 18 | def recoveryIso (L : C ⥤ D) {N I : C} {M : D} (e : L.obj N ≅ M) (c : L.obj I ⟶ M) |
| 19 | (k : N ⟶ I) (d : I ⟶ N) (hk : L.map k ≫ c = e.hom) (hd : L.map d ≫ e.hom = c) |
| 20 | (hN : ∀ a : N ⟶ N, L.map a ≫ e.hom = e.hom → a = 𝟙 N) |
| 21 | (hI : ∀ a : I ⟶ I, L.map a ≫ c = c → a = 𝟙 I) : N ≅ I where |
| 22 | hom := k |
| 23 | inv := d |
| 24 | hom_inv_id := hN (k ≫ d) (by rw [L.map_comp, Category.assoc, hd, hk]) |
| 25 | inv_hom_id := hI (d ≫ k) (by rw [L.map_comp, Category.assoc, hk, hd]) |
| 26 | |
| 27 | /-- The canonical comparison is an isomorphism once both recovery properties are established. -/ |
| 28 | theorem comparison_isIso (L : C ⥤ D) {N I : C} {M : D} (e : L.obj N ≅ M) (c : L.obj I ⟶ M) |
| 29 | (k : N ⟶ I) (d : I ⟶ N) (hk : L.map k ≫ c = e.hom) (hd : L.map d ≫ e.hom = c) |
| 30 | (hN : ∀ a : N ⟶ N, L.map a ≫ e.hom = e.hom → a = 𝟙 N) |
| 31 | (hI : ∀ a : I ⟶ I, L.map a ≫ c = c → a = 𝟙 I) : IsIso c := by |
| 32 | let v := recoveryIso L e c k d hk hd hN hI |
| 33 | have : IsIso d := show IsIso v.inv from inferInstance |
| 34 | have hc : IsIso (L.map d ≫ e.hom) := inferInstance |
| 35 | exact hd ▸ hc |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.RecoveryComparison |