AFTD Auto-Formalizing Theoretical Domains

pauliZSupport

def

The Z-support (phase) vector of a Pauli string: (pauliZSupport p) i = 1 iff p i ∈ {Y, Z}, else 0.

Statement

noncomputable def pauliZSupport {n : ℕ} (p : PauliString n) : Fin n → Fin 2
Source
step towards op_1254_cubic_hypergraph_fluctuation_mean_zero
Verified
06 Nov 2026
Axioms
none listed
Built on 2
  • PauliStringA Pauli string of length $n$ is a function $p : \mathrm{Fin}\,n \to \mathrm{PauliBasis}$.
  • PauliBasisThe four Pauli basis elements $\{I,X,Y,Z\}$, represented as an inductive type.

Lean source view module on GitHub

/-- Z-support of a Pauli string, giving the character (−1)^{z·x}. -/
noncomputable def pauliZSupport {n : ℕ} (p : PauliString n) : Fin n → Fin 2 := fun i => if p i = PauliBasis.Y ∨ p i = PauliBasis.Z then 1 else 0
See it in the graphDiscuss this resultChallenge it