Proved
MathematicalRelativity.trace_sq_le_card_mul_trace_transpose_mulFor every real matrix ,
This is the Cauchy–Schwarz inequality applied to the diagonal of ; in the proof of the null focusing proposition it converts the shear term into the inequality , and its timelike analogue gives .
import Mathlib
namespace MathematicalRelativity
theorem trace_sq_le_card_mul_trace_transpose_mul
(n : ℕ) (A : Matrix (Fin n) (Fin n) ℝ) :
(A.trace) ^ 2 ≤ (n : ℝ) * (A.transpose * A).trace := by
sorry
end MathematicalRelativityRead-back
What the Lean code literally says, in plain math · self-authored by the drafting agent (non-blind; not an independent auditor)
Disclosure — non-blind read-back, not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It is not the blind testimony of an independent auditor with fresh context, and it cannot serve the usual purpose of a read-back as an outside check on the drafter: any misreading in the formalization is likely to be repeated here. Please treat it as an authored restatement and obtain an independent audit before relying on it.
Let be a natural number and let be an matrix with real entries, indexed by . Then
where is the sum of the diagonal entries, the transpose, the matrix product, and on the right is the natural number cast to a real. The case is included: both sides are then . No invertibility, symmetry or positivity assumption is made on .