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.TateComparison.PELIsogenies |
| 2 | import Mathlib.Algebra.Module.ZMod |
| 3 | import Mathlib.NumberTheory.Padics.RingHoms |
| 4 | |
| 5 | /-! # Add -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Add |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The Tate module is constructed from the actual torsion points of a group |
| 13 | scheme. Its p-adic scalar action comes from the residue maps Z_p -> Z/p^n; |
| 14 | its transition maps are multiplication by p. No free-rank assertion, |
| 15 | Tate frame, polarization pairing, or isogeny comparison is assumed. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace Tate |
| 24 | |
| 25 | variable (q : ℕ) [Fact q.Prime] (H : Type u) [AddCommGroup H] |
| 26 | |
| 27 | /-- The subgroup killed by q^n. -/ |
| 28 | def torsion (n : ℕ) : AddSubgroup H where |
| 29 | carrier := {x | q ^ n • x = 0} |
| 30 | zero_mem' := nsmul_zero _ |
| 31 | add_mem' hx hy := by |
| 32 | simp only [Set.mem_ofPred_eq] at hx hy ⊢ |
| 33 | rw [nsmul_add, hx, hy, add_zero] |
| 34 | neg_mem' hx := by |
| 35 | simp only [Set.mem_ofPred_eq] at hx ⊢ |
| 36 | rw [smul_neg, hx, neg_zero] |
| 37 | |
| 38 | omit [Fact q.Prime] in |
| 39 | @[simp] theorem mem_torsion (n : ℕ) (x : H) : x ∈ torsion q H n ↔ q ^ n • x = 0 := |
| 40 | Iff.rfl |
| 41 | |
| 42 | instance torsion_zmodModule (n : ℕ) : Module (ZMod (q ^ n)) (torsion q H n) := |
| 43 | AddCommGroup.zmodModule (fun x => Subtype.ext x.property) |
| 44 | |
| 45 | instance torsion_padicModule (n : ℕ) : Module ℤ_[q] (torsion q H n) := |
| 46 | Module.compHom _ (PadicInt.toZModPow n) |
| 47 | |
| 48 | variable {H} {H' : Type u} [AddCommGroup H'] |
| 49 | |
| 50 | /-- Every additive map between these torsion groups commutes with p-adic |
| 51 | scalars when its target exponent is no larger than its source exponent. -/ |
| 52 | theorem map_padic_smul {m n : ℕ} (hmn : m ≤ n) |
| 53 | (f : torsion q H n →+ torsion q H' m) (z : ℤ_[q]) (x : torsion q H n) : |
| 54 | f (z • x) = z • f x := by |
| 55 | change f (PadicInt.toZModPow n z • x) = PadicInt.toZModPow m z • f x |
| 56 | have hz : ((PadicInt.toZModPow n z).val : ZMod (q ^ m)) = |
| 57 | PadicInt.toZModPow m z := by |
| 58 | have h := congrArg (fun a : ℤ_[q] →+* ZMod (q ^ m) => a z) |
| 59 | (PadicInt.zmod_cast_comp_toZModPow m n hmn) |
| 60 | let castMap := ZMod.castHom (pow_dvd_pow q hmn) (ZMod (q ^ m)) |
| 61 | have hnat := map_natCast castMap (PadicInt.toZModPow n z).val |
| 62 | have hcast := congrArg castMap (ZMod.natCast_zmod_val (PadicInt.toZModPow n z)) |
| 63 | exact hnat.symm.trans (hcast.trans h) |
| 64 | conv_lhs => rw [← ZMod.natCast_zmod_val (PadicInt.toZModPow n z)] |
| 65 | rw [Nat.cast_smul_eq_nsmul, map_nsmul, ← hz, Nat.cast_smul_eq_nsmul] |
| 66 | |
| 67 | /-- Multiplication by q takes q^(n+1)-torsion into q^n-torsion. -/ |
| 68 | def transitionAdd (n : ℕ) : torsion q H (n + 1) →+ torsion q H n where |
| 69 | toFun x := ⟨q • x.val, by |
| 70 | change q ^ n • (q • x.val) = 0 |
| 71 | rw [← mul_nsmul, ← pow_succ'] |
| 72 | exact x.property⟩ |
| 73 | map_zero' := Subtype.ext (nsmul_zero _) |
| 74 | map_add' x y := Subtype.ext (nsmul_add _ _ _) |
| 75 | |
| 76 | def transition (n : ℕ) : torsion q H (n + 1) →ₗ[ℤ_[q]] torsion q H n := |
| 77 | { transitionAdd q n with |
| 78 | map_smul' z x := map_padic_smul q (Nat.le_succ n) (transitionAdd q n) z x } |
| 79 | |
| 80 | /-- The inverse limit of the actual torsion groups. -/ |
| 81 | def compatible : Submodule ℤ_[q] (∀ n, torsion q H n) where |
| 82 | carrier := {x | ∀ n, transition q n (x (n + 1)) = x n} |
| 83 | zero_mem' n := map_zero _ |
| 84 | add_mem' hx hy n := by rw [Pi.add_apply, map_add, hx n, hy n]; rfl |
| 85 | smul_mem' z x hx n := by rw [Pi.smul_apply, map_smul, hx n]; rfl |
| 86 | |
| 87 | abbrev Module := compatible (H := H) q |
| 88 | |
| 89 | /-- A homomorphism of point groups acts on every torsion level. -/ |
| 90 | def mapLevel (f : H →+ H') (n : ℕ) : torsion q H n →ₗ[ℤ_[q]] torsion q H' n := |
| 91 | let F : torsion q H n →+ torsion q H' n := { |
| 92 | toFun x := ⟨f x.val, by |
| 93 | change q ^ n • f x.val = 0 |
| 94 | rw [← map_nsmul, x.property, map_zero]⟩ |
| 95 | map_zero' := Subtype.ext f.map_zero |
| 96 | map_add' x y := Subtype.ext (f.map_add x.val y.val) } |
| 97 | { F with map_smul' z x := map_padic_smul q le_rfl F z x } |
| 98 | |
| 99 | theorem mapLevel_transition (f : H →+ H') (n : ℕ) (x : torsion q H (n + 1)) : |
| 100 | mapLevel q f n (transition q n x) = transition q n (mapLevel q f (n + 1) x) := |
| 101 | Subtype.ext (f.map_nsmul q x.val) |
| 102 | |
| 103 | /-- The induced map of Tate modules is constructed level by level. -/ |
| 104 | def map (f : H →+ H') : Tate.Module (H := H) q →ₗ[ℤ_[q]] Tate.Module (H := H') q where |
| 105 | toFun x := ⟨fun n => mapLevel q f n (x.val n), by |
| 106 | intro n |
| 107 | rw [← mapLevel_transition, x.property n]⟩ |
| 108 | map_add' x y := Subtype.ext (funext fun n => (mapLevel q f n).map_add _ _) |
| 109 | map_smul' z x := Subtype.ext (funext fun n => (mapLevel q f n).map_smul z _) |
| 110 | |
| 111 | end Tate |
| 112 | |
| 113 | variable {S : Scheme.{u}} (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 114 | (T : Over S) (q : ℕ) [Fact q.Prime] |
| 115 | |
| 116 | /-- The q-adic Tate module of the actual T-valued points of A. -/ |
| 117 | abbrev schemeTateModule := Tate.Module (H := Additive (T ⟶ A)) q |
| 118 | |
| 119 | /-- Every algebraic group morphism acts on the constructed Tate modules. -/ |
| 120 | def schemeTateMap {B : Over S} [GrpObj B] [IsCommMonObj B] |
| 121 | (f : A ⟶ B) [IsMonHom f] : |
| 122 | schemeTateModule A T q →ₗ[ℤ_[q]] schemeTateModule B T q := |
| 123 | let fpts : (T ⟶ A) →* (T ⟶ B) := { |
| 124 | toFun x := x ≫ f |
| 125 | map_one' := MonObj.one_comp f |
| 126 | map_mul' x y := MonObj.mul_comp x y f } |
| 127 | Tate.map q fpts.toAdditive |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Add |