Problem 02 definitions — Equality case for compressed convex functional calculus
Definitionrybin2026_p02_compressed_convex_calculusunitSquare. This is the subset of functions lying pointwise between the constant functions and ; equivalently,
JointSpectralData. For every natural number , including , a value of consists of a complex matrix , proofs of both and , and a function assigning to every a pair such that and . Here is the conjugate transpose. When , the matrices and spectral function have empty index sets, and the spectral bounds are vacuous.
JointSpectralData.operator. Given any natural number , joint spectral data with unitary matrix and spectral pairs , and a coordinate , the associated complex matrix is defined by
where each real number is regarded as a complex number and the displayed diagonal matrix has zero off-diagonal entries. For , this is the unique empty matrix.
JointSpectralData.functional. Given any natural number , joint spectral data with unitary matrix and spectral pairs , and an arbitrary total function , the associated complex matrix is defined by
with each real value regarded as complex. No continuity, measurability, boundedness, or other regularity condition is imposed on . For , the result is the unique empty matrix.
IsOrthogonalProjection. For every natural number , including , and every complex matrix , the proposition means exactly the conjunction
Thus it requires both self-adjointness and idempotence. In dimension , the unique empty matrix satisfies both equalities.
Reduces. For every natural number , including , and arbitrary complex matrices and , the proposition means exactly
This definition itself does not require to be a projection or impose any other condition on either matrix. In dimension , the equality holds automatically.
CompressionWitness. Fix any natural number , joint spectral data with unitary matrix and spectral pairs , and an arbitrary complex matrix . A compression witness consists of another joint spectral-data record with a complex matrix and pairs , satisfying and , together with the two equalities
and
The parameter is not required here to be self-adjoint, idempotent, or commuting with either matrix; the factor on both sides of each compressed operator is itself. No relationship between and is required beyond the two displayed matrix equalities. When , all indexing data are empty and both equalities are automatic.
import Mathlib
open Matrix Set
open scoped ComplexConjugate Matrix
namespace RybinAI2026.P02
/-- The square `[0,1]²`, represented as functions on a two-element type. -/
def unitSquare : Set (Fin 2 → ℝ) := Icc 0 1
/-- Simultaneous spectral data for two commuting positive contractions in finite dimension. -/
structure JointSpectralData (n : ℕ) where
unitary : Matrix (Fin n) (Fin n) ℂ
unitary_left : unitaryᴴ * unitary = 1
unitary_right : unitary * unitaryᴴ = 1
spectrum : Fin n → Fin 2 → ℝ
spectrum_mem : ∀ i, spectrum i ∈ unitSquare
/-- The operator with coordinate `c` in a simultaneous diagonalization. -/
noncomputable def JointSpectralData.operator {n : ℕ} (S : JointSpectralData n)
(c : Fin 2) : Matrix (Fin n) (Fin n) ℂ :=
S.unitary * diagonal (fun i => (S.spectrum i c : ℂ)) * S.unitaryᴴ
/-- Joint continuous functional calculus in the supplied common eigenbasis. -/
noncomputable def JointSpectralData.functional {n : ℕ} (S : JointSpectralData n)
(f : (Fin 2 → ℝ) → ℝ) : Matrix (Fin n) (Fin n) ℂ :=
S.unitary * diagonal (fun i => (f (S.spectrum i) : ℂ)) * S.unitaryᴴ
/-- A self-adjoint idempotent matrix. -/
def IsOrthogonalProjection {n : ℕ} (P : Matrix (Fin n) (Fin n) ℂ) : Prop :=
Pᴴ = P ∧ P * P = P
/-- A projection reduces an operator exactly when it commutes with it. -/
def Reduces {n : ℕ} (P X : Matrix (Fin n) (Fin n) ℂ) : Prop :=
P * X = X * P
/-- A simultaneous diagonalization of the two compressed operators. -/
structure CompressionWitness {n : ℕ} (S : JointSpectralData n)
(P : Matrix (Fin n) (Fin n) ℂ) where
compressed : JointSpectralData n
first_eq : compressed.operator 0 = P * S.operator 0 * P
second_eq : compressed.operator 1 = P * S.operator 1 * P
end RybinAI2026.P02
Read-back
What the Lean code literally says, in plain math · gpt-5.6-sol
unitSquare. This is the subset of functions lying pointwise between the constant functions and ; equivalently,
JointSpectralData. For every natural number , including , a value of consists of a complex matrix , proofs of both and , and a function assigning to every a pair such that and . Here is the conjugate transpose. When , the matrices and spectral function have empty index sets, and the spectral bounds are vacuous.
JointSpectralData.operator. Given any natural number , joint spectral data with unitary matrix and spectral pairs , and a coordinate , the associated complex matrix is defined by
where each real number is regarded as a complex number and the displayed diagonal matrix has zero off-diagonal entries. For , this is the unique empty matrix.
JointSpectralData.functional. Given any natural number , joint spectral data with unitary matrix and spectral pairs , and an arbitrary total function , the associated complex matrix is defined by
with each real value regarded as complex. No continuity, measurability, boundedness, or other regularity condition is imposed on . For , the result is the unique empty matrix.
IsOrthogonalProjection. For every natural number , including , and every complex matrix , the proposition means exactly the conjunction
Thus it requires both self-adjointness and idempotence. In dimension , the unique empty matrix satisfies both equalities.
Reduces. For every natural number , including , and arbitrary complex matrices and , the proposition means exactly
This definition itself does not require to be a projection or impose any other condition on either matrix. In dimension , the equality holds automatically.
CompressionWitness. Fix any natural number , joint spectral data with unitary matrix and spectral pairs , and an arbitrary complex matrix . A compression witness consists of another joint spectral-data record with a complex matrix and pairs , satisfying and , together with the two equalities
and
The parameter is not required here to be self-adjoint, idempotent, or commuting with either matrix; the factor on both sides of each compressed operator is itself. No relationship between and is required beyond the two displayed matrix equalities. When , all indexing data are empty and both equalities are automatic.
Confirmed by the mission captain (proposal self-audit).