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 | /-! # Cubic Relation -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.CubicRelation |
| 6 | |
| 7 | /- |
| 8 | Interface-level statement following OrdinaryCharacter. R models the integral |
| 9 | endomorphism ring of the specialized Albanese product, A its group of |
| 10 | geometric points, and O its ordinary source points. Multiplication in R |
| 11 | is composition; q • denotes repeated addition. The geometric realization |
| 12 | from good completely split reduction, including Néron specialization and |
| 13 | detection by ordinary Albanese differences, remains to be supplied. |
| 14 | The deduction below uses only the explicit target hypotheses. OrdinaryCharacter and |
| 15 | HomExtension are unnecessary once specialization, the point identities, and |
| 16 | faithful detection are supplied. No additional substantive assumption is |
| 17 | imposed, and no committed statement stub is imported. |
| 18 | -/ |
| 19 | |
| 20 | /-- |
| 21 | Model: |
| 22 | * R is the integral endomorphism ring of the specialized Albanese product. |
| 23 | * A is its group of geometric points. |
| 24 | * O consists of ordinary points, with component map and Albanese map a. |
| 25 | * Φ, C0, T1, T2, T3 are the specialized geometric operators. |
| 26 | * hdetect expresses faithfulness on ordinary Albanese differences. |
| 27 | -/ |
| 28 | theorem albanese_hecke_frobenius_relation |
| 29 | (q : ℕ) (_hq : q.Prime) |
| 30 | {R A O J : Type*} |
| 31 | [Ring R] [AddCommGroup A] |
| 32 | (act : R →+* AddMonoid.End A) |
| 33 | (component : O → J) |
| 34 | (a : O → A) |
| 35 | (Φ C0 T1 T2 T3 : R) |
| 36 | (X Z : O → O) |
| 37 | (Y : O → Multiset O) |
| 38 | (hXcomponent : ∀ x, component (X x) = component x) |
| 39 | (hFrobenius : ∀ x, act Φ (a x) = a (X x)) |
| 40 | (_hXY : ∀ x, (Y x).map X = Y (X x)) |
| 41 | (_hXZ : ∀ x, X (Z x) = Z (X x)) |
| 42 | (hT1 : ∀ x y, component x = component y → |
| 43 | act (C0 * T1) (a x - a y) = |
| 44 | a (X x) - a (X y) + |
| 45 | q • (((Y x).map a).sum - ((Y y).map a).sum)) |
| 46 | (hT2 : ∀ x y, component x = component y → |
| 47 | act (C0 ^ 2 * T2) (a x - a y) = |
| 48 | ((Y (X x)).map a).sum - ((Y (X y)).map a).sum + |
| 49 | q ^ 2 • (a (Z x) - a (Z y))) |
| 50 | (hT3 : ∀ x y, component x = component y → |
| 51 | act (C0 ^ 3 * T3) (a x - a y) = |
| 52 | a (Z (X x)) - a (Z (X y))) |
| 53 | (hdetect : ∀ f : R, |
| 54 | (∀ x y, component x = component y → |
| 55 | act f (a x - a y) = 0) → f = 0) : |
| 56 | Φ ^ 3 - C0 * T1 * Φ ^ 2 + |
| 57 | q • (C0 ^ 2 * T2 * Φ) - |
| 58 | q ^ 3 • (C0 ^ 3 * T3) = 0 := by |
| 59 | apply hdetect |
| 60 | intro x y hxy |
| 61 | have hxy1 : component (X x) = component (X y) := by |
| 62 | simpa only [hXcomponent] using hxy |
| 63 | have hxy2 : component (X (X x)) = component (X (X y)) := by |
| 64 | simpa only [hXcomponent] using hxy |
| 65 | have hmul (f g : R) (b : A) : act (f * g) b = act f (act g b) := by |
| 66 | rw [map_mul] |
| 67 | rfl |
| 68 | have hsub (f g : R) (b : A) : act (f - g) b = act f b - act g b := by |
| 69 | rw [map_sub] |
| 70 | rfl |
| 71 | have hadd (f g : R) (b : A) : act (f + g) b = act f b + act g b := by |
| 72 | rw [map_add] |
| 73 | rfl |
| 74 | have hsmul (n : ℕ) (f : R) (b : A) : act (n • f) b = n • act f b := by |
| 75 | rw [map_nsmul] |
| 76 | rfl |
| 77 | have hpow (n : ℕ) (z : O) : |
| 78 | act (Φ ^ n) (a z) = a (X^[n] z) := by |
| 79 | induction n with |
| 80 | | zero => simp |
| 81 | | succ n ih => |
| 82 | rw [pow_succ', hmul, ih, hFrobenius, Function.iterate_succ_apply'] |
| 83 | have hpow_sub (n : ℕ) (z w : O) : |
| 84 | act (Φ ^ n) (a z - a w) = a (X^[n] z) - a (X^[n] w) := by |
| 85 | rw [map_sub, hpow, hpow] |
| 86 | have hφ (z w : O) : act Φ (a z - a w) = a (X z) - a (X w) := by |
| 87 | rw [map_sub, hFrobenius, hFrobenius] |
| 88 | simp only [hsub, hadd, hsmul] |
| 89 | rw [hmul (C0 * T1), hmul (C0 ^ 2 * T2), hpow_sub, hpow_sub, hφ] |
| 90 | simp only [Function.iterate_succ_apply, Function.iterate_zero_apply] |
| 91 | rw [hT1 _ _ hxy2, hT2 _ _ hxy1, hT3 _ _ hxy] |
| 92 | simp only [smul_add, smul_smul, ← pow_succ'] |
| 93 | abel |
| 94 | |
| 95 | /-! |
| 96 | ## Explicit graph input propositions |
| 97 | |
| 98 | These are the full proposition types of the supplied OrdinaryCharacter and HomExtension |
| 99 | specifications, copied without importing or invoking their proof stubs. |
| 100 | The conditional entry point below names both inputs. Neither is needed |
| 101 | by this target: its hT1/hT2/hT3 and hdetect already expose the specialized |
| 102 | point identities and detection required for the deduction. The primality |
| 103 | and ordinary-operator commutation hypotheses are likewise retained from |
| 104 | the target but unused in the cancellation. There are no new substantive |
| 105 | hypotheses in the direct theorem above. |
| 106 | -/ |
| 107 | |
| 108 | /-- Pairs of points in the same component. -/ |
| 109 | abbrev ComponentPairs {S J : Type*} (component : S → J) := |
| 110 | {p : S × S // component p.1 = component p.2} |
| 111 | |
| 112 | /-- The three neighbor multisets in (8), preserving multiplicities. -/ |
| 113 | def ordinaryRawNeighbors {O : Type*} |
| 114 | (q : ℕ) (X Z : O → O) (Y : O → Multiset O) : |
| 115 | Fin 3 → O → Multiset O := |
| 116 | ![fun x => ({X x} : Multiset O) + q • Y x, |
| 117 | fun x => Y (X x) + q ^ 2 • ({Z x} : Multiset O), |
| 118 | fun x => ({Z (X x)} : Multiset O)] |
| 119 | |
| 120 | def OrdinaryCharacterInput : Prop := ∀ |
| 121 | (q : ℕ) (_hq : q.Prime) |
| 122 | {J Sη Sκ Aη Aκ Rη Rκ : Type*} |
| 123 | [AddCommGroup Aη] [AddCommGroup Aκ] |
| 124 | [Ring Rη] [Ring Rκ] |
| 125 | (component : Sκ → J) |
| 126 | [TopologicalSpace (ComponentPairs component)] |
| 127 | (ordinary : Set Sκ) |
| 128 | (aη : Sη → Aη) (aκ : Sκ → Aκ) |
| 129 | (reducePoint : Sη → Sκ) |
| 130 | (reduceAlb : Aη →+ Aκ) |
| 131 | (actη : Rη →+* AddMonoid.End Aη) |
| 132 | (actκ : Rκ →+* AddMonoid.End Aκ) |
| 133 | (specialize : Rη →+* Rκ) |
| 134 | (H : Fin 3 → Rη) |
| 135 | (neighbors : Fin 3 → Sη → Multiset Sη) |
| 136 | (Φ : Rκ) |
| 137 | (X Z : ordinary → ordinary) |
| 138 | (Y : ordinary → Multiset ordinary) |
| 139 | |
| 140 | (_hspecialize : ∀ (f : Rη) (b : Aη), |
| 141 | reduceAlb (actη f b) = |
| 142 | actκ (specialize f) (reduceAlb b)) |
| 143 | (_halbanese : ∀ x : Sη, |
| 144 | reduceAlb (aη x) = aκ (reducePoint x)) |
| 145 | (_hlifts : ∀ x : ordinary, |
| 146 | ∃ xη : Sη, reducePoint xη = x.val) |
| 147 | |
| 148 | (_hgeneric : ∀ (i : Fin 3) (x y : Sη), |
| 149 | component (reducePoint x) = component (reducePoint y) → |
| 150 | actη (H i) (aη x - aη y) = |
| 151 | ((neighbors i x).map aη).sum - |
| 152 | ((neighbors i y).map aη).sum) |
| 153 | |
| 154 | (_hneighbors : ∀ (i : Fin 3) (x : ordinary) (xη : Sη), |
| 155 | reducePoint xη = x.val → |
| 156 | (neighbors i xη).map reducePoint = |
| 157 | (ordinaryRawNeighbors q X Z Y i x).map |
| 158 | (fun z : ordinary => z.val)) |
| 159 | |
| 160 | (_hXcomponent : ∀ x : ordinary, |
| 161 | component (X x).val = component x.val) |
| 162 | (_hXY : ∀ x : ordinary, (Y x).map X = Y (X x)) |
| 163 | (_hXZ : ∀ x : ordinary, X (Z x) = Z (X x)) |
| 164 | (_hFrobenius : ∀ x : ordinary, |
| 165 | actκ Φ (aκ x.val) = aκ (X x).val) |
| 166 | |
| 167 | (_hdense : Dense |
| 168 | {p : ComponentPairs component | |
| 169 | p.val.1 ∈ ordinary ∧ p.val.2 ∈ ordinary}) |
| 170 | (_hclosed : ∀ f : Rκ, |
| 171 | IsClosed |
| 172 | {p : ComponentPairs component | |
| 173 | actκ f (aκ p.val.1 - aκ p.val.2) = 0}) |
| 174 | (_hgenerate : |
| 175 | AddSubgroup.closure |
| 176 | (Set.range (fun p : ComponentPairs component => |
| 177 | aκ p.val.1 - aκ p.val.2)) = ⊤) |
| 178 | (_hfaithful : Function.Injective actκ), |
| 179 | |
| 180 | let Hbar : Fin 3 → Rκ := fun i => specialize (H i) |
| 181 | |
| 182 | (∀ (i : Fin 3) (x y : ordinary), |
| 183 | component x.val = component y.val → |
| 184 | actκ (Hbar i) (aκ x.val - aκ y.val) = |
| 185 | ((ordinaryRawNeighbors q X Z Y i x).map |
| 186 | (fun z : ordinary => aκ z.val)).sum - |
| 187 | ((ordinaryRawNeighbors q X Z Y i y).map |
| 188 | (fun z : ordinary => aκ z.val)).sum) ∧ |
| 189 | |
| 190 | (Φ ^ 3 - Hbar 0 * Φ ^ 2 + |
| 191 | q • (Hbar 1 * Φ) - q ^ 3 • Hbar 2 = 0) ∧ |
| 192 | |
| 193 | (∀ i : Fin 3, Commute (Hbar i) Φ) |
| 194 | |
| 195 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 196 | open scoped _root_.CategoryTheory.Obj |
| 197 | |
| 198 | universe u |
| 199 | |
| 200 | def HomExtensionInput : Prop := ∀ |
| 201 | {R K : Type u} |
| 202 | [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 203 | [Field K] [Algebra R K] [IsFractionRing R K] |
| 204 | (A B : Over (Spec (CommRingCat.of R))) |
| 205 | [GrpObj A] [IsCommMonObj A] |
| 206 | [GrpObj B] [IsCommMonObj B] |
| 207 | [IsProper A.hom] [Smooth A.hom] |
| 208 | [GeometricallyConnected A.hom] |
| 209 | [IsProper B.hom] [Smooth B.hom] |
| 210 | [GeometricallyConnected B.hom], |
| 211 | let η := Spec.map (CommRingCat.ofHom (algebraMap R K)) |
| 212 | let genericFiber := Over.pullback η |
| 213 | ∀ fK : genericFiber.obj A ⟶ genericFiber.obj B, |
| 214 | IsMonHom fK → |
| 215 | ∃! f : A ⟶ B, |
| 216 | IsMonHom f ∧ genericFiber.map f = fK |
| 217 | |
| 218 | theorem albanese_hecke_frobenius_relation_conditional |
| 219 | (_hC4_17 : OrdinaryCharacterInput) |
| 220 | (_hE54 : HomExtensionInput) |
| 221 | (q : ℕ) (hq : q.Prime) |
| 222 | {R A O J : Type*} |
| 223 | [Ring R] [AddCommGroup A] |
| 224 | (act : R →+* AddMonoid.End A) |
| 225 | (component : O → J) |
| 226 | (a : O → A) |
| 227 | (Φ C0 T1 T2 T3 : R) |
| 228 | (X Z : O → O) |
| 229 | (Y : O → Multiset O) |
| 230 | (hXcomponent : ∀ x, component (X x) = component x) |
| 231 | (hFrobenius : ∀ x, act Φ (a x) = a (X x)) |
| 232 | (hXY : ∀ x, (Y x).map X = Y (X x)) |
| 233 | (hXZ : ∀ x, X (Z x) = Z (X x)) |
| 234 | (hT1 : ∀ x y, component x = component y → |
| 235 | act (C0 * T1) (a x - a y) = |
| 236 | a (X x) - a (X y) + |
| 237 | q • (((Y x).map a).sum - ((Y y).map a).sum)) |
| 238 | (hT2 : ∀ x y, component x = component y → |
| 239 | act (C0 ^ 2 * T2) (a x - a y) = |
| 240 | ((Y (X x)).map a).sum - ((Y (X y)).map a).sum + |
| 241 | q ^ 2 • (a (Z x) - a (Z y))) |
| 242 | (hT3 : ∀ x y, component x = component y → |
| 243 | act (C0 ^ 3 * T3) (a x - a y) = |
| 244 | a (Z (X x)) - a (Z (X y))) |
| 245 | (hdetect : ∀ f : R, |
| 246 | (∀ x y, component x = component y → |
| 247 | act f (a x - a y) = 0) → f = 0) : |
| 248 | Φ ^ 3 - C0 * T1 * Φ ^ 2 + |
| 249 | q • (C0 ^ 2 * T2 * Φ) - |
| 250 | q ^ 3 • (C0 ^ 3 * T3) = 0 := by |
| 251 | exact albanese_hecke_frobenius_relation q hq act component a Φ C0 T1 T2 T3 |
| 252 | X Z Y hXcomponent hFrobenius hXY hXZ hT1 hT2 hT3 hdetect |
| 253 | |
| 254 | end OAI.RepresentationTheory.Hecke.CubicRelation |