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.HodgeConjecture.HeckeCycles.Ordinary.TorsionCounts |
| 2 | |
| 3 | /-! # Torsion Coordinate Maps -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Primary |
| 10 | |
| 11 | /-! To identify a bounded prime-power torsion group, it suffices to |
| 12 | detect the kernel on its prime-torsion subgroup. This will allow lifted |
| 13 | ordinary torsion coordinates to be checked at their first level. -/ |
| 14 | |
| 15 | variable {A B : Type*} [Group A] [Group B] |
| 16 | |
| 17 | theorem kernel_trivial_of_prime_torsion (q : ℕ) (f : A →* B) |
| 18 | (htor : ∀ a : A, a ^ q = 1 → f a = 1 → a = 1) |
| 19 | (n : ℕ) (a : A) (hkill : a ^ (q ^ n) = 1) (ha : f a = 1) : a = 1 := by |
| 20 | induction n generalizing a with |
| 21 | | zero => simpa only [pow_zero, pow_one] using hkill |
| 22 | | succ n ih => |
| 23 | apply htor a |
| 24 | · apply ih (a ^ q) |
| 25 | · simpa only [← pow_mul, ← pow_succ'] using hkill |
| 26 | · rw [map_pow, ha, one_pow] |
| 27 | · exact ha |
| 28 | |
| 29 | theorem injective_of_prime_torsion (q n : ℕ) (f : A →* B) |
| 30 | (hkill : ∀ a : A, a ^ (q ^ n) = 1) |
| 31 | (htor : ∀ a : A, a ^ q = 1 → f a = 1 → a = 1) : |
| 32 | Function.Injective f := by |
| 33 | apply (MonoidHom.ker_eq_bot_iff f).mp |
| 34 | apply le_antisymm _ bot_le |
| 35 | intro a ha |
| 36 | exact (Subgroup.mem_bot).mpr |
| 37 | (kernel_trivial_of_prime_torsion q f htor n a (hkill a) ha) |
| 38 | |
| 39 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Primary |
| 40 | |
| 41 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion |
| 42 | |
| 43 | /-! A proposed set of lifted ordinary coordinates gives the full |
| 44 | q-power torsion group once its first-level kernel is detected. The |
| 45 | surjectivity follows from the proved geometric torsion count. -/ |
| 46 | |
| 47 | abbrev coordinates (q n g : ℕ) := Multiplicative (Fin g → ZMod (q ^ n)) |
| 48 | |
| 49 | instance (q n g : ℕ) : CommGroup (coordinates q n g) := |
| 50 | inferInstanceAs (CommGroup (Multiplicative (Fin g → ZMod (q ^ n)))) |
| 51 | |
| 52 | theorem coordinates_killed (q n g : ℕ) (x : coordinates q n g) : x ^ (q ^ n) = 1 := by |
| 53 | apply Multiplicative.toAdd.injective |
| 54 | change (q ^ n) • x.toAdd = 0 |
| 55 | ext i |
| 56 | change (q ^ n) • x.toAdd i = 0 |
| 57 | simp only [nsmul_eq_mul, ZMod.natCast_self, zero_mul] |
| 58 | |
| 59 | theorem coordinates_card (q n g : ℕ) (hq : q ≠ 0) : |
| 60 | Nat.card (coordinates q n g) = q ^ (n * g) := by |
| 61 | let : NeZero (q ^ n) := ⟨pow_ne_zero n hq⟩ |
| 62 | change Nat.card (Multiplicative (Fin g → ZMod (q ^ n))) = _ |
| 63 | simp only [Nat.card_eq_fintype_card, Fintype.card_multiplicative, |
| 64 | Fintype.card_fun, Fintype.card_fin, ZMod.card, ← pow_mul] |
| 65 | |
| 66 | def coordinateEquiv {A : Type*} [Group A] (q n g : ℕ) (hq : q ≠ 0) |
| 67 | (hcard : Nat.card A = q ^ (n * g)) |
| 68 | (f : coordinates q n g →* A) |
| 69 | (htor : ∀ x : coordinates q n g, x ^ q = 1 → f x = 1 → x = 1) : |
| 70 | coordinates q n g ≃* A := by |
| 71 | let : Finite A := Nat.finite_of_card_ne_zero (hcard ▸ pow_ne_zero (n * g) hq) |
| 72 | have hi := Primary.injective_of_prime_torsion q n f |
| 73 | (coordinates_killed q n g) htor |
| 74 | exact MulEquiv.ofBijective f ((Nat.bijective_iff_injective_and_card f).mpr |
| 75 | ⟨hi, (coordinates_card q n g hq).trans hcard.symm⟩) |
| 76 | |
| 77 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion |
| 78 | |
| 79 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM |
| 80 | |
| 81 | /-! Construct the actual coordinate homomorphism from chosen torsion |
| 82 | generators. The only relation required of each generator is its original |
| 83 | power-torsion equation. -/ |
| 84 | |
| 85 | variable {A : Type*} [CommGroup A] |
| 86 | |
| 87 | def cyclicMap (m : ℕ) (a : A) (ha : a ^ m = 1) : Multiplicative (ZMod m) →* A := by |
| 88 | let f : ℤ →+ Additive A := zmultiplesHom (Additive A) (Additive.ofMul a) |
| 89 | have hf : f m = 0 := by |
| 90 | change (m : ℤ) • Additive.ofMul a = 0 |
| 91 | rw [natCast_zsmul] |
| 92 | exact congrArg Additive.ofMul ha |
| 93 | let z := ZMod.lift m ⟨f, hf⟩ |
| 94 | exact |
| 95 | { toFun := fun x => (z x.toAdd).toMul |
| 96 | map_one' := congrArg Additive.toMul z.map_zero |
| 97 | map_mul' := fun x y => congrArg Additive.toMul (z.map_add x.toAdd y.toAdd) } |
| 98 | |
| 99 | theorem cyclicMap_generator (m : ℕ) (a : A) (ha : a ^ m = 1) : |
| 100 | cyclicMap m a ha (Multiplicative.ofAdd (1 : ZMod m)) = a := by |
| 101 | change Additive.toMul (ZMod.lift (A := Additive A) m _ (1 : ZMod m)) = a |
| 102 | rw [show (1 : ZMod m) = ((1 : ℤ) : ZMod m) from (Int.cast_one).symm, ZMod.lift_coe] |
| 103 | change ((1 : ℤ) • Additive.ofMul a).toMul = a |
| 104 | rw [one_zsmul] |
| 105 | rfl |
| 106 | |
| 107 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion |
| 108 | |
| 109 | def coordinateMap (q n g : ℕ) (a : Fin g → A) (ha : ∀ i, a i ^ (q ^ n) = 1) : |
| 110 | Criterion.coordinates q n g →* A where |
| 111 | toFun x := ∏ i, cyclicMap (q ^ n) (a i) (ha i) (Multiplicative.ofAdd (x.toAdd i)) |
| 112 | map_one' := by |
| 113 | change (∏ i, cyclicMap (q ^ n) (a i) (ha i) 1) = 1 |
| 114 | simp only [map_one, Finset.prod_const_one] |
| 115 | map_mul' x y := by |
| 116 | change (∏ i, cyclicMap (q ^ n) (a i) (ha i) |
| 117 | (Multiplicative.ofAdd (x.toAdd i) * Multiplicative.ofAdd (y.toAdd i))) = _ |
| 118 | simp only [map_mul, Finset.prod_mul_distrib] |
| 119 | |
| 120 | theorem coordinateMap_generator (q n g : ℕ) (a : Fin g → A) |
| 121 | (ha : ∀ i, a i ^ (q ^ n) = 1) (i : Fin g) : |
| 122 | coordinateMap q n g a ha (Multiplicative.ofAdd (Pi.single i (1 : ZMod (q ^ n)))) = a i := by |
| 123 | classical |
| 124 | change (∏ j, cyclicMap (q ^ n) (a j) (ha j) |
| 125 | (Multiplicative.ofAdd ((Pi.single i (1 : ZMod (q ^ n)) : Fin g → ZMod (q ^ n)) j))) = a i |
| 126 | rw [Finset.prod_eq_single i] |
| 127 | · simpa only [Pi.single_eq_same] using cyclicMap_generator (q ^ n) (a i) (ha i) |
| 128 | · intro j _ hji |
| 129 | rw [Pi.single_eq_of_ne hji] |
| 130 | exact map_one _ |
| 131 | · simp |
| 132 | |
| 133 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM |
| 134 | |
| 135 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.FirstLevel |
| 136 | |
| 137 | /-! Division lifts first-level geometric torsion generators to every |
| 138 | power level. The resulting coordinate map is constructed explicitly. -/ |
| 139 | |
| 140 | variable {A : Type*} [CommGroup A] |
| 141 | |
| 142 | def firstLevel (q n : ℕ) : AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction.qTorsion A (q ^ (n + 1)) →* AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction.qTorsion A q where |
| 143 | toFun x := ⟨x.val ^ (q ^ n), by |
| 144 | change (x.val ^ (q ^ n)) ^ q = 1 |
| 145 | rw [← pow_mul, ← pow_succ] |
| 146 | exact x.property⟩ |
| 147 | map_one' := Subtype.ext (one_pow (q ^ n)) |
| 148 | map_mul' x y := Subtype.ext (mul_pow x.val y.val (q ^ n)) |
| 149 | |
| 150 | theorem power_division (q : ℕ) (hdiv : Function.Surjective (fun a : A => a ^ q)) |
| 151 | (n : ℕ) : Function.Surjective (fun a : A => a ^ (q ^ n)) := by |
| 152 | induction n with |
| 153 | | zero => |
| 154 | intro a |
| 155 | exact ⟨a, by simp only [pow_zero, pow_one]⟩ |
| 156 | | succ n ih => |
| 157 | intro a |
| 158 | obtain ⟨b, hb⟩ := hdiv a |
| 159 | obtain ⟨c, hc⟩ := ih b |
| 160 | have hb' : b ^ q = a := hb |
| 161 | have hc' : c ^ (q ^ n) = b := hc |
| 162 | refine ⟨c, ?_⟩ |
| 163 | change c ^ (q ^ (n + 1)) = a |
| 164 | rw [pow_succ, pow_mul, hc', hb'] |
| 165 | |
| 166 | theorem firstLevel_surjective (q n : ℕ) |
| 167 | (hdiv : Function.Surjective (fun a : A => a ^ q)) : |
| 168 | Function.Surjective (firstLevel (A := A) q n) := by |
| 169 | intro x |
| 170 | obtain ⟨a, ha⟩ := power_division q hdiv n x.val |
| 171 | have ha' : a ^ (q ^ n) = x.val := ha |
| 172 | have hk : a ^ (q ^ (n + 1)) = 1 := by |
| 173 | rw [pow_succ, pow_mul, ha'] |
| 174 | exact x.property |
| 175 | exact ⟨⟨a, hk⟩, Subtype.ext ha'⟩ |
| 176 | |
| 177 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM |
| 178 | |
| 179 | theorem exists_lifted_coordinateMap (q n g : ℕ) |
| 180 | (hdiv : Function.Surjective (fun a : A => a ^ q)) |
| 181 | (a : Fin g → AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction.qTorsion A q) : |
| 182 | ∃ f : Criterion.coordinates q (n + 1) g →* AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction.qTorsion A (q ^ (n + 1)), |
| 183 | ∀ i : Fin g, |
| 184 | firstLevel q n (f (Multiplicative.ofAdd (Pi.single i (1 : ZMod (q ^ (n + 1)))))) = a i := by |
| 185 | classical |
| 186 | choose b hb using fun i => firstLevel_surjective q n hdiv (a i) |
| 187 | have hkill (i : Fin g) : b i ^ (q ^ (n + 1)) = 1 := |
| 188 | Subtype.ext (b i).property |
| 189 | refine ⟨coordinateMap q (n + 1) g b hkill, fun i => ?_⟩ |
| 190 | exact (congrArg (firstLevel q n) |
| 191 | (coordinateMap_generator q (n + 1) g b hkill i)).trans (hb i) |
| 192 | |
| 193 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.FirstLevel |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI |