AFTD Auto-Formalizing Theoretical Domains

qubit_plane_distance

deforiginal

The normalized squared distance of a family of Hermitian operators J_j to an embedded qubit plane Q, given by (sum_j ||J_j - Proj_E(J_j)||_F^2) / W.

Statement

noncomputable def qubit_plane_distance {ι : Type*} [Fintype ι] {d : ℕ}
    (J : ι → Matrix (Fin d) (Fin d) ℂ) (W : ℝ) (Q : EmbeddedQubitPlane d) : ℝ
Related work
arXiv:2610.37187
Verified
15 Nov 2026
Axioms
none listed
Built on 1
  • EmbeddedQubitPlaneAn embedded qubit plane in dimension d consists of a rank-two orthogonal projector P and an orthonormal pair E1, E2 of traceless Hermitian…
Used by 1
  • qubit_plane_infimum_distanceThe infimum distance D of a family of Hermitian jump operators J_j to any embedded qubit plane, normalized by W.

Read back from the Lean

qubit_plane_distance defines a real number given a finite index type ι, a dimension d : ℕ, a family of d × d complex matrices J : ι → Matrix (Fin d) (Fin d) ℂ, a real number W, and an embedded qubit plane Q : EmbeddedQubitPlane d. The value is: $$ \frac{1}{W} \sum_{j : ι} \left( \operatorname{Re}(\operatorname{tr}((J j)^2)) - (\operatorname{Re}(\operatorname{tr}(J j \cdot Q.E₁)))^2 - (\operatorname{Re}(\operatorname{tr}(J j \cdot Q.E₂)))^2 \right) $$

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The normalized Hilbert-Schmidt distance sum_j ||J_j - Proj_E(J_j)||_F^2 / W to an embedded qubit plane. -/
noncomputable def qubit_plane_distance {ι : Type*} [Fintype ι] {d : ℕ}
    (J : ι → Matrix (Fin d) (Fin d) ℂ) (W : ℝ) (Q : EmbeddedQubitPlane d) : ℝ :=
  (∑ j, ((Matrix.trace (J j * J j)).re -
    ((Matrix.trace (J j * Q.E₁)).re) ^ 2 -
    ((Matrix.trace (J j * Q.E₂)).re) ^ 2)) / W
See it in the graphDiscuss this resultChallenge it