AFTD Auto-Formalizing Theoretical Domains

pauliXSupport

def

The X-support (bit-flip) vector of a Pauli string: (pauliXSupport p) i = 1 iff p i ∈ {X, Y}, else 0.

Statement

noncomputable def pauliXSupport {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

/-- X-support of a Pauli string, indexing the shift y = x + u in the Pauli action. -/
noncomputable def pauliXSupport {n : ℕ} (p : PauliString n) : Fin n → Fin 2 := fun i => if p i = PauliBasis.X ∨ p i = PauliBasis.Y then 1 else 0
See it in the graphDiscuss this resultChallenge it