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.Abelian.Basic |
| 2 | |
| 3 | /-! # Epi From Lift -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EpiFromLift.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A map surjects if its composite does and the remaining kernel is |
| 10 | covered by elements that lift through the map. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | theorem epi_of_iso_commutative_square {C : Type u} [Category.{v} C] |
| 17 | {A B X Y : C} (e : A ≅ X) (e' : B ≅ Y) (f : A ⟶ B) (g : X ⟶ Y) |
| 18 | (hg : Epi g) (h : f ≫ e'.hom = e.hom ≫ g) : Epi f := by |
| 19 | have hf : f = e.hom ≫ g ≫ e'.inv := by |
| 20 | calc |
| 21 | f = (f ≫ e'.hom) ≫ e'.inv := by |
| 22 | rw [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 23 | _ = (e.hom ≫ g) ≫ e'.inv := congrArg (fun a => a ≫ e'.inv) h |
| 24 | _ = e.hom ≫ g ≫ e'.inv := Category.assoc _ _ _ |
| 25 | rw [hf] |
| 26 | exact epi_comp' inferInstance (epi_comp' hg inferInstance) |
| 27 | |
| 28 | theorem epi_of_composite_epi_of_kernel_lift {C : Type u} [Category.{v} C] [Abelian C] |
| 29 | {X Y Z W : C} (g : X ⟶ Y) (f : Y ⟶ Z) [Epi (g ≫ f)] |
| 30 | (r : W ⟶ kernel f) [Epi r] (a : W ⟶ X) |
| 31 | (ha : a ≫ g = r ≫ kernel.ι f) : Epi g := by |
| 32 | have : Epi f := epi_of_epi g f |
| 33 | have hk : kernel.ι f ≫ cokernel.π g = 0 := by |
| 34 | apply (cancel_epi r).mp |
| 35 | rw [comp_zero, ← Category.assoc, ← ha, Category.assoc, cokernel.condition, comp_zero] |
| 36 | let d := Abelian.epiDesc f (cokernel.π g) hk |
| 37 | have hd : f ≫ d = cokernel.π g := Abelian.comp_epiDesc f (cokernel.π g) hk |
| 38 | have hz : d = 0 := by |
| 39 | apply (cancel_epi (g ≫ f)).mp |
| 40 | rw [comp_zero, Category.assoc, hd, cokernel.condition] |
| 41 | apply Abelian.epi_of_cokernel_π_eq_zero |
| 42 | exact hd.symm.trans (by rw [hz, comp_zero]) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EpiFromLift.Construction |