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 | /-! # Local -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Local |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Concrete local objects for TateComparison. Cocharacters record one common multiplier |
| 11 | and the three elementary divisors on each chosen side. Opposite lattices |
| 12 | are duals for the rescaled pairing; they are not independent input data. |
| 13 | No geometric realization or Hecke-action compatibility is assumed here. |
| 14 | -/ |
| 15 | |
| 16 | open scoped BigOperators Pointwise |
| 17 | |
| 18 | /-- A dominant cocharacter of the split rank-three similitude group. -/ |
| 19 | structure LocalType (s : ℕ) where |
| 20 | multiplier : ℤ |
| 21 | exponent : Fin s → Fin 3 → ℤ |
| 22 | dominant : ∀ v, Antitone (exponent v) |
| 23 | |
| 24 | namespace LocalType |
| 25 | |
| 26 | /-- The integral range in IsogenyQuotient, including the opposite-side inequalities. -/ |
| 27 | def IsIntegral {s : ℕ} (t : LocalType s) : Prop := |
| 28 | 0 ≤ t.multiplier ∧ ∀ v i, 0 ≤ t.exponent v i ∧ t.exponent v i ≤ t.multiplier |
| 29 | |
| 30 | /-- Multiplication by the central cocharacter with multiplier q². -/ |
| 31 | def shift {s : ℕ} (t : LocalType s) (n : ℕ) : LocalType s where |
| 32 | multiplier := t.multiplier + 2 * n |
| 33 | exponent v i := t.exponent v i + n |
| 34 | dominant v _ _ hij := by |
| 35 | have := t.dominant v hij |
| 36 | dsimp |
| 37 | omega |
| 38 | |
| 39 | /-- The scalar q on every chosen and opposite side. -/ |
| 40 | def central (s : ℕ) : LocalType s where |
| 41 | multiplier := 2 |
| 42 | exponent _ _ := 1 |
| 43 | dominant _ _ _ _ := le_rfl |
| 44 | |
| 45 | theorem central_integral (s : ℕ) : (central s).IsIntegral := by |
| 46 | constructor |
| 47 | · norm_num [central] |
| 48 | · intro v i |
| 49 | norm_num [central] |
| 50 | |
| 51 | /-- Central shifts clear all negative chosen-side and opposite-side exponents. -/ |
| 52 | theorem exists_integral_shift {s : ℕ} (t : LocalType s) : |
| 53 | ∃ n : ℕ, (t.shift n).IsIntegral := by |
| 54 | let bound : ℕ := t.multiplier.natAbs + ∑ v : Fin s, ∑ i : Fin 3, |
| 55 | (t.exponent v i).natAbs |
| 56 | have hm : |t.multiplier| ≤ (bound : ℤ) := by |
| 57 | dsimp [bound] |
| 58 | rw [Int.natCast_natAbs] |
| 59 | omega |
| 60 | have he (v : Fin s) (i : Fin 3) : |t.exponent v i| ≤ (bound : ℤ) := by |
| 61 | have h1 : (t.exponent v i).natAbs ≤ |
| 62 | ∑ j : Fin 3, (t.exponent v j).natAbs := |
| 63 | Finset.single_le_sum (f := fun j : Fin 3 => (t.exponent v j).natAbs) |
| 64 | (fun j _ => Nat.zero_le _) (Finset.mem_univ i) |
| 65 | have h2 : (∑ j : Fin 3, (t.exponent v j).natAbs) ≤ |
| 66 | ∑ w : Fin s, ∑ j : Fin 3, (t.exponent w j).natAbs := |
| 67 | Finset.single_le_sum (f := fun w : Fin s => ∑ j : Fin 3, |
| 68 | (t.exponent w j).natAbs) (fun w _ => Nat.zero_le _) (Finset.mem_univ v) |
| 69 | have h3 : (t.exponent v i).natAbs ≤ bound := |
| 70 | (h1.trans h2).trans (Nat.le_add_left _ _) |
| 71 | simpa only [Int.natCast_natAbs] using Int.ofNat_le.mpr h3 |
| 72 | refine ⟨2 * bound, ?_, ?_⟩ |
| 73 | · dsimp [LocalType.shift] |
| 74 | have := (abs_le.mp hm).1 |
| 75 | omega |
| 76 | · intro v i |
| 77 | have ha := abs_le.mp (he v i) |
| 78 | have hb := abs_le.mp hm |
| 79 | dsimp [LocalType.shift] |
| 80 | constructor <;> omega |
| 81 | |
| 82 | end LocalType |
| 83 | |
| 84 | /-- Integral operators are a subtype, not a second unrelated index type. -/ |
| 85 | abbrev IntegralType (s : ℕ) := {t : LocalType s // t.IsIntegral} |
| 86 | |
| 87 | /-- Cumulative multiplier along a finite chain, including its initial stage. -/ |
| 88 | def cumulativeMultiplier {s : ℕ} (ts : List (IntegralType s)) |
| 89 | (k : Fin (ts.length + 1)) : ℤ := |
| 90 | ((ts.take k.val).map fun t => t.val.multiplier).sum |
| 91 | |
| 92 | section Lattices |
| 93 | |
| 94 | variable {R K V : Type*} [CommRing R] [Field K] [Algebra R K] |
| 95 | [AddCommGroup V] [Module R V] [Module K V] [IsScalarTower R K V] |
| 96 | |
| 97 | /-- A full lattice, using Mathlib's finite-generation and spanning predicate. -/ |
| 98 | abbrev FullLattice := {L : Submodule R V // Submodule.IsLattice K L} |
| 99 | |
| 100 | /-- The opposite lattice at multiplier m is the dual for m times the pairing. -/ |
| 101 | def oppositeLattice (B : LinearMap.BilinForm K V) (m : K) |
| 102 | (L : Submodule R V) : Submodule R V := |
| 103 | (m • B).dualSubmodule L |
| 104 | |
| 105 | /-- Rescaling the pairing forces inverse rescaling of the dual lattice. -/ |
| 106 | theorem oppositeLattice_eq_inverse_smul |
| 107 | (B : LinearMap.BilinForm K V) (m : Kˣ) (L : Submodule R V) : |
| 108 | oppositeLattice B (m : K) L = m⁻¹ • B.dualSubmodule L := by |
| 109 | ext x |
| 110 | change _ ↔ x ∈ m⁻¹ • (B.dualSubmodule L : Set V) |
| 111 | rw [Set.mem_smul_set_iff_inv_smul_mem] |
| 112 | simp only [inv_inv] |
| 113 | change (∀ y ∈ L, (m : K) * B x y ∈ (1 : Submodule R K)) ↔ |
| 114 | ∀ y ∈ L, B ((m : K) • x) y ∈ (1 : Submodule R K) |
| 115 | simp only [map_smul, LinearMap.smul_apply, smul_eq_mul] |
| 116 | |
| 117 | /-- Dual lattices reverse inclusion, as required for opposite kernels. -/ |
| 118 | theorem oppositeLattice_antitone (B : LinearMap.BilinForm K V) (m : K) : |
| 119 | Antitone (oppositeLattice (R := R) B m) := by |
| 120 | intro L M hLM x hx y hy |
| 121 | exact hx y (hLM hy) |
| 122 | |
| 123 | end Lattices |
| 124 | |
| 125 | variable {R K V : Type*} [CommRing R] [IsDomain R] |
| 126 | [Field K] [Algebra R K] [Module.IsTorsionFree R K] |
| 127 | [AddCommGroup V] [Module R V] [Module K V] [IsScalarTower R K V] |
| 128 | |
| 129 | /-- The pairing map between actual lattices, with integrality expressed as |
| 130 | membership in R. Its codomain is the R-linear dual of the chosen lattice. -/ |
| 131 | def latticePairingMap (B : LinearMap.BilinForm K V) (L M : Submodule R V) |
| 132 | (hIntegral : M ≤ B.dualSubmodule L) : M →ₗ[R] Module.Dual R L := |
| 133 | (B.dualSubmoduleToDual L).comp (Submodule.inclusion hIntegral) |
| 134 | |
| 135 | /-- Perfectness means that the integral pairing identifies the opposite |
| 136 | lattice with the R-linear dual; no equality of ambient lattices is assumed. -/ |
| 137 | def IsPerfectLatticePairing (B : LinearMap.BilinForm K V) |
| 138 | (L M : Submodule R V) : Prop := |
| 139 | ∃ hIntegral : M ≤ B.dualSubmodule L, |
| 140 | Function.Bijective (latticePairingMap B L M hIntegral) |
| 141 | |
| 142 | /-- Perfectness and spanning force the entire opposite lattice. -/ |
| 143 | theorem perfectLatticePairing_forces_dual |
| 144 | (B : LinearMap.BilinForm K V) (hB : B.Nondegenerate) |
| 145 | (L M : Submodule R V) (hL : Submodule.span K (L : Set V) = ⊤) |
| 146 | (h : IsPerfectLatticePairing B L M) : M = B.dualSubmodule L := by |
| 147 | obtain ⟨hIntegral, _, hsurj⟩ := h |
| 148 | apply le_antisymm hIntegral |
| 149 | intro x hx |
| 150 | obtain ⟨m, hm⟩ := hsurj (B.dualSubmoduleToDual L ⟨x, hx⟩) |
| 151 | have heq : (Submodule.inclusion hIntegral) m = (⟨x, hx⟩ : B.dualSubmodule L) := |
| 152 | B.dualSubmoduleToDual_injective hB L hL hm |
| 153 | have hv : m.val = x := congrArg Subtype.val heq |
| 154 | exact hv ▸ m.property |
| 155 | |
| 156 | end |
| 157 | |
| 158 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Local |