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.AffinePrincipal.PrincipalComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleHomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomologyPreservationCompose |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.MapHomologyIsoCompose |
| 5 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.IntrinsicScalarExtensionExact |
| 6 | import Mathlib.RingTheory.Flat.Localization |
| 7 | |
| 8 | /-! # Homology -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Homology |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Principal restriction as an actual natural transformation of section |
| 15 | functors, retaining the scalar action on every original sheaf. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections |
| 26 | |
| 27 | private theorem tensor_ext {R S M T : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 28 | [AddCommGroup M] [Module R M] [AddCommGroup T] [Module S T] |
| 29 | {f g : S ⊗[R] M →ₗ[S] T} (h : ∀ a m, f (a ⊗ₜ[R] m) = g (a ⊗ₜ[R] m)) : f = g := by |
| 30 | apply LinearMap.ext |
| 31 | intro x |
| 32 | induction x using TensorProduct.inductionOn with |
| 33 | | add x y hx hy => simp only [map_add, hx, hy] |
| 34 | | tmul a m => exact h a m |
| 35 | |
| 36 | variable {X : Scheme.{u}} (U : X.Opens) (r : Γ(X, U)) |
| 37 | |
| 38 | local instance sectionModule (M : X.Modules) : Module Γ(X, U) Γ(M, Sections.openSubset U r) := |
| 39 | Module.compHom _ (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r)) |
| 40 | |
| 41 | local instance sectionTower (M : X.Modules) : |
| 42 | IsScalarTower Γ(X, U) Γ(X, Sections.openSubset U r) Γ(M, Sections.openSubset U r) where |
| 43 | smul_assoc a b m := by |
| 44 | change (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) a * b) • m = |
| 45 | algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) a • (b • m) |
| 46 | exact mul_smul _ _ _ |
| 47 | |
| 48 | def component (M : X.Modules) : |
| 49 | Γ(X, Sections.openSubset U r) ⊗[Γ(X, U)] Γ(M, U) →ₗ[Γ(X, Sections.openSubset U r)] Γ(M, Sections.openSubset U r) := |
| 50 | TensorProduct.AlgebraTensorModule.lift |
| 51 | ((LinearMap.id : Γ(X, Sections.openSubset U r) →ₗ[Γ(X, Sections.openSubset U r)] Γ(X, Sections.openSubset U r)).smulRight |
| 52 | (Sections.restriction U r M)) |
| 53 | |
| 54 | theorem component_tmul (M : X.Modules) (a : Γ(X, Sections.openSubset U r)) (m : Γ(M, U)) : |
| 55 | component U r M (a ⊗ₜ[Γ(X, U)] m) = a • M.presheaf.map (Sections.inclusion U r).op m := rfl |
| 56 | |
| 57 | abbrev tensorFunctor := PrincipalComplex.tensorFunctor U r |
| 58 | |
| 59 | def restriction : Affine.ModuleExactSections.sections U ⋙ tensorFunctor U r ⟶ |
| 60 | Affine.ModuleExactSections.sections (Sections.openSubset U r) where |
| 61 | app M := ModuleCat.ofHom (component U r M) |
| 62 | naturality {M N} f := by |
| 63 | apply ModuleCat.hom_ext |
| 64 | apply tensor_ext |
| 65 | intro a m |
| 66 | change component U r N (a ⊗ₜ[Γ(X, U)] f.val.app (op U) m) = |
| 67 | f.val.app (op (Sections.openSubset U r)) (component U r M (a ⊗ₜ[Γ(X, U)] m)) |
| 68 | rw [component_tmul, component_tmul, map_smul] |
| 69 | exact congrArg (fun z => a • z) |
| 70 | (PresheafOfModules.naturality_apply f.val (Sections.inclusion U r).op m).symm |
| 71 | |
| 72 | theorem restriction_eq_iso (hU : IsAffineOpen U) (M : X.Modules) [M.IsQuasicoherent] : |
| 73 | (restriction U r).app M = (Sections.iso U hU r M).toModuleIso.hom := by |
| 74 | apply ModuleCat.hom_ext |
| 75 | apply tensor_ext |
| 76 | intro a m |
| 77 | rfl |
| 78 | |
| 79 | theorem complex_restriction (hU : IsAffineOpen U) (K : CochainComplex X.Modules ℕ) |
| 80 | [∀ i, (K.X i).IsQuasicoherent] : |
| 81 | ((restriction U r).mapHomologicalComplex (.up ℕ)).app K = |
| 82 | (PrincipalComplex.iso U hU r (.up ℕ) K).hom := by |
| 83 | apply HomologicalComplex.Hom.ext |
| 84 | funext i |
| 85 | exact restriction_eq_iso U r hU (K.X i) |
| 86 | |
| 87 | def tensorHomologyIso (hU : IsAffineOpen U) (T : ShortComplex (ModuleCat Γ(X, U))) : |
| 88 | (T.map (tensorFunctor U r)).homology ≅ (tensorFunctor U r).obj T.homology := by |
| 89 | letI : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 90 | letI : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 91 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 92 | exact T.mapHomologyIso (tensorFunctor U r) |
| 93 | |
| 94 | theorem homology_naturality (hU : IsAffineOpen U) (T : ShortComplex X.Modules) |
| 95 | [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] [T.X₃.IsQuasicoherent] : |
| 96 | (tensorFunctor U r).map (Affine.ModuleHomology.iso U hU T).inv ≫ |
| 97 | (tensorHomologyIso U r hU (T.map (Affine.ModuleExactSections.sections U))).inv ≫ |
| 98 | ShortComplex.homologyMap (T.mapNatTrans (restriction U r)) = |
| 99 | (restriction U r).app T.homology ≫ |
| 100 | (Affine.ModuleHomology.iso (Sections.openSubset U r) (hU.basicOpen r) T).inv := by |
| 101 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 102 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 103 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 104 | let := Affine.ModuleHomology.preservesLeft U hU T |
| 105 | let := Affine.ModuleHomology.preservesRight U hU T |
| 106 | let := Affine.ModuleHomology.preservesLeft (Sections.openSubset U r) (hU.basicOpen r) T |
| 107 | let := Affine.ModuleHomology.preservesRight (Sections.openSubset U r) (hU.basicOpen r) T |
| 108 | let := HomologyPreservationCompose.left (Affine.ModuleExactSections.sections U) |
| 109 | (tensorFunctor U r) T |
| 110 | let := HomologyPreservationCompose.right (Affine.ModuleExactSections.sections U) |
| 111 | (tensorFunctor U r) T |
| 112 | change (tensorFunctor U r).map (T.mapHomologyIso (Affine.ModuleExactSections.sections U)).inv ≫ |
| 113 | ((T.map (Affine.ModuleExactSections.sections U)).mapHomologyIso (tensorFunctor U r)).inv ≫ |
| 114 | ShortComplex.homologyMap (T.mapNatTrans (restriction U r)) = |
| 115 | (restriction U r).app T.homology ≫ |
| 116 | (T.mapHomologyIso (Affine.ModuleExactSections.sections (Sections.openSubset U r))).inv |
| 117 | rw [← Category.assoc, ← MapHomologyIsoCompose.inv_comp, |
| 118 | ShortComplex.homologyMap_mapNatTrans, ← Category.assoc, ← Category.assoc, |
| 119 | Iso.inv_hom_id, Category.id_comp] |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Homology |