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.Algebra.Homology.ShortComplex.Abelian |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 3 | import Mathlib.CategoryTheory.Abelian.Exact |
| 4 | |
| 5 | /-! # Cokernel Syzygy Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.CokernelSyzygySequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Adjacent cokernels in an exact sequence give a short exact sequence. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | universe u v |
| 15 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 16 | variable {L M N : C} (f : L ⟶ M) (g : M ⟶ N) (hfg : f ≫ g = 0) |
| 17 | |
| 18 | def cokernelSyzygyShortComplex : ShortComplex C := |
| 19 | ShortComplex.mk (cokernel.desc f g hfg) (cokernel.π g) (by |
| 20 | apply (cancel_epi (cokernel.π f)).mp |
| 21 | rw [← Category.assoc, cokernel.π_desc, cokernel.condition, comp_zero]) |
| 22 | |
| 23 | theorem cokernelSyzygyShortComplex_shortExact (hex : (ShortComplex.mk f g hfg).Exact) : |
| 24 | (cokernelSyzygyShortComplex f g hfg).ShortExact := by |
| 25 | let S := ShortComplex.mk g (cokernel.π g) (cokernel.condition g) |
| 26 | let T := cokernelSyzygyShortComplex f g hfg |
| 27 | let φ : S ⟶ T := |
| 28 | { τ₁ := cokernel.π f, τ₂ := 𝟙 N, τ₃ := 𝟙 (cokernel g) |
| 29 | comm₁₂ := by simp [S, T, cokernelSyzygyShortComplex] |
| 30 | comm₂₃ := by simp [S, T, cokernelSyzygyShortComplex] } |
| 31 | have : Epi φ.τ₁ := by dsimp only [φ, S, T, cokernelSyzygyShortComplex]; infer_instance |
| 32 | have : IsIso φ.τ₂ := by dsimp only [φ, S, T, cokernelSyzygyShortComplex]; infer_instance |
| 33 | have : Mono φ.τ₃ := by dsimp only [φ, S, T, cokernelSyzygyShortComplex]; infer_instance |
| 34 | have hT : T.Exact := (ShortComplex.exact_iff_of_epi_of_isIso_of_mono φ).mp |
| 35 | (ShortComplex.cokernelSequence_exact g) |
| 36 | have : Mono T.f := hex.mono_cokernelDesc |
| 37 | have : Epi T.g := by dsimp only [T, cokernelSyzygyShortComplex]; infer_instance |
| 38 | exact ShortComplex.ShortExact.mk hT |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.CokernelSyzygySequence |