AFTD Auto-Formalizing Theoretical Domains

can_force_of_majority

theoremverified

Under a voting rule f satisfying the majority criterion, any strict majority coalition C (with 2 * |C| > |N|) can force any alternative x.

Statement

theorem can_force_of_majority {N A : Type*} [Fintype N] [Fintype A] [Nonempty A]
    (f : (N → LinearOrder A) → A) (h_maj : satisfies_majority_criterion f)
    (C : Finset N) (hC : Fintype.card N < 2 * C.card) (x : A) :
    can_force f C x
Source
arXiv:2611.26224 Section 5.2
Verified
22 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.
  • can_forceA coalition of voters C can force an alternative x under voting rule f if there is a profile P at which the coalitional option set of C is…
  • 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.
  • g$g(S,M) = \dim_{\mathbb{F}_p}(S^{\perp}_M) - \dim_{\mathbb{F}_p}(S_M)$.

Read back from the Lean

Let $N$ and $A$ be finite types, with $A$ nonempty. Let $f : (N \to \mathrm{LinearOrder}(A)) \to A$ be a social choice function. Suppose $f$ satisfies the majority criterion (that is, for every profile $P : N \to \mathrm{LinearOrder}(A)$ and every alternative $y \in A$, if strictly more than half the voters in $N$ rank $y$ at the top of their linear order, then $f(P) = y$). Let $C \subseteq N$ be a coalition of voters comprising a strict majority of $N$ (i.e., $|N| < 2 \cdot |C|$). Then for every alternative $x \in A$, the coalition $C$ can force $x$ under $f$ (that is, there exists a profile $P$ such that the set of all outcomes $f(P')$ as $P'$ varies over profiles agreeing with $P$ on $C$ is the singleton $\{x\}$).

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

To show that any strict majority coalition C can force an alternative x under a voting rule satisfying the majority criterion, we construct a preference profile P in which every voter ranks x as their unique top choice. The existence of such a linear order is established by an auxiliary lemma that embeds the remaining alternatives below x into the natural numbers. When the members of C cast their votes according to P, any profile extending their vote still has every member of C ranking x at the top. Since C is a strict majority (2 * |C| > |N|), the majority criterion guarantees that the voting rule must select x in every such extension.

  1. Define a ranking function g on A that assigns the maximal value |A| to x and distinct smaller values to all other alternatives.

    We define g(a) to be |A| if a = x, and the index of a under the bijection with Fin |A| if a ≠ x. By definition, g(x) = |A| and g(a) equals the index of a for all a ≠ x.

    lines 4–8

      classical
      let g : A → ℕ := fun a => if a = x then Fintype.card A else (Fintype.equivFin A a).val
      have hgx : g x = Fintype.card A := by simp [g]
      have hga : ∀ a, a ≠ x → g a = (Fintype.equivFin A a).val := by
        intro a ha; simp [g, ha]
  2. The ranking function g is injective.

    Suppose g(a) = g(b). If both a = x and b = x, then a = b. If one equals x and the other does not, say a = x and b ≠ x, then |A| = g(x) = g(b) < |A|, which is impossible by Nat.ne_of_lt. If neither equals x, their indices in Fin |A| are equal by Fin.ext, so a = b by injectivity of the enumeration.

    lines 9–22

    uses Nat.ne_of_lt, Fin.ext

      have hinj : Function.Injective g := by
        intro a b hab
        by_cases ha : a = x
        · subst a
          by_cases hb : b = x
          · exact hb.symm
          · rw [hgx, hga b hb] at hab
            exact absurd hab.symm (Nat.ne_of_lt (Fintype.equivFin A b).isLt)
        · by_cases hb : b = x
          · subst b
            rw [hga a ha, hgx] at hab
            exact absurd hab (Nat.ne_of_lt (Fintype.equivFin A a).isLt)
          · rw [hga a ha, hga b hb] at hab
            exact (Fintype.equivFin A).injective (Fin.ext hab)
  3. There exists a linear order on A in which x is the unique top element.

    Using LinearOrder.lift', we pull back the standard linear order on ℕ along g to obtain a linear order L on A, so a ≤ b if and only if g(a) ≤ g(b) by Iff.rfl. For any a ∈ A, g(a) ≤ g(x) holds (using Nat.le_of_lt when a ≠ x), so a ≤ x in L. Because x ∈ Finset.univ by Finset.mem_univ and every b ∈ Finset.univ satisfies b ≤ x, Finset.max'_eq_iff confirms that x is the maximum element of the universe, that is, order_top L = x.

    lines 23–34

    uses LinearOrder.lift', Iff.rfl, Nat.le_of_lt, Finset.max'_eq_iff, Finset.mem_univ

      let L : LinearOrder A := LinearOrder.lift' g hinj
      refine ⟨L, ?_⟩
      have hle : ∀ a b : A, L.le a b ↔ g a ≤ g b := fun a b => Iff.rfl
      have hx_top : ∀ a : A, L.le a x := by
        intro a
        rw [hle, hgx]
        by_cases ha : a = x
        · simp [g, ha]
        · rw [hga a ha]; exact Nat.le_of_lt (Fintype.equivFin A a).isLt
      show (Finset.univ : Finset A).max' _ = x
      rw [Finset.max'_eq_iff]
      exact ⟨Finset.mem_univ x, fun b _ => hx_top b⟩
  4. Construct a profile P where every voter places x at the top, and reduce forcing to showing that voting_option_set f C P = {x}.

    For every voter i ∈ N, choose a linear order P(i) having x as its top element using Classical.choose and Classical.choose_spec applied to the auxiliary lemma can_force_of_majority_aux_exists_order_top. The coalition C has cardinality at most |N| by Finset.card_le_card and Finset.subset_univ. By Set.eq_singleton_iff_unique_mem, showing that C forces x via P reduces to showing x ∈ voting_option_set f C P and that every member of voting_option_set f C P equals x.

    lines 41–48

    uses can_force_of_majority_aux_exists_order_top, Classical.choose, Classical.choose_spec, Finset.card_le_card, Finset.subset_univ, Set.eq_singleton_iff_unique_mem

      classical
      let P : N → LinearOrder A := fun i => Classical.choose (can_force_of_majority_aux_exists_order_top A x)
      have hPtop : ∀ i : N, order_top (P i) = x := fun i =>
        Classical.choose_spec (can_force_of_majority_aux_exists_order_top A x)
      have h1 : C.card ≤ Fintype.card N := Finset.card_le_card (Finset.subset_univ C)
      refine ⟨P, ?_⟩
      rw [Set.eq_singleton_iff_unique_mem]
      constructor
  5. Alternative x belongs to voting_option_set f C P.

    Taking P' = P witnesses that x is achievable: P agrees with itself on C, and in profile P every voter ranks x at the top. The set of voters ranking x top is therefore all of Finset.univ, with cardinality |N| by Finset.card_univ. Since |N| < 2 * |C| ≤ 2 * |N|, the voters ranking x top form a strict majority of N. Applying the majority criterion (h_maj) gives f(P) = x.

    lines 49–54

    uses Finset.card_univ

      · refine ⟨P, fun i _ => rfl, ?_⟩
        apply h_maj P x
        have huniv : Finset.filter (fun i => order_top (P i) = x) Finset.univ = Finset.univ := by
          ext i; simp [hPtop i]
        rw [huniv, Finset.card_univ]
        omega
  6. Any outcome in voting_option_set f C P must equal x.

    Any element y in the option set is f(P') for some profile P' that agrees with P on C. For every voter i ∈ C, order_top (P' i) = order_top (P i) = x, so C is a subset of the voters ranking x top in P' (by Finset.mem_filter, Finset.mem_univ, and true_and). By Finset.card_le_card, at least |C| voters rank x top in P'. Because 2 * |C| > |N|, strictly more than half of the electorate ranks x top in P', so the majority criterion forces f(P') = x, hence y = x.

    lines 55–63

    uses Finset.mem_filter, Finset.mem_univ, true_and, Finset.card_le_card

      · rintro y ⟨P', hP', rfl⟩
        apply h_maj P' x
        have hsub : C ⊆ Finset.filter (fun i => order_top (P' i) = x) Finset.univ := by
          intro i hi
          simp only [Finset.mem_filter, Finset.mem_univ, true_and]
          rw [hP' i hi]
          exact hPtop i
        have hcard := Finset.card_le_card hsub
        omega
Nat.ne_of_lt
A strictly smaller natural number is not equal to a larger one.
Fin.ext
Two elements of Fin n are equal if their underlying natural values are equal.
LinearOrder.lift'
An injective map from a type into a linearly ordered type induces a linear order on the domain.
Iff.rfl
Logical equivalence of propositions is reflexive.
Nat.le_of_lt
Strict inequality between natural numbers implies non-strict inequality.
Finset.max'_eq_iff
The maximum of a nonempty finite set equals an element a if and only if a is in the set and every element in the set is at most a.
Finset.mem_univ
Every element of a finite type belongs to the universal finset.
can_force_of_majority_aux_exists_order_top
Every alternative in a finite nonempty type can be made the top element of some linear order.
Classical.choose
Given a proof of an existential statement, produces a witness.
Classical.choose_spec
The witness produced by Classical.choose satisfies the existential property.
Finset.card_le_card
A subset of a finite set has cardinality less than or equal to that of the superset.
Finset.subset_univ
Every finite set of elements from a finite type is a subset of the universal finset.
Set.eq_singleton_iff_unique_mem
A set equals the singleton {a} if and only if it contains a and every element in the set equals a.
Finset.card_univ
The cardinality of the universal finset of a finite type equals the type's cardinality.
Finset.mem_filter
An element belongs to a filtered finset if and only if it belongs to the base set and satisfies the predicate.
true_and
Conjunction with True simplifies to the conjunct itself.

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

/-- Every alternative can be made the top element of some linear order on a finite nonempty type. -/private lemma can_force_of_majority_aux_exists_order_top (A : Type*) [Fintype A] [Nonempty A]    (x : A) : ∃ L : LinearOrder A, order_top L = x := by  classical  let g : A → ℕ := fun a => if a = x then Fintype.card A else (Fintype.equivFin A a).val  have hgx : g x = Fintype.card A := by simp [g]  have hga : ∀ a, a ≠ x → g a = (Fintype.equivFin A a).val := by    intro a ha; simp [g, ha]  have hinj : Function.Injective g := by    intro a b hab    by_cases ha : a = x    · subst a      by_cases hb : b = x      · exact hb.symm      · rw [hgx, hga b hb] at hab        exact absurd hab.symm (Nat.ne_of_lt (Fintype.equivFin A b).isLt)    · by_cases hb : b = x      · subst b        rw [hga a ha, hgx] at hab        exact absurd hab (Nat.ne_of_lt (Fintype.equivFin A a).isLt)      · rw [hga a ha, hga b hb] at hab        exact (Fintype.equivFin A).injective (Fin.ext hab)  let L : LinearOrder A := LinearOrder.lift' g hinj  refine ⟨L, ?_⟩  have hle : ∀ a b : A, L.le a b ↔ g a ≤ g b := fun a b => Iff.rfl  have hx_top : ∀ a : A, L.le a x := by    intro a    rw [hle, hgx]    by_cases ha : a = x    · simp [g, ha]    · rw [hga a ha]; exact Nat.le_of_lt (Fintype.equivFin A a).isLt  show (Finset.univ : Finset A).max' _ = x  rw [Finset.max'_eq_iff]  exact ⟨Finset.mem_univ x, fun b _ => hx_top b⟩/-- Under a voting rule satisfying the majority criterion, any strict majority coalition can force any alternative. -/theorem can_force_of_majority {N A : Type*} [Fintype N] [Fintype A] [Nonempty A]    (f : (N → LinearOrder A) → A) (h_maj : satisfies_majority_criterion f)    (C : Finset N) (hC : Fintype.card N < 2 * C.card) (x : A) :    can_force f C x := by  classical  let P : N → LinearOrder A := fun i => Classical.choose (can_force_of_majority_aux_exists_order_top A x)  have hPtop : ∀ i : N, order_top (P i) = x := fun i =>    Classical.choose_spec (can_force_of_majority_aux_exists_order_top A x)  have h1 : C.card ≤ Fintype.card N := Finset.card_le_card (Finset.subset_univ C)  refine ⟨P, ?_⟩  rw [Set.eq_singleton_iff_unique_mem]  constructor  · refine ⟨P, fun i _ => rfl, ?_⟩    apply h_maj P x    have huniv : Finset.filter (fun i => order_top (P i) = x) Finset.univ = Finset.univ := by      ext i; simp [hPtop i]    rw [huniv, Finset.card_univ]    omega  · rintro y ⟨P', hP', rfl⟩    apply h_maj P' x    have hsub : C ⊆ Finset.filter (fun i => order_top (P' i) = x) Finset.univ := by      intro i hi      simp only [Finset.mem_filter, Finset.mem_univ, true_and]      rw [hP' i hi]      exact hPtop i    have hcard := Finset.card_le_card hsub    omega
See it in the graphDiscuss this resultChallenge it