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.NumberTheory.PadicHodge.IntegralComparison.NonpositiveProjectiveResolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RegularSequenceKoszul |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.Hom |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 5 | |
| 6 | /-! # Projective Resolution -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.ProjectiveResolution |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The genuine scalar-cone Koszul complex as a projective resolution |
| 13 | of its original quotient, and comparison with any other projective |
| 14 | resolution of that quotient. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] (M : ModuleCat.{u} R) (rs : List R) |
| 23 | |
| 24 | open OAI.NumberTheory.PadicHodge.IntegralComparison.RegularSequenceKoszul |
| 25 | |
| 26 | instance supported : (RegularSequenceKoszul.complex M rs).IsStrictlySupported NonpositiveProjectiveResolution.shape where |
| 27 | isZero i hi := RegularSequenceKoszul.term_isZero M rs i (Or.inr |
| 28 | ((ComplexShape.notMem_range_embeddingUpIntLE_iff 0 i).mp hi)) |
| 29 | |
| 30 | instance projective_term [Module.Free R M] (n : ℕ) : |
| 31 | Projective ((RegularSequenceKoszul.complex M rs).X (NonpositiveProjectiveResolution.shape.f n)) := by |
| 32 | let := RegularSequenceKoszul.term_free M rs (NonpositiveProjectiveResolution.shape.f n) |
| 33 | infer_instance |
| 34 | |
| 35 | def resolution [Module.Free R M] (hreg : RingTheory.Sequence.IsWeaklyRegular M rs) : |
| 36 | ProjectiveResolution (RegularSequenceKoszul.quotient M rs) := by |
| 37 | let ε := Classical.choose (RegularSequenceKoszul.exists_augmentation M rs hreg) |
| 38 | letI : QuasiIso ε := Classical.choose_spec (RegularSequenceKoszul.exists_augmentation M rs hreg) |
| 39 | exact NonpositiveProjectiveResolution.ofComplex (RegularSequenceKoszul.quotient M rs) (RegularSequenceKoszul.complex M rs) ε |
| 40 | |
| 41 | def homologyIso [Module.Free R M] (hreg : RingTheory.Sequence.IsWeaklyRegular M rs) |
| 42 | (P : ProjectiveResolution (RegularSequenceKoszul.quotient M rs)) (N : ModuleCat.{u} R) (n : ℕ) : |
| 43 | ((((linearYoneda R (ModuleCat R)).obj N).mapHomologicalComplex |
| 44 | (ComplexShape.down ℕ).symm).obj P.complex.op).homology n ≅ |
| 45 | ((((linearYoneda R (ModuleCat R)).obj N).mapHomologicalComplex |
| 46 | (ComplexShape.down ℕ).symm).obj (resolution M rs hreg).complex.op).homology n := |
| 47 | IntegralComparison.ProjectiveResolution.Hom.Comparison.moduleHomologyIso P (resolution M rs hreg) N n |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.ProjectiveResolution |