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.OperatorQRVal |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixKANUniqueness |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.UpperDiagonalConjugation |
| 4 | |
| 5 | /-! # Operator QR Diagonal Translation -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRDiagonalTranslation.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The Gram--Schmidt QR factors agree with every positive-diagonal |
| 14 | KAN factorization of the same operator. -/ |
| 15 | |
| 16 | theorem operatorQR_kan_unique |
| 17 | {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 18 | {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) |
| 19 | (K U : Matrix (Fin m) (Fin m) ℝ) (a : Fin m → ℝ) |
| 20 | (hK : K ∈ Matrix.orthogonalGroup (Fin m) ℝ) (ha : ∀ i, 0 < a i) |
| 21 | (hU : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular U) (he : ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis g.val = K * Matrix.diagonal a * U) : |
| 22 | OperatorQRVal.Construction.operatorQRCompactMatrix b g = K ∧ OperatorQRBasis.Construction.operatorQRDiagonal b g = a ∧ OperatorQRVal.Construction.operatorQRUnipotentMatrix b g = U := |
| 23 | MatrixKANUniqueness.Construction.matrix_kan_factorization_unique _ K _ U _ a (OperatorQRVal.Construction.operatorQRCompactMatrix_orthogonal b g) hK |
| 24 | (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g) ha (OperatorQRVal.Construction.operatorQRUnipotentMatrix_unitriangular b g) hU |
| 25 | ((OperatorQRVal.Construction.operatorQR_kan_factorization b g).symm.trans he) |
| 26 | |
| 27 | end |
| 28 | |
| 29 | /-! Right multiplication by a positive diagonal scales the QR |
| 30 | diagonal and conjugates its unipotent factor. -/ |
| 31 | |
| 32 | open scoped Classical |
| 33 | |
| 34 | theorem operatorQR_right_diagonal |
| 35 | {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 36 | {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g a : (L →L[ℝ] L)ˣ) |
| 37 | (d : Fin m → ℝ) (hd : ∀ i, 0 < d i) |
| 38 | (ha : ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis a.val = Matrix.diagonal d) : |
| 39 | OperatorQRVal.Construction.operatorQRCompactMatrix b (g * a) = OperatorQRVal.Construction.operatorQRCompactMatrix b g ∧ |
| 40 | OperatorQRBasis.Construction.operatorQRDiagonal b (g * a) = (fun i => OperatorQRBasis.Construction.operatorQRDiagonal b g i * d i) ∧ |
| 41 | OperatorQRVal.Construction.operatorQRUnipotentMatrix b (g * a) = Matrix.diagonal (fun i => (d i)⁻¹) * |
| 42 | OperatorQRVal.Construction.operatorQRUnipotentMatrix b g * Matrix.diagonal d := by |
| 43 | let D := Matrix.diagonal (fun i => OperatorQRBasis.Construction.operatorQRDiagonal b g i * d i) |
| 44 | have hDD : D * Matrix.diagonal (fun i => (d i)⁻¹) = Matrix.diagonal (OperatorQRBasis.Construction.operatorQRDiagonal b g) := by |
| 45 | rw [Matrix.diagonal_mul_diagonal] |
| 46 | congr 1 |
| 47 | funext i |
| 48 | rw [mul_assoc, mul_inv_cancel₀ (ne_of_gt (hd i)), mul_one] |
| 49 | have hU : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular (Matrix.diagonal (fun i => (d i)⁻¹) * |
| 50 | OperatorQRVal.Construction.operatorQRUnipotentMatrix b g * Matrix.diagonal d) := by |
| 51 | simpa only [inv_inv] using (OperatorQRVal.Construction.operatorQRUnipotentMatrix_unitriangular b g).diagonal_conjugation |
| 52 | (fun i => (d i)⁻¹) (fun i => inv_ne_zero (ne_of_gt (hd i))) |
| 53 | apply operatorQR_kan_unique b (g * a) (OperatorQRVal.Construction.operatorQRCompactMatrix b g) _ _ |
| 54 | (OperatorQRVal.Construction.operatorQRCompactMatrix_orthogonal b g) |
| 55 | (fun i => mul_pos (OperatorQRBasis.Construction.operatorQRDiagonal_pos b g i) (hd i)) hU |
| 56 | change ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis (g.val * a.val) = _ |
| 57 | rw [map_mul, ha, OperatorQRVal.Construction.operatorQR_kan_factorization b g] |
| 58 | change OperatorQRVal.Construction.operatorQRCompactMatrix b g * Matrix.diagonal (OperatorQRBasis.Construction.operatorQRDiagonal b g) * |
| 59 | OperatorQRVal.Construction.operatorQRUnipotentMatrix b g * Matrix.diagonal d = |
| 60 | OperatorQRVal.Construction.operatorQRCompactMatrix b g * D * |
| 61 | (Matrix.diagonal (fun i => (d i)⁻¹) * OperatorQRVal.Construction.operatorQRUnipotentMatrix b g * Matrix.diagonal d) |
| 62 | rw [← hDD] |
| 63 | simp only [mul_assoc] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRDiagonalTranslation.Construction |