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.Theta.Adelic.QuadraticNormChart |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary |
| 3 | import OAI.RepresentationTheory.Weil.Local.SquareBall |
| 4 | |
| 5 | /-! # Quadratic Norm Operations -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace RepresentationTheory.Theta.Adelic.QuadraticNormOperations |
| 12 | |
| 13 | /-! Group operations, two-torsion, and nonarchimedean size estimates in |
| 14 | the rational coordinates of a general quadratic norm-one group. -/ |
| 15 | |
| 16 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticNormSquareQuotient OAI.RepresentationTheory.Theta.Adelic.QuadraticNormChart.Compact OAI.RepresentationTheory.Theta.Adelic.QuadraticNormChart |
| 17 | |
| 18 | variable {k : Type*} [Field k] (d : k) |
| 19 | |
| 20 | theorem normOne_mul_re (p q : QuadraticNormSquareQuotient.NormOne d) : |
| 21 | (p * q).val.val.re = p.val.val.re * q.val.val.re + d * p.val.val.im * q.val.val.im := rfl |
| 22 | |
| 23 | theorem normOne_mul_im (p q : QuadraticNormSquareQuotient.NormOne d) : |
| 24 | (p * q).val.val.im = p.val.val.re * q.val.val.im + p.val.val.im * q.val.val.re := by |
| 25 | change (p.val.val * q.val.val).im = _ |
| 26 | simp only [QuadraticAlgebra.im_mul, zero_mul, add_zero] |
| 27 | |
| 28 | theorem normOne_inv_re (p : QuadraticNormSquareQuotient.NormOne d) : (p⁻¹).val.val.re = p.val.val.re := by |
| 29 | have h := congrArg (fun z : (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)ˣ => z.val.re) |
| 30 | (QuadraticNormSquareQuotient.conjugate_normOne d p) |
| 31 | change p.val.val.re + 0 * p.val.val.im = (p⁻¹).val.val.re at h |
| 32 | simpa only [zero_mul, add_zero] using h.symm |
| 33 | |
| 34 | theorem normOne_inv_im (p : QuadraticNormSquareQuotient.NormOne d) : (p⁻¹).val.val.im = -p.val.val.im := |
| 35 | (congrArg (fun z : (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)ˣ => z.val.im) |
| 36 | (QuadraticNormSquareQuotient.conjugate_normOne d p)).symm |
| 37 | |
| 38 | theorem normChart_inv (hns : ¬ IsSquare d) (t : k) : |
| 39 | (QuadraticNormChart.normChart d hns t)⁻¹ = QuadraticNormChart.normChart d hns (-t) := by |
| 40 | apply QuadraticNormChart.normOne_ext |
| 41 | · rw [normOne_inv_re] |
| 42 | change (1 + d * t ^ 2) / (1 - d * t ^ 2) = (1 + d * (-t) ^ 2) / (1 - d * (-t) ^ 2) |
| 43 | rw [neg_sq] |
| 44 | · change -(2 * t / (1 - d * t ^ 2)) = 2 * (-t) / (1 - d * (-t) ^ 2) |
| 45 | simp only [neg_sq, mul_neg, neg_div] |
| 46 | |
| 47 | theorem normChart_mul (hns : ¬ IsSquare d) (t u : k) (htu : 1 + d * t * u ≠ 0) : |
| 48 | QuadraticNormChart.normChart d hns t * QuadraticNormChart.normChart d hns u = QuadraticNormChart.normChart d hns ((t + u) / (1 + d * t * u)) := by |
| 49 | have hd : 1 - d * ((t + u) / (1 + d * t * u)) ^ 2 = |
| 50 | (1 - d * t ^ 2) * (1 - d * u ^ 2) / (1 + d * t * u) ^ 2 := by |
| 51 | field_simp |
| 52 | ring |
| 53 | apply QuadraticNormChart.normOne_ext |
| 54 | · change (1 + d * t ^ 2) / (1 - d * t ^ 2) * ((1 + d * u ^ 2) / (1 - d * u ^ 2)) + |
| 55 | d * (2 * t / (1 - d * t ^ 2)) * (2 * u / (1 - d * u ^ 2)) = |
| 56 | (1 + d * ((t + u) / (1 + d * t * u)) ^ 2) / (1 - d * ((t + u) / (1 + d * t * u)) ^ 2) |
| 57 | rw [hd] |
| 58 | field_simp [QuadraticNormChart.one_sub_mul_sq_ne_zero d hns t, QuadraticNormChart.one_sub_mul_sq_ne_zero d hns u] |
| 59 | ring |
| 60 | · rw [normOne_mul_im] |
| 61 | change (1 + d * t ^ 2) / (1 - d * t ^ 2) * (2 * u / (1 - d * u ^ 2)) + |
| 62 | (2 * t / (1 - d * t ^ 2)) * ((1 + d * u ^ 2) / (1 - d * u ^ 2)) = |
| 63 | (2 * ((t + u) / (1 + d * t * u))) / (1 - d * ((t + u) / (1 + d * t * u)) ^ 2) |
| 64 | rw [hd] |
| 65 | field_simp [QuadraticNormChart.one_sub_mul_sq_ne_zero d hns t, QuadraticNormChart.one_sub_mul_sq_ne_zero d hns u] |
| 66 | ring |
| 67 | |
| 68 | def normSquareCoordinate (t : k) : k := 2 * t / (1 + d * t ^ 2) |
| 69 | |
| 70 | theorem normChart_sq (hns : ¬ IsSquare d) (t : k) (ht : 1 + d * t ^ 2 ≠ 0) : |
| 71 | QuadraticNormChart.normChart d hns t ^ 2 = QuadraticNormChart.normChart d hns (normSquareCoordinate d t) := by |
| 72 | rw [pow_two, normChart_mul d hns t t (by simpa only [pow_two, mul_assoc] using ht)] |
| 73 | congr 1 |
| 74 | simp only [normSquareCoordinate, pow_two, two_mul, mul_assoc] |
| 75 | |
| 76 | theorem normOne_sq_eq_one_iff [CharZero k] (p : QuadraticNormSquareQuotient.NormOne d) : |
| 77 | p ^ 2 = 1 ↔ p = 1 ∨ p = QuadraticNormChart.minusOne d := by |
| 78 | constructor |
| 79 | · intro hp |
| 80 | rw [pow_two] at hp |
| 81 | have hx := congrArg (fun q : QuadraticNormSquareQuotient.NormOne d => q.val.val.re) hp |
| 82 | have hy := congrArg (fun q : QuadraticNormSquareQuotient.NormOne d => q.val.val.im) hp |
| 83 | rw [normOne_mul_im] at hy |
| 84 | change p.val.val.re * p.val.val.re + d * p.val.val.im * p.val.val.im = 1 at hx |
| 85 | change p.val.val.re * p.val.val.im + p.val.val.im * p.val.val.re = 0 at hy |
| 86 | have hxy : p.val.val.re * p.val.val.im = 0 := by linear_combination (1 / 2 : k) * hy |
| 87 | have hy0 : p.val.val.im = 0 := by |
| 88 | rcases mul_eq_zero.mp hxy with hx0 | hy0 |
| 89 | · exfalso |
| 90 | have hn := QuadraticNormChart.normOne_identity d p |
| 91 | rw [hx0] at hx hn |
| 92 | have he : (2 : k) = 0 := by linear_combination -hx - hn |
| 93 | exact (by norm_num : (2 : k) ≠ 0) he |
| 94 | · exact hy0 |
| 95 | have hx2 : p.val.val.re ^ 2 = 1 := by |
| 96 | simpa only [hy0, zero_pow two_ne_zero, mul_zero, sub_zero] using QuadraticNormChart.normOne_identity d p |
| 97 | rcases _root_.sq_eq_one_iff.mp hx2 with hx1 | hx1 |
| 98 | · exact Or.inl (QuadraticNormChart.normOne_ext d hx1 hy0) |
| 99 | · exact Or.inr (QuadraticNormChart.normOne_ext d hx1 hy0) |
| 100 | · rintro (rfl | rfl) |
| 101 | · exact one_pow 2 |
| 102 | · apply QuadraticNormChart.normOne_ext |
| 103 | · rw [pow_two, normOne_mul_re] |
| 104 | change (-1 : k) * (-1) + d * 0 * 0 = 1 |
| 105 | ring |
| 106 | · rw [pow_two, normOne_mul_im] |
| 107 | change (-1 : k) * 0 + 0 * (-1) = 0 |
| 108 | ring |
| 109 | |
| 110 | theorem one_add_mul_norm_eq_one |
| 111 | {k : Type*} [NormedField k] [IsUltrametricDist k] (d t u : k) |
| 112 | (r : ℝ) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) (ht : ‖t‖ < r) (hu : ‖u‖ < r) : |
| 113 | ‖1 + d * t * u‖ = 1 := by |
| 114 | have hp : ‖d * t * u‖ < ‖(1 : k)‖ := by |
| 115 | rw [norm_mul, norm_mul, norm_one] |
| 116 | calc |
| 117 | ‖d‖ * ‖t‖ * ‖u‖ ≤ (‖d‖ * r) * ‖u‖ := |
| 118 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left ht.le (norm_nonneg d)) (norm_nonneg u) |
| 119 | _ ≤ 1 * ‖u‖ := mul_le_mul_of_nonneg_right hdr (norm_nonneg u) |
| 120 | _ < 1 := by simpa only [one_mul] using hu.trans_le hr1 |
| 121 | rw [IsUltrametricDist.norm_add_eq_max_of_norm_ne_norm hp.ne', max_eq_left hp.le, norm_one] |
| 122 | |
| 123 | theorem norm_product_coordinate_le |
| 124 | {k : Type*} [NormedField k] [IsUltrametricDist k] (d t u : k) |
| 125 | (r : ℝ) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) (ht : ‖t‖ < r) (hu : ‖u‖ < r) : |
| 126 | ‖(t + u) / (1 + d * t * u)‖ ≤ max ‖t‖ ‖u‖ := by |
| 127 | rw [norm_div, one_add_mul_norm_eq_one d t u r hr1 hdr ht hu, div_one] |
| 128 | exact IsUltrametricDist.norm_add_le_max t u |
| 129 | |
| 130 | end RepresentationTheory.Theta.Adelic.QuadraticNormOperations |
| 131 | |
| 132 | namespace RepresentationTheory.Theta.Adelic.QuadraticNormOperations.Small |
| 133 | |
| 134 | /-! Small open subgroups of a general quadratic norm-one group. Their |
| 135 | coordinate radius explicitly controls the quadratic coefficient. -/ |
| 136 | |
| 137 | open scoped _root_.Topology |
| 138 | |
| 139 | open Set _root_.Metric Filter |
| 140 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticNormSquareQuotient OAI.RepresentationTheory.Theta.Adelic.QuadraticNormChart.Compact |
| 141 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticNormChart OAI.RepresentationTheory.Theta.Adelic.QuadraticNormOperations |
| 142 | |
| 143 | variable {k : Type*} [NormedField k] [IsUltrametricDist k] |
| 144 | |
| 145 | def normSmallSubgroup (d : k) (hns : ¬ IsSquare d) |
| 146 | (r : ℝ) (hr : 0 < r) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) : Subgroup (QuadraticNormSquareQuotient.NormOne d) where |
| 147 | carrier := {p | ∃ t : k, ‖t‖ < r ∧ QuadraticNormChart.normChart d hns t = p} |
| 148 | one_mem' := ⟨0, by simpa using hr, QuadraticNormChart.normChart_zero d hns⟩ |
| 149 | mul_mem' := by |
| 150 | rintro p q ⟨t, ht, rfl⟩ ⟨u, hu, rfl⟩ |
| 151 | have hn := one_add_mul_norm_eq_one d t u r hr1 hdr ht hu |
| 152 | have hd : 1 + d * t * u ≠ 0 := by intro he; simp [he] at hn |
| 153 | refine ⟨(t + u) / (1 + d * t * u), ?_, (normChart_mul d hns t u hd).symm⟩ |
| 154 | exact (norm_product_coordinate_le d t u r hr1 hdr ht hu).trans_lt (max_lt ht hu) |
| 155 | inv_mem' := by |
| 156 | rintro p ⟨t, ht, rfl⟩ |
| 157 | exact ⟨-t, by simpa only [norm_neg] using ht, (normChart_inv d hns t).symm⟩ |
| 158 | |
| 159 | theorem mem_normSmallSubgroup_iff [CharZero k] |
| 160 | (d : k) (hns : ¬ IsSquare d) (r : ℝ) (hr : 0 < r) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) |
| 161 | (p : QuadraticNormSquareQuotient.NormOne d) : p ∈ normSmallSubgroup d hns r hr hr1 hdr ↔ |
| 162 | p ≠ QuadraticNormChart.minusOne d ∧ ‖QuadraticNormChart.normCoordinate d p‖ < r := by |
| 163 | constructor |
| 164 | · rintro ⟨t, ht, rfl⟩ |
| 165 | exact ⟨QuadraticNormChart.normChart_ne_minusOne d hns t, by simpa only [QuadraticNormChart.normCoordinate_chart] using ht⟩ |
| 166 | · rintro ⟨hp, ht⟩ |
| 167 | exact ⟨QuadraticNormChart.normCoordinate d p, ht, QuadraticNormChart.normChart_coordinate d hns p hp⟩ |
| 168 | |
| 169 | theorem normSmallSubgroup_isOpen [CharZero k] |
| 170 | (d : k) (hns : ¬ IsSquare d) (r : ℝ) (hr : 0 < r) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) : |
| 171 | IsOpen (normSmallSubgroup d hns r hr hr1 hdr : Set (QuadraticNormSquareQuotient.NormOne d)) := by |
| 172 | apply isOpen_iff_mem_nhds.mpr |
| 173 | intro p hp |
| 174 | obtain ⟨hpne, hpn⟩ := (mem_normSmallSubgroup_iff d hns r hr hr1 hdr p).mp hp |
| 175 | have hne : {q : QuadraticNormSquareQuotient.NormOne d | q ≠ QuadraticNormChart.minusOne d} ∈ 𝓝 p := isOpen_ne.mem_nhds hpne |
| 176 | have hnorm : {q : QuadraticNormSquareQuotient.NormOne d | ‖QuadraticNormChart.normCoordinate d q‖ < r} ∈ 𝓝 p := |
| 177 | (QuadraticNormChart.normCoordinate_continuousAt d hns p hpne).norm.preimage_mem_nhds (isOpen_Iio.mem_nhds hpn) |
| 178 | exact Filter.mem_of_superset (Filter.inter_mem hne hnorm) fun q hq => |
| 179 | (mem_normSmallSubgroup_iff d hns r hr hr1 hdr q).mpr hq |
| 180 | |
| 181 | theorem normSmallSubgroup_no_two_torsion [CharZero k] |
| 182 | (d : k) (hns : ¬ IsSquare d) (r : ℝ) (hr : 0 < r) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) |
| 183 | (p : QuadraticNormSquareQuotient.NormOne d) (hp : p ∈ normSmallSubgroup d hns r hr hr1 hdr) (hp2 : p ^ 2 = 1) : p = 1 := by |
| 184 | rcases (normOne_sq_eq_one_iff d p).mp hp2 with hp1 | hpm |
| 185 | · exact hp1 |
| 186 | · exact ((mem_normSmallSubgroup_iff d hns r hr hr1 hdr p).mp hp).1 hpm |>.elim |
| 187 | |
| 188 | def normSmallChart [CharZero k] |
| 189 | (d : k) (hns : ¬ IsSquare d) (r : ℝ) (hr : 0 < r) (hr1 : r ≤ 1) (hdr : ‖d‖ * r ≤ 1) : |
| 190 | Metric.ball (0 : k) r ≃ normSmallSubgroup d hns r hr hr1 hdr where |
| 191 | toFun t := ⟨QuadraticNormChart.normChart d hns t.val, t.val, |
| 192 | by simpa only [Metric.mem_ball, dist_zero_right] using t.property, rfl⟩ |
| 193 | invFun p := ⟨QuadraticNormChart.normCoordinate d p.val, by |
| 194 | simpa only [Metric.mem_ball, dist_zero_right] using |
| 195 | ((mem_normSmallSubgroup_iff d hns r hr hr1 hdr p.val).mp p.property).2⟩ |
| 196 | left_inv t := by apply Subtype.ext; exact QuadraticNormChart.normCoordinate_chart d hns t.val |
| 197 | right_inv p := by |
| 198 | apply Subtype.ext |
| 199 | exact QuadraticNormChart.normChart_coordinate d hns p.val |
| 200 | ((mem_normSmallSubgroup_iff d hns r hr hr1 hdr p.val).mp p.property).1 |
| 201 | |
| 202 | omit [IsUltrametricDist k] in |
| 203 | theorem normOne_square_kernel_card [CharZero k] (d : k) : |
| 204 | Nat.card (powMonoidHom 2 : QuadraticNormSquareQuotient.NormOne d →* QuadraticNormSquareQuotient.NormOne d).ker = 2 := by |
| 205 | apply Weil.Local.SquareIndexTools.Construction.square_kernel_card_two (QuadraticNormChart.minusOne d) |
| 206 | · intro he |
| 207 | have hh : (-1 : k) = 1 := congrArg (fun p : QuadraticNormSquareQuotient.NormOne d => p.val.val.re) he |
| 208 | norm_num at hh |
| 209 | · exact normOne_sq_eq_one_iff d |
| 210 | |
| 211 | end RepresentationTheory.Theta.Adelic.QuadraticNormOperations.Small |
| 212 | |
| 213 | end |
| 214 | |
| 215 | end OAI |