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.Affine.ModuleHomology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomologyPreservationCompose |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 5 | |
| 6 | /-! # Affine Homology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.AffineHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Native base-linear sections on an affine open preserve the homology |
| 13 | of quasicoherent complexes. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X S : Scheme.{u}} (π : X ⟶ S) (U : X.Opens) |
| 20 | |
| 21 | abbrev sections : X.Modules ⥤ ModuleCat.{u} Γ(S, ⊤) := |
| 22 | AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheafFunctor π ⋙ |
| 23 | (CategoryTheory.evaluation X.Opensᵒᵖ (ModuleCat.{u} Γ(S, ⊤))).obj (op U) |
| 24 | |
| 25 | def coefficientMap : Γ(S, ⊤) →+* Γ(X, U) := |
| 26 | (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op).hom.comp π.appTop.hom |
| 27 | |
| 28 | theorem preservesLeft (hU : IsAffineOpen U) (T : ShortComplex X.Modules) |
| 29 | [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] [T.X₃.IsQuasicoherent] : |
| 30 | (sections π U).PreservesLeftHomologyOf T := by |
| 31 | have := Affine.ModuleHomology.preservesLeft U hU T |
| 32 | change (Affine.ModuleExactSections.sections U ⋙ |
| 33 | ModuleCat.restrictScalars (coefficientMap π U)).PreservesLeftHomologyOf T |
| 34 | exact HomologyPreservationCompose.left (Affine.ModuleExactSections.sections U) |
| 35 | (ModuleCat.restrictScalars (coefficientMap π U)) T |
| 36 | |
| 37 | theorem quasiIso (hU : IsAffineOpen U) |
| 38 | {K L : CochainComplex X.Modules ℕ} (f : K ⟶ L) |
| 39 | [∀ n, (K.X n).IsQuasicoherent] [∀ n, (L.X n).IsQuasicoherent] [QuasiIso f] : |
| 40 | QuasiIso (((sections π U).mapHomologicalComplex (.up ℕ)).map f) := by |
| 41 | constructor |
| 42 | intro n |
| 43 | have : (K.sc n).X₁.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).prev n)).IsQuasicoherent |
| 44 | have : (K.sc n).X₂.IsQuasicoherent := inferInstanceAs (K.X n).IsQuasicoherent |
| 45 | have : (K.sc n).X₃.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).next n)).IsQuasicoherent |
| 46 | have : (L.sc n).X₁.IsQuasicoherent := inferInstanceAs (L.X ((ComplexShape.up ℕ).prev n)).IsQuasicoherent |
| 47 | have : (L.sc n).X₂.IsQuasicoherent := inferInstanceAs (L.X n).IsQuasicoherent |
| 48 | have : (L.sc n).X₃.IsQuasicoherent := inferInstanceAs (L.X ((ComplexShape.up ℕ).next n)).IsQuasicoherent |
| 49 | have : (sections π U).PreservesLeftHomologyOf (K.sc n) := preservesLeft π U hU (K.sc n) |
| 50 | have : (sections π U).PreservesLeftHomologyOf (L.sc n) := preservesLeft π U hU (L.sc n) |
| 51 | have : ShortComplex.QuasiIso ((HomologicalComplex.shortComplexFunctor X.Modules (.up ℕ) n).map f) := |
| 52 | (quasiIsoAt_iff f n).mp inferInstance |
| 53 | rw [quasiIsoAt_iff] |
| 54 | exact ShortComplex.quasiIso_map_of_preservesLeftHomology (sections π U) |
| 55 | ((HomologicalComplex.shortComplexFunctor X.Modules (.up ℕ) n).map f) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.AffineHomology |