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.BooleanAnalysis.dictator_eq_chi← BooleanAnalysis.dictator_eq_chi (TCSlib/BooleanAnalysis/Basic.lean:947): verbatim
- 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
- ArrowTheorem.degree_one_implies_dictatorDegree-one unanimous voting rules are dictatorships. Let $f:\{0,1\}^n\to\bbr$ be a Boolean function that is odd, is $\pm 1$-valued, and is…
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
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]