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.Divisors.LineBundles.Periodic.FactorEuler |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.Exact |
| 3 | |
| 4 | /-! # Nilpotent Periodic -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.NilpotentPeriodic.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: equality of scalar presentations and the unit endpoint |
| 14 | -/ |
| 15 | |
| 16 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 17 | |
| 18 | theorem equationPeriodicHomology_length_congr (a b a' b' : R) (ha : a = a') (hb : b = b') |
| 19 | (h : ∀ m : M, (a * b) • m = 0) (h' : ∀ m : M, (a' * b') • m = 0) (i : Bool) : |
| 20 | Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a b h).homology i) = |
| 21 | Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a' b' h').homology i) := by |
| 22 | subst a' |
| 23 | subst b' |
| 24 | rfl |
| 25 | |
| 26 | theorem equationPeriodicEulerLength_congr (a b a' b' : R) (ha : a = a') (hb : b = b') |
| 27 | (h : ∀ m : M, (a * b) • m = 0) (h' : ∀ m : M, (a' * b') • m = 0) |
| 28 | (h₀ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a b h).homology false) ≠ ⊤) |
| 29 | (h₁ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a b h).homology true) ≠ ⊤) |
| 30 | (h₀' : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a' b' h').homology false) ≠ ⊤) |
| 31 | (h₁' : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a' b' h').homology true) ≠ ⊤) : |
| 32 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a b h) h₀ h₁ = |
| 33 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a' b' h') h₀' h₁' := by |
| 34 | subst a' |
| 35 | subst b' |
| 36 | rfl |
| 37 | |
| 38 | theorem equationPeriodic_one_right_exact (a : R) (h : ∀ m : M, (a * 1) • m = 0) : |
| 39 | Function.Exact (MultiplicationSequence.BundleCycles.equationEndomorphism a M) (MultiplicationSequence.BundleCycles.equationEndomorphism (1 : R) M) := by |
| 40 | intro m |
| 41 | change (1 : R) • m = 0 ↔ ∃ x : M, a • x = m |
| 42 | rw [one_smul] |
| 43 | constructor |
| 44 | · intro hm |
| 45 | exact ⟨0, (smul_zero a).trans hm.symm⟩ |
| 46 | · rintro ⟨x, rfl⟩ |
| 47 | simpa only [mul_one] using h x |
| 48 | |
| 49 | theorem equationPeriodic_one_left_exact (a : R) (h : ∀ m : M, (a * 1) • m = 0) : |
| 50 | Function.Exact (MultiplicationSequence.BundleCycles.equationEndomorphism (1 : R) M) (MultiplicationSequence.BundleCycles.equationEndomorphism a M) := by |
| 51 | intro m |
| 52 | change a • m = 0 ↔ ∃ x : M, (1 : R) • x = m |
| 53 | constructor |
| 54 | · intro _ |
| 55 | exact ⟨m, one_smul R m⟩ |
| 56 | · intro _ |
| 57 | simpa only [mul_one] using h m |
| 58 | |
| 59 | theorem equationPeriodicEulerLength_one_right (a : R) (h : ∀ m : M, (a * 1) • m = 0) |
| 60 | (h₀ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a 1 h).homology false) ≠ ⊤) |
| 61 | (h₁ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a 1 h).homology true) ≠ ⊤) : |
| 62 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a 1 h) h₀ h₁ = 0 := |
| 63 | Periodic.Exact.BundleCycles.endomorphismPeriodicEulerLength_zero_of_exact _ _ _ _ |
| 64 | (equationPeriodic_one_right_exact a h) (equationPeriodic_one_left_exact a h) h₀ h₁ |
| 65 | |
| 66 | end |
| 67 | |
| 68 | section |
| 69 | |
| 70 | /-! |
| 71 | # LineBundleCycles: periodic complexes for complementary powers of a nilpotent scalar |
| 72 | |
| 73 | The exponent parameter records every complementary pair. Finiteness |
| 74 | is imposed on the actual homology modules, independently of the Euler |
| 75 | identities that will be derived from factor composition. |
| 76 | -/ |
| 77 | |
| 78 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 79 | |
| 80 | theorem powerPeriodic_kill (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 81 | (i : ℕ) (hi : i ≤ n) : ∀ m : M, (x ^ i * x ^ (n - i)) • m = 0 := by |
| 82 | intro m |
| 83 | rw [← pow_add, Nat.add_sub_of_le hi] |
| 84 | exact h m |
| 85 | |
| 86 | def powerPeriodicComplex (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 87 | (i : ℕ) (hi : i ≤ n) : HomologicalComplex (ModuleCat R) Periodic.PeriodicComplex.BundleCycles.periodicComplexShape := |
| 88 | EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (x ^ i) (x ^ (n - i)) (powerPeriodic_kill x n h i hi) |
| 89 | |
| 90 | def powerPeriodicHomologyFinite (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) : Prop := |
| 91 | ∀ (i : ℕ) (hi : i ≤ n) (j : Bool), |
| 92 | Module.length R ((powerPeriodicComplex x n h i hi).homology j) ≠ ⊤ |
| 93 | |
| 94 | def powerPeriodicEuler (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 95 | (hf : powerPeriodicHomologyFinite x n h) (i : ℕ) (hi : i ≤ n) : ℤ := |
| 96 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (powerPeriodicComplex x n h i hi) (hf i hi false) (hf i hi true) |
| 97 | |
| 98 | theorem powerPeriodicEuler_top (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 99 | (hf : powerPeriodicHomologyFinite x n h) : powerPeriodicEuler x n h hf n le_rfl = 0 := by |
| 100 | have hk : ∀ m : M, (x ^ n * 1) • m = 0 := by simpa only [mul_one] using h |
| 101 | have hlen (j : Bool) : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (x ^ n) 1 hk).homology j) ≠ ⊤ := by |
| 102 | have he := equationPeriodicHomology_length_congr (x ^ n) (x ^ (n - n)) (x ^ n) 1 |
| 103 | rfl (by simp) (powerPeriodic_kill x n h n le_rfl) hk j |
| 104 | exact fun ht => hf n le_rfl j (he.trans ht) |
| 105 | exact (equationPeriodicEulerLength_congr (x ^ n) (x ^ (n - n)) (x ^ n) 1 rfl (by simp) |
| 106 | (powerPeriodic_kill x n h n le_rfl) hk (hf n le_rfl false) (hf n le_rfl true) |
| 107 | (hlen false) (hlen true)).trans (equationPeriodicEulerLength_one_right _ hk _ _) |
| 108 | |
| 109 | end |
| 110 | |
| 111 | section |
| 112 | |
| 113 | /-! |
| 114 | # LineBundleCycles: recurrence for complementary powers |
| 115 | |
| 116 | The constructed factor cone gives e(i+1) = e(i) + e(1) for fixed |
| 117 | nilpotence exponent. The scalar identities are just the laws of powers. |
| 118 | -/ |
| 119 | |
| 120 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 121 | |
| 122 | theorem powerPeriodicEuler_succ (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 123 | (hf : powerPeriodicHomologyFinite x n h) (i : ℕ) (hi : i + 1 ≤ n) : |
| 124 | powerPeriodicEuler x n h hf (i + 1) hi = |
| 125 | powerPeriodicEuler x n h hf i (by omega) + powerPeriodicEuler x n h hf 1 (by omega) := by |
| 126 | have hi₀ : i ≤ n := by omega |
| 127 | have hn : 1 ≤ n := by omega |
| 128 | let a := x ^ i |
| 129 | let b := x |
| 130 | let c := x ^ (n - (i + 1)) |
| 131 | have hab : a * b = x ^ (i + 1) := (pow_succ x i).symm |
| 132 | have hbc : b * c = x ^ (n - i) := by |
| 133 | change x * x ^ (n - (i + 1)) = x ^ (n - i) |
| 134 | rw [← pow_succ'] |
| 135 | congr 1 |
| 136 | omega |
| 137 | have hac : a * c = x ^ (n - 1) := by |
| 138 | change x ^ i * x ^ (n - (i + 1)) = x ^ (n - 1) |
| 139 | rw [← pow_add] |
| 140 | congr 1 |
| 141 | omega |
| 142 | have hprod : ∀ m : M, (a * b * c) • m = 0 := by |
| 143 | intro m |
| 144 | rw [hab] |
| 145 | exact powerPeriodic_kill x n h (i + 1) hi m |
| 146 | let hA := Periodic.FactorKill.BundleCycles.factorCone_kill_source a b c hprod |
| 147 | let hB := Periodic.FactorKill.BundleCycles.factorCone_kill_middle a b c hprod |
| 148 | have hAB (j : Bool) : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (a * b) c hprod).homology j) ≠ ⊤ := by |
| 149 | have he := equationPeriodicHomology_length_congr (a * b) c (x ^ (i + 1)) (x ^ (n - (i + 1))) |
| 150 | hab rfl hprod (powerPeriodic_kill x n h (i + 1) hi) j |
| 151 | exact fun ht => hf (i + 1) hi j (he.symm.trans ht) |
| 152 | have hAF (j : Bool) : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex a (b * c) hA).homology j) ≠ ⊤ := by |
| 153 | have he := equationPeriodicHomology_length_congr a (b * c) (x ^ i) (x ^ (n - i)) |
| 154 | rfl hbc hA (powerPeriodic_kill x n h i hi₀) j |
| 155 | exact fun ht => hf i hi₀ j (he.symm.trans ht) |
| 156 | have hBF (j : Bool) : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex b (a * c) hB).homology j) ≠ ⊤ := by |
| 157 | have he := equationPeriodicHomology_length_congr b (a * c) (x ^ 1) (x ^ (n - 1)) |
| 158 | (by exact (pow_one x).symm) hac hB (powerPeriodic_kill x n h 1 hn) j |
| 159 | exact fun ht => hf 1 hn j (he.symm.trans ht) |
| 160 | have he := Periodic.FactorEuler.BundleCycles.periodicEulerLength_factor_comp a b c hprod |
| 161 | (hAB false) (hAB true) (hAF false) (hAF true) (hBF false) (hBF true) |
| 162 | have heAB := equationPeriodicEulerLength_congr (a * b) c (x ^ (i + 1)) (x ^ (n - (i + 1))) |
| 163 | hab rfl hprod (powerPeriodic_kill x n h (i + 1) hi) |
| 164 | (hAB false) (hAB true) (hf (i + 1) hi false) (hf (i + 1) hi true) |
| 165 | have heA := equationPeriodicEulerLength_congr a (b * c) (x ^ i) (x ^ (n - i)) |
| 166 | rfl hbc hA (powerPeriodic_kill x n h i hi₀) |
| 167 | (hAF false) (hAF true) (hf i hi₀ false) (hf i hi₀ true) |
| 168 | have heB := equationPeriodicEulerLength_congr b (a * c) (x ^ 1) (x ^ (n - 1)) |
| 169 | (by exact (pow_one x).symm) hac hB (powerPeriodic_kill x n h 1 hn) |
| 170 | (hBF false) (hBF true) (hf 1 hn false) (hf 1 hn true) |
| 171 | exact heAB.symm.trans (he.trans (congrArg₂ (· + ·) heA heB)) |
| 172 | |
| 173 | end |
| 174 | |
| 175 | /-! |
| 176 | # LineBundleCycles: vanishing for complementary nilpotent powers |
| 177 | |
| 178 | Factor composition makes every Euler value i times the first value. |
| 179 | At the unit endpoint it is zero, so torsion-freeness of the integers |
| 180 | forces the first value, and hence every value, to vanish. |
| 181 | -/ |
| 182 | |
| 183 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 184 | |
| 185 | theorem powerPeriodicEuler_eq_mul (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 186 | (hf : powerPeriodicHomologyFinite x n h) (hn : 1 ≤ n) (i : ℕ) (hi : i ≤ n) : |
| 187 | powerPeriodicEuler x n h hf i hi = (i : ℤ) * powerPeriodicEuler x n h hf 1 hn := by |
| 188 | have hzero : powerPeriodicEuler x n h hf 0 (Nat.zero_le n) = 0 := by |
| 189 | have he := powerPeriodicEuler_succ x n h hf 0 hn |
| 190 | change powerPeriodicEuler x n h hf 1 hn = |
| 191 | powerPeriodicEuler x n h hf 0 (Nat.zero_le n) + powerPeriodicEuler x n h hf 1 hn at he |
| 192 | omega |
| 193 | induction i with |
| 194 | | zero => simpa only [Nat.cast_zero, zero_mul] using hzero |
| 195 | | succ i ih => |
| 196 | have hi₀ : i ≤ n := by omega |
| 197 | rw [powerPeriodicEuler_succ x n h hf i hi, ih hi₀] |
| 198 | push_cast |
| 199 | ring |
| 200 | |
| 201 | theorem powerPeriodicEuler_zero (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 202 | (hf : powerPeriodicHomologyFinite x n h) (i : ℕ) (hi : i ≤ n) : |
| 203 | powerPeriodicEuler x n h hf i hi = 0 := by |
| 204 | by_cases hn : n = 0 |
| 205 | · subst n |
| 206 | have hi₀ : i = 0 := by omega |
| 207 | subst i |
| 208 | exact powerPeriodicEuler_top x 0 h hf |
| 209 | have hn₁ : 1 ≤ n := by omega |
| 210 | have he := (powerPeriodicEuler_eq_mul x n h hf hn₁ n le_rfl).symm.trans |
| 211 | (powerPeriodicEuler_top x n h hf) |
| 212 | have hfirst : powerPeriodicEuler x n h hf 1 hn₁ = 0 := |
| 213 | (mul_eq_zero.mp he).resolve_left (by exact_mod_cast hn) |
| 214 | rw [powerPeriodicEuler_eq_mul x n h hf hn₁ i hi, hfirst, mul_zero] |
| 215 | |
| 216 | theorem nilpotentPeriodicEulerLength_zero (x : R) (n : ℕ) (h : ∀ m : M, x ^ n • m = 0) |
| 217 | (hf : powerPeriodicHomologyFinite x n h) (i : ℕ) (hi : i ≤ n) |
| 218 | (h₀ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (x ^ i) (x ^ (n - i)) |
| 219 | (powerPeriodic_kill x n h i hi)).homology false) ≠ ⊤) |
| 220 | (h₁ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (x ^ i) (x ^ (n - i)) |
| 221 | (powerPeriodic_kill x n h i hi)).homology true) ≠ ⊤) : |
| 222 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (x ^ i) (x ^ (n - i)) |
| 223 | (powerPeriodic_kill x n h i hi)) h₀ h₁ = 0 := |
| 224 | powerPeriodicEuler_zero x n h hf i hi |
| 225 | |
| 226 | end |
| 227 | |
| 228 | end OAI.AlgebraicGeometry.Divisors.LineBundles.NilpotentPeriodic.BundleCycles |