Theorem 6 — Non-plurality positional scoring manipulation with three candidates
DisprovedElectManip.Scoring.theorem_6Let be any nonincreasing triple of integers. Assume that it does not define plurality, meaning that it is not the case that . For this fixed protocol, let 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
This includes membership in NP and polynomial-time many-one reducibility to 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.
import Definitions.Def_ElectManip_Scoring_Language
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 -/
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Claim. Fix a scoring protocol for exactly three candidates that is not a plurality protocol in the sense defined below. Then the language 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 , and the hypothesis that is not plurality. There are no other hypotheses.
Protocols, ballots, scores. A protocol is a function , read as points by position, with the only constraint
Points may be negative, and nothing normalises them (for example, is not required).
- Ballot. A ballot is a permutation of , where is the position given to candidate .
- Profile. A profile is a finite list of pairs , where is a weight (zero allowed) and is a ballot.
- Score. The score of candidate is
- Unique winner. Candidate is the unique winner of if for every . The inequality is strict, so ties are not wins.
- Plurality. is called plurality if and .
Given the monotonicity constraint, the hypothesis "not plurality" is equivalent to
This covers the constant protocol as well as every protocol with or .
Instances and manipulability. An instance has three parts:
- a profile of fixed weighted votes;
- a list of coalition weights ;
- a preferred candidate .
is manipulable under if there exist ballots (exactly of them) such that is the unique winner of the concatenated profile .
Encoding.
- Candidate. A candidate is encoded by two bits , so , , .
- Ballot. A ballot is encoded as the concatenation of the codes of , i.e. the positions of candidates .
- Natural number. A number is encoded as followed by the little-endian binary digits of . Here is the number of those digits (with having no digits), and is ones followed by a zero.
- List of numbers. A list of numbers is encoded as followed by the concatenated number codes.
- Instance. The code of is, in order:
- the code of ;
- the number code of the count of fixed votes;
- for each fixed vote, its weight's number code followed by its ballot code;
- the list code of the coalition weights.
The language is
Complexity notions. These are the bundle's own definitions.
-
Turing machine. A machine over a tape alphabet 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 over a finite alphabet is in if there exist:
- a finite and an injection ;
- a machine and some ;
such that on every input , reaches accept or reject within steps, and iff ever reaches accept on input .
-
NP. if there exist a finite nonempty certificate alphabet , a relation and some such that both of the following hold:
- the set of strings with is in , where and are tagged into disjoint copies and is a separator;
- .
-
Polynomial-time computable function. A function is polynomial-time computable if some machine with alphabet injections and some satisfy, for every input :
- the machine halts (accept or reject, either one) within steps;
- after exactly that many steps, the tape from the head rightward, with trailing blanks removed, equals the encoded .
-
Reduction. reduces to if some such satisfies .
-
NP-complete. is NP-complete if two things hold:
- over ;
- for every finite nonempty alphabet , every NP language over reduces to .
Degenerate cases. The candidate set is fixed at three, so no empty or one-candidate case arises.
- Weights and coalition size.
- Weights of are allowed, both for fixed votes and coalition members; such votes contribute nothing to any score.
- The coalition may be empty (). Such an instance is manipulable exactly when is already the strict unique winner of .
- The fixed profile may be empty.
- Constant protocol. The hypothesis admits the constant protocol . There every candidate's score equals , so no candidate is ever a strict unique winner, no instance is manipulable, and . For that the statement asserts that the empty language is NP-complete. This requires every NP language over every nonempty finite alphabet to reduce to , which forces every such language to be empty.
- Exponent . In the polynomial bounds, even for the empty string, so the time bound with is step. For and empty, the certificate bound is , so only the empty certificate is allowed.
- Zero in binary. The number is encoded as the single bit , because its binary digit list is empty and is a single zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.