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 OAI.AlgebraicGeometry.Comparison.Betti.Module.HomologyClasses |
| 2 | import Mathlib.Algebra.Homology.QuasiIso |
| 3 | |
| 4 | /-! # Cochain Zero Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.CochainZeroCriterion.Homology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A concrete closed-section criterion for degree-zero comparison of module cochains. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 13 | |
| 14 | variable {R : Type} [Ring R] |
| 15 | |
| 16 | theorem short_quasiIso_of_closed_lift {S T : ShortComplex (ModuleCat.{0} R)} |
| 17 | (f : S ⟶ T) (hS : S.f = 0) (hT : T.f = 0) |
| 18 | (hi : Function.Injective f.τ₂) |
| 19 | (hs : ∀ y : T.X₂, T.g y = 0 → ∃ x : S.X₂, S.g x = 0 ∧ f.τ₂ x = y) : |
| 20 | ShortComplex.QuasiIso f := by |
| 21 | have hm : Mono f.τ₂ := (ModuleCat.mono_iff_injective _).mpr hi |
| 22 | have hsurj : Function.Surjective (ShortComplex.cyclesMap f) := by |
| 23 | intro y |
| 24 | have hy : T.g (T.iCycles y) = 0 := ConcreteCategory.congr_hom T.iCycles_g y |
| 25 | obtain ⟨x, hx, he⟩ := hs (T.iCycles y) hy |
| 26 | let z := Module.HomologyClasses.cycle S x hx |
| 27 | refine ⟨z, ?_⟩ |
| 28 | apply (ModuleCat.mono_iff_injective T.iCycles).mp inferInstance |
| 29 | have hn := ConcreteCategory.congr_hom (ShortComplex.cyclesMap_i f) z |
| 30 | change T.iCycles (ShortComplex.cyclesMap f z) = T.iCycles y |
| 31 | rw [show T.iCycles (ShortComplex.cyclesMap f z) = f.τ₂ (S.iCycles z) from hn] |
| 32 | rw [Module.HomologyClasses.cycle_i] |
| 33 | exact he |
| 34 | have hmono : Mono (ShortComplex.cyclesMap f) := |
| 35 | mono_of_mono_fac (ShortComplex.cyclesMap_i f) |
| 36 | have hc : IsIso (ShortComplex.cyclesMap f) := |
| 37 | (ConcreteCategory.isIso_iff_bijective _).mpr |
| 38 | ⟨(ModuleCat.mono_iff_injective _).mp inferInstance, hsurj⟩ |
| 39 | have hpS := S.isIso_homologyπ hS |
| 40 | have hpT := T.isIso_homologyπ hT |
| 41 | rw [ShortComplex.quasiIso_iff] |
| 42 | have he : ShortComplex.homologyMap f = |
| 43 | inv S.homologyπ ≫ ShortComplex.cyclesMap f ≫ T.homologyπ := by |
| 44 | rw [← cancel_epi S.homologyπ] |
| 45 | simp only [IsIso.hom_inv_id_assoc, ShortComplex.homologyπ_naturality] |
| 46 | rw [he] |
| 47 | infer_instance |
| 48 | |
| 49 | theorem quasiIsoAt_zero_of_closed_lift {K L : CochainComplex (ModuleCat.{0} R) ℕ} |
| 50 | (f : K ⟶ L) (hi : Function.Injective (f.f 0)) |
| 51 | (hs : ∀ y : L.X 0, L.d 0 1 y = 0 → |
| 52 | ∃ x : K.X 0, K.d 0 1 x = 0 ∧ f.f 0 x = y) : QuasiIsoAt f 0 := by |
| 53 | rw [CochainComplex.quasiIsoAt₀_iff] |
| 54 | exact short_quasiIso_of_closed_lift _ (K.shape 0 0 (by simp)) (L.shape 0 0 (by simp)) hi hs |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.Comparison.Betti.CochainZeroCriterion.Homology |