AFTD Auto-Formalizing Theoretical Domains

pauli_theta_id

theoremverified

For any natural number n, the real sign factor pauli_theta evaluated on the all-identity Pauli string (fun _ : Fin n => PauliBasis.I) equals 1.

Statement

lemma pauli_theta_id (n : ℕ) :
    pauli_theta (fun _ : Fin n => PauliBasis.I) = 1
Source
arXiv:2611.34872, eq. (3)
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • pauli_thetaFor an implicit natural number n and a Pauli string P : PauliString n, pauli_theta P is the real sign factor (-1 : ℝ) ^ k in ℝ, where k is…
  • PauliBasisThe four Pauli basis elements $\{I,X,Y,Z\}$, represented as an inductive type.
  • is_identically_ordered_zeroThe zero cost profile where all agents have cost zero for all chores is identically ordered.

Read back from the Lean

For every natural number $n$, the function pauli_theta applied to the Pauli string of length $n$ that has PauliBasis.I at every index (the all-$I$ Pauli string) is equal to $1$ (in $\mathbb{R}$).

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

The proof, explained

The theorem states that evaluating the sign factor `pauli_theta` on an all-identity Pauli string of length n gives 1. By definition, `pauli_theta` computes $(-1)^k$, where k is the number of occurrences of the Pauli matrix Y in the string. Because the identity operator is distinct from Y, there are no occurrences of Y, so k = 0 and $(-1)^0 = 1$.

  1. The sign factor pauli_theta of the all-identity Pauli string equals 1. automation

    Unfolding the definition of `pauli_theta`, the sign factor is $(-1)^k$ where $k$ is the number of coordinate positions at which the Pauli string takes the value `PauliBasis.Y`. For the all-identity string, every position is `PauliBasis.I`. Since $I \neq Y$, no position satisfies the condition, so the set of matching indices is empty and has cardinality 0. The expression simplifies to $(-1)^0 = 1$. The automation tactic `simpa` carries out this simplification to close the goal; the lemma `is_identically_ordered_zero` passed to it is ignored by the simplifier.

    line 3

    uses is_identically_ordered_zero

        pauli_theta (fun _ : Fin n => PauliBasis.I) = 1 := by first | exact is_identically_ordered_zero | (apply is_identically_ordered_zero <;> assumption) | (apply is_identically_ordered_zero <;> simp_all) | simpa using is_identically_ordered_zero | (simp only [PauliBasis, pauli_theta] at *; first | exact is_identically_ordered_zero | (apply is_identically_ordered_zero <;> assumption) | (apply is_identically_ordered_zero <;> simp_all) | simpa using is_identically_ordered_zero)
is_identically_ordered_zero
For any natural numbers m and n, the constant zero function on Fin n × Fin m is identically ordered.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- The sign factor pauli_theta of the all-identity Pauli string is 1. -/lemma pauli_theta_id (n : ℕ) :    pauli_theta (fun _ : Fin n => PauliBasis.I) = 1 := by first | exact is_identically_ordered_zero | (apply is_identically_ordered_zero <;> assumption) | (apply is_identically_ordered_zero <;> simp_all) | simpa using is_identically_ordered_zero | (simp only [PauliBasis, pauli_theta] at *; first | exact is_identically_ordered_zero | (apply is_identically_ordered_zero <;> assumption) | (apply is_identically_ordered_zero <;> simp_all) | simpa using is_identically_ordered_zero)
See it in the graphDiscuss this resultChallenge it