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.InternalHomComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleHomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomologyPreservationCompose |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 5 | |
| 6 | /-! # Spec Homology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SpecHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual R-linear affine section functor preserves the homology of |
| 13 | quasicoherent complexes on Spec R. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] |
| 22 | |
| 23 | abbrev sections := InternalHom.sections (R := R) |
| 24 | |
| 25 | def coefficientMap : R →+* Γ(Spec (CommRingCat.of R), ⊤) := |
| 26 | ((Spec (CommRingCat.of R)).presheaf.map (𝟙 (op ⊤))).hom.comp |
| 27 | (Scheme.ΓSpecIso (CommRingCat.of R)).inv.hom |
| 28 | |
| 29 | theorem preservesLeft (T : ShortComplex (Spec (CommRingCat.of R)).Modules) |
| 30 | [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] [T.X₃.IsQuasicoherent] : |
| 31 | sections.PreservesLeftHomologyOf T := by |
| 32 | have := ModuleHomology.preservesLeft ⊤ (isAffineOpen_top _) T |
| 33 | change (ModuleExactSections.sections ⊤ ⋙ |
| 34 | ModuleCat.restrictScalars (coefficientMap (R := R))).PreservesLeftHomologyOf T |
| 35 | exact HomologyPreservationCompose.left (ModuleExactSections.sections ⊤) |
| 36 | (ModuleCat.restrictScalars (coefficientMap (R := R))) T |
| 37 | |
| 38 | theorem quasiIso {ι : Type*} {c : ComplexShape ι} |
| 39 | {K L : HomologicalComplex (Spec (CommRingCat.of R)).Modules c} (f : K ⟶ L) |
| 40 | [∀ n, (K.X n).IsQuasicoherent] [∀ n, (L.X n).IsQuasicoherent] [QuasiIso f] : |
| 41 | QuasiIso (((sections (R := R)).mapHomologicalComplex c).map f) := by |
| 42 | constructor |
| 43 | intro n |
| 44 | have : (K.sc n).X₁.IsQuasicoherent := inferInstanceAs (K.X (c.prev n)).IsQuasicoherent |
| 45 | have : (K.sc n).X₂.IsQuasicoherent := inferInstanceAs (K.X n).IsQuasicoherent |
| 46 | have : (K.sc n).X₃.IsQuasicoherent := inferInstanceAs (K.X (c.next n)).IsQuasicoherent |
| 47 | have : (L.sc n).X₁.IsQuasicoherent := inferInstanceAs (L.X (c.prev n)).IsQuasicoherent |
| 48 | have : (L.sc n).X₂.IsQuasicoherent := inferInstanceAs (L.X n).IsQuasicoherent |
| 49 | have : (L.sc n).X₃.IsQuasicoherent := inferInstanceAs (L.X (c.next n)).IsQuasicoherent |
| 50 | have : sections.PreservesLeftHomologyOf (K.sc n) := preservesLeft (K.sc n) |
| 51 | have : sections.PreservesLeftHomologyOf (L.sc n) := preservesLeft (L.sc n) |
| 52 | have : ShortComplex.QuasiIso ((HomologicalComplex.shortComplexFunctor _ c n).map f) := |
| 53 | (quasiIsoAt_iff f n).mp inferInstance |
| 54 | rw [quasiIsoAt_iff] |
| 55 | exact ShortComplex.quasiIso_map_of_preservesLeftHomology sections |
| 56 | ((HomologicalComplex.shortComplexFunctor _ c n).map f) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SpecHomology |