AFTD Auto-Formalizing Theoretical Domains

BooleanAnalysis.dictator_eq_chi

theoremverifiedimported Lean

Dictator function as a singleton character. For each coordinate $i \in [n]$, the dictator function on the Boolean hypercube $\{0,1\}^n$ coincides with the Walsh--Fourier character associated to the singleton set $\{i\}$; that is, $\mathrm{dict}_i = \chi_{\{i\}}$ as functions $\{0,1\}^n \to \bbr$.

Statement

set_option maxHeartbeats 400000 in
open scoped BigOperators in
variable {n : ℕ} in
lemma BooleanAnalysis.dictator_eq_chi (i : Fin n) : dictator i = chiS {i}
Source
TCSlib, `BooleanAnalysis.dictator_eq_chi`
Lean proof
By Jingzhen Sha, Allan Li, Hydroxyi, Mina, Owen McGinty (from the file's git history), from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • BooleanAnalysis.dictatorThe dictator function for coordinate $i$ outputs the sign of the $i$-th bit: $\mathrm{dict}_i(x) = (-1)^{x_i}$. Its unique nonzero…
  • BooleanAnalysis.chiSThe Walsh--Fourier character associated to $S\subseteq[n]$ is…
Used by 1

Lean source view module on GitHub

set_option maxHeartbeats 400000 inopen scoped BigOperators invariable {n : ℕ} in/-- The dictator function equals the Walsh character `χ_{i}`. -/lemma BooleanAnalysis.dictator_eq_chi (i : Fin n) : dictator i = chiS {i} := by  ext x; simp [dictator, chiS]
See it in the graphDiscuss this resultChallenge it