AFTD Auto-Formalizing Theoretical Domains

ghz_pauli_coeff

def

For an orthonormal frame e of R^3 and index mu in {0, 1, 2, 3}, the Pauli coefficients of A_mu are given by A_0 = I (coefficient 1 at index 0) and A_i = e_{i-1} . sigma for i in {1, 2, 3}.

Statement

def ghz_pauli_coeff (e : Matrix (Fin 3) (Fin 3) ℝ) (μ : Fin 4) (idx : Fin 4) : ℝ
Defined in
arXiv:2610.35838 Sec. III.2
Verified
31 Oct 2026
Axioms
none listed
Used by 5
  • ghz_closed_network_lambda_le_twoFor every parameter alpha in R, all orthonormal frames e, f in O(3), and all setting indices mu, nu, mu', nu' in {0, 1, 2, 3}, the…
  • ghz_network_lambda_standard_frameFor the generalized GHZ state with parameter alpha, the identity frames e = I and f = I at indices (3, 0) and (1, 1) satisfy…
  • ghz_correlation_vectorFor parameter alpha in R, orthonormal frames e, f of R^3, and indices mu, nu in {0, 1, 2, 3}, the correlation vector tau_{mu nu} has…
  • ghz_network_lambda_at_pi_div_four_leFor the maximally entangled state parameter alpha = pi/4, all orthonormal frames e, f in O(3), and all setting indices mu, nu, mu', nu' in…
  • ghz_standard_frame_lambda_leFor the generalized GHZ state with parameter alpha and standard identity frames e = 1 and f = 1, the two-copy closed-network quantity…

Read back from the Lean

ghz_pauli_coeff is a function that takes a $3 \times 3$ real matrix e and two indices μ, idx : Fin 4, and returns a real number defined piecewise: - If μ = 0 and idx = 0, it returns 1. - If μ = 0 and idx ≠ 0, it returns 0. - If μ ≠ 0 and idx = 0, it returns 0. - If μ ≠ 0 and idx ≠ 0, it returns the entry of e at row μ.val - 1 and column idx.val - 1 (viewed as elements of Fin 3). Equivalently, it forms a $4 \times 4$ matrix by placing $1$ at index $(0, 0)$, zeros along the rest of row $0$ and column $0$, and embedding the $3 \times 3$ matrix e into the submatrix indexed by $\{1, 2, 3\} \times \{1, 2, 3\}$.

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 expansion coefficients in the Pauli basis of the measurement operator A_mu for frame e. -/
def ghz_pauli_coeff (e : Matrix (Fin 3) (Fin 3) ℝ) (μ : Fin 4) (idx : Fin 4) : ℝ :=
  if μ = 0 then (if idx = 0 then 1 else 0)
  else if idx = 0 then 0
  else e ⟨μ.val - 1, by omega⟩ ⟨idx.val - 1, by omega⟩
See it in the graphDiscuss this resultChallenge it