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 Mathlib.RingTheory.Kaehler.Basic |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 4 | import Mathlib.LinearAlgebra.ExteriorPower.Basic |
| 5 | import Mathlib.AlgebraicGeometry.Scheme |
| 6 | import Mathlib.CategoryTheory.Sites.LeftExact |
| 7 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 8 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 9 | |
| 10 | /-! # Algebraic Forms -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Cohomology: algebraic forms and their restriction maps |
| 18 | |
| 19 | The degree-one objects are actual Kähler differentials. Pullback is induced |
| 20 | by their universal derivation. In particular these objects are independent |
| 21 | of crystalline cohomology and of the desired comparison theorem. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable (R : Type u) [CommRing R] |
| 29 | |
| 30 | /-- Kähler one-forms, with the coefficient ring's module structure. -/ |
| 31 | abbrev OneForms (A : CommAlgCat.{u} R) := KaehlerDifferential R A |
| 32 | |
| 33 | variable {R} |
| 34 | |
| 35 | /-- The pullback of Kähler differentials along an algebra homomorphism. -/ |
| 36 | def oneFormsMap {A B : CommAlgCat.{u} R} (f : A ⟶ B) : |
| 37 | OneForms R A →ₗ[R] OneForms R B := by |
| 38 | letI : Algebra A B := f.hom.toRingHom.toAlgebra |
| 39 | exact (KaehlerDifferential.map R R A B).restrictScalars R |
| 40 | |
| 41 | @[simp] |
| 42 | theorem oneFormsMap_D {A B : CommAlgCat.{u} R} (f : A ⟶ B) (a : A) : |
| 43 | oneFormsMap f (KaehlerDifferential.D R A a) = KaehlerDifferential.D R B (f a) := by |
| 44 | let : Algebra A B := f.hom.toRingHom.toAlgebra |
| 45 | exact KaehlerDifferential.map_D R R A B a |
| 46 | |
| 47 | /-- Pullback has the correct semilinearity for the varying section ring. -/ |
| 48 | theorem oneFormsMap_smul {A B : CommAlgCat.{u} R} (f : A ⟶ B) (a : A) |
| 49 | (x : OneForms R A) : oneFormsMap f (a • x) = (f a) • oneFormsMap f x := by |
| 50 | let : Algebra A B := f.hom.toRingHom.toAlgebra |
| 51 | change KaehlerDifferential.map R R A B (a • x) = |
| 52 | (algebraMap A B a) • KaehlerDifferential.map R R A B x |
| 53 | rw [map_smul, algebraMap_smul] |
| 54 | |
| 55 | @[simp] |
| 56 | theorem oneFormsMap_id (A : CommAlgCat.{u} R) (x : OneForms R A) : |
| 57 | oneFormsMap (𝟙 A) x = x := by |
| 58 | have hx : x ∈ Submodule.span A (Set.range (KaehlerDifferential.D R A)) := by |
| 59 | rw [KaehlerDifferential.span_range_derivation] |
| 60 | trivial |
| 61 | induction hx using Submodule.span_induction with |
| 62 | | mem x hx => obtain ⟨a, rfl⟩ := hx; simp |
| 63 | | zero => simp |
| 64 | | add x y hx hy ihx ihy => rw [map_add, ihx, ihy] |
| 65 | | smul a x hx ih => rw [oneFormsMap_smul, ih]; rfl |
| 66 | |
| 67 | theorem oneFormsMap_comp {A B C : CommAlgCat.{u} R} (f : A ⟶ B) (g : B ⟶ C) |
| 68 | (x : OneForms R A) : oneFormsMap (f ≫ g) x = oneFormsMap g (oneFormsMap f x) := by |
| 69 | have hx : x ∈ Submodule.span A (Set.range (KaehlerDifferential.D R A)) := by |
| 70 | rw [KaehlerDifferential.span_range_derivation] |
| 71 | trivial |
| 72 | induction hx using Submodule.span_induction with |
| 73 | | mem x hx => obtain ⟨a, rfl⟩ := hx; simp |
| 74 | | zero => simp |
| 75 | | add x y hx hy ihx ihy => simp only [map_add, ihx, ihy] |
| 76 | | smul a x hx ih => simp only [oneFormsMap_smul, CommAlgCat.comp_apply, ih] |
| 77 | |
| 78 | /-- Kähler differentials as a functor of the coordinate algebra. -/ |
| 79 | def oneFormsFunctor : CommAlgCat.{u} R ⥤ ModuleCat.{u} R where |
| 80 | obj A := ModuleCat.of R (OneForms R A) |
| 81 | map f := ModuleCat.ofHom (oneFormsMap f) |
| 82 | map_id A := by |
| 83 | apply ModuleCat.hom_ext |
| 84 | exact LinearMap.ext (oneFormsMap_id A) |
| 85 | map_comp f g := by |
| 86 | apply ModuleCat.hom_ext |
| 87 | exact LinearMap.ext (oneFormsMap_comp f g) |
| 88 | |
| 89 | /-- Algebraic `n`-forms are the exterior powers over the coordinate algebra. -/ |
| 90 | abbrev Forms (A : CommAlgCat.{u} R) (n : ℕ) := |
| 91 | ⋀[A]^n (OneForms R A) |
| 92 | |
| 93 | /-- Restrict the scalar ring of an alternating map. -/ |
| 94 | def restrictAlternating {S : Type*} [CommRing S] [Algebra R S] |
| 95 | {M N : Type*} [AddCommGroup M] [AddCommGroup N] |
| 96 | [Module R M] [Module R N] [Module S M] [Module S N] |
| 97 | [IsScalarTower R S M] [IsScalarTower R S N] |
| 98 | {ι : Type*} (f : AlternatingMap S M N ι) : AlternatingMap R M N ι := |
| 99 | { f.toMultilinearMap.restrictScalars R with |
| 100 | map_eq_zero_of_eq' := fun v _ _ hij hne => f.map_eq_zero_of_eq v hij hne } |
| 101 | |
| 102 | /-- Pullback of arbitrary exterior powers of Kähler differentials. -/ |
| 103 | def formsMap {A B : CommAlgCat.{u} R} (f : A ⟶ B) (n : ℕ) : |
| 104 | Forms A n →ₗ[R] Forms B n := by |
| 105 | letI : Algebra A B := f.hom.toRingHom.toAlgebra |
| 106 | exact (exteriorPower.alternatingMapLinearEquiv |
| 107 | ((restrictAlternating (R := A) (exteriorPower.ιMulti B n)).compLinearMap |
| 108 | (KaehlerDifferential.map R R A B))).restrictScalars R |
| 109 | |
| 110 | @[simp] |
| 111 | theorem formsMap_mk {A B : CommAlgCat.{u} R} (f : A ⟶ B) (n : ℕ) |
| 112 | (v : Fin n → OneForms R A) : |
| 113 | formsMap f n (exteriorPower.ιMulti A n v) = |
| 114 | exteriorPower.ιMulti B n (fun i => oneFormsMap f (v i)) := by |
| 115 | let : Algebra A B := f.hom.toRingHom.toAlgebra |
| 116 | change (exteriorPower.alternatingMapLinearEquiv |
| 117 | ((restrictAlternating (R := A) (exteriorPower.ιMulti B n)).compLinearMap |
| 118 | (KaehlerDifferential.map R R A B))) (exteriorPower.ιMulti A n v) = _ |
| 119 | rw [exteriorPower.alternatingMapLinearEquiv_apply_ιMulti] |
| 120 | rfl |
| 121 | |
| 122 | theorem formsMap_smul {A B : CommAlgCat.{u} R} (f : A ⟶ B) (n : ℕ) |
| 123 | (a : A) (v : Forms A n) : |
| 124 | formsMap f n (a • v) = (f a) • formsMap f n v := by |
| 125 | let : Algebra A B := f.hom.toRingHom.toAlgebra |
| 126 | change (exteriorPower.alternatingMapLinearEquiv _ : Forms A n →ₗ[A] Forms B n) |
| 127 | (a • v) = (algebraMap A B a) • _ |
| 128 | rw [map_smul, algebraMap_smul] |
| 129 | rfl |
| 130 | |
| 131 | @[simp] |
| 132 | theorem formsMap_id (A : CommAlgCat.{u} R) (n : ℕ) (x : Forms A n) : |
| 133 | formsMap (𝟙 A) n x = x := by |
| 134 | have hx : x ∈ Submodule.span A (Set.range (exteriorPower.ιMulti A n)) := by |
| 135 | rw [exteriorPower.ιMulti_span] |
| 136 | trivial |
| 137 | induction hx using Submodule.span_induction with |
| 138 | | mem x hx => obtain ⟨v, rfl⟩ := hx; simp |
| 139 | | zero => simp |
| 140 | | add x y hx hy ihx ihy => rw [map_add, ihx, ihy] |
| 141 | | smul a x hx ih => rw [formsMap_smul, ih]; rfl |
| 142 | |
| 143 | theorem formsMap_comp {A B C : CommAlgCat.{u} R} (f : A ⟶ B) (g : B ⟶ C) |
| 144 | (n : ℕ) (x : Forms A n) : |
| 145 | formsMap (f ≫ g) n x = formsMap g n (formsMap f n x) := by |
| 146 | have hx : x ∈ Submodule.span A (Set.range (exteriorPower.ιMulti A n)) := by |
| 147 | rw [exteriorPower.ιMulti_span] |
| 148 | trivial |
| 149 | induction hx using Submodule.span_induction with |
| 150 | | mem x hx => obtain ⟨v, rfl⟩ := hx; simp [oneFormsMap_comp] |
| 151 | | zero => simp |
| 152 | | add x y hx hy ihx ihy => simp only [map_add, ihx, ihy] |
| 153 | | smul a x hx ih => simp only [formsMap_smul, CommAlgCat.comp_apply, ih] |
| 154 | |
| 155 | /-- Algebraic forms in a fixed degree, functorial in the coordinate algebra. -/ |
| 156 | def formsFunctor (n : ℕ) : CommAlgCat.{u} R ⥤ ModuleCat.{u} R where |
| 157 | obj A := ModuleCat.of R (Forms A n) |
| 158 | map f := ModuleCat.ofHom (formsMap f n) |
| 159 | map_id A := by |
| 160 | apply ModuleCat.hom_ext |
| 161 | exact LinearMap.ext (formsMap_id A n) |
| 162 | map_comp f g := by |
| 163 | apply ModuleCat.hom_ext |
| 164 | exact LinearMap.ext (formsMap_comp f g n) |
| 165 | |
| 166 | variable (R) (X : Over (Spec (CommRingCat.of R))) |
| 167 | |
| 168 | /-- Constants in the section ring of an open subscheme. -/ |
| 169 | def sectionBaseMap (U : X.left.Opens) : R →+* Γ(X.left, U) := |
| 170 | ((Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ |
| 171 | X.hom.appLE ⊤ U (by simp)).hom |
| 172 | |
| 173 | instance sectionAlgebra (U : X.left.Opens) : Algebra R Γ(X.left, U) := |
| 174 | (sectionBaseMap R X U).toAlgebra |
| 175 | |
| 176 | theorem sectionBaseMap_naturality {U V : X.left.Opens} (f : op U ⟶ op V) (r : R) : |
| 177 | X.left.presheaf.map f (sectionBaseMap R X U r) = sectionBaseMap R X V r := by |
| 178 | have h := congrArg (fun g => (Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ g) |
| 179 | (X.hom.appLE_map (U := ⊤) (V := U) (by simp) f) |
| 180 | exact ConcreteCategory.congr_hom h r |
| 181 | |
| 182 | /-- The actual structure presheaf, retaining the base-algebra action. -/ |
| 183 | def sectionAlgebras : X.left.Opensᵒᵖ ⥤ CommAlgCat.{u} R where |
| 184 | obj U := CommAlgCat.of R Γ(X.left, U.unop) |
| 185 | map f := CommAlgCat.ofHom |
| 186 | { (X.left.presheaf.map f).hom with |
| 187 | commutes' := sectionBaseMap_naturality R X f } |
| 188 | map_id U := by |
| 189 | apply CommAlgCat.hom_ext |
| 190 | apply AlgHom.ext |
| 191 | intro x |
| 192 | exact ConcreteCategory.congr_hom (X.left.presheaf.map_id U) x |
| 193 | map_comp f g := by |
| 194 | apply CommAlgCat.hom_ext |
| 195 | apply AlgHom.ext |
| 196 | intro x |
| 197 | exact ConcreteCategory.congr_hom (X.left.presheaf.map_comp f g) x |
| 198 | |
| 199 | /-- The Kähler differential presheaf on the scheme. -/ |
| 200 | def oneFormsPresheaf : X.left.Opensᵒᵖ ⥤ ModuleCat.{u} R := |
| 201 | sectionAlgebras R X ⋙ oneFormsFunctor |
| 202 | |
| 203 | /-- The presheaf of exterior powers of Kähler differentials. -/ |
| 204 | def formsPresheaf (n : ℕ) : X.left.Opensᵒᵖ ⥤ ModuleCat.{u} R := |
| 205 | sectionAlgebras R X ⋙ formsFunctor n |
| 206 | |
| 207 | /-- The sheaf of algebraic differential forms in degree `n`. -/ |
| 208 | def formsSheaf (n : ℕ) : Sheaf (Opens.grothendieckTopology X.left) (ModuleCat.{u} R) := |
| 209 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{u} R)).obj |
| 210 | (formsPresheaf R X n) |
| 211 | |
| 212 | /-- Functions as modules over the base. -/ |
| 213 | def functionsPresheaf : X.left.Opensᵒᵖ ⥤ ModuleCat.{u} R := |
| 214 | sectionAlgebras R X ⋙ forget₂ (CommAlgCat.{u} R) (AlgCat.{u} R) ⋙ |
| 215 | forget₂ (AlgCat.{u} R) (ModuleCat.{u} R) |
| 216 | |
| 217 | /-- The first de Rham differential is the universal derivation on sections. -/ |
| 218 | def dZero : functionsPresheaf R X ⟶ oneFormsPresheaf R X where |
| 219 | app U := ModuleCat.ofHom (KaehlerDifferential.D R Γ(X.left, U.unop)).toLinearMap |
| 220 | naturality U V f := by |
| 221 | apply ModuleCat.hom_ext |
| 222 | apply LinearMap.ext |
| 223 | intro a |
| 224 | exact (oneFormsMap_D ((sectionAlgebras R X).map f) a).symm |
| 225 | |
| 226 | /-- The first de Rham differential on the associated sheaves. -/ |
| 227 | def dZeroSheaf : |
| 228 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{u} R)).obj |
| 229 | (functionsPresheaf R X) ⟶ |
| 230 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{u} R)).obj |
| 231 | (oneFormsPresheaf R X) := |
| 232 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{u} R)).map (dZero R X) |
| 233 | |
| 234 | end |
| 235 | |
| 236 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham |