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.Principal.ModuleFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleHomology |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 4 | import Mathlib.Algebra.Homology.Functor |
| 5 | |
| 6 | /-! # Module Homology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ModuleHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The whole native principal-open section presheaf preserves the |
| 13 | homology of quasicoherent complexes, with its actual restriction maps. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ModuleFunctor |
| 20 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | |
| 22 | theorem preservesKernel {M N : X.Modules} (f : M ⟶ N) : |
| 23 | PreservesLimit (parallelPair f 0) (ModuleFunctor.functor U hU) := by |
| 24 | apply preservesLimit_of_evaluation |
| 25 | intro r |
| 26 | change PreservesLimit (parallelPair f 0) |
| 27 | (Affine.ModuleExactSections.sections (SectionPresheaf.openSubset U r.unop) ⋙ |
| 28 | ModuleCat.restrictScalars (algebraMap Γ(X, U) Γ(X, SectionPresheaf.openSubset U r.unop))) |
| 29 | infer_instance |
| 30 | |
| 31 | theorem preservesCokernel {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 32 | (f : M ⟶ N) : PreservesColimit (parallelPair f 0) (ModuleFunctor.functor U hU) := by |
| 33 | apply preservesColimit_of_evaluation |
| 34 | intro r |
| 35 | let := Affine.ModuleExactSections.preservesCokernel |
| 36 | (SectionPresheaf.openSubset U r.unop) (hU.basicOpen r.unop.val) f |
| 37 | change PreservesColimit (parallelPair f 0) |
| 38 | (Affine.ModuleExactSections.sections (SectionPresheaf.openSubset U r.unop) ⋙ |
| 39 | ModuleCat.restrictScalars (algebraMap Γ(X, U) Γ(X, SectionPresheaf.openSubset U r.unop))) |
| 40 | infer_instance |
| 41 | |
| 42 | variable (S : ShortComplex X.Modules) |
| 43 | [S.X₁.IsQuasicoherent] [S.X₂.IsQuasicoherent] [S.X₃.IsQuasicoherent] |
| 44 | |
| 45 | theorem preservesLeft : (ModuleFunctor.functor U hU).PreservesLeftHomologyOf S := by |
| 46 | let : (kernel S.g).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_kernel S.g |
| 47 | let h := ShortComplex.LeftHomologyData.ofHasKernelOfHasCokernel S |
| 48 | let : h.IsPreservedBy (ModuleFunctor.functor U hU) := |
| 49 | { g := preservesKernel U hU S.g |
| 50 | f' := preservesCokernel U hU (kernel.lift S.g S.f S.zero) } |
| 51 | exact Functor.PreservesLeftHomologyOf.mk' (ModuleFunctor.functor U hU) h |
| 52 | |
| 53 | def iso : (S.map (ModuleFunctor.functor U hU)).homology ≅ (ModuleFunctor.functor U hU).obj S.homology := by |
| 54 | letI := preservesLeft U hU S |
| 55 | exact S.mapHomologyIso (ModuleFunctor.functor U hU) |
| 56 | |
| 57 | omit [S.X₁.IsQuasicoherent] [S.X₂.IsQuasicoherent] [S.X₃.IsQuasicoherent] in |
| 58 | def complexIso (K : CochainComplex X.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] (q : ℕ) : |
| 59 | (((ModuleFunctor.functor U hU).mapHomologicalComplex (.up ℕ)).obj K).homology q ≅ |
| 60 | (ModuleFunctor.functor U hU).obj (K.homology q) := by |
| 61 | letI : (K.sc q).X₁.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).prev q)).IsQuasicoherent |
| 62 | letI : (K.sc q).X₂.IsQuasicoherent := inferInstanceAs (K.X q).IsQuasicoherent |
| 63 | letI : (K.sc q).X₃.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).next q)).IsQuasicoherent |
| 64 | exact iso U hU (K.sc q) |
| 65 | |
| 66 | omit [S.X₁.IsQuasicoherent] [S.X₂.IsQuasicoherent] [S.X₃.IsQuasicoherent] in |
| 67 | theorem exactAt (K : CochainComplex X.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] |
| 68 | (q : ℕ) (hK : K.ExactAt q) : |
| 69 | (((ModuleFunctor.functor U hU).mapHomologicalComplex (.up ℕ)).obj K).ExactAt q := by |
| 70 | apply (exactAt_iff_isZero_homology _ _).mpr |
| 71 | exact ((ModuleFunctor.functor U hU).map_isZero ((exactAt_iff_isZero_homology _ _).mp hK)).of_iso |
| 72 | (complexIso U hU K q) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ModuleHomology |