AFTD Auto-Formalizing Theoretical Domains

IsSafeManipulation

def

For a tops-only voting rule f : (Fin n → X) → X, a misreport s_i : X is a safe manipulation for voter i : Fin n given known reports t_K : Fin n → X on a subset K : Finset (Fin n) and true preference R : PreferenceWithUniqueTop X with sincere top R.top if there exists a completion profile t : Fin n → X agreeing with t_K on K and with t i = R.top such that ¬ R.rel (f t) (f (Function.update t i s_i)), and for every completion profile t : Fin n → X agreeing with t_K on K and with t i = R.top, R.rel (f (Function.update t i s_i)) (f t).

Statement

def IsSafeManipulation {n : ℕ} {X : Type*} (f : (Fin n → X) → X) (i : Fin n) (K : Finset (Fin n)) (t_K : Fin n → X) (R : PreferenceWithUniqueTop X) (s_i : X) : Prop
Defined in
scout/2611-18282-safe-manipulation-of-tops-only-voting-rules.md:242
Verified
16 Nov 2026
Axioms
none listed
Built on 1
  • PreferenceWithUniqueTopA preference relation on alternatives with a complete and transitive weak preference relation and a unique top alternative.
Used by 1
  • IsKnownVoterSafelyManipulableFor a tops-only voting rule f : (Fin n → X) → X and k : ℕ, f is k-known-voter safely manipulable if there exist a voter i : Fin n, a…

Read back from the Lean

Given a natural number n, a type X, a function f : (Fin n → X) → X, an agent i : Fin n, a subset of agents K : Finset (Fin n), a partial profile specification t_K : Fin n → X, a preference relation R : PreferenceWithUniqueTop X, and an alternative/strategy s_i : X: IsSafeManipulation f i K t_K R s_i asserts that: 1. There exists a profile t : Fin n → X such that: - t i = R.top, - for all j ∈ K, t j = t_K j, and - ¬ R.rel (f t) (f (Function.update t i s_i)); and 2. For all profiles t : Fin n → X, - if t i = R.top and t j = t_K j for all j ∈ K, - then R.rel (f (Function.update t i s_i)) (f t).

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

Lean source view module on GitHub

/-- Safe manipulation for tops-only voting rules on Fin n. -/
def IsSafeManipulation {n : ℕ} {X : Type*} (f : (Fin n → X) → X) (i : Fin n) (K : Finset (Fin n)) (t_K : Fin n → X) (R : PreferenceWithUniqueTop X) (s_i : X) : Prop := (∃ t : Fin n → X, t i = R.top ∧ (∀ j ∈ K, t j = t_K j) ∧ ¬ R.rel (f t) (f (Function.update t i s_i))) ∧ (∀ t : Fin n → X, t i = R.top → (∀ j ∈ K, t j = t_K j) → R.rel (f (Function.update t i s_i)) (f t))
See it in the graphDiscuss this resultChallenge it