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.HomologySequenceLemmas |
| 2 | |
| 3 | /-! # Exact Complex Quasi Iso -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.ExactComplexQuasiIso.Short |
| 6 | |
| 7 | /-! # Quasi-isomorphisms on the outer terms of short exact sequences induce one on the middle term -/ |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.ComposableArrows |
| 10 | open _root_.HomologicalComplex _root_.HomologicalComplex.HomologySequence |
| 11 | |
| 12 | universe u v |
| 13 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 14 | |
| 15 | theorem middle {S₁ S₂ : ShortComplex (CochainComplex C ℤ)} (φ : S₁ ⟶ S₂) |
| 16 | (hS₁ : S₁.ShortExact) (hS₂ : S₂.ShortExact) (h₁ : QuasiIso φ.τ₁) (h₃ : QuasiIso φ.τ₃) : |
| 17 | QuasiIso φ.τ₂ := by |
| 18 | have := h₁ |
| 19 | have := h₃ |
| 20 | rw [quasiIso_iff] |
| 21 | intro i |
| 22 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 23 | have hprev : (ComplexShape.up ℤ).Rel (i - 1) i := by change i - 1 + 1 = i; omega |
| 24 | have hnext : (ComplexShape.up ℤ).Rel i (i + 1) := rfl |
| 25 | have : Mono (homologyMap φ.τ₂ i) := by |
| 26 | apply Abelian.mono_of_epi_of_mono_of_mono |
| 27 | ((δ₀Functor ⋙ δ₀Functor).map (mapComposableArrows₅ φ hS₁ hS₂ (i - 1) i hprev)) |
| 28 | · exact (composableArrows₅_exact hS₁ (i - 1) i hprev).δ₀.δ₀ |
| 29 | · exact (composableArrows₅_exact hS₂ (i - 1) i hprev).δ₀.δ₀ |
| 30 | · exact inferInstanceAs (Epi (homologyMap φ.τ₃ (i - 1))) |
| 31 | · exact inferInstanceAs (Mono (homologyMap φ.τ₁ i)) |
| 32 | · exact inferInstanceAs (Mono (homologyMap φ.τ₃ i)) |
| 33 | have : Epi (homologyMap φ.τ₂ i) := by |
| 34 | apply Abelian.epi_of_epi_of_epi_of_mono |
| 35 | ((δlastFunctor ⋙ δlastFunctor).map (mapComposableArrows₅ φ hS₁ hS₂ i (i + 1) hnext)) |
| 36 | · exact (composableArrows₅_exact hS₁ i (i + 1) hnext).δlast.δlast |
| 37 | · exact (composableArrows₅_exact hS₂ i (i + 1) hnext).δlast.δlast |
| 38 | · exact inferInstanceAs (Epi (homologyMap φ.τ₁ i)) |
| 39 | · exact inferInstanceAs (Epi (homologyMap φ.τ₃ i)) |
| 40 | · exact inferInstanceAs (Mono (homologyMap φ.τ₁ (i + 1))) |
| 41 | exact isIso_of_mono_of_epi _ |
| 42 | |
| 43 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.ExactComplexQuasiIso.Short |