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.AlgebraicGeometry.AbelianScheme.CentralAction.Generators |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Kernels |
| 3 | |
| 4 | /-! # Split Scalar -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.SplitScalar.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The principal scalar has the prescribed subgroup kernels on all |
| 13 | test schemes. These are equalities of actual subgroup functors. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.NumberField |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] |
| 19 | {g N q : ℕ} [Fact q.Prime] {S : Scheme} |
| 20 | |
| 21 | def trivialPointSubgroup (B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) : TateComparison.Subgroups.PointSubgroup B where |
| 22 | atTest _ := ⊥ |
| 23 | pullback_mem f x hx := by |
| 24 | change x = 1 at hx |
| 25 | change f ≫ x = 1 |
| 26 | rw [hx, MonObj.comp_one] |
| 27 | |
| 28 | /-- The norm identity bounds the entire scheme-theoretic scalar kernel. -/ |
| 29 | theorem scalar_kernel_killed_by_norm |
| 30 | (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) (b : 𝓞 E) (m : ℕ) |
| 31 | (hnorm : b * IsCMField.ringOfIntegersComplexConj E b = m) |
| 32 | (T : Over S) (x : T ⟶ B.abelian.scheme) |
| 33 | (hx : x ≫ Scalar.Construction.scalarMap B b = 1) : x ^ m = 1 := by |
| 34 | have hc := (Scalar.Construction.scalarMap_complements B b m hnorm).1 |
| 35 | have h := congrArg (fun f => x ≫ f) hc |
| 36 | rw [← Category.assoc, hx, MonObj.one_comp, MonObj.comp_pow, Category.comp_id] at h |
| 37 | exact h.symm |
| 38 | |
| 39 | omit [NumberField E] [IsCMField E] in |
| 40 | /-- On a selected block the scalar kills the whole block; on the opposite |
| 41 | block its kernel is trivial. Both assertions include nonreduced tests. -/ |
| 42 | theorem scalar_side_kernel |
| 43 | (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) (χ : 𝓞 E →+* ℤ_[q]) |
| 44 | (b : 𝓞 E) (n : ℕ) (selected : Prop) [Decidable selected] |
| 45 | (u : ℤ_[q]ˣ) (hlocal : χ b = (q : ℤ_[q]) ^ (if selected then n else 0) * u) : |
| 46 | (TateComparison.Subgroups.PointSubgroup.kernel (Scalar.Construction.scalarMap B b)).inf (TateComparison.Subgroups.splitBlock B χ n) = |
| 47 | if selected then TateComparison.Subgroups.splitBlock B χ n else trivialPointSubgroup B.abelian := by |
| 48 | apply TateComparison.Subgroups.PointSubgroup.ext |
| 49 | intro T |
| 50 | apply Subgroup.ext |
| 51 | intro x |
| 52 | by_cases hs : selected |
| 53 | · rw [ite_eq_left hs] |
| 54 | change (x ≫ Scalar.Construction.scalarMap B b = 1 ∧ x ∈ (TateComparison.Subgroups.splitBlock B χ n).atTest T) ↔ _ |
| 55 | constructor |
| 56 | · exact And.right |
| 57 | · intro hx |
| 58 | refine ⟨?_, hx⟩ |
| 59 | have hk := Kernels.Construction.scalar_kernel_on_splitBlock B χ b n (if selected then n else 0) |
| 60 | u hlocal T x hx |
| 61 | rw [ite_eq_left hs] at hk |
| 62 | exact hk.mpr hx.1 |
| 63 | · rw [ite_eq_right hs] |
| 64 | change (x ≫ Scalar.Construction.scalarMap B b = 1 ∧ x ∈ (TateComparison.Subgroups.splitBlock B χ n).atTest T) ↔ x = 1 |
| 65 | constructor |
| 66 | · rintro ⟨hk, hx⟩ |
| 67 | have he := (Kernels.Construction.scalar_kernel_on_splitBlock B χ b n (if selected then n else 0) |
| 68 | u hlocal T x hx).mp hk |
| 69 | simpa only [ite_eq_right hs, pow_zero, pow_one] using he |
| 70 | · rintro rfl |
| 71 | exact ⟨MonObj.one_comp _, (TateComparison.Subgroups.splitBlock B χ n).atTest T |>.one_mem⟩ |
| 72 | |
| 73 | variable {K : Type} [Field K] [NumberField K] {s : ℕ} |
| 74 | |
| 75 | /-- Finiteness now gives a scalar whose exact norm, complete marking, and all |
| 76 | chosen and opposite kernel blocks are established from TateComparison's input data. -/ |
| 77 | theorem exists_marked_scalar_with_side_kernels |
| 78 | (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 79 | (hgood : D.IsGoodCompletelySplitPrime) (hlevel : 0 < D.level) |
| 80 | (hdegree : Module.finrank ℚ E = 2 * s) |
| 81 | (hFiniteness : Arithmetic.Construction.PrincipalizationInput E) (side : Fin s → Bool) : |
| 82 | ∃ (n : ℕ) (b : 𝓞 E), 0 < n ∧ b ≠ 0 ∧ |
| 83 | b * IsCMField.ringOfIntegersComplexConj E b = (q : 𝓞 E) ^ n ∧ |
| 84 | Marking.Construction.levelReduction E D.level b = 1 ∧ |
| 85 | ∀ (S : Scheme) (B : TateComparison.PEL.PELFamilyData (𝓞 E) (3 * s) D.level S) |
| 86 | (v : Fin s) (w : Bool), |
| 87 | (TateComparison.Subgroups.PointSubgroup.kernel (Scalar.Construction.scalarMap B b)).inf |
| 88 | (TateComparison.Subgroups.splitBlock B (D.localCharacter (v, w)) n) = |
| 89 | if w = side v then TateComparison.Subgroups.splitBlock B (D.localCharacter (v, w)) n |
| 90 | else trivialPointSubgroup B.abelian := by |
| 91 | obtain ⟨n, b, hn, hb, hnorm, hmark, hlocal⟩ := |
| 92 | Generators.Construction.marked_side_generator_local D hgood hlevel hdegree hFiniteness side |
| 93 | refine ⟨n, b, hn, hb, hnorm, hmark, ?_⟩ |
| 94 | intro S B v w |
| 95 | obtain ⟨u, hu⟩ := hlocal v w |
| 96 | exact scalar_side_kernel B (D.localCharacter (v, w)) b n (w = side v) u hu |
| 97 | |
| 98 | end |
| 99 | |
| 100 | section |
| 101 | |
| 102 | /-! Integral lifts of the split residue idempotents give projectors on the |
| 103 | actual torsion functor. Their sum is the identity on all test schemes. -/ |
| 104 | |
| 105 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.NumberField |
| 106 | open scoped _root_.CategoryTheory.MonObj |
| 107 | |
| 108 | variable {E K : Type} [Field E] [NumberField E] [IsCMField E] |
| 109 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 110 | |
| 111 | def residueProjector (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 112 | (hgood : D.IsGoodCompletelySplitPrime) (h : ℕ) (i : Fin s × Bool) : 𝓞 E := |
| 113 | (SideResidues.Construction.residueCoordinates_surjective D hgood h (Pi.single i 1)).choose |
| 114 | |
| 115 | theorem residueProjector_spec (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 116 | (hgood : D.IsGoodCompletelySplitPrime) (h : ℕ) (i : Fin s × Bool) : |
| 117 | SideResidues.Construction.residueCoordinates D h (residueProjector D hgood h i) = Pi.single i 1 := |
| 118 | (SideResidues.Construction.residueCoordinates_surjective D hgood h (Pi.single i 1)).choose_spec |
| 119 | |
| 120 | omit [NumberField E] [IsCMField E] in |
| 121 | /-- Scalar actions on N-torsion depend only on the residue modulo N. -/ |
| 122 | theorem scalarMap_eq_of_congruence {S : Scheme} {g N : ℕ} |
| 123 | (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) (b c : 𝓞 E) (m : ℕ) |
| 124 | (hbc : b - c ∈ Ideal.span {(m : 𝓞 E)}) |
| 125 | (T : Over S) (x : T ⟶ B.abelian.scheme) (hx : x ^ m = 1) : |
| 126 | x ≫ Scalar.Construction.scalarMap B b = x ≫ Scalar.Construction.scalarMap B c := by |
| 127 | obtain ⟨r, hr⟩ := Ideal.mem_span_singleton.mp hbc |
| 128 | have hb : b = c + r * (m : 𝓞 E) := by |
| 129 | rw [mul_comm r, ← hr] |
| 130 | abel |
| 131 | unfold Scalar.Construction.scalarMap |
| 132 | rw [hb, map_add, TateComparison.BaseChange.endSchemeMap_add, MonObj.comp_mul, map_mul, |
| 133 | TateComparison.BaseChange.endSchemeMap_mul, map_natCast, Scalar.Construction.scalar_natCast_schemeMap, |
| 134 | ← Category.assoc, MonObj.comp_pow, Category.comp_id, |
| 135 | hx, MonObj.one_comp, mul_one] |
| 136 | |
| 137 | /-- The supplied completion coordinates determine the scalar action on |
| 138 | q-power torsion, without a separately assumed eigenspace decomposition. -/ |
| 139 | theorem scalarMap_eq_of_residues (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 140 | (hgood : D.IsGoodCompletelySplitPrime) |
| 141 | (hdegree : Module.finrank ℚ E = 2 * s) |
| 142 | {S : Scheme} {g N : ℕ} (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) |
| 143 | (b c : 𝓞 E) (h : ℕ) (hbc : SideResidues.Construction.residueCoordinates D h b = SideResidues.Construction.residueCoordinates D h c) |
| 144 | (T : Over S) (x : T ⟶ B.abelian.scheme) (hx : x ^ (q ^ h) = 1) : |
| 145 | x ≫ Scalar.Construction.scalarMap B b = x ≫ Scalar.Construction.scalarMap B c := by |
| 146 | apply scalarMap_eq_of_congruence B b c (q ^ h) ?_ T x hx |
| 147 | change b - c ∈ SideResidues.Construction.qPowerIdeal E q h |
| 148 | rw [← SideResidues.Construction.residueCoordinates_kernel D hgood hdegree h] |
| 149 | change SideResidues.Construction.residueCoordinates D h (b - c) = 0 |
| 150 | rw [map_sub, hbc, sub_self] |
| 151 | |
| 152 | omit [NumberField E] [IsCMField E] in |
| 153 | theorem scalarMap_sum_points {S : Scheme} {g N : ℕ} |
| 154 | (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) {Idx : Type*} (t : Finset Idx) (b : Idx → 𝓞 E) |
| 155 | (T : Over S) (x : T ⟶ B.abelian.scheme) : |
| 156 | x ≫ Scalar.Construction.scalarMap B (∑ i ∈ t, b i) = ∏ i ∈ t, x ≫ Scalar.Construction.scalarMap B (b i) := by |
| 157 | classical |
| 158 | induction t using Finset.induction_on with |
| 159 | | empty => simp [Scalar.Construction.scalarMap, TateComparison.BaseChange.endSchemeMap_zero, MonObj.comp_one] |
| 160 | | @insert i t hi ih => |
| 161 | rw [Finset.sum_insert hi, Finset.prod_insert hi] |
| 162 | change x ≫ TateComparison.End.endSchemeMap _ (B.action (b i + ∑ j ∈ t, b j)) = _ |
| 163 | rw [map_add, TateComparison.BaseChange.endSchemeMap_add, MonObj.comp_mul] |
| 164 | exact congrArg (fun z => (x ≫ Scalar.Construction.scalarMap B (b i)) * z) ih |
| 165 | |
| 166 | /-- The split residue projectors sum to the identity on the full q-power |
| 167 | torsion subgroup, as an equality on every test scheme. -/ |
| 168 | theorem residueProjector_sum_points (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 169 | (hgood : D.IsGoodCompletelySplitPrime) |
| 170 | (hdegree : Module.finrank ℚ E = 2 * s) |
| 171 | {S : Scheme} {g N : ℕ} (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) |
| 172 | (h : ℕ) (T : Over S) (x : T ⟶ B.abelian.scheme) (hx : x ^ (q ^ h) = 1) : |
| 173 | ∏ i : Fin s × Bool, x ≫ Scalar.Construction.scalarMap B (residueProjector D hgood h i) = x := by |
| 174 | rw [← scalarMap_sum_points] |
| 175 | have hr : SideResidues.Construction.residueCoordinates D h (∑ i, residueProjector D hgood h i) = |
| 176 | SideResidues.Construction.residueCoordinates D h 1 := by |
| 177 | rw [map_sum, map_one] |
| 178 | simp only [residueProjector_spec] |
| 179 | ext i |
| 180 | simp |
| 181 | rw [scalarMap_eq_of_residues D hgood hdegree B _ 1 h hr T x hx] |
| 182 | rw [Scalar.Construction.scalarMap, map_one, TateComparison.BaseChange.endSchemeMap_one, Category.comp_id] |
| 183 | |
| 184 | /-- Each integral residue projector lands in the specified split block. -/ |
| 185 | theorem residueProjector_mem_splitBlock (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 186 | (hgood : D.IsGoodCompletelySplitPrime) |
| 187 | (hdegree : Module.finrank ℚ E = 2 * s) |
| 188 | {S : Scheme} {g N : ℕ} (B : TateComparison.PEL.PELFamilyData (𝓞 E) g N S) |
| 189 | (h : ℕ) (i : Fin s × Bool) |
| 190 | (T : Over S) (x : T ⟶ B.abelian.scheme) (hx : x ^ (q ^ h) = 1) : |
| 191 | x ≫ Scalar.Construction.scalarMap B (residueProjector D hgood h i) ∈ |
| 192 | (TateComparison.Subgroups.splitBlock B (D.localCharacter i) h).atTest T := by |
| 193 | classical |
| 194 | let e := residueProjector D hgood h i |
| 195 | refine ⟨?_, ?_⟩ |
| 196 | · rw [← MonObj.pow_comp, hx, MonObj.one_comp] |
| 197 | · intro b |
| 198 | let k := (SideResidues.Construction.residueCoordinates D h b i).val |
| 199 | have hr : SideResidues.Construction.residueCoordinates D h (b * e) = |
| 200 | SideResidues.Construction.residueCoordinates D h ((k : 𝓞 E) * e) := by |
| 201 | rw [map_mul, map_mul, map_natCast] |
| 202 | dsimp [e] |
| 203 | rw [residueProjector_spec] |
| 204 | ext j |
| 205 | change SideResidues.Construction.residueCoordinates D h b j * (Pi.single i 1 : Fin s × Bool → ZMod (q ^ h)) j = |
| 206 | (k : ZMod (q ^ h)) * (Pi.single i 1 : Fin s × Bool → ZMod (q ^ h)) j |
| 207 | by_cases hj : j = i |
| 208 | · subst j |
| 209 | simp [k] |
| 210 | · simp [hj] |
| 211 | have he := scalarMap_eq_of_residues D hgood hdegree B (b * e) ((k : 𝓞 E) * e) |
| 212 | h hr T x hx |
| 213 | unfold Scalar.Construction.scalarMap at he |
| 214 | rw [map_mul, TateComparison.BaseChange.endSchemeMap_mul, map_mul, TateComparison.BaseChange.endSchemeMap_mul, |
| 215 | map_natCast, Scalar.Construction.scalar_natCast_schemeMap, ← Category.assoc, |
| 216 | ← Category.assoc, MonObj.comp_pow, Category.comp_id] at he |
| 217 | exact he |
| 218 | |
| 219 | end |
| 220 | |
| 221 | section |
| 222 | |
| 223 | /-! Distinct local characters force equivariant rational Tate maps to |
| 224 | preserve the independent blocks. This reconstructs full preimage lattices |
| 225 | from the chosen and opposite projections in TateComparison. -/ |
| 226 | |
| 227 | section Linear |
| 228 | |
| 229 | variable {Idx R L V : Type*} [Fintype Idx] [DecidableEq Idx] |
| 230 | [Field L] [AddCommGroup V] [Module L V] |
| 231 | (χ : R → Idx → L) |
| 232 | (hsep : ∀ i j : Idx, i ≠ j → ∃ b : R, χ b i ≠ χ b j) |
| 233 | (F : (Idx → V) →ₗ[L] (Idx → V)) |
| 234 | (hF : ∀ (b : R) (x : Idx → V), |
| 235 | F (fun i => χ b i • x i) = fun i => χ b i • F x i) |
| 236 | |
| 237 | include hsep hF |
| 238 | |
| 239 | omit [Fintype Idx] in |
| 240 | /-- An equivariant map has no component between different characters. -/ |
| 241 | theorem intertwiner_single_off_diagonal (i j : Idx) (hij : i ≠ j) (v : V) : |
| 242 | F (Pi.single i v) j = 0 := by |
| 243 | obtain ⟨b, hb⟩ := hsep i j hij |
| 244 | have he := congrFun (hF b (Pi.single i v)) j |
| 245 | have hx : (fun k => χ b k • (Pi.single i v : Idx → V) k) = χ b i • Pi.single i v := by |
| 246 | funext k |
| 247 | by_cases hk : k = i |
| 248 | · subst k |
| 249 | simp |
| 250 | · simp [hk] |
| 251 | rw [hx, map_smul] at he |
| 252 | change χ b i • F (Pi.single i v) j = χ b j • F (Pi.single i v) j at he |
| 253 | have hz : (χ b i - χ b j) • F (Pi.single i v) j = 0 := by |
| 254 | rw [sub_smul, he, sub_self] |
| 255 | exact (smul_eq_zero.mp hz).resolve_left (sub_ne_zero.mpr hb) |
| 256 | |
| 257 | /-- Every output coordinate depends only on the matching input coordinate. -/ |
| 258 | theorem intertwiner_coordinate (x : Idx → V) (j : Idx) : |
| 259 | F x j = F (Pi.single j (x j)) j := by |
| 260 | have hx : x = ∑ i : Idx, Pi.single i (x i) := by |
| 261 | ext i |
| 262 | simp |
| 263 | calc |
| 264 | F x j = ∑ i : Idx, F (Pi.single i (x i)) j := by |
| 265 | conv_lhs => rw [hx] |
| 266 | rw [map_sum, Finset.sum_apply] |
| 267 | _ = F (Pi.single j (x j)) j := by |
| 268 | apply Finset.sum_eq_single j |
| 269 | · intro i _ hij |
| 270 | exact intertwiner_single_off_diagonal χ hsep F hF i j hij (x i) |
| 271 | · simp |
| 272 | |
| 273 | end Linear |
| 274 | |
| 275 | variable {Idx R V : Type*} [Fintype Idx] [DecidableEq Idx] |
| 276 | [CommRing R] [AddCommGroup V] [Module R V] |
| 277 | |
| 278 | /-- A submodule stable under the coordinate projectors is determined by |
| 279 | its projected submodules; no equality of full lattices is assumed. -/ |
| 280 | theorem split_submodule_le_of_projections (P Q : Submodule R (Idx → V)) |
| 281 | (hQ : ∀ x ∈ Q, ∀ i, Pi.single i (x i) ∈ Q) |
| 282 | (hproj : ∀ i, P.map (LinearMap.proj i) ≤ Q.map (LinearMap.proj i)) : P ≤ Q := by |
| 283 | intro x hx |
| 284 | have hs (i : Idx) : Pi.single i (x i) ∈ Q := by |
| 285 | have hi : x i ∈ P.map (LinearMap.proj i) := Submodule.mem_map_of_mem hx |
| 286 | obtain ⟨y, hy, he⟩ := hproj i hi |
| 287 | have hys := hQ y hy i |
| 288 | change y i = x i at he |
| 289 | rw [he] at hys |
| 290 | exact hys |
| 291 | have he : ∑ i : Idx, Pi.single i (x i) = x := by ext i; simp |
| 292 | rw [← he] |
| 293 | exact Submodule.sum_mem Q (fun i _ => hs i) |
| 294 | |
| 295 | theorem split_submodule_eq_of_projections (P Q : Submodule R (Idx → V)) |
| 296 | (hP : ∀ x ∈ P, ∀ i, Pi.single i (x i) ∈ P) |
| 297 | (hQ : ∀ x ∈ Q, ∀ i, Pi.single i (x i) ∈ Q) |
| 298 | (hproj : ∀ i, P.map (LinearMap.proj i) = Q.map (LinearMap.proj i)) : P = Q := by |
| 299 | apply le_antisymm |
| 300 | · exact split_submodule_le_of_projections P Q hQ (fun i => (hproj i).le) |
| 301 | · exact split_submodule_le_of_projections Q P hP (fun i => (hproj i).ge) |
| 302 | |
| 303 | end |
| 304 | |
| 305 | /-! The actual split completion coordinates separate every pair of |
| 306 | characters. Integral residue idempotents supply explicit witnesses. -/ |
| 307 | |
| 308 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 309 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 310 | |
| 311 | theorem localCharacter_separates (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 312 | (hgood : D.IsGoodCompletelySplitPrime) (i j : Fin s × Bool) (hij : i ≠ j) : |
| 313 | ∃ b : NumberField.RingOfIntegers E, |
| 314 | (D.localCharacter i b : ℚ_[q]) ≠ (D.localCharacter j b : ℚ_[q]) := by |
| 315 | have : Fact ((q ^ 1).Prime) := ⟨by simpa only [pow_one] using (Fact.out : q.Prime)⟩ |
| 316 | let b := residueProjector D hgood 1 i |
| 317 | refine ⟨b, ?_⟩ |
| 318 | intro he |
| 319 | have he' : D.localCharacter i b = D.localCharacter j b := Subtype.val_injective he |
| 320 | have hr : SideResidues.Construction.residueCoordinates D 1 b i = SideResidues.Construction.residueCoordinates D 1 b j := |
| 321 | congrArg (PadicInt.toZModPow 1) he' |
| 322 | have hi : SideResidues.Construction.residueCoordinates D 1 b i = 1 := by |
| 323 | change SideResidues.Construction.residueCoordinates D 1 (residueProjector D hgood 1 i) i = 1 |
| 324 | rw [residueProjector_spec] |
| 325 | simp |
| 326 | have hj : SideResidues.Construction.residueCoordinates D 1 b j = 0 := by |
| 327 | change SideResidues.Construction.residueCoordinates D 1 (residueProjector D hgood 1 i) j = 0 |
| 328 | rw [residueProjector_spec] |
| 329 | simp [hij.symm] |
| 330 | exact one_ne_zero (hi.symm.trans (hr.trans hj)) |
| 331 | |
| 332 | end |
| 333 | |
| 334 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.SplitScalar.Construction |