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.AbelianModuli.HilbertConstruction.Quasicoherent.Cokernels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Coproducts |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.QuasicoherenceLocality |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.TypeFromAffineSections |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections |
| 9 | import OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyConcentration |
| 10 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CoherentHomology |
| 11 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree |
| 12 | |
| 13 | /-! # Quasicoherent Truncation -/ |
| 14 | |
| 15 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.QuasicoherentTruncation |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | /-! Canonical truncation preserves quasicoherence of the actual sheaf |
| 20 | complex, including its boundary quotient and its zero terms. -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable {X : Scheme.{u}} |
| 29 | |
| 30 | theorem of_isZero (M : X.Modules) (hM : IsZero M) : M.IsQuasicoherent := by |
| 31 | let F : X.Modules := SheafOfModules.free PEmpty.{u + 1} |
| 32 | have hf : IsZero F := by |
| 33 | apply (IsZero.iff_id_eq_zero _).mpr |
| 34 | apply Limits.Sigma.hom_ext |
| 35 | intro i |
| 36 | exact isEmptyElim i |
| 37 | exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso (hf.iso hM) inferInstance |
| 38 | |
| 39 | variable (K : CochainComplex X.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] |
| 40 | |
| 41 | theorem opcycles (q : ℕ) : (K.opcycles q).IsQuasicoherent := by |
| 42 | have h : (cokernel (K.sc q).f).IsQuasicoherent := |
| 43 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Cokernels.module_quasicoherent_cokernel (K.d ((ComplexShape.up ℕ).prev q) q) |
| 44 | exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso (K.sc q).opcyclesIsoCokernel.symm h |
| 45 | |
| 46 | theorem cohomology (q : ℕ) : (K.homology q).IsQuasicoherent := by |
| 47 | have : (K.sc q).X₁.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).prev q)).IsQuasicoherent |
| 48 | have : (K.sc q).X₂.IsQuasicoherent := inferInstanceAs (K.X q).IsQuasicoherent |
| 49 | have : (K.sc q).X₃.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).next q)).IsQuasicoherent |
| 50 | exact Module.CoherentHomology.quasicoherent (K.sc q) |
| 51 | |
| 52 | theorem truncation (c q : ℕ) : ((CohomologyConcentration.truncation K c).X q).IsQuasicoherent := by |
| 53 | let e := CohomologyConcentration.shift c |
| 54 | by_cases hq : ∃ i, e.f i = q |
| 55 | · obtain ⟨i, rfl⟩ := hq |
| 56 | by_cases hi : e.BoundaryGE i |
| 57 | · exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso |
| 58 | (HomologicalComplex.truncGEXIsoOpcycles K e rfl hi).symm (QuasicoherentTruncation.opcycles K (e.f i)) |
| 59 | · exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso |
| 60 | (HomologicalComplex.truncGEXIso K e rfl hi).symm inferInstance |
| 61 | · exact of_isZero _ (HomologicalComplex.isZero_extend_X _ e q (by simpa using hq)) |
| 62 | |
| 63 | theorem single (M : X.Modules) [M.IsQuasicoherent] (c q : ℕ) : |
| 64 | (((HomologicalComplex.single X.Modules (.up ℕ) c).obj M).X q).IsQuasicoherent := by |
| 65 | by_cases hq : q = c |
| 66 | · exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso |
| 67 | (HomologicalComplex.singleObjXIsoOfEq (.up ℕ) c M q hq).symm inferInstance |
| 68 | · exact of_isZero _ (HomologicalComplex.isZero_single_obj_X (.up ℕ) c M q hq) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.NumberTheory.PadicHodge.IntegralComparison.QuasicoherentTruncation |