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 |
| 2 | |
| 3 | /-! # Lattice Levels -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.LatticeLevels.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Explicit level comparison for two full integral lattices in the same |
| 10 | rational vector space. This permits the independent reference lattice of |
| 11 | CongruenceLevel to be compared with the lattice defining the source ball quotients. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {V : Type*} [AddCommGroup V] [Module ℚ V] |
| 16 | |
| 17 | def rationalSaturation (Λ : Submodule ℤ V) : Submodule ℚ V where |
| 18 | carrier := {x | ∃ n : ℕ, 0 < n ∧ n • x ∈ Λ} |
| 19 | zero_mem' := ⟨1, by omega, by simp⟩ |
| 20 | add_mem' := by |
| 21 | rintro x y ⟨n, hn, hx⟩ ⟨m, hm, hy⟩ |
| 22 | refine ⟨n * m, Nat.mul_pos hn hm, ?_⟩ |
| 23 | have hx' := Λ.smul_mem (m : ℤ) hx |
| 24 | have hy' := Λ.smul_mem (n : ℤ) hy |
| 25 | simpa only [smul_add, mul_smul, Nat.cast_smul_eq_nsmul, smul_comm m n x] |
| 26 | using Λ.add_mem hx' hy' |
| 27 | smul_mem' := by |
| 28 | rintro a x ⟨n, hn, hx⟩ |
| 29 | refine ⟨n * a.den, Nat.mul_pos hn a.den_pos, ?_⟩ |
| 30 | have heq : (n * a.den) • (a • x) = a.num • (n • x) := by |
| 31 | calc |
| 32 | _ = ((n : ℚ) * ((a.den : ℚ) * a)) • x := by |
| 33 | rw [← Nat.cast_smul_eq_nsmul ℚ, smul_smul, Nat.cast_mul, mul_assoc] |
| 34 | _ = ((a.num : ℚ) * (n : ℚ)) • x := by rw [Rat.den_mul_eq_num, mul_comm] |
| 35 | _ = a.num • (n • x) := by |
| 36 | rw [← Nat.cast_smul_eq_nsmul ℚ, ← Int.cast_smul_eq_zsmul ℚ, smul_smul] |
| 37 | rw [heq] |
| 38 | exact Λ.smul_mem a.num hx |
| 39 | |
| 40 | theorem exists_multiple_mem (Λ : Submodule ℤ V) |
| 41 | (hfull : Submodule.span ℚ (Λ : Set V) = ⊤) (x : V) : |
| 42 | ∃ n : ℕ, 0 < n ∧ n • x ∈ Λ := by |
| 43 | have hs : Submodule.span ℚ (Λ : Set V) ≤ rationalSaturation Λ := by |
| 44 | apply Submodule.span_le.mpr |
| 45 | intro y hy |
| 46 | refine ⟨1, by omega, ?_⟩ |
| 47 | rw [one_smul] |
| 48 | exact hy |
| 49 | rw [hfull] at hs |
| 50 | exact hs (Submodule.mem_top : x ∈ (⊤ : Submodule ℚ V)) |
| 51 | |
| 52 | /-- A single positive denominator moves one finitely generated lattice |
| 53 | into any other full lattice. -/ |
| 54 | theorem exists_uniform_multiple (Λ Γ : Submodule ℤ V) |
| 55 | (hΛ : Λ.FG) (hΓ : Submodule.span ℚ (Γ : Set V) = ⊤) : |
| 56 | ∃ n : ℕ, 0 < n ∧ ∀ x ∈ Λ, n • x ∈ Γ := by |
| 57 | obtain ⟨k, f, hf⟩ := Submodule.fg_iff_exists_fin_generating_family.mp hΛ |
| 58 | choose n hn hnf using fun i : Fin k => exists_multiple_mem Γ hΓ (f i) |
| 59 | let m := ∏ i, n i |
| 60 | refine ⟨m, Finset.prod_pos (fun i _ => hn i), ?_⟩ |
| 61 | intro x hx |
| 62 | rw [← hf] at hx |
| 63 | induction hx using Submodule.span_induction with |
| 64 | | mem y hy => |
| 65 | obtain ⟨i, rfl⟩ := hy |
| 66 | obtain ⟨a, ha⟩ := Finset.dvd_prod_of_mem n (Finset.mem_univ i) |
| 67 | have h := Γ.smul_mem (a : ℤ) (hnf i) |
| 68 | simpa only [m, ha, mul_smul, Nat.cast_smul_eq_nsmul, smul_comm (n i) a (f i)] |
| 69 | using h |
| 70 | | zero => simpa only [smul_zero] using Γ.zero_mem |
| 71 | | add x y _ _ hx hy => simpa only [smul_add] using Γ.add_mem hx hy |
| 72 | | smul a x _ hx => simpa only [smul_comm m a x] using Γ.smul_mem a hx |
| 73 | |
| 74 | def Principal (Λ : Submodule ℤ V) (N : ℕ) (g : V ≃ₗ[ℚ] V) : Prop := |
| 75 | (∀ x, x ∈ Λ ↔ g x ∈ Λ) ∧ |
| 76 | ∀ x ∈ Λ, ∃ y ∈ Λ, g x - x = (N : ℤ) • y |
| 77 | |
| 78 | theorem principal_inverse {Λ : Submodule ℤ V} {N : ℕ} {g : V ≃ₗ[ℚ] V} |
| 79 | (h : Principal Λ N g) : Principal Λ N g.symm := by |
| 80 | refine ⟨fun x => ?_, ?_⟩ |
| 81 | · simpa only [g.apply_symm_apply] using (h.1 (g.symm x)).symm |
| 82 | · intro x hx |
| 83 | have hy : g.symm x ∈ Λ := (h.1 (g.symm x)).mpr (by simpa using hx) |
| 84 | obtain ⟨z, hz, heq⟩ := h.2 (g.symm x) hy |
| 85 | refine ⟨-z, Λ.neg_mem hz, ?_⟩ |
| 86 | have heq' := congrArg Neg.neg heq |
| 87 | simpa only [g.apply_symm_apply, neg_sub, smul_neg] using heq' |
| 88 | |
| 89 | theorem principal_mono {Λ : Submodule ℤ V} {N M : ℕ} {g : V ≃ₗ[ℚ] V} |
| 90 | (hdiv : N ∣ M) (h : Principal Λ M g) : Principal Λ N g := by |
| 91 | obtain ⟨a, rfl⟩ := hdiv |
| 92 | refine ⟨h.1, ?_⟩ |
| 93 | intro x hx |
| 94 | obtain ⟨y, hy, heq⟩ := h.2 x hx |
| 95 | refine ⟨(a : ℤ) • y, Λ.smul_mem _ hy, ?_⟩ |
| 96 | simpa only [Nat.cast_mul, mul_smul] using heq |
| 97 | |
| 98 | /-- Clearing the two lattice inclusions gives an explicit sufficient |
| 99 | principal level. The conclusion includes preservation of the new lattice. -/ |
| 100 | theorem principal_change_lattice |
| 101 | (Λ Γ : Submodule ℤ V) (m n N : ℕ) (hm : 0 < m) |
| 102 | (hΓΛ : ∀ x ∈ Γ, m • x ∈ Λ) (hΛΓ : ∀ x ∈ Λ, n • x ∈ Γ) |
| 103 | (g : V ≃ₗ[ℚ] V) (hg : Principal Λ (m * (n * N)) g) : |
| 104 | Principal Γ N g := by |
| 105 | have hmove : ∀ (f : V ≃ₗ[ℚ] V), Principal Λ (m * (n * N)) f → |
| 106 | ∀ x ∈ Γ, ∃ y ∈ Γ, f x - x = (N : ℤ) • y := by |
| 107 | intro f hf x hx |
| 108 | obtain ⟨y, hy, heq⟩ := hf.2 (m • x) (hΓΛ x hx) |
| 109 | refine ⟨n • y, hΛΓ y hy, ?_⟩ |
| 110 | have hmQ : (m : ℚ) ≠ 0 := Nat.cast_ne_zero.mpr hm.ne' |
| 111 | apply (smul_right_injective V hmQ) |
| 112 | have heq' : (m : ℚ) • (f x - x) = (m : ℚ) • ((N : ℤ) • (n • y)) := by |
| 113 | simpa only [map_nsmul, Nat.cast_mul, mul_smul, Nat.cast_smul_eq_nsmul, |
| 114 | smul_sub, smul_comm n N y] using heq |
| 115 | exact heq' |
| 116 | have hfor := hmove g hg |
| 117 | have hback := hmove g.symm (principal_inverse hg) |
| 118 | refine ⟨?_, hfor⟩ |
| 119 | intro x |
| 120 | constructor |
| 121 | · intro hx |
| 122 | obtain ⟨y, hy, heq⟩ := hfor x hx |
| 123 | rw [← sub_add_cancel (g x) x, heq] |
| 124 | exact Γ.add_mem (Γ.smul_mem _ hy) hx |
| 125 | · intro hx |
| 126 | obtain ⟨y, hy, heq⟩ := hback (g x) hx |
| 127 | rw [g.symm_apply_apply] at heq |
| 128 | rw [← sub_add_cancel x (g x), heq] |
| 129 | exact Γ.add_mem (Γ.smul_mem _ hy) hx |
| 130 | |
| 131 | /-- Any prescribed level for one full lattice contains every sufficiently |
| 132 | divisible principal level for the other lattice. -/ |
| 133 | theorem cofinal_principal_levels |
| 134 | (Λ Γ : Submodule ℤ V) (hΛfg : Λ.FG) (hΓfg : Γ.FG) |
| 135 | (hΛfull : Submodule.span ℚ (Λ : Set V) = ⊤) |
| 136 | (hΓfull : Submodule.span ℚ (Γ : Set V) = ⊤) |
| 137 | (N Nbase : ℕ) (hN : 0 < N) (hNbase : 0 < Nbase) : |
| 138 | ∃ M : ℕ, 0 < M ∧ Nbase ∣ M ∧ |
| 139 | ∀ L : ℕ, M ∣ L → ∀ g : V ≃ₗ[ℚ] V, |
| 140 | Principal Λ L g → Principal Γ N g := by |
| 141 | obtain ⟨m, hm, hΓΛ⟩ := exists_uniform_multiple Γ Λ hΓfg hΛfull |
| 142 | obtain ⟨n, hn, hΛΓ⟩ := exists_uniform_multiple Λ Γ hΛfg hΓfull |
| 143 | refine ⟨Nbase * (m * (n * N)), by positivity, dvd_mul_right _ _, ?_⟩ |
| 144 | intro L hL g hg |
| 145 | apply principal_change_lattice Λ Γ m n N hm hΓΛ hΛΓ g |
| 146 | exact principal_mono ((dvd_mul_left _ _).trans hL) hg |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.LatticeLevels.CM |