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.NumberTheory.Quaternion.Arithmetic.Norm |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.OrthogonalVector |
| 3 | |
| 4 | /-! # Conjugation Quaternion -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.ConjugationQuaternion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Every element of a nondegenerate quaternion algebra is conjugate |
| 13 | to its canonical conjugate by an explicitly constructed unit. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Quaternion |
| 16 | open QuaternionAlgebra |
| 17 | |
| 18 | variable {F : Type*} [Field F] [CharZero F] |
| 19 | |
| 20 | theorem quaternion_exists_star_intertwining_unit (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) |
| 21 | (q : ℍ[F,a,b]) : ∃ v : ℍ[F,a,b]ˣ, v.val * q = star q * v.val := by |
| 22 | obtain ⟨s, t, u, horth, hnorm⟩ := OrthogonalVector.quaternion_exists_orthogonal_nonzero_norm a b ha hb q.imI q.imJ q.imK |
| 23 | let w : ℍ[F,a,b] := ⟨0, s, t, u⟩ |
| 24 | have hw : Norm.quaternionNorm a b w ≠ 0 := by |
| 25 | simpa only [Norm.quaternionNorm_formula, w, zero_pow (by omega : 2 ≠ 0), zero_sub, neg_mul] using hnorm |
| 26 | refine ⟨Norm.quaternionUnitOfNormNeZero a b w hw, ?_⟩ |
| 27 | change w * q = star q * w |
| 28 | apply QuaternionAlgebra.ext |
| 29 | · simp only [w, re_mul, re_star, imI_star, imJ_star, imK_star] |
| 30 | linear_combination 2 * horth |
| 31 | · simp [w] |
| 32 | ring |
| 33 | · simp [w] |
| 34 | ring |
| 35 | · simp [w] |
| 36 | ring |
| 37 | |
| 38 | omit [CharZero F] in |
| 39 | theorem quaternionNorm_add_one (a b : F) (q : ℍ[F,a,b]) : |
| 40 | Norm.quaternionNorm a b (q + 1) = Norm.quaternionNorm a b q + 2 * q.re + 1 := by |
| 41 | simp only [Norm.quaternionNorm_formula, re_add, imI_add, imJ_add, imK_add, |
| 42 | re_one, imI_one, imJ_one, imK_one] |
| 43 | ring |
| 44 | |
| 45 | omit [CharZero F] in |
| 46 | theorem quaternionNorm_neg (a b : F) (q : ℍ[F,a,b]) : |
| 47 | Norm.quaternionNorm a b (-q) = Norm.quaternionNorm a b q := by |
| 48 | simp only [Norm.quaternionNorm_formula, re_neg, imI_neg, imJ_neg, imK_neg, neg_sq] |
| 49 | |
| 50 | end |
| 51 | |
| 52 | section |
| 53 | |
| 54 | /-! The reduced-norm-one subgroup of a quaternion algebra is generated |
| 55 | by ambient multiplicative commutators, over any characteristic-zero |
| 56 | field. Split and division quaternion algebras are treated together. -/ |
| 57 | |
| 58 | open scoped Classical _root_.Quaternion commutatorElement |
| 59 | open QuaternionAlgebra |
| 60 | |
| 61 | theorem eq_commutator_of_intertwining {H : Type*} [Group H] {g u v : H} |
| 62 | (h : u * v = g * (v * u)) : g = ⁅u, v⁆ := by |
| 63 | calc |
| 64 | g = (u * v) * (v * u)⁻¹ := (eq_mul_inv_iff_mul_eq).mpr h.symm |
| 65 | _ = ⁅u, v⁆ := by simp only [mul_inv_rev, commutatorElement_def, mul_assoc] |
| 66 | |
| 67 | variable {F : Type*} [Field F] [CharZero F] |
| 68 | |
| 69 | theorem quaternion_norm_one_mem_commutator_of_add_one (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) |
| 70 | (q : ℍ[F,a,b]ˣ) (hq : Norm.quaternionNorm a b q.val = 1) |
| 71 | (hplus : Norm.quaternionNorm a b (q.val + 1) ≠ 0) : q ∈ commutator ℍ[F,a,b]ˣ := by |
| 72 | let u := Norm.quaternionUnitOfNormNeZero a b (q.val + 1) hplus |
| 73 | obtain ⟨v, hv⟩ := quaternion_exists_star_intertwining_unit a b ha hb (q.val + 1) |
| 74 | have hqstar : q.val * star (q.val + 1) = q.val + 1 := by |
| 75 | rw [star_add, star_one, mul_add, Norm.quaternion_mul_star, hq, coe_one, mul_one, add_comm] |
| 76 | have he : u * v = q * (v * u) := by |
| 77 | apply Units.ext |
| 78 | change (q.val + 1) * v.val = q.val * (v.val * (q.val + 1)) |
| 79 | rw [hv, ← mul_assoc, hqstar] |
| 80 | rw [eq_commutator_of_intertwining he] |
| 81 | exact Subgroup.commutator_mem_commutator (Subgroup.mem_top u) (Subgroup.mem_top v) |
| 82 | |
| 83 | omit [CharZero F] in |
| 84 | theorem quaternion_neg_one_mem_commutator (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 85 | (-1 : ℍ[F,a,b]ˣ) ∈ commutator ℍ[F,a,b]ˣ := by |
| 86 | let x : ℍ[F,a,b] := ⟨0, 1, 0, 0⟩ |
| 87 | let y : ℍ[F,a,b] := ⟨0, 0, 1, 0⟩ |
| 88 | have hx : Norm.quaternionNorm a b x ≠ 0 := by |
| 89 | simpa [Norm.quaternionNorm_formula, x] using neg_ne_zero.mpr ha |
| 90 | have hy : Norm.quaternionNorm a b y ≠ 0 := by |
| 91 | simpa [Norm.quaternionNorm_formula, y] using neg_ne_zero.mpr hb |
| 92 | let u := Norm.quaternionUnitOfNormNeZero a b x hx |
| 93 | let v := Norm.quaternionUnitOfNormNeZero a b y hy |
| 94 | have he : u * v = (-1 : ℍ[F,a,b]ˣ) * (v * u) := by |
| 95 | apply Units.ext |
| 96 | change x * y = (-1 : ℍ[F,a,b]) * (y * x) |
| 97 | apply QuaternionAlgebra.ext <;> simp [x, y] |
| 98 | rw [eq_commutator_of_intertwining he] |
| 99 | exact Subgroup.commutator_mem_commutator (Subgroup.mem_top u) (Subgroup.mem_top v) |
| 100 | |
| 101 | theorem quaternion_norm_one_mem_commutator (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) |
| 102 | (q : ℍ[F,a,b]ˣ) (hq : Norm.quaternionNorm a b q.val = 1) : q ∈ commutator ℍ[F,a,b]ˣ := by |
| 103 | by_cases hplus : Norm.quaternionNorm a b (q.val + 1) = 0 |
| 104 | · have hn : Norm.quaternionNorm a b (-q).val = 1 := by |
| 105 | change Norm.quaternionNorm a b (-q.val) = 1 |
| 106 | rw [quaternionNorm_neg, hq] |
| 107 | have hnplus : Norm.quaternionNorm a b ((-q).val + 1) ≠ 0 := by |
| 108 | change Norm.quaternionNorm a b (-q.val + 1) ≠ 0 |
| 109 | have h₁ := quaternionNorm_add_one a b q.val |
| 110 | have h₂ := quaternionNorm_add_one a b (-q.val) |
| 111 | rw [hplus, hq] at h₁ |
| 112 | rw [quaternionNorm_neg, hq, re_neg] at h₂ |
| 113 | have he : Norm.quaternionNorm a b (-q.val + 1) = 4 := by linear_combination h₁ + h₂ |
| 114 | rw [he] |
| 115 | norm_num |
| 116 | have hm := (commutator ℍ[F,a,b]ˣ).mul_mem (quaternion_neg_one_mem_commutator a b ha hb) |
| 117 | (quaternion_norm_one_mem_commutator_of_add_one a b ha hb (-q) hn hnplus) |
| 118 | simpa using hm |
| 119 | · exact quaternion_norm_one_mem_commutator_of_add_one a b ha hb q hq hplus |
| 120 | |
| 121 | theorem quaternionUnitNorm_ker_le_commutator (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 122 | (Norm.quaternionUnitNorm a b).ker ≤ commutator ℍ[F,a,b]ˣ := by |
| 123 | intro q hq |
| 124 | apply quaternion_norm_one_mem_commutator a b ha hb q |
| 125 | exact congrArg Units.val (MonoidHom.mem_ker.mp hq) |
| 126 | |
| 127 | end |
| 128 | |
| 129 | /-! Entrywise scalar extension of quaternion algebras, including |
| 130 | compatibility with reduced norm and the canonical four-element basis. -/ |
| 131 | |
| 132 | open scoped Classical _root_.Quaternion |
| 133 | open QuaternionAlgebra |
| 134 | |
| 135 | variable {F K : Type*} [Field F] [Field K] |
| 136 | |
| 137 | def quaternionCoefficientMap (ρ : F →+* K) (a b : F) : ℍ[F,a,b] →+* ℍ[K,ρ a,ρ b] where |
| 138 | toFun q := ⟨ρ q.re, ρ q.imI, ρ q.imJ, ρ q.imK⟩ |
| 139 | map_one' := by ext <;> simp |
| 140 | map_zero' := by ext <;> simp |
| 141 | map_add' x y := by ext <;> simp |
| 142 | map_mul' x y := by ext <;> simp |
| 143 | |
| 144 | theorem quaternionCoefficientMap_injective (ρ : F →+* K) (a b : F) : |
| 145 | Function.Injective (quaternionCoefficientMap ρ a b) := by |
| 146 | intro q r h |
| 147 | apply QuaternionAlgebra.ext |
| 148 | · exact ρ.injective (congrArg QuaternionAlgebra.re h) |
| 149 | · exact ρ.injective (congrArg QuaternionAlgebra.imI h) |
| 150 | · exact ρ.injective (congrArg QuaternionAlgebra.imJ h) |
| 151 | · exact ρ.injective (congrArg QuaternionAlgebra.imK h) |
| 152 | |
| 153 | theorem quaternionCoefficientMap_norm (ρ : F →+* K) (a b : F) (q : ℍ[F,a,b]) : |
| 154 | Norm.quaternionNorm (ρ a) (ρ b) (quaternionCoefficientMap ρ a b q) = ρ (Norm.quaternionNorm a b q) := by |
| 155 | simp [Norm.quaternionNorm_formula, quaternionCoefficientMap] |
| 156 | |
| 157 | theorem quaternionCoefficientMap_basis (ρ : F →+* K) (a b : F) (j : Fin 4) : |
| 158 | quaternionCoefficientMap ρ a b (basisOneIJK a 0 b j) = basisOneIJK (ρ a) 0 (ρ b) j := by |
| 159 | simp only [basisOneIJK, Module.Basis.coe_ofEquivFun] |
| 160 | apply QuaternionAlgebra.ext <;> |
| 161 | simp [quaternionCoefficientMap, coe_linearEquivTuple_symm, equivTuple, Pi.single_apply] |
| 162 | |
| 163 | variable [Algebra F K] |
| 164 | |
| 165 | def quaternionCoefficientAlgHom (a b : F) : |
| 166 | ℍ[F,a,b] →ₐ[F] ℍ[K,algebraMap F K a,algebraMap F K b] where |
| 167 | __ := quaternionCoefficientMap (algebraMap F K) a b |
| 168 | commutes' x := by |
| 169 | change (⟨algebraMap F K x, algebraMap F K 0, algebraMap F K 0, algebraMap F K 0⟩ : |
| 170 | ℍ[K,algebraMap F K a,algebraMap F K b]) = ⟨algebraMap F K x, 0, 0, 0⟩ |
| 171 | simp |
| 172 | |
| 173 | end |
| 174 | |
| 175 | end OAI.NumberTheory.Quaternion.Arithmetic.ConjugationQuaternion |