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.RepresentationTheory.Hecke.DoubleCoset |
| 2 | |
| 3 | /-! # Dual -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.Dual.CosetCalculus |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Inverse matrices identify the second minuscule coset with the first. -/ |
| 12 | |
| 13 | open scoped BigOperators |
| 14 | |
| 15 | variable {R F : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 16 | [Field F] [Algebra R F] [IsFractionRing R F] |
| 17 | |
| 18 | def dualMatrix (p : F) (M : CosetCalculusArithmeticMeasure.Mat F) : CosetCalculusArithmeticMeasure.Mat F := p • M⁻¹ |
| 19 | |
| 20 | omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R F] in |
| 21 | lemma map_integralGL_inverse (U : Matrix.GeneralLinearGroup (Fin 3) R) : |
| 22 | (U.val.map (algebraMap R F))⁻¹ = U⁻¹.val.map (algebraMap R F) := by |
| 23 | change (Matrix.GeneralLinearGroup.map (algebraMap R F) U).val⁻¹ = _ |
| 24 | rw [← Matrix.GeneralLinearGroup.coe_inv, ← map_inv] |
| 25 | rfl |
| 26 | |
| 27 | omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R F] in |
| 28 | lemma dual_factorization (p : F) |
| 29 | (U V : Matrix.GeneralLinearGroup (Fin 3) R) (D M : CosetCalculusArithmeticMeasure.Mat F) |
| 30 | (h : M = U.val.map (algebraMap R F) * D * V.val.map (algebraMap R F)) : |
| 31 | dualMatrix p M = V⁻¹.val.map (algebraMap R F) * dualMatrix p D * |
| 32 | U⁻¹.val.map (algebraMap R F) := by |
| 33 | rw [dualMatrix, h, Matrix.mul_inv_rev, Matrix.mul_inv_rev, |
| 34 | map_integralGL_inverse, map_integralGL_inverse] |
| 35 | simp only [dualMatrix, Matrix.mul_smul, Matrix.smul_mul, mul_assoc] |
| 36 | |
| 37 | lemma dual_diagonal (p : F) (hp : p ≠ 0) (a : Fin 3 → ℤ) : |
| 38 | dualMatrix p (Matrix.diagonal (fun i => p ^ a i)) = |
| 39 | Matrix.diagonal (fun i => p ^ (1 - a i)) := by |
| 40 | have hi : (Matrix.diagonal (fun i => p ^ a i))⁻¹ = |
| 41 | Matrix.diagonal (fun i => (p ^ a i)⁻¹) := by |
| 42 | apply Matrix.inv_eq_right_inv |
| 43 | rw [Matrix.diagonal_mul_diagonal] |
| 44 | ext i j |
| 45 | by_cases hij : i = j |
| 46 | · subst j |
| 47 | simp [zpow_ne_zero _ hp] |
| 48 | · simp [Matrix.diagonal_apply_ne _ hij, Matrix.one_apply_ne hij] |
| 49 | rw [dualMatrix, hi, ← Matrix.diagonal_smul] |
| 50 | congr 1 |
| 51 | ext i |
| 52 | simp [zpow_sub₀ hp, div_eq_mul_inv] |
| 53 | |
| 54 | lemma dualMatrix_involutive (p : F) (hp : p ≠ 0) (M : CosetCalculusArithmeticMeasure.Mat F) (hM : M.det ≠ 0) : |
| 55 | dualMatrix p (dualMatrix p M) = M := by |
| 56 | let := invertibleOfNonzero hp |
| 57 | let := Matrix.invertibleOfIsUnitDet M (isUnit_iff_ne_zero.mpr hM) |
| 58 | rw [dualMatrix, dualMatrix, Matrix.inv_smul M⁻¹ p (Matrix.isUnit_det_of_invertible _), |
| 59 | Matrix.inv_inv_of_invertible, smul_smul, mul_invOf_self, one_smul] |
| 60 | |
| 61 | lemma triangular_inverse (p : F) (hp : p ≠ 0) (a : Fin 3 → ℤ) (x y z : F) : |
| 62 | (CosetCalculusArithmeticMeasure.triangular p a x y z)⁻¹ = |
| 63 | !![(p ^ a 0)⁻¹, -x * (p ^ a 1)⁻¹, (x * z - y) * (p ^ a 2)⁻¹; |
| 64 | 0, (p ^ a 1)⁻¹, -z * (p ^ a 2)⁻¹; |
| 65 | 0, 0, (p ^ a 2)⁻¹] := by |
| 66 | apply Matrix.inv_eq_right_inv |
| 67 | ext i j |
| 68 | fin_cases i <;> fin_cases j <;> |
| 69 | simp [CosetCalculusArithmeticMeasure.triangular, Matrix.mul_apply, Fin.sum_univ_succ, zpow_ne_zero _ hp] |
| 70 | all_goals field_simp |
| 71 | all_goals ring |
| 72 | |
| 73 | lemma dual_triangular (p : F) (hp : p ≠ 0) (a : Fin 3 → ℤ) (x y z : F) : |
| 74 | dualMatrix p (CosetCalculusArithmeticMeasure.triangular p a x y z) = |
| 75 | !![p ^ (1 - a 0), -x * p ^ (1 - a 1), (x * z - y) * p ^ (1 - a 2); |
| 76 | 0, p ^ (1 - a 1), -z * p ^ (1 - a 2); |
| 77 | 0, 0, p ^ (1 - a 2)] := by |
| 78 | rw [dualMatrix, triangular_inverse p hp] |
| 79 | ext i j |
| 80 | fin_cases i <;> fin_cases j <;> |
| 81 | simp [Matrix.smul_apply, zpow_sub₀ hp, div_eq_mul_inv, mul_left_comm] |
| 82 | |
| 83 | omit [IsDomain R] [IsDiscreteValuationRing R] in |
| 84 | theorem dual_doubleCoset (π : R) (hπ : Irreducible π) (a : Fin 3 → ℤ) (M : CosetCalculusArithmeticMeasure.Mat F) |
| 85 | (hM : M.det ≠ 0) : |
| 86 | DoubleCoset.Calculus.InDoubleCoset π a M ↔ |
| 87 | DoubleCoset.Calculus.InDoubleCoset π (fun i => 1 - a i) (dualMatrix (algebraMap R F π) M) := by |
| 88 | have hp := OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.uniformizer_map_ne_zero (K := F) hπ |
| 89 | constructor |
| 90 | · rintro ⟨U, V, h⟩ |
| 91 | refine ⟨V⁻¹, U⁻¹, ?_⟩ |
| 92 | rw [dual_factorization _ U V _ M h, dual_diagonal _ hp] |
| 93 | · rintro ⟨U, V, h⟩ |
| 94 | refine ⟨V⁻¹, U⁻¹, ?_⟩ |
| 95 | have hh := dual_factorization (algebraMap R F π) U V _ _ h |
| 96 | rw [dualMatrix_involutive _ hp M hM, dual_diagonal _ hp] at hh |
| 97 | simpa only [sub_sub_cancel] using hh |
| 98 | |
| 99 | end |
| 100 | |
| 101 | /-! The unipotent sections of the two minuscule double cosets. -/ |
| 102 | |
| 103 | variable {R F : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 104 | [Field F] [Algebra R F] [IsFractionRing R F] |
| 105 | |
| 106 | omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R F] in |
| 107 | @[simp] lemma integralElement_neg (x : F) : |
| 108 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) (-x) ↔ CosetCalculusArithmeticMeasure.IntegralElement (R := R) x := |
| 109 | (algebraMap R F).range.neg_mem_iff |
| 110 | |
| 111 | omit [IsDomain R] [IsDiscreteValuationRing R] in |
| 112 | lemma firstCondition_triangular (π : R) (hπ : Irreducible π) |
| 113 | (a : Fin 3 → ℤ) (x y z : F) : |
| 114 | DoubleCoset.Calculus.FirstCondition π (CosetCalculusArithmeticMeasure.triangular (algebraMap R F π) a x y z) ↔ |
| 115 | (a = ![1, 0, 0] ∨ a = ![0, 1, 0] ∨ a = ![0, 0, 1]) ∧ |
| 116 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ a 0 * x) ∧ |
| 117 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ a 0 * y) ∧ |
| 118 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ a 1 * z) := by |
| 119 | have hp := OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.uniformizer_map_ne_zero (K := F) hπ |
| 120 | have hd : (∃ u : Rˣ, (algebraMap R F π) ^ (a 0 + a 1 + a 2) = |
| 121 | algebraMap R F (u : R) * algebraMap R F π) ↔ a 0 + a 1 + a 2 = 1 := by |
| 122 | simpa only [zpow_one] using CosetCalculusArithmeticMeasure.zpow_eq_unit_mul_iff (F := F) π hπ (a 0 + a 1 + a 2) 1 |
| 123 | rw [DoubleCoset.Calculus.FirstCondition, CosetCalculusArithmeticMeasure.triangular_integral, CosetCalculusArithmeticMeasure.triangular_det _ hp, hd, |
| 124 | CosetCalculusArithmeticMeasure.integral_zpow π hπ, CosetCalculusArithmeticMeasure.integral_zpow π hπ, CosetCalculusArithmeticMeasure.integral_zpow π hπ] |
| 125 | constructor |
| 126 | · rintro ⟨⟨h0, h1, h2, hx, hy, hz⟩, hs⟩ |
| 127 | refine ⟨CosetCalculusArithmeticMeasure.nonnegative_triple_sum_one a ?_ hs, hx, hy, hz⟩ |
| 128 | intro i |
| 129 | fin_cases i <;> assumption |
| 130 | · rintro ⟨ha, hx, hy, hz⟩ |
| 131 | rcases ha with rfl | rfl | rfl <;> simp_all |
| 132 | |
| 133 | lemma dual_triangular_det (p : F) (hp : p ≠ 0) (a : Fin 3 → ℤ) (x y z : F) : |
| 134 | (dualMatrix p (CosetCalculusArithmeticMeasure.triangular p a x y z)).det = p ^ (3 - (a 0 + a 1 + a 2)) := by |
| 135 | rw [dual_triangular p hp] |
| 136 | have he : 3 - (a 0 + a 1 + a 2) = (1 - a 0) + (1 - a 1) + (1 - a 2) := by ring |
| 137 | simp [Matrix.det_fin_three, he, zpow_add₀ hp, mul_assoc] |
| 138 | |
| 139 | omit [IsDomain R] [IsDiscreteValuationRing R] in |
| 140 | lemma dual_triangular_integral (π : R) (hπ : Irreducible π) |
| 141 | (a : Fin 3 → ℤ) (x y z : F) : |
| 142 | CosetCalculusArithmeticMeasure.IntegralMatrix (R := R) (dualMatrix (algebraMap R F π) |
| 143 | (CosetCalculusArithmeticMeasure.triangular (algebraMap R F π) a x y z)) ↔ |
| 144 | (∀ i, a i ≤ 1) ∧ |
| 145 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 1) * x) ∧ |
| 146 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 2) * (x * z - y)) ∧ |
| 147 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 2) * z) := by |
| 148 | have hp := OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.uniformizer_map_ne_zero (K := F) hπ |
| 149 | rw [CosetCalculusArithmeticMeasure.integralMatrix_iff, dual_triangular _ hp] |
| 150 | constructor |
| 151 | · intro h |
| 152 | refine ⟨?_, ?_, ?_, ?_⟩ |
| 153 | · intro i |
| 154 | have hid : CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a i)) := by |
| 155 | fin_cases i |
| 156 | · exact h 0 0 |
| 157 | · exact h 1 1 |
| 158 | · exact h 2 2 |
| 159 | have hi : 0 ≤ 1 - a i := (CosetCalculusArithmeticMeasure.integral_zpow π hπ _).mp hid |
| 160 | omega |
| 161 | · have hh : CosetCalculusArithmeticMeasure.IntegralElement (R := R) (-x * (algebraMap R F π) ^ (1 - a 1)) := h 0 1 |
| 162 | simpa only [neg_mul, integralElement_neg, mul_comm] using hh |
| 163 | · have hh : CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((x * z - y) * (algebraMap R F π) ^ (1 - a 2)) := h 0 2 |
| 164 | simpa only [mul_comm] using hh |
| 165 | · have hh : CosetCalculusArithmeticMeasure.IntegralElement (R := R) (-z * (algebraMap R F π) ^ (1 - a 2)) := h 1 2 |
| 166 | simpa only [neg_mul, integralElement_neg, mul_comm] using hh |
| 167 | · rintro ⟨ha, hx, hy, hz⟩ i j |
| 168 | have hd (i : Fin 3) : CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a i)) := |
| 169 | (CosetCalculusArithmeticMeasure.integral_zpow π hπ _).mpr (by have := ha i; omega) |
| 170 | have hx' : CosetCalculusArithmeticMeasure.IntegralElement (R := R) (-x * (algebraMap R F π) ^ (1 - a 1)) := by |
| 171 | simpa only [neg_mul, integralElement_neg, mul_comm] using hx |
| 172 | have hy' : CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((x * z - y) * (algebraMap R F π) ^ (1 - a 2)) := by |
| 173 | simpa only [mul_comm] using hy |
| 174 | have hz' : CosetCalculusArithmeticMeasure.IntegralElement (R := R) (-z * (algebraMap R F π) ^ (1 - a 2)) := by |
| 175 | simpa only [neg_mul, integralElement_neg, mul_comm] using hz |
| 176 | fin_cases i <;> fin_cases j |
| 177 | all_goals first |
| 178 | | exact hd 0 |
| 179 | | exact hd 1 |
| 180 | | exact hd 2 |
| 181 | | exact hx' |
| 182 | | exact hy' |
| 183 | | exact hz' |
| 184 | | exact ⟨0, map_zero _⟩ |
| 185 | |
| 186 | omit [IsDomain R] [IsDiscreteValuationRing R] in |
| 187 | lemma secondCondition_triangular (π : R) (hπ : Irreducible π) |
| 188 | (a : Fin 3 → ℤ) (x y z : F) : |
| 189 | DoubleCoset.Calculus.FirstCondition π (dualMatrix (algebraMap R F π) |
| 190 | (CosetCalculusArithmeticMeasure.triangular (algebraMap R F π) a x y z)) ↔ |
| 191 | (a = ![1, 1, 0] ∨ a = ![1, 0, 1] ∨ a = ![0, 1, 1]) ∧ |
| 192 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 1) * x) ∧ |
| 193 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 2) * (x * z - y)) ∧ |
| 194 | CosetCalculusArithmeticMeasure.IntegralElement (R := R) ((algebraMap R F π) ^ (1 - a 2) * z) := by |
| 195 | have hp := OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.uniformizer_map_ne_zero (K := F) hπ |
| 196 | have hd : (∃ u : Rˣ, (algebraMap R F π) ^ (3 - (a 0 + a 1 + a 2)) = |
| 197 | algebraMap R F (u : R) * algebraMap R F π) ↔ 3 - (a 0 + a 1 + a 2) = 1 := by |
| 198 | simpa only [zpow_one] using CosetCalculusArithmeticMeasure.zpow_eq_unit_mul_iff (F := F) π hπ (3 - (a 0 + a 1 + a 2)) 1 |
| 199 | rw [DoubleCoset.Calculus.FirstCondition, dual_triangular_integral π hπ, dual_triangular_det _ hp, hd] |
| 200 | constructor |
| 201 | · rintro ⟨⟨ha, hx, hy, hz⟩, hs⟩ |
| 202 | exact ⟨CosetCalculusArithmeticMeasure.bounded_triple_sum_two a ha (by omega), hx, hy, hz⟩ |
| 203 | · rintro ⟨ha, hx, hy, hz⟩ |
| 204 | rcases ha with rfl | rfl | rfl <;> simp_all [Fin.forall_fin_succ] |
| 205 | |
| 206 | end |
| 207 | |
| 208 | end OAI.RepresentationTheory.Hecke.Dual.CosetCalculus |