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.SectionPresheaf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 3 | |
| 4 | /-! # Closed Scalars -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual sections on inverse images of ambient principal opens |
| 11 | form a diagram over the sections on the inverse image of the original |
| 12 | open. Restriction of scalars recovers the original pushforward diagram. |
| 13 | The construction applies, in particular, to the closed immersions used |
| 14 | in the principal residue calculation. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf |
| 24 | variable {X Z : Scheme.{u}} (i : X ⟶ Z) (U : Z.Opens) (hU : IsAffineOpen U) |
| 25 | |
| 26 | abbrev pullbackOpen (r : SectionPresheaf.Index U) := i ⁻¹ᵁ SectionPresheaf.openSubset U r |
| 27 | abbrev pullbackInclusion (r : SectionPresheaf.Index U) : pullbackOpen i U r ⟶ i ⁻¹ᵁ U := |
| 28 | homOfLE (i.preimage_mono (Z.basicOpen_le r.val)) |
| 29 | abbrev pullbackArrow {r s : SectionPresheaf.Index U} (a : r ⟶ s) : |
| 30 | pullbackOpen i U r ⟶ pullbackOpen i U s := |
| 31 | homOfLE (i.preimage_mono (SectionPresheaf.arrow U hU a).le) |
| 32 | |
| 33 | instance sectionAlgebra (r : SectionPresheaf.Index U) : |
| 34 | Algebra Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U r) := |
| 35 | (X.presheaf.map (pullbackInclusion i U r).op).hom.toAlgebra |
| 36 | |
| 37 | def restrictionAlg {r s : SectionPresheaf.Index U} (a : r ⟶ s) : |
| 38 | Γ(X, pullbackOpen i U s) →ₐ[Γ(X, i ⁻¹ᵁ U)] Γ(X, pullbackOpen i U r) := |
| 39 | { (X.presheaf.map (pullbackArrow i U hU a).op).hom with |
| 40 | commutes' x := by |
| 41 | change X.presheaf.map (pullbackArrow i U hU a).op |
| 42 | (X.presheaf.map (pullbackInclusion i U s).op x) = |
| 43 | X.presheaf.map (pullbackInclusion i U r).op x |
| 44 | rw [← ConcreteCategory.comp_apply, ← X.presheaf.map_comp] |
| 45 | rfl } |
| 46 | |
| 47 | def rings : (SectionPresheaf.Index U)ᵒᵖ ⥤ CommAlgCat.{u} Γ(X, i ⁻¹ᵁ U) where |
| 48 | obj r := CommAlgCat.of Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U r.unop) |
| 49 | map a := CommAlgCat.ofHom (restrictionAlg i U hU a.unop) |
| 50 | map_id r := by |
| 51 | apply CommAlgCat.hom_ext |
| 52 | apply AlgHom.ext |
| 53 | intro x |
| 54 | change X.presheaf.map (𝟙 (op (pullbackOpen i U r.unop))) x = x |
| 55 | rw [X.presheaf.map_id] |
| 56 | rfl |
| 57 | map_comp a b := by |
| 58 | apply CommAlgCat.hom_ext |
| 59 | apply AlgHom.ext |
| 60 | intro x |
| 61 | change X.presheaf.map _ x = X.presheaf.map _ (X.presheaf.map _ x) |
| 62 | rw [← ConcreteCategory.comp_apply, ← X.presheaf.map_comp] |
| 63 | rfl |
| 64 | |
| 65 | instance sectionModule (M : X.Modules) (r : SectionPresheaf.Index U) : |
| 66 | Module Γ(X, i ⁻¹ᵁ U) Γ(M, pullbackOpen i U r) := |
| 67 | Module.compHom _ (algebraMap Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U r)) |
| 68 | |
| 69 | instance sectionTower (M : X.Modules) (r : SectionPresheaf.Index U) : |
| 70 | IsScalarTower Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U r) Γ(M, pullbackOpen i U r) := |
| 71 | IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 72 | |
| 73 | def moduleMap (M : X.Modules) {r s : SectionPresheaf.Index U} (a : r ⟶ s) : |
| 74 | Γ(M, pullbackOpen i U s) →ₗ[Γ(X, i ⁻¹ᵁ U)] Γ(M, pullbackOpen i U r) where |
| 75 | toFun := M.presheaf.map (pullbackArrow i U hU a).op |
| 76 | map_add' := map_add _ |
| 77 | map_smul' x m := by |
| 78 | change M.presheaf.map _ |
| 79 | ((algebraMap Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U s) x) • m) = _ |
| 80 | rw [M.map_smul] |
| 81 | exact congrArg (fun z => z • M.presheaf.map (pullbackArrow i U hU a).op m) |
| 82 | ((restrictionAlg i U hU a).commutes x) |
| 83 | |
| 84 | def modules (M : X.Modules) : (SectionPresheaf.Index U)ᵒᵖ ⥤ ModuleCat.{u} Γ(X, i ⁻¹ᵁ U) where |
| 85 | obj r := ModuleCat.of Γ(X, i ⁻¹ᵁ U) Γ(M, pullbackOpen i U r.unop) |
| 86 | map a := ModuleCat.ofHom (moduleMap i U hU M a.unop) |
| 87 | map_id r := by |
| 88 | apply ModuleCat.hom_ext |
| 89 | apply LinearMap.ext |
| 90 | intro x |
| 91 | change M.presheaf.map (𝟙 (op (pullbackOpen i U r.unop))) x = x |
| 92 | rw [M.presheaf.map_id] |
| 93 | rfl |
| 94 | map_comp a b := by |
| 95 | apply ModuleCat.hom_ext |
| 96 | apply LinearMap.ext |
| 97 | intro x |
| 98 | change M.presheaf.map _ x = M.presheaf.map _ (M.presheaf.map _ x) |
| 99 | rw [← ConcreteCategory.comp_apply, ← M.presheaf.map_comp] |
| 100 | rfl |
| 101 | |
| 102 | def moduleHom {M N : X.Modules} (f : M ⟶ N) : modules i U hU M ⟶ modules i U hU N where |
| 103 | app r := ModuleCat.ofHom |
| 104 | { toFun := f.val.app (op (pullbackOpen i U r.unop)) |
| 105 | map_add' := map_add _ |
| 106 | map_smul' a x := by |
| 107 | change f.val.app (op (pullbackOpen i U r.unop)) |
| 108 | ((algebraMap Γ(X, i ⁻¹ᵁ U) Γ(X, pullbackOpen i U r.unop) a) • x) = _ |
| 109 | exact (f.val.app (op (pullbackOpen i U r.unop))).hom.map_smul _ _ } |
| 110 | naturality r s a := by |
| 111 | apply ModuleCat.hom_ext |
| 112 | apply LinearMap.ext |
| 113 | intro x |
| 114 | exact PresheafOfModules.naturality_apply f.val (pullbackArrow i U hU a.unop).op x |
| 115 | |
| 116 | theorem scalar_square (r : SectionPresheaf.Index U) (a : Γ(Z, U)) : |
| 117 | X.presheaf.map (pullbackInclusion i U r).op (i.app U a) = |
| 118 | i.app (SectionPresheaf.openSubset U r) (Z.presheaf.map (SectionPresheaf.inclusion U r).op a) := |
| 119 | (ConcreteCategory.congr_hom (i.naturality (SectionPresheaf.inclusion U r).op) a).symm |
| 120 | |
| 121 | def restrictionEquiv (M : X.Modules) (r : SectionPresheaf.Index U) : |
| 122 | (ModuleCat.restrictScalars (i.app U).hom).obj ((modules i U hU M).obj (op r)) ≃ₗ[Γ(Z, U)] |
| 123 | (SectionPresheaf.modules U hU ((Scheme.Modules.pushforward i).obj M)).obj (op r) where |
| 124 | toFun x := x |
| 125 | invFun x := x |
| 126 | left_inv _ := rfl |
| 127 | right_inv _ := rfl |
| 128 | map_add' _ _ := rfl |
| 129 | map_smul' a x := by |
| 130 | change Γ(M, pullbackOpen i U r) at x |
| 131 | change X.presheaf.map (pullbackInclusion i U r).op (i.app U a) • x = |
| 132 | i.app (SectionPresheaf.openSubset U r) (Z.presheaf.map (SectionPresheaf.inclusion U r).op a) • x |
| 133 | exact congrArg (fun z : Γ(X, pullbackOpen i U r) => z • x) (scalar_square i U r a) |
| 134 | |
| 135 | def restrictionIso (M : X.Modules) : |
| 136 | modules i U hU M ⋙ ModuleCat.restrictScalars (i.app U).hom ≅ |
| 137 | SectionPresheaf.modules U hU ((Scheme.Modules.pushforward i).obj M) := |
| 138 | NatIso.ofComponents (fun r => (restrictionEquiv i U hU M r.unop).toModuleIso) |
| 139 | (fun {_ _} _ => by |
| 140 | apply ModuleCat.hom_ext |
| 141 | apply LinearMap.ext |
| 142 | intro x |
| 143 | rfl) |
| 144 | |
| 145 | theorem restrictionIso_hom_app (M : X.Modules) (r : SectionPresheaf.Index U) |
| 146 | (x : Γ(M, pullbackOpen i U r)) : |
| 147 | ((restrictionIso i U hU M).hom.app (op r)) x = x := rfl |
| 148 | |
| 149 | theorem restrictionIso_natural {M N : X.Modules} (f : M ⟶ N) : |
| 150 | Functor.whiskerRight (moduleHom i U hU f) (ModuleCat.restrictScalars (i.app U).hom) ≫ |
| 151 | (restrictionIso i U hU N).hom = |
| 152 | (restrictionIso i U hU M).hom ≫ |
| 153 | SectionPresheaf.moduleHom U hU ((Scheme.Modules.pushforward i).map f) := by |
| 154 | ext r x |
| 155 | rfl |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars |