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.OperatorQRDiagonalTranslation |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRUnipotentTranslation |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRVal |
| 4 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Compact.TriangularConjugates |
| 5 | |
| 6 | /-! # QR Commuting Diagonal Scaling -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.QRCommutingDiagonalScaling.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! A diagonal commuting with the unipotent QR factor leaves that |
| 15 | factor unchanged under right scaling. -/ |
| 16 | |
| 17 | theorem operatorQRUnipotent_right_diagonal_of_commute |
| 18 | {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 19 | {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g a : (L →L[ℝ] L)ˣ) |
| 20 | (d : Fin m → ℝ) (hd : ∀ i, 0 < d i) |
| 21 | (ha : ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis a.val = Matrix.diagonal d) |
| 22 | (hc : Commute (OperatorQRVal.Construction.operatorQRUnipotentMatrix b g) (Matrix.diagonal d)) : |
| 23 | OperatorQRVal.Construction.operatorQRUnipotentMatrix b (g * a) = OperatorQRVal.Construction.operatorQRUnipotentMatrix b g := by |
| 24 | rw [(OperatorQRDiagonalTranslation.Construction.operatorQR_right_diagonal b g a d hd ha).2.2, mul_assoc, hc.eq, ← mul_assoc, |
| 25 | Matrix.diagonal_mul_diagonal] |
| 26 | have he : Matrix.diagonal (fun i => (d i)⁻¹ * d i) = (1 : Matrix (Fin m) (Fin m) ℝ) := by |
| 27 | simp only [inv_mul_cancel₀ (ne_of_gt (hd _)), Matrix.diagonal_one] |
| 28 | rw [he, one_mul] |
| 29 | |
| 30 | theorem operatorQRUnipotentUnit_right_diagonal_unipotent |
| 31 | {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 32 | {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g a n : (L →L[ℝ] L)ˣ) |
| 33 | (d : Fin m → ℝ) (hd : ∀ i, 0 < d i) |
| 34 | (ha : ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis a.val = Matrix.diagonal d) |
| 35 | (hc : Commute (OperatorQRVal.Construction.operatorQRUnipotentMatrix b g) (Matrix.diagonal d)) |
| 36 | (hn : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular (ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis n.val)) : |
| 37 | OperatorQRVal.Construction.operatorQRUnipotentUnit b (g * a * n) = |
| 38 | OperatorQRVal.Construction.operatorQRUnipotentUnit b g * ContinuousEndMatrixEquiv.Construction.continuousEndMatrixUnitsEquiv b.toBasis n := by |
| 39 | apply Units.ext |
| 40 | change (OperatorQRVal.Construction.operatorQRUnipotentUnit b (g * a * n)).val = |
| 41 | (OperatorQRVal.Construction.operatorQRUnipotentUnit b g).val * ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis n.val |
| 42 | rw [OperatorQRVal.Construction.operatorQRUnipotentUnit_val, OperatorQRVal.Construction.operatorQRUnipotentUnit_val, |
| 43 | (OperatorQRUnipotentTranslation.Construction.operatorQR_right_unipotent b (g * a) n hn).2.2, |
| 44 | operatorQRUnipotent_right_diagonal_of_commute b g a d hd ha hc] |
| 45 | |
| 46 | end |
| 47 | |
| 48 | /-! Compact factors give a uniform unipotent QR bound after every |
| 49 | positive diagonal scaling that commutes with the core QR factor. -/ |
| 50 | |
| 51 | open scoped Pointwise |
| 52 | |
| 53 | theorem operatorQR_compact_commuting_scaling_bound |
| 54 | {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 55 | {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 56 | (C N : Set (L →L[ℝ] L)ˣ) (hC : IsCompact C) (hN : IsCompact N) |
| 57 | (htri : ∀ n ∈ N, UpperUnitriangularMatrices.Construction.IsUpperUnitriangular (ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis n.val)) : |
| 58 | ∃ c : ℝ, 0 ≤ c ∧ ∀ g ∈ C, ∀ n ∈ N, ∀ a : (L →L[ℝ] L)ˣ, ∀ d : Fin m → ℝ, |
| 59 | (∀ i, 0 < d i) → ContinuousOperatorExponentialDeterminant.Construction.continuousEndMatrix b.toBasis a.val = Matrix.diagonal d → |
| 60 | Commute (OperatorQRVal.Construction.operatorQRUnipotentMatrix b g) (Matrix.diagonal d) → |
| 61 | ∀ i j, |OperatorQRVal.Construction.operatorQRUnipotentMatrix b (g * a * n) i j| ≤ c := by |
| 62 | let S := (OperatorQRVal.Construction.operatorQRUnipotentUnit b '' C) * (ContinuousEndMatrixEquiv.Construction.continuousEndMatrixUnitsEquiv b.toBasis '' N) |
| 63 | have hS : IsCompact S := |
| 64 | (hC.image (OperatorQRVal.Construction.operatorQRUnipotentUnit_continuous b)).mul |
| 65 | (hN.image (ContinuousEndMatrixEquiv.Construction.continuousEndMatrixUnitsEquiv b.toBasis).continuous) |
| 66 | obtain ⟨c, hc, hb⟩ := Compact.TriangularConjugates.Construction.compact_matrix_unit_entries_bound S hS |
| 67 | refine ⟨c, hc, fun g hg n hn a d hd ha hcomm i j => ?_⟩ |
| 68 | have hs : OperatorQRVal.Construction.operatorQRUnipotentUnit b (g * a * n) ∈ S := by |
| 69 | rw [operatorQRUnipotentUnit_right_diagonal_unipotent b g a n d hd ha hcomm (htri n hn)] |
| 70 | exact Set.mem_mul.mpr ⟨_, ⟨g, hg, rfl⟩, _, ⟨n, hn, rfl⟩, rfl⟩ |
| 71 | simpa only [OperatorQRVal.Construction.operatorQRUnipotentUnit_val] using hb _ hs i j |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.ArithmeticGroups.Lattices.QRCommutingDiagonalScaling.Construction |