AFTD Auto-Formalizing Theoretical Domains

impossibility_con_ucon_lex_cel_claim2

theoremverified

If an SRS R satisfies consistency (satisfies_con), union consistency (satisfies_ucon), and Lex-cel extension (satisfies_le), and x ≠ y are individuals disjoint from a finite coalition S, and r₁, r₂ are power relations whose single equivalence classes are {insert x S} and {insert y S} respectively, then R ranks x and y indifferent at the profile {r₁, r₂} (both R.rel {r₁, r₂} x y and R.rel {r₁, r₂} y x hold).

Statement

theorem impossibility_con_ucon_lex_cel_claim2 {X : Type*} [DecidableEq X]
    (R : SocialRankingSolution X)
    (hCON : satisfies_con R) (hUCON : satisfies_ucon R) (hLE : satisfies_le R)
    (x y : X) (hxy : x ≠ y) (S : Finset X) (hS : x ∉ S ∧ y ∉ S)
    (r₁ r₂ : PowerRelation X)
    (hr₁ : r₁.classes = [{insert x S}])
    (hr₂ : r₂.classes = [{insert y S}]) :
    R.rel {r₁, r₂} x y ∧ R.rel {r₁, r₂} y x
Source
arXiv:2611.19021 Claim 2
Verified
23 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 14
  • SocialRankingSolutionA social ranking solution (SRS) maps each profile of power relations to a complete binary relation on the individuals.
  • satisfies_conAn SRS R satisfies consistency (CON) if for all power profiles π₁, π₂, and π such that π₁.card = π₂.card and is_merging_sum_power_profile…
  • satisfies_uconAn SRS satisfies union consistency (UCON) if whenever x is weakly preferred to y in two profiles π₁ and π₂, x is weakly preferred to y in…
  • satisfies_leAn SRS R satisfies Lex-cel extension (LE) if for every power relation r and all individuals x and y, R.rel {r} x y holds if and only if…
  • PowerRelationA power relation is a weak order on a finite collection of feasible coalitions of individuals, represented by an ordered partition into…
  • PowerProfileA power profile is a finite multiset of power relations.
  • lex_geA binary relation on lists of natural numbers defined recursively: lex_ge [] [] is True; lex_ge [] (_ :: _) is False; lex_ge (_ :: _) []…
  • lex_celFor individuals x and y and a power relation r, x is weakly preferred to y under the Lex-cel solution at r, denoted lex_cel r x y, if…
  • is_merging_sum_power_relationA power relation r is a merging sum of two power relations r₁ and r₂ with disjoint coalition domains if the carrier of r is the union of…
  • srs_strictIndividual x is strictly preferred to y under an SRS R at profile π if x is weakly preferred to y and y is not weakly preferred to x.
  • power_relation_carrierThe carrier of a power relation r is the set of all coalitions appearing in some equivalence class of r.
  • power_relation_relCoalition S is weakly preferred to coalition T under power relation r if the equivalence class of S is ranked at least as high as that of T.
  • is_merging_sum_power_profileA profile π is a merging sum of two profiles π₁ and π₂ of equal cardinality if their elements can be ordered as lists such that each…
  • appearance_vectorThe appearance vector of an individual z in a power relation r is the list whose k-th element is the number of coalitions in the k-th…
Used by 1
  • impossibility_con_ucon_lex_celFor any countably infinite type of individuals X with decidable equality, no social ranking solution R on X simultaneously satisfies…

Read back from the Lean

For any type $X$ with decidable equality: Let $R$ be a social ranking solution on $X$ (which maps any power profile $\pi$ to a complete binary relation on $X$). Suppose $R$ satisfies: 1. Consistency under merging sum (satisfies_con): for any profiles $\pi_1, \pi_2, \pi$ with $|\pi_1| = |\pi_2|$ such that $\pi$ is a merging sum of $\pi_1$ and $\pi_2$, $R$ preserves consensus on weak rankings and strict rankings from $\pi_1$ and $\pi_2$ to $\pi$; 2. Union consistency (satisfies_ucon): for any profiles $\pi_1, \pi_2$ and any elements, $R$ preserves consensus on weak rankings and strict rankings from $\pi_1$ and $\pi_2$ to $\pi_1 + \pi_2$; 3. Lexicographical excellence on singletons (satisfies_le): on any single-relation profile $\{r\}$, $R$'s ranking between any two elements coincides with their ranking under the lexicographical excellence relation $\mathrm{lex\_cel}(r)$. Let $x, y \in X$ with $x \ne y$, and let $S$ be a finite subset of $X$ containing neither $x$ nor $y$ ($x \notin S \land y \notin S$). Let $r_1, r_2$ be power relations on $X$ whose equivalence classes are singletons: - $r_1.\mathrm{classes} = [\{S \cup \{x\}\}]$ (a single class containing only the coalition $S \cup \{x\}$), - $r_2.\mathrm{classes} = [\{S \cup \{y\}\}]$ (a single class containing only the coalition $S \cup \{y\}$). Then, under the two-relation profile $\{r_1, r_2\}$, $R$ ranks $x$ weakly above $y$ and $y$ weakly above $x$ (i.e., $x$ and $y$ are tied/indifferent: $R.\mathrm{rel}\; \{r_1, r_2\}\; x\; y \land R.\mathrm{rel}\; \{r_1, r_2\}\; y\; 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

The theorem establishes that any social ranking solution (SRS) satisfying consistency (CON), union consistency (UCON), and Lex-cel extension (LE) must rank two disjoint individuals x and y as indifferent at the profile of singleton power relations {r₁, r₂} where r₁ contains only S ∪ {x} and r₂ contains only S ∪ {y}. The proof proceeds by first establishing an auxiliary lemma that strict preference x ≻ y is impossible. If x ≻ y held, constructing the merged power relation r' with unique class {S ∪ {x}, S ∪ {y}} would make {r', r'} a merging sum profile of {r₁, r₂} with itself, forcing x ≻ y on {r', r'} by consistency. However, x and y have identical appearance vectors [1] in r', so Lex-cel extension and union consistency force y ≽ x on {r', r'}, a contradiction. By symmetry, y ≻ x is also impossible, and completeness of the SRS forces indifference.

  1. Assume for contradiction that R strictly ranks x over y at {r₁, r₂}, and define a merged power relation r' with the single equivalence class {insert x S, insert y S}.

    We assume strict ranking x ≻ y at profile {r₁, r₂} for contradiction. We let C be the set of coalitions {insert x S, insert y S}. We check that [C] is a valid list of equivalence classes: C is nonempty (containing insert x S) and the singleton list [C] is trivially pairwise disjoint. We bundle these into the power relation r'.

    lines 9–18

    uses List.mem_singleton, Finset.mem_insert_self

      intro h_strict
      let C : Finset (Finset X) := {insert x S, insert y S}
      have hC_ne : ∀ c ∈ [C], c.Nonempty := by
        intro c hc
        simp only [List.mem_singleton] at hc
        subst hc
        exact ⟨insert x S, Finset.mem_insert_self _ _⟩
      have hC_disj : List.Pairwise Disjoint [C] := List.Pairwise.nil.cons (by simp)
      let r' : PowerRelation X := ⟨[C], hC_ne, hC_disj⟩
      have hr' : r'.classes = [{insert x S, insert y S}] := rfl
  2. The coalitions insert x S and insert y S are distinct.

    If insert x S = insert y S, then x ∈ insert x S implies x ∈ insert y S, meaning x = y or x ∈ S. Both possibilities contradict the hypotheses x ≠ y and x ∉ S.

    lines 19–23

    uses Finset.mem_insert_self, Finset.mem_insert

      have hne : insert x S ≠ insert y S := by
        intro h
        have : x ∈ insert x S := Finset.mem_insert_self x S
        rw [h] at this
        simp [Finset.mem_insert, hxy, hS.1] at this
  3. The relation r' is a merging sum of r₁ and r₂.

    We verify the four conditions of a merging sum: (1) the carriers {insert x S} and {insert y S} are disjoint because the coalitions are distinct; (2) the carrier of r' is the union of the carriers of r₁ and r₂; (3) on {insert x S}, the relation in r' coincides with r₁ reflexively; and (4) on {insert y S}, the relation in r' coincides with r₂ reflexively.

    lines 25–61

    uses Set.disjoint_singleton_left.mpr, or_comm, Set.mem_singleton_iff

      have h_merge1 : is_merging_sum_power_relation r' r₁ r₂ := by
        dsimp [is_merging_sum_power_relation]
        have c1 : power_relation_carrier r₁ = ({insert x S} : Set (Finset X)) := by
          rcases r₁ with ⟨cl, h1, h2⟩; dsimp at hr₁ ⊢; subst hr₁; dsimp [power_relation_carrier]; ext A; simp
        have c2 : power_relation_carrier r₂ = ({insert y S} : Set (Finset X)) := by
          rcases r₂ with ⟨cl, h1, h2⟩; dsimp at hr₂ ⊢; subst hr₂; dsimp [power_relation_carrier]; ext A; simp
        have c' : power_relation_carrier r' = ({insert x S, insert y S} : Set (Finset X)) := by
          rcases r' with ⟨cl, h1, h2⟩; dsimp at hr' ⊢; subst hr'; dsimp [power_relation_carrier]; ext A; simp
        refine ⟨?_, ?_, ?_, ?_⟩
        · rw [c1, c2]
          exact Set.disjoint_singleton_left.mpr (by simp [hne])
        · rw [c', c1, c2]
          ext A; simp [or_comm]
        · intro A hA B hB
          rw [c1] at hA hB
          simp only [Set.mem_singleton_iff] at hA hB
          subst hA hB
          have hA' : insert x S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp
          have h1 : power_relation_rel r' (insert x S) (insert x S) := by
            rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩
          have h2 : power_relation_rel r₁ (insert x S) (insert x S) := by
            rcases r₁ with ⟨cl, hne', hd'⟩; dsimp at hr₁ ⊢; subst hr₁
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩
          exact iff_of_true h1 h2
        · intro A hA B hB
          rw [c2] at hA hB
          simp only [Set.mem_singleton_iff] at hA hB
          subst hA hB
          have hA' : insert y S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp
          have h1 : power_relation_rel r' (insert y S) (insert y S) := by
            rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩
          have h2 : power_relation_rel r₂ (insert y S) (insert y S) := by
            rcases r₂ with ⟨cl, hne', hd'⟩; dsimp at hr₂ ⊢; subst hr₂
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩
          exact iff_of_true h1 h2
  4. The relation r' is also a merging sum of r₂ and r₁.

    Symmetrically, we check that r' is a merging sum of r₂ and r₁ by verifying disjointness of the carriers, union of the carriers, and reflexive agreement of the relation on each singleton carrier.

    lines 63–99

    uses Set.disjoint_singleton_right.mpr, Set.mem_singleton_iff

      have h_merge2 : is_merging_sum_power_relation r' r₂ r₁ := by
        dsimp [is_merging_sum_power_relation]
        have c1 : power_relation_carrier r₁ = ({insert x S} : Set (Finset X)) := by
          rcases r₁ with ⟨cl, h1, h2⟩; dsimp at hr₁ ⊢; subst hr₁; dsimp [power_relation_carrier]; ext A; simp
        have c2 : power_relation_carrier r₂ = ({insert y S} : Set (Finset X)) := by
          rcases r₂ with ⟨cl, h1, h2⟩; dsimp at hr₂ ⊢; subst hr₂; dsimp [power_relation_carrier]; ext A; simp
        have c' : power_relation_carrier r' = ({insert x S, insert y S} : Set (Finset X)) := by
          rcases r' with ⟨cl, h1, h2⟩; dsimp at hr' ⊢; subst hr'; dsimp [power_relation_carrier]; ext A; simp
        refine ⟨?_, ?_, ?_, ?_⟩
        · rw [c1, c2]
          exact Set.disjoint_singleton_right.mpr (by simp [hne])
        · rw [c', c1, c2]
          ext A; simp
        · intro A hA B hB
          rw [c2] at hA hB
          simp only [Set.mem_singleton_iff] at hA hB
          subst hA hB
          have hA' : insert y S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp
          have h1 : power_relation_rel r' (insert y S) (insert y S) := by
            rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩
          have h2 : power_relation_rel r₂ (insert y S) (insert y S) := by
            rcases r₂ with ⟨cl, hne', hd'⟩; dsimp at hr₂ ⊢; subst hr₂
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩
          exact iff_of_true h1 h2
        · intro A hA B hB
          rw [c1] at hA hB
          simp only [Set.mem_singleton_iff] at hA hB
          subst hA hB
          have hA' : insert x S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp
          have h1 : power_relation_rel r' (insert x S) (insert x S) := by
            rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩
          have h2 : power_relation_rel r₁ (insert x S) (insert x S) := by
            rcases r₁ with ⟨cl, hne', hd'⟩; dsimp at hr₁ ⊢; subst hr₁
            exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩
          exact iff_of_true h1 h2
  5. The profile {r', r'} is a merging sum profile of {r₁, r₂} with {r₁, r₂}.

    We represent the profile {r', r'} as the list [r', r'] and the profile {r₁, r₂} as [r₁, r₂] and [r₂, r₁]. By multiset commutativity, [r₂, r₁] represents the profile {r₁, r₂}. In the first coordinate, r' is a merging sum of r₁ and r₂, and in the second coordinate, r' is a merging sum of r₂ and r₁.

    lines 101–112

    uses Multiset.cons_swap

      have h_prof : is_merging_sum_power_profile ({r', r'} : PowerProfile X) {r₁, r₂} {r₁, r₂} := by
        use [r', r'], [r₁, r₂], [r₂, r₁]
        refine ⟨rfl, rfl, ?_, rfl, rfl, ?_⟩
        · change ({r₁, r₂} : PowerProfile X) = r₂ ::ₘ r₁ ::ₘ 0
          exact Multiset.cons_swap r₁ r₂ 0
        · intro i h₁ h₂ h
          match i with
          | 0 => exact h_merge1
          | 1 => exact h_merge2
          | n + 2 =>
            have : (n + 2) < 2 := h
            omega
  6. Consistency preserves strict preference, so R strictly ranks x over y at {r', r'}, and hence does not rank y weakly preferred to x.

    By consistency (satisfies_con), since x ≻ y and x ≽ y hold at {r₁, r₂}, the strict preference is preserved on the merging sum profile {r', r'}. Strict ranking x ≻ y means by definition that ¬ R.rel {r', r'} y x.

    lines 114–118

      have h_strict_pp : srs_strict R ({r', r'} : PowerProfile X) x y := by
        have hCON_app := hCON {r₁, r₂} {r₁, r₂} {r', r'} rfl h_prof x y
        exact hCON_app.2 h_strict h_strict.1
    
      have h_not_rel : ¬ R.rel {r', r'} y x := h_strict_pp.2
  7. Individuals x and y have identical appearance vectors [1] in r', so y is weakly preferred to x under Lex-cel.

    The power relation r' has a single equivalence class C = {insert x S, insert y S}. Since x belongs to insert x S but not insert y S, exactly one coalition in C contains x, giving appearance vector [1]. Symmetrically, y belongs to insert y S but not insert x S, giving appearance vector [1]. Since their appearance vectors are equal, y ≽ x holds under the Lex-cel ranking.

    lines 120–149

    uses Finset.mem_insert_self, Finset.mem_insert, Ne.symm, Finset.mem_filter, Finset.mem_singleton, Or.inl, Or.inr

      have h_le_yx : lex_cel r' y x := by
        dsimp [lex_cel]
        have hx1 : x ∈ insert x S := Finset.mem_insert_self x S
        have hx2 : x ∉ insert y S := by simp [Finset.mem_insert, hxy, hS.1]
        have hy1 : y ∉ insert x S := by simp [Finset.mem_insert, Ne.symm hxy, hS.2]
        have hy2 : y ∈ insert y S := Finset.mem_insert_self y S
        have hx_set : {s ∈ ({insert x S, insert y S} : Finset (Finset X)) | x ∈ s} = {insert x S} := by
          ext s
          simp only [Finset.mem_filter, Finset.mem_insert, Finset.mem_singleton]
          constructor
          · rintro ⟨(rfl | rfl), hs⟩
            · rfl
            · contradiction
          · rintro rfl
            exact ⟨Or.inl rfl, hx1⟩
        have hy_set : {s ∈ ({insert x S, insert y S} : Finset (Finset X)) | y ∈ s} = {insert y S} := by
          ext s
          simp only [Finset.mem_filter, Finset.mem_insert, Finset.mem_singleton]
          constructor
          · rintro ⟨(rfl | rfl), hs⟩
            · contradiction
            · rfl
          · rintro rfl
            exact ⟨Or.inr rfl, hy2⟩
        have h_av_x : appearance_vector r' x = [1] := by
          dsimp [appearance_vector]; rw [hr']; dsimp [List.map]; rw [hx_set]; simp
        have h_av_y : appearance_vector r' y = [1] := by
          dsimp [appearance_vector]; rw [hr']; dsimp [List.map]; rw [hy_set]; simp
        rw [h_av_y, h_av_x]
        exact Or.inr ⟨rfl, trivial⟩
  8. By Lex-cel extension and union consistency, R must rank y weakly preferred to x at {r', r'}, yielding a contradiction.

    By Lex-cel extension (satisfies_le), R agrees with Lex-cel on single-relation profiles, so R.rel {r'} y x holds. By union consistency (satisfies_ucon), weak preference is preserved under multiset sum, giving R.rel ({r'} + {r'}) y x. Since {r', r'} = {r'} + {r'}, this asserts R.rel {r', r'} y x, directly contradicting the previous step. This completes the auxiliary lemma.

    lines 151–161

    uses Multiset.cons_add, Multiset.zero_add

      have h_rel_single : R.rel {r'} y x := (hLE r' y x).mpr h_le_yx
    
      have h_rel_sum : R.rel ({r'} + {r'}) y x :=
        (hUCON {r'} {r'} y x).1 h_rel_single h_rel_single
    
      have h_eq : ({r', r'} : PowerProfile X) = {r'} + {r'} := by
        change r' ::ₘ r' ::ₘ 0 = (r' ::ₘ 0) + (r' ::ₘ 0)
        rw [Multiset.cons_add, Multiset.zero_add]
    
      rw [h_eq] at h_not_rel
      exact h_not_rel h_rel_sum
  9. Neither strict ranking x ≻ y nor y ≻ x can hold at profile {r₁, r₂}.

    The auxiliary lemma directly establishes ¬ srs_strict R {r₁, r₂} x y. Swapping x and y along with r₁ and r₂, the auxiliary lemma also gives ¬ srs_strict R {r₂, r₁} y x. Since {r₁, r₂} = {r₂, r₁} as multisets, strict ranking in either direction is ruled out.

    lines 172–181

    uses impossibility_con_ucon_lex_cel_claim2_aux, Multiset.cons_swap, Ne.symm

      have h1 : ¬ srs_strict R {r₁, r₂} x y :=
        impossibility_con_ucon_lex_cel_claim2_aux R hCON hUCON hLE x y hxy S hS r₁ r₂ hr₁ hr₂
      have h_swap : ({r₁, r₂} : PowerProfile X) = {r₂, r₁} := by
        change r₁ ::ₘ r₂ ::ₘ 0 = r₂ ::ₘ r₁ ::ₘ 0
        exact Multiset.cons_swap r₁ r₂ 0
      have h2' : ¬ srs_strict R {r₂, r₁} y x :=
        impossibility_con_ucon_lex_cel_claim2_aux R hCON hUCON hLE y x (Ne.symm hxy) S ⟨hS.2, hS.1⟩ r₂ r₁ hr₂ hr₁
      have h2 : ¬ srs_strict R {r₁, r₂} y x := by
        rw [h_swap]
        exact h2'
  10. At profile {r₁, r₂}, R ranks x and y indifferent: both R.rel {r₁, r₂} x y and R.rel {r₁, r₂} y x hold.

    By completeness of R, either R.rel {r₁, r₂} x y or R.rel {r₁, r₂} y x must hold. In either case, if the opposite weak preference failed, the relation would be a strict ranking, contradicting the previous step. Thus both weak preferences hold.

    lines 182–192

      cases R.complete {r₁, r₂} x y with
      | inl hxy_rel =>
        by_cases hyx_rel : R.rel {r₁, r₂} y x
        · exact ⟨hxy_rel, hyx_rel⟩
        · exfalso
          exact h1 ⟨hxy_rel, hyx_rel⟩
      | inr hyx_rel =>
        by_cases hxy_rel : R.rel {r₁, r₂} x y
        · exact ⟨hxy_rel, hyx_rel⟩
        · exfalso
          exact h2 ⟨hyx_rel, hxy_rel⟩
List.mem_singleton
An element belongs to a singleton list [b] if and only if it equals b.
Finset.mem_insert_self
An element a belongs to insert a s.
Finset.mem_insert
An element belongs to insert b s if and only if it equals b or belongs to s.
Set.disjoint_singleton_left.mpr
If an element does not belong to a set, its singleton is disjoint from that set.
or_comm
Disjunction is commutative: a ∨ b ↔ b ∨ a.
Set.mem_singleton_iff
An element belongs to the singleton set {b} if and only if it equals b.
Set.disjoint_singleton_right.mpr
If an element does not belong to a set, that set is disjoint from its singleton.
Multiset.cons_swap
Prepending elements to a multiset is commutative: a ::ₘ b ::ₘ s = b ::ₘ a ::ₘ s.
Ne.symm
Inequality is symmetric: if a ≠ b then b ≠ a.
Finset.mem_filter
An element belongs to a filtered finite set if and only if it belongs to the set and satisfies the predicate.
Finset.mem_singleton
An element belongs to a singleton finite set {a} if and only if it equals a.
Or.inl
Infers a disjunction a ∨ b from a proof of the left disjunct a.
Or.inr
Infers a disjunction a ∨ b from a proof of the right disjunct b.
Multiset.cons_add
Prepending to the first summand in multiset addition distributes: (a ::ₘ s) + t = a ::ₘ (s + t).
Multiset.zero_add
The empty multiset is the left identity for multiset addition: 0 + s = s.
impossibility_con_ucon_lex_cel_claim2_aux
Under consistency, union consistency, and Lex-cel extension, an SRS cannot strictly rank x over y at profile {r₁, r₂} where r₁ and r₂ have single classes {insert x S} and {insert y S} respectively.

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

lemma impossibility_con_ucon_lex_cel_claim2_aux {X : Type*} [DecidableEq X]    (R : SocialRankingSolution X)    (hCON : satisfies_con R) (hUCON : satisfies_ucon R) (hLE : satisfies_le R)    (x y : X) (hxy : x ≠ y) (S : Finset X) (hS : x ∉ S ∧ y ∉ S)    (r₁ r₂ : PowerRelation X)    (hr₁ : r₁.classes = [{insert x S}])    (hr₂ : r₂.classes = [{insert y S}]) :    ¬ srs_strict R {r₁, r₂} x y := by  intro h_strict  let C : Finset (Finset X) := {insert x S, insert y S}  have hC_ne : ∀ c ∈ [C], c.Nonempty := by    intro c hc    simp only [List.mem_singleton] at hc    subst hc    exact ⟨insert x S, Finset.mem_insert_self _ _⟩  have hC_disj : List.Pairwise Disjoint [C] := List.Pairwise.nil.cons (by simp)  let r' : PowerRelation X := ⟨[C], hC_ne, hC_disj⟩  have hr' : r'.classes = [{insert x S, insert y S}] := rfl  have hne : insert x S ≠ insert y S := by    intro h    have : x ∈ insert x S := Finset.mem_insert_self x S    rw [h] at this    simp [Finset.mem_insert, hxy, hS.1] at this  have h_merge1 : is_merging_sum_power_relation r' r₁ r₂ := by    dsimp [is_merging_sum_power_relation]    have c1 : power_relation_carrier r₁ = ({insert x S} : Set (Finset X)) := by      rcases r₁ with ⟨cl, h1, h2⟩; dsimp at hr₁ ⊢; subst hr₁; dsimp [power_relation_carrier]; ext A; simp    have c2 : power_relation_carrier r₂ = ({insert y S} : Set (Finset X)) := by      rcases r₂ with ⟨cl, h1, h2⟩; dsimp at hr₂ ⊢; subst hr₂; dsimp [power_relation_carrier]; ext A; simp    have c' : power_relation_carrier r' = ({insert x S, insert y S} : Set (Finset X)) := by      rcases r' with ⟨cl, h1, h2⟩; dsimp at hr' ⊢; subst hr'; dsimp [power_relation_carrier]; ext A; simp    refine ⟨?_, ?_, ?_, ?_⟩    · rw [c1, c2]      exact Set.disjoint_singleton_left.mpr (by simp [hne])    · rw [c', c1, c2]      ext A; simp [or_comm]    · intro A hA B hB      rw [c1] at hA hB      simp only [Set.mem_singleton_iff] at hA hB      subst hA hB      have hA' : insert x S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp      have h1 : power_relation_rel r' (insert x S) (insert x S) := by        rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩      have h2 : power_relation_rel r₁ (insert x S) (insert x S) := by        rcases r₁ with ⟨cl, hne', hd'⟩; dsimp at hr₁ ⊢; subst hr₁        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩      exact iff_of_true h1 h2    · intro A hA B hB      rw [c2] at hA hB      simp only [Set.mem_singleton_iff] at hA hB      subst hA hB      have hA' : insert y S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp      have h1 : power_relation_rel r' (insert y S) (insert y S) := by        rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩      have h2 : power_relation_rel r₂ (insert y S) (insert y S) := by        rcases r₂ with ⟨cl, hne', hd'⟩; dsimp at hr₂ ⊢; subst hr₂        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩      exact iff_of_true h1 h2  have h_merge2 : is_merging_sum_power_relation r' r₂ r₁ := by    dsimp [is_merging_sum_power_relation]    have c1 : power_relation_carrier r₁ = ({insert x S} : Set (Finset X)) := by      rcases r₁ with ⟨cl, h1, h2⟩; dsimp at hr₁ ⊢; subst hr₁; dsimp [power_relation_carrier]; ext A; simp    have c2 : power_relation_carrier r₂ = ({insert y S} : Set (Finset X)) := by      rcases r₂ with ⟨cl, h1, h2⟩; dsimp at hr₂ ⊢; subst hr₂; dsimp [power_relation_carrier]; ext A; simp    have c' : power_relation_carrier r' = ({insert x S, insert y S} : Set (Finset X)) := by      rcases r' with ⟨cl, h1, h2⟩; dsimp at hr' ⊢; subst hr'; dsimp [power_relation_carrier]; ext A; simp    refine ⟨?_, ?_, ?_, ?_⟩    · rw [c1, c2]      exact Set.disjoint_singleton_right.mpr (by simp [hne])    · rw [c', c1, c2]      ext A; simp    · intro A hA B hB      rw [c2] at hA hB      simp only [Set.mem_singleton_iff] at hA hB      subst hA hB      have hA' : insert y S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp      have h1 : power_relation_rel r' (insert y S) (insert y S) := by        rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩      have h2 : power_relation_rel r₂ (insert y S) (insert y S) := by        rcases r₂ with ⟨cl, hne', hd'⟩; dsimp at hr₂ ⊢; subst hr₂        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩      exact iff_of_true h1 h2    · intro A hA B hB      rw [c1] at hA hB      simp only [Set.mem_singleton_iff] at hA hB      subst hA hB      have hA' : insert x S ∈ ({insert x S, insert y S} : Finset (Finset X)) := by simp      have h1 : power_relation_rel r' (insert x S) (insert x S) := by        rcases r' with ⟨cl, hne', hd'⟩; dsimp at hr' ⊢; subst hr'        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, hA', hA', le_rfl⟩      have h2 : power_relation_rel r₁ (insert x S) (insert x S) := by        rcases r₁ with ⟨cl, hne', hd'⟩; dsimp at hr₁ ⊢; subst hr₁        exact ⟨0, 0, Nat.zero_lt_one, Nat.zero_lt_one, by simp, by simp, le_rfl⟩      exact iff_of_true h1 h2  have h_prof : is_merging_sum_power_profile ({r', r'} : PowerProfile X) {r₁, r₂} {r₁, r₂} := by    use [r', r'], [r₁, r₂], [r₂, r₁]    refine ⟨rfl, rfl, ?_, rfl, rfl, ?_⟩    · change ({r₁, r₂} : PowerProfile X) = r₂ ::ₘ r₁ ::ₘ 0      exact Multiset.cons_swap r₁ r₂ 0    · intro i h₁ h₂ h      match i with      | 0 => exact h_merge1      | 1 => exact h_merge2      | n + 2 =>        have : (n + 2) < 2 := h        omega  have h_strict_pp : srs_strict R ({r', r'} : PowerProfile X) x y := by    have hCON_app := hCON {r₁, r₂} {r₁, r₂} {r', r'} rfl h_prof x y    exact hCON_app.2 h_strict h_strict.1  have h_not_rel : ¬ R.rel {r', r'} y x := h_strict_pp.2  have h_le_yx : lex_cel r' y x := by    dsimp [lex_cel]    have hx1 : x ∈ insert x S := Finset.mem_insert_self x S    have hx2 : x ∉ insert y S := by simp [Finset.mem_insert, hxy, hS.1]    have hy1 : y ∉ insert x S := by simp [Finset.mem_insert, Ne.symm hxy, hS.2]    have hy2 : y ∈ insert y S := Finset.mem_insert_self y S    have hx_set : {s ∈ ({insert x S, insert y S} : Finset (Finset X)) | x ∈ s} = {insert x S} := by      ext s      simp only [Finset.mem_filter, Finset.mem_insert, Finset.mem_singleton]      constructor      · rintro ⟨(rfl | rfl), hs⟩        · rfl        · contradiction      · rintro rfl        exact ⟨Or.inl rfl, hx1⟩    have hy_set : {s ∈ ({insert x S, insert y S} : Finset (Finset X)) | y ∈ s} = {insert y S} := by      ext s      simp only [Finset.mem_filter, Finset.mem_insert, Finset.mem_singleton]      constructor      · rintro ⟨(rfl | rfl), hs⟩        · contradiction        · rfl      · rintro rfl        exact ⟨Or.inr rfl, hy2⟩    have h_av_x : appearance_vector r' x = [1] := by      dsimp [appearance_vector]; rw [hr']; dsimp [List.map]; rw [hx_set]; simp    have h_av_y : appearance_vector r' y = [1] := by      dsimp [appearance_vector]; rw [hr']; dsimp [List.map]; rw [hy_set]; simp    rw [h_av_y, h_av_x]    exact Or.inr ⟨rfl, trivial⟩  have h_rel_single : R.rel {r'} y x := (hLE r' y x).mpr h_le_yx  have h_rel_sum : R.rel ({r'} + {r'}) y x :=    (hUCON {r'} {r'} y x).1 h_rel_single h_rel_single  have h_eq : ({r', r'} : PowerProfile X) = {r'} + {r'} := by    change r' ::ₘ r' ::ₘ 0 = (r' ::ₘ 0) + (r' ::ₘ 0)    rw [Multiset.cons_add, Multiset.zero_add]  rw [h_eq] at h_not_rel  exact h_not_rel h_rel_sum/-- Step 1 of Theorem 3: under CON, UCON, and LE, an SRS ranks x and y indifferent on a profile of two singleton power relations. -/theorem impossibility_con_ucon_lex_cel_claim2 {X : Type*} [DecidableEq X]    (R : SocialRankingSolution X)    (hCON : satisfies_con R) (hUCON : satisfies_ucon R) (hLE : satisfies_le R)    (x y : X) (hxy : x ≠ y) (S : Finset X) (hS : x ∉ S ∧ y ∉ S)    (r₁ r₂ : PowerRelation X)    (hr₁ : r₁.classes = [{insert x S}])    (hr₂ : r₂.classes = [{insert y S}]) :    R.rel {r₁, r₂} x y ∧ R.rel {r₁, r₂} y x := by  have h1 : ¬ srs_strict R {r₁, r₂} x y :=    impossibility_con_ucon_lex_cel_claim2_aux R hCON hUCON hLE x y hxy S hS r₁ r₂ hr₁ hr₂  have h_swap : ({r₁, r₂} : PowerProfile X) = {r₂, r₁} := by    change r₁ ::ₘ r₂ ::ₘ 0 = r₂ ::ₘ r₁ ::ₘ 0    exact Multiset.cons_swap r₁ r₂ 0  have h2' : ¬ srs_strict R {r₂, r₁} y x :=    impossibility_con_ucon_lex_cel_claim2_aux R hCON hUCON hLE y x (Ne.symm hxy) S ⟨hS.2, hS.1⟩ r₂ r₁ hr₂ hr₁  have h2 : ¬ srs_strict R {r₁, r₂} y x := by    rw [h_swap]    exact h2'  cases R.complete {r₁, r₂} x y with  | inl hxy_rel =>    by_cases hyx_rel : R.rel {r₁, r₂} y x    · exact ⟨hxy_rel, hyx_rel⟩    · exfalso      exact h1 ⟨hxy_rel, hyx_rel⟩  | inr hyx_rel =>    by_cases hxy_rel : R.rel {r₁, r₂} x y    · exact ⟨hxy_rel, hyx_rel⟩    · exfalso      exact h2 ⟨hyx_rel, hxy_rel⟩
See it in the graphDiscuss this resultChallenge it