Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6 — Non-plurality positional scoring manipulation with three candidates

Disproved
ElectManip.Scoring.theorem_6

by Shuze Chen · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

coalitional-manipulationnp-completenessp2o-gran-per-chapterp2o-plan-paperp2o-v1positional-scoringvoting

Let α=(α0,α1,α2)\alpha=(\alpha_0,\alpha_1,\alpha_2)α=(α0​,α1​,α2​) be any nonincreasing triple of integers. Assume that it does not define plurality, meaning that it is not the case that α0>α1=α2\alpha_0>\alpha_1=\alpha_2α0​>α1​=α2​. For this fixed protocol, let LαL_\alphaLα​ be the binary language of constructive coalitional weighted manipulation instances with exactly three candidates: the nonmanipulators' weighted ballots and the manipulators' weights are given, and success means that some choice of the manipulators' complete ballots makes the preferred candidate score strictly above both opponents. The assertion is

Lα is NP-complete.L_\alpha\text{ is NP-complete}.Lα​ is NP-complete.

This includes membership in NP and polynomial-time many-one reducibility to LαL_\alphaLα​ from every NP language over every finite nonempty alphabet. Polynomial constants may depend on the fixed protocol, but not on the election input. There are no bounds on voter counts or natural weights; zero weights, empty voter lists, and all complete rankings are permitted. Scores may be negative. No hardness assumption on PARTITION and no hypothesis about P versus NP is added.

This is the scoring-family claim printed as Theorem 6. Its constant-vector cases are deliberately retained: the source finding I1 records that those protocols yield an empty strict-win language, contradicting the printed universal claim. I2 concerns a separate scaled-weight typo in the proof. Neither finding changes the target.

Formalization Note The general scoring object, the election decision problem, and its canonical binary encoding are separate definitions. The published CookPvsNP.NPComplete supplies actual Turing-machine polynomial time and both NP-completeness clauses. The theorem is an open statement, not a completed proof.

Differences from the source:

  • encoding: candidates and ranks numbered 1,2,3 → candidates and ranks in Fin 3 numbered 0,1,2; reason: relabeling preserves all rankings and scores.
  • encoding: finite collections of weighted voters → finite lists of natural weights and permutation ballots, with an equal-length coalition ballot list; reason: enumeration preserves every voter and allows arbitrary independent coalition choices.
  • encoding: an election input with binary-sized integer weights → a canonical language of List Bool words with self-delimiting binary weights, fixed-width candidate/rank fields, and rejection of malformed words; reason: make input size and validity explicit with polynomial encoding overhead.
  • encoding: NP-complete → CookPvsNP.NPComplete over the binary manipulation language; reason: use published polynomial-time verification and many-one reduction semantics for both clauses.
  • encoding: a protocol other than plurality → negation of alpha_0 > alpha_1 = alpha_2 for a sorted triple; reason: this identifies exactly positive affine copies of plurality, as in the source proof, and retains constant triples.
Preamble
import Definitions.Def_ElectManip_Scoring_Language
Formal statement
namespace ElectManip.Scoring

theorem theorem_6 (α : Protocol 3) (h_nonplurality : ¬ IsPlurality α) :
    CookPvsNP.NPComplete (manipulationLanguage α) := by sorry

end ElectManip.Scoring

/- BEGIN IMPORTED LEAN AUDIT CONTEXT
The following are declaration excerpts from the imported modules.
They are copied code, not a mathematical read-back.

namespace ElectManip.Scoring
abbrev Ballot (n : ℕ) := Equiv.Perm (Fin n)
structure Protocol (n : ℕ) where
  points : Fin n → ℤ
  nonincreasing : Antitone points
abbrev Profile (n : ℕ) := List (ℕ × Ballot n)
def score {n : ℕ} (α : Protocol n) (votes : Profile n) (c : Fin n) : ℤ :=
  (votes.map fun v => (v.1 : ℤ) * α.points (v.2 c)).sum
def UniqueWinner {n : ℕ} (α : Protocol n) (votes : Profile n) (p : Fin n) : Prop :=
  ∀ q : Fin n, q ≠ p → score α votes q < score α votes p
end ElectManip.Scoring


namespace ElectManip.Scoring
structure Instance where
  fixedVotes : Profile 3
  coalitionWeights : List ℕ
  preferred : Fin 3
def Manipulable (α : Protocol 3) (I : Instance) : Prop :=
  ∃ ballots : List (Ballot 3),
    ballots.length = I.coalitionWeights.length ∧
    UniqueWinner α (I.fixedVotes ++ I.coalitionWeights.zip ballots) I.preferred
def IsPlurality (α : Protocol 3) : Prop :=
  α.points 1 < α.points 0 ∧ α.points 1 = α.points 2
end ElectManip.Scoring


namespace CookLevin
def encodeNat : Nat → List Bool
  | 0 => [false]
  | n + 1 => true :: encodeNat n
end CookLevin


set_option autoImplicit false
namespace NPBinary
def encodeNat (n : Nat) : List Bool :=
  CookLevin.encodeNat n.bits.length ++ n.bits
def encodeList (xs : List Nat) : List Bool :=
  CookLevin.encodeNat xs.length ++ (xs.map encodeNat).flatten
end NPBinary


namespace CookPvsNP
abbrev Lang (Sym : Type) : Type := Set (List Sym)
inductive Move where
  | left
  | right
  deriving DecidableEq
structure TM (Γ : Type) where
  Q : Type
  [finQ : Fintype Q]
  [decQ : DecidableEq Q]
  q₀ : Q
  qaccept : Q
  qreject : Q
  accept_ne_reject : qaccept ≠ qreject
  δ : Q → Option Γ → Q × Option Γ × Move
attribute [instance] TM.finQ TM.decQ
structure Cfg (Γ Q : Type) where
  state : Q
  left : List (Option Γ)
  head : Option Γ
  right : List (Option Γ)
namespace TM
variable {Γ : Type} (M : TM Γ)
def IsHalting (c : Cfg Γ M.Q) : Prop := c.state = M.qaccept ∨ c.state = M.qreject
instance (c : Cfg Γ M.Q) : Decidable (M.IsHalting c) := by
  unfold IsHalting; infer_instance
def step (c : Cfg Γ M.Q) : Cfg Γ M.Q :=
  if M.IsHalting c then c else
    match M.δ c.state c.head with
    | (q', s', Move.right) =>
        { state := q', left := s' :: c.left, head := c.right.headD none, right := c.right.tail }
    | (q', s', Move.left) =>
        match c.left with
        | [] => { state := q', left := [], head := none, right := s' :: c.right }
        | a :: x' => { state := q', left := x', head := a, right := s' :: c.right }
def run (n : ℕ) (c : Cfg Γ M.Q) : Cfg Γ M.Q := (M.step)^[n] c
def init (w : List Γ) : Cfg Γ M.Q :=
  { state := M.q₀, left := [], head := (w.map some).headD none, right := (w.map some).tail }
def HaltsWithin (n : ℕ) (w : List Γ) : Prop := M.IsHalting (M.run n (M.init w))
def Accepts (w : List Γ) : Prop := ∃ n, (M.run n (M.init w)).state = M.qaccept
def output (c : Cfg Γ M.Q) : List (Option Γ) :=
  ((c.head :: c.right).reverse.dropWhile Option.isNone).reverse
end TM
def P (Sym : Type) [Fintype Sym] : Set (Lang Sym) :=
  { L | ∃ (Γ : Type) (_ : Fintype Γ) (ι : Sym ↪ Γ) (M : TM Γ) (k : ℕ),
      (∀ w : List Sym, M.HaltsWithin (w.length ^ k + k) (w.map ι)) ∧
      ∀ w : List Sym, w ∈ L ↔ M.Accepts (w.map ι) }
def checkLang {Sym Sym₁ : Type} (R : List Sym → List Sym₁ → Prop) :
    Lang (Option (Sym ⊕ Sym₁)) :=
  { s | ∃ w y, R w y ∧ s = w.map (some ∘ Sum.inl) ++ none :: y.map (some ∘ Sum.inr) }
def NP (Sym : Type) [Fintype Sym] : Set (Lang Sym) :=
  { L | ∃ (Sym₁ : Type) (_ : Fintype Sym₁) (_ : Nonempty Sym₁)
      (R : List Sym → List Sym₁ → Prop) (k : ℕ),
      checkLang R ∈ P (Option (Sym ⊕ Sym₁)) ∧
      ∀ w : List Sym, w ∈ L ↔ ∃ y : List Sym₁, y.length ≤ w.length ^ k ∧ R w y }
def coNP (Sym : Type) [Fintype Sym] : Set (Lang Sym) :=
  { L | Lᶜ ∈ NP Sym }
def PolyTimeComputable {Sym₁ Sym₂ : Type} (f : List Sym₁ → List Sym₂) : Prop :=
  ∃ (Γ : Type) (_ : Fintype Γ) (ι₁ : Sym₁ ↪ Γ) (ι₂ : Sym₂ ↪ Γ) (M : TM Γ) (k : ℕ),
    ∀ x : List Sym₁,
      M.HaltsWithin (x.length ^ k + k) (x.map ι₁) ∧
      M.output (M.run (x.length ^ k + k) (M.init (x.map ι₁))) = (f x).map (some ∘ ι₂)
def PolyReducible {Sym₁ Sym₂ : Type} (L₁ : Lang Sym₁) (L₂ : Lang Sym₂) : Prop :=
  ∃ f : List Sym₁ → List Sym₂, PolyTimeComputable f ∧ ∀ x, x ∈ L₁ ↔ f x ∈ L₂
def NPComplete {Sym : Type} [Fintype Sym] (L : Lang Sym) : Prop :=
  L ∈ NP Sym ∧
    ∀ (Sym' : Type) [Fintype Sym'] [Nonempty Sym'] (L' : Lang Sym'),
      L' ∈ NP Sym' → PolyReducible L' L
abbrev Literal : Type := Bool × ℕ
abbrev CNF : Type := List (List Literal)
def CNF.Satisfiable (F : CNF) : Prop :=
  ∃ τ : ℕ → Bool, ∀ C ∈ F, ∃ ℓ ∈ C, τ ℓ.2 = ℓ.1
inductive SatSym where
  | pos
  | neg
  | one
  | endClause
  deriving DecidableEq
instance : Fintype SatSym where
  elems := {SatSym.pos, SatSym.neg, SatSym.one, SatSym.endClause}
  complete := by intro x; cases x <;> simp
def encodeLiteral (ℓ : Literal) : List SatSym :=
  (if ℓ.1 then SatSym.pos else SatSym.neg) :: List.replicate ℓ.2 SatSym.one
def encodeCNF (F : CNF) : List SatSym :=
  F.flatMap fun C => C.flatMap encodeLiteral ++ [SatSym.endClause]
def SAT : Lang SatSym :=
  { s | ∃ F : CNF, F.Satisfiable ∧ s = encodeCNF F }
end CookPvsNP


namespace ElectManip.Scoring
def encodeCandidate (c : Fin 3) : List Bool :=
  [decide (c.val / 2 = 1), decide (c.val % 2 = 1)]
def encodeBallot (b : Ballot 3) : List Bool :=
  encodeCandidate (b 0) ++ encodeCandidate (b 1) ++ encodeCandidate (b 2)
def encodeInstance (I : Instance) : List Bool :=
  encodeCandidate I.preferred ++ NPBinary.encodeNat I.fixedVotes.length ++
    I.fixedVotes.flatMap (fun v => NPBinary.encodeNat v.1 ++ encodeBallot v.2) ++
    NPBinary.encodeList I.coalitionWeights
def manipulationLanguage (α : Protocol 3) : CookPvsNP.Lang Bool :=
  {s | ∃ I : Instance, s = encodeInstance I ∧ Manipulable α I}
end ElectManip.Scoring

END IMPORTED LEAN AUDIT CONTEXT -/
Source
Conitzer, Sandholm and Lang, When Are Elections with Few Candidates Hard to Manipulate?, Journal of the ACM (2007), DOI 10.1145/1236457.1236461, p. 15, Theorem 6 (PDF p. 15); standing model pp. 5–9.
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Claim. Fix a scoring protocol α\alphaα for exactly three candidates {0,1,2}\{0,1,2\}{0,1,2} that is not a plurality protocol in the sense defined below. Then the language Lα⊆{0,1}∗L_\alpha \subseteq \{0,1\}^*Lα​⊆{0,1}∗ of binary encodings of "manipulable" instances is NP-complete, under the bundle's own Turing-machine definitions of P, NP and polynomial-time many-one reductions. The statement has two inputs: the protocol α\alphaα, and the hypothesis that α\alphaα is not plurality. There are no other hypotheses.

Protocols, ballots, scores. A protocol α\alphaα is a function α:{0,1,2}→Z\alpha:\{0,1,2\}\to\mathbb{Z}α:{0,1,2}→Z, read as points by position, with the only constraint

α0≥α1≥α2.\alpha_0 \ge \alpha_1 \ge \alpha_2 .α0​≥α1​≥α2​.

Points may be negative, and nothing normalises them (for example, α2=0\alpha_2=0α2​=0 is not required).

  • Ballot. A ballot is a permutation bbb of {0,1,2}\{0,1,2\}{0,1,2}, where b(c)b(c)b(c) is the position given to candidate ccc.
  • Profile. A profile is a finite list of pairs (wj,bj)(w_j,b_j)(wj​,bj​), where wj∈Nw_j\in\mathbb{N}wj​∈N is a weight (zero allowed) and bjb_jbj​ is a ballot.
  • Score. The score of candidate ccc is
scoreα(V,c)=∑jwj αbj(c).\mathrm{score}_\alpha(V,c)=\sum_j w_j\,\alpha_{b_j(c)} .scoreα​(V,c)=j∑​wj​αbj​(c)​.
  • Unique winner. Candidate ppp is the unique winner of VVV if scoreα(V,q)<scoreα(V,p)\mathrm{score}_\alpha(V,q)<\mathrm{score}_\alpha(V,p)scoreα​(V,q)<scoreα​(V,p) for every q≠pq\ne pq=p. The inequality is strict, so ties are not wins.
  • Plurality. α\alphaα is called plurality if α1<α0\alpha_1<\alpha_0α1​<α0​ and α1=α2\alpha_1=\alpha_2α1​=α2​.

Given the monotonicity constraint, the hypothesis "not plurality" is equivalent to

α0=α1orα1>α2.\alpha_0=\alpha_1 \quad\text{or}\quad \alpha_1>\alpha_2 .α0​=α1​orα1​>α2​.

This covers the constant protocol α0=α1=α2\alpha_0=\alpha_1=\alpha_2α0​=α1​=α2​ as well as every protocol with α1>α2\alpha_1>\alpha_2α1​>α2​ or α0=α1\alpha_0=\alpha_1α0​=α1​.

Instances and manipulability. An instance III has three parts:

  • a profile FFF of fixed weighted votes;
  • a list of coalition weights (c1,…,cm)∈Nm(c_1,\dots,c_m)\in\mathbb{N}^m(c1​,…,cm​)∈Nm;
  • a preferred candidate p∈{0,1,2}p\in\{0,1,2\}p∈{0,1,2}.

III is manipulable under α\alphaα if there exist ballots b1′,…,bm′b'_1,\dots,b'_mb1′​,…,bm′​ (exactly mmm of them) such that ppp is the unique winner of the concatenated profile F,(c1,b1′),…,(cm,bm′)F,(c_1,b'_1),\dots,(c_m,b'_m)F,(c1​,b1′​),…,(cm​,bm′​).

Encoding.

  • Candidate. A candidate ccc is encoded by two bits [ c÷2=1,  c mod 2=1 ][\,c\div 2=1,\; c \bmod 2=1\,][c÷2=1,cmod2=1], so 0↦000\mapsto 000↦00, 1↦011\mapsto 011↦01, 2↦102\mapsto 102↦10.
  • Ballot. A ballot bbb is encoded as the concatenation of the codes of b(0),b(1),b(2)b(0),b(1),b(2)b(0),b(1),b(2), i.e. the positions of candidates 0,1,20,1,20,1,2.
  • Natural number. A number nnn is encoded as u(ℓ)\mathrm{u}(\ell)u(ℓ) followed by the little-endian binary digits of nnn. Here ℓ\ellℓ is the number of those digits (with 000 having no digits), and u(k)\mathrm{u}(k)u(k) is kkk ones followed by a zero.
  • List of numbers. A list of numbers is encoded as u(length)\mathrm{u}(\text{length})u(length) followed by the concatenated number codes.
  • Instance. The code of III is, in order:
    1. the code of ppp;
    2. the number code of the count of fixed votes;
    3. for each fixed vote, its weight's number code followed by its ballot code;
    4. the list code of the coalition weights.

The language is

Lα={ s∈{0,1}∗:∃I, s=enc(I) and I is manipulable under α }.L_\alpha=\{\,s\in\{0,1\}^* : \exists I,\ s=\mathrm{enc}(I)\ \text{and}\ I \text{ is manipulable under } \alpha\,\}.Lα​={s∈{0,1}∗:∃I, s=enc(I) and I is manipulable under α}.

Complexity notions. These are the bundle's own definitions.

  • Turing machine. A machine over a tape alphabet Γ\GammaΓ has a finite state set, a start state, and distinct accept and reject states, both of which are absorbing. It has a single tape that is blank (written "none") outside the written portion. Its transition takes a state and the scanned cell (a symbol or blank) to a new state, a written cell, and a move left or right. Moving left from the leftmost stored cell reads a blank.

  • P. A language LLL over a finite alphabet Σ\SigmaΣ is in P\mathrm{P}P if there exist:

    • a finite Γ\GammaΓ and an injection ι:Σ↪Γ\iota:\Sigma\hookrightarrow\Gammaι:Σ↪Γ;
    • a machine MMM and some k∈Nk\in\mathbb{N}k∈N;

    such that on every input www, MMM reaches accept or reject within ∣w∣k+k|w|^k+k∣w∣k+k steps, and w∈Lw\in Lw∈L iff MMM ever reaches accept on input ι(w)\iota(w)ι(w).

  • NP. L∈NPL\in\mathrm{NP}L∈NP if there exist a finite nonempty certificate alphabet Σ1\Sigma_1Σ1​, a relation RRR and some kkk such that both of the following hold:

    • the set of strings w # yw\,\#\,yw#y with R(w,y)R(w,y)R(w,y) is in P\mathrm{P}P, where www and yyy are tagged into disjoint copies and #\## is a separator;
    • w∈L  ⟺  ∃y, ∣y∣≤∣w∣k, R(w,y)w\in L \iff \exists y,\ |y|\le |w|^k,\ R(w,y)w∈L⟺∃y, ∣y∣≤∣w∣k, R(w,y).
  • Polynomial-time computable function. A function fff is polynomial-time computable if some machine with alphabet injections and some kkk satisfy, for every input xxx:

    • the machine halts (accept or reject, either one) within ∣x∣k+k|x|^k+k∣x∣k+k steps;
    • after exactly that many steps, the tape from the head rightward, with trailing blanks removed, equals the encoded f(x)f(x)f(x).
  • Reduction. L′L'L′ reduces to LLL if some such fff satisfies x∈L′  ⟺  f(x)∈Lx\in L'\iff f(x)\in Lx∈L′⟺f(x)∈L.

  • NP-complete. LLL is NP-complete if two things hold:

    • L∈NPL\in\mathrm{NP}L∈NP over {0,1}\{0,1\}{0,1};
    • for every finite nonempty alphabet Σ′\Sigma'Σ′, every NP language over Σ′\Sigma'Σ′ reduces to LLL.

Degenerate cases. The candidate set is fixed at three, so no empty or one-candidate case arises.

  • Weights and coalition size.
    • Weights of 000 are allowed, both for fixed votes and coalition members; such votes contribute nothing to any score.
    • The coalition may be empty (m=0m=0m=0). Such an instance is manipulable exactly when ppp is already the strict unique winner of FFF.
    • The fixed profile may be empty.
  • Constant protocol. The hypothesis admits the constant protocol α0=α1=α2\alpha_0=\alpha_1=\alpha_2α0​=α1​=α2​. There every candidate's score equals α0∑jwj\alpha_0\sum_j w_jα0​∑j​wj​, so no candidate is ever a strict unique winner, no instance is manipulable, and Lα=∅L_\alpha=\varnothingLα​=∅. For that α\alphaα the statement asserts that the empty language is NP-complete. This requires every NP language over every nonempty finite alphabet to reduce to ∅\varnothing∅, which forces every such language to be empty.
  • Exponent k=0k=0k=0. In the polynomial bounds, ∣w∣0=1|w|^0=1∣w∣0=1 even for the empty string, so the time bound with k=0k=0k=0 is 111 step. For k≥1k\ge 1k≥1 and www empty, the certificate bound ∣w∣k|w|^k∣w∣k is 000, so only the empty certificate is allowed.
  • Zero in binary. The number 000 is encoded as the single bit 000, because its binary digit list is empty and u(0)\mathrm{u}(0)u(0) is a single zero.
Human review
  • Endorsed by Community (Bot) · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me