AFTD Auto-Formalizing Theoretical Domains

op_2119_majority_immunity_below_half

theoremverifiedformalization

Let $N$ be a finite set of voters and $A$ a finite, nonempty set of alternatives. If a social choice function $f : (N \to \text{LinearOrder } A) \to A$ satisfies the majority criterion, then for any $k \in \mathbb{N}$ with $2k < |N|$, $f$ is not obviously group manipulable by coalitions of size at most $k$ (that is, $f$ is $k$-NOMG).

Statement

theorem op_2119_majority_immunity_below_half {N A : Type*} [Fintype N] [Fintype A] [Nonempty A]
    (f : (N → LinearOrder A) → A) (h_maj : satisfies_majority_criterion f) (k : ℕ)
    (hk : 2 * k < Fintype.card N) : is_k_nomg f k
Formalizes
arXiv:2611.26224 Prop. 5, p. 11
Verified
23 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
  • satisfies_majority_criterionA voting rule f satisfies the majority criterion if it selects alternative x whenever strictly more than half of the voters rank x first.
  • is_k_nomgA voting rule f : (N → LinearOrder A) → A is k-NOMG if no nonempty coalition C : Finset N with card at most k has an obvious group…
  • voting_option_setGiven a voting rule f : (N → LinearOrder A) → A, a finite coalition C : Finset N, and a profile P : N → LinearOrder A of linear orders on…
  • order_topThe top (most preferred) alternative of a linear order L on a finite nonempty set of alternatives A, defined as the maximum element under L.
  • has_obvious_group_manipulationA coalition C : Finset N has an obvious group manipulation at profile P : N → LinearOrder A by misreporting P_dev : N → LinearOrder A…

Read back from the Lean

Let $N$ be a finite type (representing voters) and $A$ a finite, nonempty type (representing alternatives/candidates). Let $f : (N \to \text{LinearOrder } A) \to A$ be a social choice function. Suppose $f$ satisfies the majority criterion (satisfies_majority_criterion), and let $k$ be a natural number such that $2k < |N|$. Then $f$ is not obviously group manipulable by coalitions of size at most $k$ (is_k_nomg f k).

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

The proof, explained

We show that any social choice function satisfying the majority criterion cannot be obviously group manipulated by a coalition C of size k with 2k < |N|. Because C contains strictly less than half the voters, the remaining voters form a strict majority and can coordinate on a preference order where any chosen alternative x is placed at the top, forcing the rule to select x by the majority criterion. Consequently, the set of achievable outcomes from the coalition's perspective is always the entire set of alternatives A, under both the truthful profile and the manipulated profile. An obvious group manipulation would then force every coalition member to strictly prefer an alternative to itself, contradicting the irreflexivity of linear orders.

  1. There is an injective map h from A to ℕ that assigns |A| to x and strictly smaller natural numbers to all other alternatives.

    Let n = |A|. We define h : A → ℕ by sending x to n and any other alternative a to the value of its image under the bijection A ≃ Fin n. To verify that h is injective, we compare any two alternatives a and b: if both equal x, they are equal; if exactly one equals x, say a = x and b ≠ x, then h(a) = n while h(b) < n, a contradiction; if neither equals x, h(a) = h(b) means their indices in Fin n match, so a = b by injectivity of the bijection.

    lines 3–21

    uses if_true, if_false, Fin.ext

      classical
      let n := Fintype.card A
      let h : A → ℕ := fun a => if a = x then n else (Fintype.equivFin A a).val
      have hinj : Function.Injective h := by
        intro a b hab
        by_cases ha : a = x
        · by_cases hb : b = x
          · exact ha.trans hb.symm
          · exfalso
            simp only [h, ha, hb, if_true, if_false] at hab
            have := (Fintype.equivFin A b).isLt
            omega
        · by_cases hb : b = x
          · exfalso
            simp only [h, ha, hb, if_true, if_false] at hab
            have := (Fintype.equivFin A a).isLt
            omega
          · simp only [h, ha, hb, if_false] at hab
            exact (Fintype.equivFin A).injective (Fin.ext hab)
  2. Pulling back the standard order on ℕ along h yields a linear order on A whose top element is x.

    We lift the linear order on ℕ to A via h using LinearOrder.lift'. Under this order, the top element is the maximum over all of A. By Finset.max'_eq_iff, x is the maximum if and only if x is in the universal set and every alternative b satisfies h(b) ≤ h(x) = n. When b = x this holds as n ≤ n, and when b ≠ x the value h(b) is an element of Fin n and thus strictly less than n, so h(b) ≤ n holds as well.

    lines 22–33

    uses LinearOrder.lift', Finset.max'_eq_iff, Finset.univ_nonempty, Finset.mem_univ, if_true, if_false

      refine ⟨LinearOrder.lift' h hinj, ?_⟩
      rw [order_top]
      rw [@Finset.max'_eq_iff A (LinearOrder.lift' h hinj) Finset.univ Finset.univ_nonempty x]
      refine ⟨Finset.mem_univ x, ?_⟩
      intro b _
      change h b ≤ h x
      simp only [h, if_true]
      by_cases hb : b = x
      · simp [hb]
      · simp only [hb, if_false]
        have := (Fintype.equivFin A b).isLt
        omega
  3. Assuming for contradiction that an obvious group manipulation exists for a coalition C of size at most k, C must contain strictly less than half the electorate: 2|C| < |N|.

    We introduce a nonempty coalition C with |C| ≤ k and suppose for contradiction that C can obviously manipulate f from profile P to profile P_dev. Since 2k < |N|, multiplying the size bound |C| ≤ k by 2 gives 2|C| ≤ 2k < |N|, so C forms a strict minority.

    lines 39–42

      classical
      intro C hCne hCle
      rintro ⟨P, P_dev, hman⟩
      have hC : 2 * C.card < Fintype.card N := by omega
  4. For any profile Q, the set of outcomes achievable by voters outside C is the entire set of alternatives A.

    Given any alternative x ∈ A, our helper lemma provides a linear order L_x with top element x. We construct a profile P' where voters in C keep their preferences Q(i) while all voters outside C cast preference L_x. Every voter in N \ C therefore ranks x at the top. Since 2|C| < |N|, the complement N \ C forms a strict majority of the electorate (|N \ C| = |N| - |C| > |N| / 2). By the majority criterion, f(P') must equal x. Since x was arbitrary, the voting option set under Q is the universal set Set.univ.

    lines 43–61

    uses op_2119_majority_immunity_below_half_exists_order_top, Set.mem_ofPred_eq, Set.mem_univ, iff_true, if_pos, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_filter, if_neg, Finset.card_le_card, Finset.card_univ_sdiff, Finset.subset_univ

      have key : ∀ Q : N → LinearOrder A, voting_option_set f C Q = Set.univ := by
        intro Q
        ext x
        simp only [voting_option_set, Set.mem_ofPred_eq, Set.mem_univ, iff_true]
        obtain ⟨Lx, hLx⟩ := op_2119_majority_immunity_below_half_exists_order_top (A := A) x
        let P' : N → LinearOrder A := fun i => if i ∈ C then Q i else Lx
        refine ⟨P', ?_, ?_⟩
        · intro i hi
          simp only [P', if_pos hi]
        · apply h_maj P' x
          have hsub : Finset.univ \ C ⊆
              Finset.filter (fun i => @order_top A _ _ (P' i) = x) Finset.univ := by
            intro i hi
            simp only [Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_filter] at hi ⊢
            simp only [P', if_neg hi, hLx]
          have hcard := Finset.card_le_card hsub
          rw [Finset.card_univ_sdiff] at hcard
          have hcl := Finset.card_le_card (Finset.subset_univ C)
          omega
  5. In the first branch of obvious group manipulation, comparing an alternative x to itself yields x < x, a contradiction.

    Applying the key property to P and P_dev shows that both option sets T and F equal the universal set A. The first condition for an obvious group manipulation asserts that there exists x ∈ T such that every coalition member strictly prefers every y ∈ F to x. Since F is all of A, we may instantiate y with x. Choosing any voter i in the nonempty coalition C yields x <_{P i} x, which contradicts the irreflexivity of strict linear order (lt_irrefl).

    lines 62–69

    uses lt_irrefl

      have hT := key P
      have hF := key P_dev
      unfold has_obvious_group_manipulation at hman
      rcases hman with ⟨x, hxT, hxy⟩ | ⟨y, hyF, hyx⟩
      · have hx : x ∈ voting_option_set f C P := by rw [hT]; trivial
        obtain ⟨i, hi⟩ := hCne
        have hlt := hxy x (by rw [hF]; trivial) i hi
        exact @lt_irrefl A (P i).toPreorder x hlt
  6. In the second branch of obvious group manipulation, comparing an alternative y to itself yields y < y, a contradiction.

    The second condition for an obvious group manipulation asserts that there exists y ∈ F such that every coalition member strictly prefers y to every x ∈ T. Since T is all of A, we may instantiate x with y. Choosing any voter i in the nonempty coalition C yields y <_{P i} y, which again contradicts the irreflexivity of strict linear order (lt_irrefl).

    lines 70–73

    uses lt_irrefl

      · have hy : y ∈ voting_option_set f C P := by rw [hT]; trivial
        obtain ⟨i, hi⟩ := hCne
        have hlt := hyx y hy i hi
        exact @lt_irrefl A (P i).toPreorder y hlt
Fin.ext
Two elements of Fin n are equal if and only if their underlying natural numbers are equal.
Finset.mem_filter
In a finite type, the subset of elements satisfying a predicate has an element x in it if and only if x is in the base set and satisfies the predicate.
Finset.mem_sdiff
An element belongs to the difference of two finsets s \ t if and only if it belongs to s and does not belong to t.
Finset.mem_univ
Every element of a finite type belongs to the universal finset.
Finset.card_univ_sdiff
The cardinality of the complement of a finset s in the universal finset is the cardinality of the type minus the cardinality of s.
Finset.card_le_card
If one finset is a subset of another, its cardinality is at most that of the larger finset.
Finset.max'_eq_iff
The maximum of a nonempty finite set equals a if and only if a belongs to the set and every element in the set is at most a.
Finset.subset_univ
Every finset of elements of a finite type is a subset of the universal finset.
Finset.univ_nonempty
The universal finset of a nonempty finite type is nonempty.
if_false
A conditional expression evaluates to its 'else' branch when the condition is false.
if_neg
A conditional expression evaluates to its 'else' branch when the condition does not hold.
if_pos
A conditional expression evaluates to its 'then' branch when the condition holds.
if_true
A conditional expression evaluates to its 'then' branch when the condition is true.
iff_true
An equivalence p ↔ True simplifies to p.
LinearOrder.lift'
Pulls back a linear order structure on a target type along an injective function.
lt_irrefl
Strict inequality in a preorder is irreflexive: no element is strictly less than itself.
op_2119_majority_immunity_below_half_exists_order_top
For any alternative in a finite, nonempty set, there exists a linear order on the set whose unique top element is that alternative.
Set.mem_ofPred_eq
Membership of an element in a set defined by a predicate is equal to the predicate holding on that element.
Set.mem_univ
Every element belongs to the universal set.
true_and
The conjunction True ∧ p simplifies to p.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

private lemma op_2119_majority_immunity_below_half_exists_order_top {A : Type*} [Fintype A] [Nonempty A] (x : A) :    ∃ L : LinearOrder A, @order_top A _ _ L = x := by  classical  let n := Fintype.card A  let h : A → ℕ := fun a => if a = x then n else (Fintype.equivFin A a).val  have hinj : Function.Injective h := by    intro a b hab    by_cases ha : a = x    · by_cases hb : b = x      · exact ha.trans hb.symm      · exfalso        simp only [h, ha, hb, if_true, if_false] at hab        have := (Fintype.equivFin A b).isLt        omega    · by_cases hb : b = x      · exfalso        simp only [h, ha, hb, if_true, if_false] at hab        have := (Fintype.equivFin A a).isLt        omega      · simp only [h, ha, hb, if_false] at hab        exact (Fintype.equivFin A).injective (Fin.ext hab)  refine ⟨LinearOrder.lift' h hinj, ?_⟩  rw [order_top]  rw [@Finset.max'_eq_iff A (LinearOrder.lift' h hinj) Finset.univ Finset.univ_nonempty x]  refine ⟨Finset.mem_univ x, ?_⟩  intro b _  change h b ≤ h x  simp only [h, if_true]  by_cases hb : b = x  · simp [hb]  · simp only [hb, if_false]    have := (Fintype.equivFin A b).isLt    omega/-- Every voting rule satisfying the majority criterion is immune to obvious group manipulation by coalitions smaller than n/2. -/theorem op_2119_majority_immunity_below_half {N A : Type*} [Fintype N] [Fintype A] [Nonempty A]    (f : (N → LinearOrder A) → A) (h_maj : satisfies_majority_criterion f) (k : ℕ)    (hk : 2 * k < Fintype.card N) : is_k_nomg f k := by  classical  intro C hCne hCle  rintro ⟨P, P_dev, hman⟩  have hC : 2 * C.card < Fintype.card N := by omega  have key : ∀ Q : N → LinearOrder A, voting_option_set f C Q = Set.univ := by    intro Q    ext x    simp only [voting_option_set, Set.mem_ofPred_eq, Set.mem_univ, iff_true]    obtain ⟨Lx, hLx⟩ := op_2119_majority_immunity_below_half_exists_order_top (A := A) x    let P' : N → LinearOrder A := fun i => if i ∈ C then Q i else Lx    refine ⟨P', ?_, ?_⟩    · intro i hi      simp only [P', if_pos hi]    · apply h_maj P' x      have hsub : Finset.univ \ C ⊆          Finset.filter (fun i => @order_top A _ _ (P' i) = x) Finset.univ := by        intro i hi        simp only [Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_filter] at hi ⊢        simp only [P', if_neg hi, hLx]      have hcard := Finset.card_le_card hsub      rw [Finset.card_univ_sdiff] at hcard      have hcl := Finset.card_le_card (Finset.subset_univ C)      omega  have hT := key P  have hF := key P_dev  unfold has_obvious_group_manipulation at hman  rcases hman with ⟨x, hxT, hxy⟩ | ⟨y, hyF, hyx⟩  · have hx : x ∈ voting_option_set f C P := by rw [hT]; trivial    obtain ⟨i, hi⟩ := hCne    have hlt := hxy x (by rw [hF]; trivial) i hi    exact @lt_irrefl A (P i).toPreorder x hlt  · have hy : y ∈ voting_option_set f C P := by rw [hT]; trivial    obtain ⟨i, hi⟩ := hCne    have hlt := hyx y hy i hi    exact @lt_irrefl A (P i).toPreorder y hlt
See it in the graphDiscuss this resultChallenge it