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.ArithmeticGroups.Lattices.OperatorQRBasis |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Positive.TriangularMatrices |
| 3 | |
| 4 | /-! # Operator QR Val -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRVal.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Continuous compact and upper triangular factors of an invertible |
| 13 | operator, expressed in the chosen orthonormal basis. -/ |
| 14 | |
| 15 | open InnerProductSpace |
| 16 | open scoped Classical |
| 17 | |
| 18 | variable {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 19 | |
| 20 | def operatorQRCompactMatrix {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 21 | Matrix (Fin m) (Fin m) ℝ := b.toBasis.toMatrix (OperatorQRBasis.Construction.operatorQRBasis b g) |
| 22 | |
| 23 | def operatorQRTriangularMatrix {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 24 | Matrix (Fin m) (Fin m) ℝ := (OperatorQRBasis.Construction.operatorQRBasis b g).toBasis.toMatrix (fun i => g.val (b i)) |
| 25 | |
| 26 | theorem operatorQRCompactMatrix_entry {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 27 | (g : (L →L[ℝ] L)ˣ) (i j : Fin m) : |
| 28 | operatorQRCompactMatrix b g i j = inner ℝ (b i) (OperatorQRBasis.Construction.operatorQRBasis b g j) := by |
| 29 | change b.repr (OperatorQRBasis.Construction.operatorQRBasis b g j) i = _ |
| 30 | exact b.repr_apply_apply _ _ |
| 31 | |
| 32 | theorem operatorQRTriangularMatrix_entry {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 33 | (g : (L →L[ℝ] L)ˣ) (i j : Fin m) : |
| 34 | operatorQRTriangularMatrix b g i j = inner ℝ (OperatorQRBasis.Construction.operatorQRBasis b g i) (g.val (b j)) := by |
| 35 | change (OperatorQRBasis.Construction.operatorQRBasis b g).repr (g.val (b j)) i = _ |
| 36 | exact (OperatorQRBasis.Construction.operatorQRBasis b g).repr_apply_apply _ _ |
| 37 | |
| 38 | theorem operatorQRCompactMatrix_orthogonal {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 39 | (g : (L →L[ℝ] L)ˣ) : operatorQRCompactMatrix b g ∈ Matrix.orthogonalGroup (Fin m) ℝ := |
| 40 | b.toMatrix_orthonormalBasis_mem_orthogonal (OperatorQRBasis.Construction.operatorQRBasis b g) |
| 41 | |
| 42 | theorem operatorQRTriangularMatrix_positive {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 43 | (g : (L →L[ℝ] L)ˣ) : Positive.TriangularMatrices.Construction.IsPositiveUpperTriangular (operatorQRTriangularMatrix b g) := by |
| 44 | refine ⟨gramSchmidtOrthonormalBasis_inv_isUpperTriangular |
| 45 | (Module.finrank_eq_card_basis b.toBasis) (fun i => g.val (b i)), fun i => ?_⟩ |
| 46 | rw [operatorQRTriangularMatrix_entry, OperatorQRBasis.Construction.operatorQRBasis_diagonal] |
| 47 | exact OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i |
| 48 | |
| 49 | theorem operatorQR_factorization {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 50 | (g : (L →L[ℝ] L)ˣ) : |
| 51 | ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis g.val = operatorQRCompactMatrix b g * operatorQRTriangularMatrix b g := by |
| 52 | have hM : ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis g.val = b.toBasis.toMatrix (fun i => g.val (b i)) := by |
| 53 | ext i j |
| 54 | exact LinearMap.toMatrix_apply b.toBasis b.toBasis g.val.toLinearMap i j |
| 55 | rw [hM] |
| 56 | exact (b.toBasis.toMatrix_mul_toMatrix (OperatorQRBasis.Construction.operatorQRBasis b g).toBasis (fun i => g.val (b i))).symm |
| 57 | |
| 58 | theorem operatorQRCompactMatrix_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) : |
| 59 | Continuous (operatorQRCompactMatrix b) := by |
| 60 | apply continuous_pi |
| 61 | intro i |
| 62 | apply continuous_pi |
| 63 | intro j |
| 64 | simp_rw [operatorQRCompactMatrix_entry] |
| 65 | exact continuous_const.inner (OperatorQRBasis.Construction.operatorQRBasis_continuous b j) |
| 66 | |
| 67 | theorem operatorQRTriangularMatrix_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) : |
| 68 | Continuous (operatorQRTriangularMatrix b) := by |
| 69 | apply continuous_pi |
| 70 | intro i |
| 71 | apply continuous_pi |
| 72 | intro j |
| 73 | simp_rw [operatorQRTriangularMatrix_entry] |
| 74 | exact (OperatorQRBasis.Construction.operatorQRBasis_continuous b i).inner (Units.continuous_val.clm_apply continuous_const) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | section |
| 79 | |
| 80 | /-! Splitting the positive diagonal from the triangular QR factor |
| 81 | gives continuous upper unitriangular coordinates. -/ |
| 82 | |
| 83 | open scoped Classical |
| 84 | |
| 85 | variable {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 86 | |
| 87 | def operatorQRUnipotentMatrix {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 88 | Matrix (Fin m) (Fin m) ℝ := |
| 89 | Matrix.diagonal (fun i => (OperatorQRBasis.Construction.operatorQRDiagonal b g i)⁻¹) * operatorQRTriangularMatrix b g |
| 90 | |
| 91 | theorem operatorQRUnipotentMatrix_entry {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 92 | (g : (L →L[ℝ] L)ˣ) (i j : Fin m) : |
| 93 | operatorQRUnipotentMatrix b g i j = (OperatorQRBasis.Construction.operatorQRDiagonal b g i)⁻¹ * operatorQRTriangularMatrix b g i j := |
| 94 | Matrix.diagonal_mul _ _ i j |
| 95 | |
| 96 | theorem operatorQRUnipotentMatrix_unitriangular {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 97 | (g : (L →L[ℝ] L)ˣ) : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular (operatorQRUnipotentMatrix b g) := by |
| 98 | have ht := (operatorQRTriangularMatrix_positive b g).1 |
| 99 | have hd : (Matrix.diagonal (fun i => (OperatorQRBasis.Construction.operatorQRDiagonal b g i)⁻¹)).IsUpperTriangular := |
| 100 | Matrix.blockTriangular_diagonal _ |
| 101 | refine ⟨hd.mul ht, fun i => ?_⟩ |
| 102 | rw [operatorQRUnipotentMatrix_entry, operatorQRTriangularMatrix_entry, OperatorQRBasis.Construction.operatorQRBasis_diagonal] |
| 103 | exact inv_mul_cancel₀ (ne_of_gt (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i)) |
| 104 | |
| 105 | theorem operatorQR_diagonal_unipotent {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 106 | (g : (L →L[ℝ] L)ˣ) : |
| 107 | Matrix.diagonal (OperatorQRBasis.Construction.operatorQRDiagonal b g) * operatorQRUnipotentMatrix b g = |
| 108 | operatorQRTriangularMatrix b g := by |
| 109 | ext i j |
| 110 | rw [Matrix.diagonal_mul, operatorQRUnipotentMatrix_entry, ← mul_assoc, |
| 111 | mul_inv_cancel₀ (ne_of_gt (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i)), one_mul] |
| 112 | |
| 113 | theorem operatorQR_kan_factorization {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 114 | (g : (L →L[ℝ] L)ˣ) : |
| 115 | ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis g.val = |
| 116 | operatorQRCompactMatrix b g * Matrix.diagonal (OperatorQRBasis.Construction.operatorQRDiagonal b g) * operatorQRUnipotentMatrix b g := by |
| 117 | rw [mul_assoc, operatorQR_diagonal_unipotent] |
| 118 | exact operatorQR_factorization b g |
| 119 | |
| 120 | theorem operatorQRUnipotentMatrix_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) : |
| 121 | Continuous (operatorQRUnipotentMatrix b) := by |
| 122 | apply continuous_pi |
| 123 | intro i |
| 124 | apply continuous_pi |
| 125 | intro j |
| 126 | simp_rw [operatorQRUnipotentMatrix_entry] |
| 127 | have hr : Continuous (fun g : (L →L[ℝ] L)ˣ => operatorQRTriangularMatrix b g i) := |
| 128 | (continuous_apply i).comp (operatorQRTriangularMatrix_continuous b) |
| 129 | have he : Continuous (fun g : (L →L[ℝ] L)ˣ => operatorQRTriangularMatrix b g i j) := |
| 130 | (continuous_apply j).comp hr |
| 131 | exact ((OperatorQRBasis.Construction.operatorQRDiagonal_continuous b i).inv₀ (fun g => ne_of_gt (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i))).mul |
| 132 | he |
| 133 | |
| 134 | end |
| 135 | |
| 136 | section |
| 137 | |
| 138 | /-! The logarithmic diagonal and the unipotent QR factor are |
| 139 | continuous coordinates, including the topology of the unipotent group. -/ |
| 140 | |
| 141 | open scoped Classical _root_.Matrix.Norms.Operator |
| 142 | |
| 143 | variable {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 144 | |
| 145 | def operatorQRLogDiagonal {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 146 | (g : (L →L[ℝ] L)ˣ) (i : Fin m) : ℝ := Real.log (OperatorQRBasis.Construction.operatorQRDiagonal b g i) |
| 147 | |
| 148 | omit [FiniteDimensional ℝ L] in |
| 149 | theorem operatorQRLogDiagonal_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) : |
| 150 | Continuous (operatorQRLogDiagonal b) := by |
| 151 | apply continuous_pi |
| 152 | intro i |
| 153 | exact (OperatorQRBasis.Construction.operatorQRDiagonal_continuous b i).log (fun g => ne_of_gt (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i)) |
| 154 | |
| 155 | def operatorQRUnipotentUnit {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 156 | (Matrix (Fin m) (Fin m) ℝ)ˣ := (operatorQRUnipotentMatrix_unitriangular b g).isUnit.unit |
| 157 | |
| 158 | theorem operatorQRUnipotentUnit_val {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 159 | (operatorQRUnipotentUnit b g).val = operatorQRUnipotentMatrix b g := |
| 160 | (operatorQRUnipotentMatrix_unitriangular b g).isUnit.unit_spec |
| 161 | |
| 162 | theorem operatorQRUnipotentUnit_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) : |
| 163 | Continuous (operatorQRUnipotentUnit b) := by |
| 164 | apply Units.isOpenEmbedding_val.isEmbedding.continuous_iff.mpr |
| 165 | change Continuous (fun g => (operatorQRUnipotentUnit b g).val) |
| 166 | simp_rw [operatorQRUnipotentUnit_val] |
| 167 | exact operatorQRUnipotentMatrix_continuous b |
| 168 | |
| 169 | end |
| 170 | |
| 171 | /-! Logarithmic and unipotent QR coordinates depend only on the |
| 172 | ordered input frame, so orthonormal basis changes become fixed right translations. -/ |
| 173 | |
| 174 | variable {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 175 | |
| 176 | theorem operatorQR_same_frame {m : ℕ} (b c : OrthonormalBasis (Fin m) ℝ L) |
| 177 | (g h : (L →L[ℝ] L)ˣ) (hf : ∀ i, g.val (b i) = h.val (c i)) : |
| 178 | operatorQRLogDiagonal b g = operatorQRLogDiagonal c h ∧ |
| 179 | operatorQRUnipotentMatrix b g = operatorQRUnipotentMatrix c h := by |
| 180 | have he : (fun i => g.val (b i)) = (fun i => h.val (c i)) := funext hf |
| 181 | have hd : OperatorQRBasis.Construction.operatorQRDiagonal b g = OperatorQRBasis.Construction.operatorQRDiagonal c h := by |
| 182 | unfold OperatorQRBasis.Construction.operatorQRDiagonal |
| 183 | rw [he] |
| 184 | have hB : OperatorQRBasis.Construction.operatorQRBasis b g = OperatorQRBasis.Construction.operatorQRBasis c h := by |
| 185 | unfold OperatorQRBasis.Construction.operatorQRBasis |
| 186 | rw [he] |
| 187 | have hR : operatorQRTriangularMatrix b g = operatorQRTriangularMatrix c h := by |
| 188 | ext i j |
| 189 | rw [operatorQRTriangularMatrix_entry, operatorQRTriangularMatrix_entry, hB, hf j] |
| 190 | constructor |
| 191 | · funext i |
| 192 | unfold operatorQRLogDiagonal |
| 193 | rw [hd] |
| 194 | · unfold operatorQRUnipotentMatrix |
| 195 | rw [hd, hR] |
| 196 | |
| 197 | def orthonormalBasisChangeUnit {m : ℕ} (b c : OrthonormalBasis (Fin m) ℝ L) : (L →L[ℝ] L)ˣ := |
| 198 | (b.equiv c (Equiv.refl _)).toContinuousLinearEquiv.toUnit |
| 199 | |
| 200 | omit [FiniteDimensional ℝ L] in |
| 201 | theorem orthonormalBasisChangeUnit_apply {m : ℕ} (b c : OrthonormalBasis (Fin m) ℝ L) (i : Fin m) : |
| 202 | (orthonormalBasisChangeUnit b c).val (b i) = c i := b.equiv_apply_basis c (Equiv.refl _) i |
| 203 | |
| 204 | theorem operatorQR_basis_change {m : ℕ} (b c : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 205 | operatorQRLogDiagonal c g = operatorQRLogDiagonal b (g * orthonormalBasisChangeUnit b c) ∧ |
| 206 | operatorQRUnipotentMatrix c g = operatorQRUnipotentMatrix b (g * orthonormalBasisChangeUnit b c) := by |
| 207 | apply operatorQR_same_frame c b g (g * orthonormalBasisChangeUnit b c) |
| 208 | intro i |
| 209 | change g.val (c i) = g.val ((orthonormalBasisChangeUnit b c).val (b i)) |
| 210 | rw [orthonormalBasisChangeUnit_apply] |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRVal.Construction |