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.Basic |
| 2 | import Mathlib.CategoryTheory.Iso |
| 3 | |
| 4 | /-! # Cohomology Endpoints -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyEndpoints.Comparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Join the actual local comparison identities after applying cohomology. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | variable {D : Type*} [Category D] {K A B I K' B' I' : D} |
| 15 | |
| 16 | theorem eq (s : I ≅ I') {q : K ⟶ I} {p : K ⟶ A} {a : A ⟶ I} |
| 17 | {f : A ⟶ B} {b : B ⟶ I} {sB : B ⟶ B'} {r : K ⟶ K'} |
| 18 | {p' : K' ⟶ B'} {a' : B' ⟶ I'} {q' : K' ⟶ I'} |
| 19 | (hq : q = p ≫ a) (hq' : q' = p' ≫ a') |
| 20 | (ha : a = f ≫ b) (hb : b ≫ s.hom = sB ≫ a') |
| 21 | (hp : (p ≫ f) ≫ sB = r ≫ p') : |
| 22 | q = (r ≫ q') ≫ s.inv := by |
| 23 | have h : q ≫ s.hom = r ≫ q' := by |
| 24 | rw [hq, ha, hq'] |
| 25 | calc |
| 26 | (p ≫ (f ≫ b)) ≫ s.hom = (p ≫ f) ≫ (b ≫ s.hom) := by |
| 27 | simp only [Category.assoc] |
| 28 | _ = ((p ≫ f) ≫ sB) ≫ a' := by rw [hb]; simp only [Category.assoc] |
| 29 | _ = _ := by rw [hp]; simp only [Category.assoc] |
| 30 | calc |
| 31 | q = (q ≫ s.hom) ≫ s.inv := by simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 32 | _ = _ := congrArg (fun z => z ≫ s.inv) h |
| 33 | |
| 34 | theorem from_incoming (s : I ≅ I') {q : K ⟶ I} {p : K ⟶ A} {a : A ⟶ I} |
| 35 | {f : A ⟶ B} {b : B ⟶ I} {p' : K' ⟶ B'} {a' : B' ⟶ I'} {q' : K' ⟶ I'} |
| 36 | (hq : q = p ≫ a) (hq' : q' = p' ≫ a') (ha : a = f ≫ b) : |
| 37 | ∀ (sB : B ⟶ B') (r : K ⟶ K'), |
| 38 | b ≫ s.hom = sB ≫ a' → (p ≫ f) ≫ sB = r ≫ p' → |
| 39 | q = (r ≫ q') ≫ s.inv := by |
| 40 | intro sB r hb hp |
| 41 | exact eq s hq hq' ha hb hp |
| 42 | |
| 43 | variable {C E : Type*} [Category C] [Category E] |
| 44 | |
| 45 | theorem mapped_transport (F : C ⥤ D) (G : E ⥤ C) |
| 46 | {K I : C} {K' I' : E} (s : I ≅ G.obj I') |
| 47 | {q : K ⟶ I} {r : K ⟶ G.obj K'} {q' : K' ⟶ I'} |
| 48 | (h : F.map q = (F.map r ≫ (G ⋙ F).map q') ≫ (F.mapIso s).inv) : |
| 49 | F.map q = F.map ((r ≫ G.map q') ≫ s.inv) := by |
| 50 | simpa only [Functor.comp_map, Functor.mapIso_inv, F.map_comp] using h |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyEndpoints.Comparison |