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.GroupTheory.Index |
| 2 | import Mathlib.Algebra.Group.Subgroup.Finite |
| 3 | |
| 4 | /-! # Ordinary Isogeny -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Geometric q-rank is unchanged by a finite-kernel surjection of divisible |
| 12 | abelian point groups. The two exact sequences through the inverse image of |
| 13 | the kernel give the same torsion cardinality. This is the group calculation |
| 14 | needed to keep the kernel operators on the ordinary locus. |
| 15 | -/ |
| 16 | |
| 17 | variable {A B : Type*} [CommGroup A] [CommGroup B] |
| 18 | |
| 19 | abbrev qTorsion (A : Type*) [CommGroup A] (q : ℕ) := |
| 20 | (powMonoidHom q : A →* A).ker |
| 21 | |
| 22 | abbrev kernelPowerPreimage (f : A →* B) (q : ℕ) := |
| 23 | f.ker.comap (powMonoidHom q : A →* A) |
| 24 | |
| 25 | def powerToKernel (f : A →* B) (q : ℕ) : kernelPowerPreimage f q →* f.ker where |
| 26 | toFun x := ⟨x.val ^ q, x.property⟩ |
| 27 | map_one' := Subtype.ext (one_pow q) |
| 28 | map_mul' x y := Subtype.ext (mul_pow x.val y.val q) |
| 29 | |
| 30 | def imageToTorsion (f : A →* B) (q : ℕ) : kernelPowerPreimage f q →* qTorsion B q where |
| 31 | toFun x := ⟨f x.val, by |
| 32 | change (f x.val) ^ q = 1 |
| 33 | rw [← f.map_pow] |
| 34 | exact x.property⟩ |
| 35 | map_one' := Subtype.ext f.map_one |
| 36 | map_mul' x y := Subtype.ext (f.map_mul x.val y.val) |
| 37 | |
| 38 | def powerToKernelKernelEquiv (f : A →* B) (q : ℕ) : |
| 39 | (powerToKernel f q).ker ≃ qTorsion A q where |
| 40 | toFun x := ⟨x.val.val, congrArg Subtype.val x.property⟩ |
| 41 | invFun x := ⟨⟨x.val, by |
| 42 | change f (x.val ^ q) = 1 |
| 43 | have hx : x.val ^ q = 1 := x.property |
| 44 | rw [hx, f.map_one]⟩, Subtype.ext x.property⟩ |
| 45 | left_inv x := by apply Subtype.ext; apply Subtype.ext; rfl |
| 46 | right_inv x := by apply Subtype.ext; rfl |
| 47 | |
| 48 | def imageToTorsionKernelEquiv (f : A →* B) (q : ℕ) : |
| 49 | (imageToTorsion f q).ker ≃ f.ker where |
| 50 | toFun x := ⟨x.val.val, congrArg Subtype.val x.property⟩ |
| 51 | invFun x := ⟨⟨x.val, by |
| 52 | change f (x.val ^ q) = 1 |
| 53 | have hx : f x.val = 1 := x.property |
| 54 | rw [f.map_pow, hx, one_pow]⟩, Subtype.ext x.property⟩ |
| 55 | left_inv x := by apply Subtype.ext; apply Subtype.ext; rfl |
| 56 | right_inv x := by apply Subtype.ext; rfl |
| 57 | |
| 58 | theorem card_kernel_mul_of_surjective |
| 59 | {G H : Type*} [Group G] [Group H] (f : G →* H) (hf : Function.Surjective f) : |
| 60 | Nat.card f.ker * Nat.card H = Nat.card G := by |
| 61 | have hi : f.ker.index = Nat.card H := |
| 62 | Nat.card_congr (QuotientGroup.quotientKerEquivOfSurjective f hf).toEquiv |
| 63 | rw [← hi] |
| 64 | exact f.ker.card_mul_index |
| 65 | |
| 66 | /-- Only kernel points need q-division lifts. For a q-power kernel these |
| 67 | come from the ordinary q-divisible torsion tower. -/ |
| 68 | theorem qTorsion_card_eq_of_kernel_divisible |
| 69 | (f : A →* B) [Finite f.ker] (hf : Function.Surjective f) |
| 70 | (q : ℕ) (hdiv : ∀ k : f.ker, ∃ a : A, a ^ q = k.val) : |
| 71 | Nat.card (qTorsion A q) = Nat.card (qTorsion B q) := by |
| 72 | have hpower : Function.Surjective (powerToKernel f q) := by |
| 73 | intro k |
| 74 | obtain ⟨a, ha⟩ := hdiv k |
| 75 | refine ⟨⟨a, ?_⟩, Subtype.ext ha⟩ |
| 76 | change f (a ^ q) = 1 |
| 77 | rw [ha] |
| 78 | exact k.property |
| 79 | have himage : Function.Surjective (imageToTorsion f q) := by |
| 80 | intro b |
| 81 | obtain ⟨a, ha⟩ := hf b.val |
| 82 | refine ⟨⟨a, ?_⟩, Subtype.ext ha⟩ |
| 83 | change f (a ^ q) = 1 |
| 84 | rw [f.map_pow, ha] |
| 85 | exact b.property |
| 86 | have h₁ := card_kernel_mul_of_surjective (powerToKernel f q) hpower |
| 87 | have h₂ := card_kernel_mul_of_surjective (imageToTorsion f q) himage |
| 88 | rw [Nat.card_congr (powerToKernelKernelEquiv f q)] at h₁ |
| 89 | rw [Nat.card_congr (imageToTorsionKernelEquiv f q)] at h₂ |
| 90 | have h := h₂.trans h₁.symm |
| 91 | rw [Nat.mul_comm (Nat.card (qTorsion A q))] at h |
| 92 | exact (Nat.eq_of_mul_eq_mul_left (Nat.card_pos (α := f.ker)) h).symm |
| 93 | |
| 94 | /-- A finite-kernel isogeny preserves geometric q-torsion cardinality |
| 95 | when the source point group is q-divisible. -/ |
| 96 | theorem qTorsion_card_eq_of_finite_kernel |
| 97 | (f : A →* B) [Finite f.ker] (hf : Function.Surjective f) |
| 98 | (q : ℕ) (hdiv : Function.Surjective (fun a : A => a ^ q)) : |
| 99 | Nat.card (qTorsion A q) = Nat.card (qTorsion B q) := |
| 100 | qTorsion_card_eq_of_kernel_divisible f hf q (fun k => hdiv k.val) |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryIsogeny.Construction |