1 Introduction

The study of switching functions goes back at least to Dedekind’s work (1897), in which he determined the exact number of simple games with four or fewer players. Since that time these structures have been investigated in a variety of different contexts either theoretically (Golomb 1959; Hammer et al. 1981; Hammer and Holzman 1992; Hammer et al. 2000; Bohossian and Bruck 2003) in the context of Boolean functions or because of their numerous applications: neural networks (Anthony and Holden 1994), simple games (Neumann and Morgenstern 1944; Isbell 1956, 1958; Peleg 1968), threshold logic (Elgot 1961; Chow 1961; Gabelman 1961; Hu 1965; Muroga 1971), hypergraphs (Reiterman et al. 1985), coherent structures (Ramamurthy 1990), learning theory (Littlestone 1988), complexity theory (Beimel and Weinreb 2006), and secret sharing (Simmons 1990; Tassa 2007; Beimel et al. 2008). Several books on neural networks have studied these structures: Parberry (1994), Roychowdhury et al. (1994), Siu et al. (1995), Picton (2000).

Logic gates, switching functions or Boolean functions can be thought of as simple games, with weighted games playing the role of threshold functions. To the best of our knowledge the first work linking threshold logic and simple games is due to Dubey and Shapley (1979) and a compact study encompassing knowledge in both fields is due to Taylor and Zwicker (1999).

As an example for a switching function or a simple game one may consider the process of coordination of the weekend activities of a family. Assume that the family consists of the parents Ann and Bob and their children Claire and Dylan. A proposal is accepted if at least one of the parents and at least one of the children agrees, while each person can either agree or disagree. The underlying decision rule can be modeled as a simple game.Footnote 1 A compact way to represent a simple game is by using weights for each player such that a proposal is accepted if and only if the weight sum of its supporters meets or exceeds a given quota (or threshold). If such a representation exists, the simple game is called a weighted game. In our example no weighted representation exists, since the coalitions of the parents and of the children cannot push through a proposal, while they can if they split differently in coalitions of size two.Footnote 2 However, every simple game can be written as the intersection of some weighted games. The Lisbon voting rules of the EU Council provide a non-weighted real-world example where quite a few weighted games are needed in such a representation. See Kurz and Napel (2016) for the details.

One of the most fundamental questions in all of the above-mentioned areas is to characterize which monotonic switching functions (simple games) are weighted threshold functions (weighted games). In threshold logic, this is known as the linear separability problem. This question has also been posed in other research fields by using different terminologies, which are essentially equivalent. Three different treatments to solve this problem have been considered.

The first consists in studying the consistency of a system of inequalities. Each inequality is formed by the inner product of two vectors: a non-negative integer vector of weights which represents the unknown variables and the vector formed by the subtraction of a true vector (winning coalition) minus a false vector (losing coalition). The system is formed by considering all possible subtractions of true and false vectors. If the switching function is a threshold function, then each inequality must be positive and the system of inequalities is consistent. A theorem on the existence of solutions for systems of linear inequalities was given in Chvátal (1983). Linear programming is also a useful tool as shown in Kurz and Tautenhahn (2013) and Freixas and Kurz (2014b).

The second treatment, very close to the previous one, is a geometric approach based on the existence of a separating hyperplane that separates true vectors from false vectors. This procedure is elegant but not very efficient in practice. A use of the geometrical approach can be found in Einy and Lehrer (1989). Houy and Zwicker (2014) proposes a variant of it.

The idea behind the third approach lies in the consideration of exchanges among vectors and the possibility to convert some true vectors into false vectors, no matter the number of vectors involved in these exchanges. The early works of Elgot (1961) and Chow (1961), reexamined for simple games in Taylor and Zwicker (1992), are the central point of this work. The class of threshold functions admits a structural characterization, the asummability property, that is both natural and elegant. Some of the deepest results on this subject were obtained in the area of threshold logic during two decades from the fifties to the seventies by Chow, Elgot, Gabelman and Winder, as reported by Hu (1965), and continued by Muroga (1971) and Muroga et al. (1961, 1962, 1970).

The interpretation of Taylor and Zwicker for the asummability condition in terms of trades among coalitions in Taylor and Zwicker (1992) together with the work in Taylor and Zwicker (1995) stimulated the interest for the problem of characterizing weighted games within simple games. In their book (Taylor and Zwicker 1999) they adapted, for simple games, the most important results of threshold logic in relation to the linear separability problem. In particular, their property of trade-robustness is equivalent to the property of asummability. However, trade-robustness is more transparent in the theoretical context of voting since it gives rise to some intuitions concerning the idea of trading players among coalitions. Freixas and Molinero (2009) propose a relaxation of trade-robustness for complete simple games and called it invariant-trade robustness, which is less costly in terms of the length of the corresponding certificates. In this paper we deduce some new results using this property.

As mentioned before, each simple game can be represented as an intersection of weighted games, which allows a compact representation when the minimum number of required weighted games for representing the game is small. This number is called the dimension of the simple game, which can be large, see e.g. Kurz et al. (2016), where the worst asymptotic case has been determined via a connection to coding theory. If the dimension is small, e.g. power indices can in general be more simply and efficiently computed. Here we treat the extreme case of dimension 1, i.e., we consider the relevant issue whether a given simple game (switching function) is weighted and propose some new characterizations.

The organization of the paper is as follows: the necessary basic terminology of simple games is reviewed in Sect. 2. Section 3 recalls the main general results on the characterization of weighted games within the class of simple games, and it identifies the analogue terminologies used in threshold logic and simple games. The problem of the characterization of weighted games can be restricted to the class of complete games. A parametrization result for classifying them, up to isomorphisms, which will be intensively used in the next sections, is recalled in Sect. 4. Sections 56 and 7 provide new results on the characterization of weighted games. Cases for which 2-invariant trade robustness is conclusive are presented in Sect. 5. m-invariant trade robustness is studied in Sect.  6, while Sect. 7 gives some numerical and experimental data. Several questions and conjectures are proposed for future research in Sect. 8. In Sect. 9 we draw a conclusion.

2 Terminology in the context of voting simple games

Simple games or binary voting systems can be viewed as models of voting systems in which a single alternative, such as a bill or an amendment, is pitted against the status quo. A simple game G is a pair \((N, \mathcal {W})\) in which \(N = \{1,2,\dots ,n\}\) is the set of players or voters and \({{\mathcal {W}}}\) is a collection of subsets of N that satisfies (1) \(N \in {{\mathcal {W}}}\), (2) \(\emptyset \notin {{\mathcal {W}}}\) and (3) the monotonicity property: \(S \in {\mathcal {W}}\) and \(S \subseteq T \subseteq N\) implies \(T \in {\mathcal {W}}\).

Any set of voters is called a coalition, and the set N is called the grand coalition. Members of N are called players or voters, and the subsets of N that are in \({\mathcal {W}}\) are called winning coalitions.

The intuition here is that a set S is a winning coalition if and only if the bill or amendment passes when the players in S are precisely the ones who voted for it. A subset of N that is not in \({\mathcal {W}}\) is called a losing coalition. A minimal winning coalition is a winning coalition all of whose proper subsets are losing. A maximal losing coalition is a losing coalition all of whose proper supersets are winning. Because of monotonicity, any simple game is completely determined by its set of minimal winning coalitions, which is denoted by \({\mathcal {W}}^m\) or by its set of maximal losing coalitions, which is denoted here \({\mathcal {L}}^M\). A voter \(a \in N\) is null if a does not belong to any minimal winning coalition. A player \(a \in N\) has veto if a belongs to all winning coalitions.

Before proceeding, we present two real-world examples of simple games (see Taylor and Pacelli 2008 for a thorough presentation of these two examples).

Example 2.1

The United Nations Security Council. The voters in this system are the 15 countries that make up the Security Council, five of which are permanent members, whereas the other ten are non-permanent members. Passage requires a total of at least nine of the fifteen possible votes, subject to a veto due to a no vote from any one of the five permanent members. This model ignores abstention. For a treatment of this example, considering the possibility of abstention, we refer the reader to Freixas and Zwicker (2003).

Example 2.2

The System to amend the Canadian Constitution. Since 1982, an amendment to the Canadian Constitution can become law only if it is approved by at least seven out of the ten Canadian provinces, subject to the proviso that the approving provinces have, among them, at least half of Canada’s population. It was first studied in Kilgour (1983). An old census (in percentages) for the Canadian provinces was as follows: 1. Ontario \((34\%)\), 2. Quebec \((29\%)\), 3. British Columbia \((9\%)\), 4. Alberta \((7\%)\), 5. Saskatchewan \((5\%)\), 6. Manitoba \((5\%)\), 7. Nova Scotia \((4\%)\), 8. New Brunswick \((3\%)\), 9. Newfoundland \((3\%)\), 10. Prince Edward Island \((1\%)\).

For example, observe that coalitions (from now on we use abridgments to denote the provinces):

\(X_1 = \{Que, BC, Alb, Sas, Man, NS, NB\}\) and \(X_2 = \{Ont, Sas, Man, NS, NB, Newf, PEI \}\) are minimal winning coalitions because they both have exactly 7 provinces and their total population surpasses the \(50\%\). Instead, coalitions:

\(Y_1 = \{Ont, Que, Sas, Man, NS, NB \}\) and \(Y_2 = \{BC, Alb, Sas, Man, NS, NB, Newf, PEI \}\) are both losing because \(Y_1\) does not have 7 or more members and \(Y_2\) does not reach the \(50\%\) of the total Canada’s population.

A fundamental subclass of simple games are the classes of weighted simple games and complete simple games. A simple game \(G=(N, {\mathcal {W}})\) is said to be weighted if there exists a “weight function” \(w:N \rightarrow \mathbb {R}_{\ge 0}\) and a “quota” \(q \in \mathbb {R}_{>0}\) such that a coalition S is winning precisely when the sum of the weights of the players in S meets or exceeds the quota. Any specific example of such a weight function \(w: N \rightarrow \mathbb {R}\) and quota q are said to realize G as a weighted game. A particular realization of a weighted simple game is denoted as \([q;w_1, \dots , w_n]\).

For instance, \([k;\overbrace{1, \dots , 1}^n ]\) for some \(k=1, \dots ,n\) is a feasible realization for a weighted game in which all players are symmetric; here the game is called a k-out-of-n simple game. A realization of Example 2.1 is [39; 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], where 7 is the weight for a permanent member and 1 the weight for a non-permanent member. Instead, Example 2.2 cannot be represented as a weighted game. Indeed, if the game was weighted we would have \(w(X_1)>w(Y_1)\) and \(w(X_2)>w(Y_2)\), i.e.,

$$\begin{aligned}&w_2+(w_3+\dots +w_8) \,>\, (w_1+w_2)+(w_5+\dots +w_8)\quad \text {and}\\&w_1+(w_5+\dots +w_{10}) \,>\, (w_3+\dots +w_{10}). \end{aligned}$$

After simplification we obtain \(w_3+w_4>w_1\) and \(w_1>w_3+w_4\), which is a contradiction. In these inequalities, \(w_1\) represents, the weight for Ontario, the most populated province; \(w_2\) represents, the weight for Quebec, the second most populated province, and so on.

It is quite intuitive to observe that a permanent member has more influence than a non-permanent member in the voting systems described in Example 2.1. The same occurs in Example 2.2 where any of the two big provinces are more influential than any other of the remaining eight provinces. The “desirability relation” represents a way to make more precise the idea, that a particular voting system may give to one voter more influence than another. Isbell already used it in Isbell (1958).

Let \(G=(N, {\mathcal {W}})\) be a simple game, and let a and b be two voters. Player a is said to be at least as desirable as b as coalitional partner if for every coalition S such that \(a \notin S\) and \(b \notin S\), \(S \cup \{b\} \in {\mathcal {W}}\) implies \(S \cup \{a\} \in {\mathcal {W}}\). If, moreover, there exists a coalition T such that \(a \notin T\) and \(b \notin T\), \(T \cup \{a\} \in {\mathcal {W}}\) and \(T \cup \{b\} \notin {\mathcal {W}}\), then a is (strictly) more desirable than b. Finally, a and b are said to be equally desirable if a is at least as desirable as b and the converse is also true. The notations \(a \succsim b\), \(a \succ b\), and \(a \sim b\), respectively, stand for the following: a is at least as desirable as b, a is strictly more desirable than b, and a and b are equally desirable. It is straightforward to check that \(\sim \) is an equivalence relation and that the desirability relation \(\succsim \) is a partial ordering of the resulting equivalence classes.

A simple game \(G=(N,{\mathcal {W}})\) is complete (or linear) if the desirability relation is a complete preordering. Note that every weighted game is complete, since for any realization it holds that \(w_a \ge w_b\) implies \(a \succsim b\). But the converse is not true as Example 2.2 shows.

In a complete simple game we may decompose N into a collection of subsets, called classes, \({N_1}> {N_2}> \cdots > {N_t}\) forming a partition of N. Those classes should be the equivalence classes ordered by desirability, i.e., if \(a \in N_{p}\) and \(b \in N_{q}\), then \(p=q\) if and only if \(a \sim b\) and, \(p<q\) if and only if \(a \succ b\). Two parameters are of fundamental importance in our study. One of them is the number of equivalence classes, t, in a complete game, i.e., a measurement of heterogeneity. In Example 2.1 we have \({N_1} > {N_2}\) where \({N_1}\) is formed by the five permanent members and \({N_2}\) for the non-permanent ones, while in Example 2.2 we have \({N_1} > {N_2}\), where \({N_1}\) is formed by the two big provinces and \({N_2}\) for the other eight provinces. Thus, in both examples \(t=2\).

To define the second fundamental parameter for our study we need another definition. Given a simple game, a shift-minimal winning coalition S is a minimal winning coalition such that \((S \setminus \{a\}) \cup \{b\}\) is losing whenever \(a \succ b\) with \(a \in S\) and \(b \notin S\). Note that a coalition of seven members in Example 2.2 containing both, Quebec and Ontario, is a minimal winning coalition but it is not shift-minimal winning, since a replacement of a big province in the coalition for a province not belonging to the coalition still leaves the new coalition winning. Analogously, a shift-maximal losing coalition S is a maximal losing coalition such that \((S \setminus \{b\}) \cup \{a\}\) is winning whenever \(a \succ b\) with \(b \in S\) and \(a \notin S\).

Two shift-minimal winning coalitions, S and T, are said to be equivalent coalitions if T can be obtained from S by any sequence of one-to-one exchanges of equally desirable voters. If the game is complete we can consider the parameter r which is the maximal number of non-equivalent shift-minimal winning coalitions.

Observe that the complete game from Example 2.1 has minimal winning coalitions which are also shift-minimal winning coalitions, each consisting of all five permanent members and four arbitrary non-permanent members. However, all of them are equivalent in the previous sense. Thus, for Example 2.1 the two parameters we lay stress on are \(r=1\) and \(t=2\).

The simple game from Example 2.2 has 112 minimal winning coalitions, 56 of them formed by one of the two big provinces and six other provinces, which are also shift-minimal winning coalitions. The game has 56 additional winning coalitions formed by the two big provinces and five other provinces, but these are not shift-minimal winning coalitions. The 56 shift-minimal winning coalitions are equivalent among them in the previous sense. Thus, for Example 2.2 the two parameters we lay stress on again are \(r=1\) and \(t=2\). The case \(r=1\) is considered in Sect. 5.1 and the case \(t=2\) in Sect. 5.2.

3 Some results on the characterization of weighted games

We introduce a notion of trades among coalitions, which is natural in game theory and in economic applications, see Taylor and Zwicker (1999) for motivating examples. Suppose \(G=(N, {\mathcal {W}})\) is a simple game. Then a trading transform is a coalition sequence \(\langle X_1, \dots ,X_k | Y_1, \dots ,Y_k \rangle \) of even length satisfying the following condition:

$$\begin{aligned} | \{ i : \, a \in X_i \}| = |\{ i: \, a \in Y_i \}| \quad \text {for all} \; a \in N. \end{aligned}$$

The Xs are called the pre-trade coalitions and the Ys are called the post-trade coalitions. A k-trade for a simple game G is a trading transform \(\langle X_1, \dots ,X_j | Y_1, \dots ,Y_j \rangle \) with \(j \le k\). The simple game G is k-trade robust if there is no trading transform for which all the Xs are winning in G and all the Ys are losing in G. If G is k-trade robust for all \(k\in \mathbb {N}\), then G is said to be trade robust.

Loosely speaking, G is k-trade robust if a sequence of k or fewer (not necessarily distinct) winning coalitions can never be rendered losing by a trade.

Theorem 3.1

(Theorem 2.4.2 in Taylor and Zwicker 1999, see also Taylor and Zwicker 1992) Let \(G=(N, {\mathcal {W}})\) be a simple game. Then, G is weighted if and only if G is trade robust.

This result is equivalent to the one given by Elgot (1961) and Chow (1961) in threshold logic. Instead of the notation of trade robustness, these authors used an equivalent condition of asummability of vectors. If we are restricted to complete simple games and only allow pre-trades of shift-minimal winning coalitions, then we may refer to the property of invariant-trade robustness instead of trade robustness and Theorem 3.1 can be reformulated in an equivalent way:

Theorem 3.2

(Theorem 4.7 in Freixas and Molinero 2009) Let \(G=(N, {\mathcal {W}})\) be a complete simple game. Then, G is weighted if and only if G is invariant-trade robust.

As seen in Example 2.2 the trading transform \( \langle X_1,X_2 | Y_1,Y_2 \rangle \) certifies a failure of 2-invariant-trade robustness and, therefore, this complete simple game is not weighted. It is also trivial to see that the simple game described in Example 2.1 is invariant-trade robust and, therefore, weighted.

Suppose \(G=(N, {\mathcal {W}})\) is a simple game. Then, G is said to be swap robust if a one-for-one exchange between two winning coalitions can never render both losing. Thus, swap robustness differs from trade robustness in two ways: the trades involve only two coalitions, and the exchanges are one-for-one. That is to say, swap robustness considers m-trades of the following type: \(m=2\) and \(\langle X_1,X_2 | X_1 \setminus \{a\},X_2 \cup \{a\} \rangle \) with \(a \in X_1\) and \(a \notin X_2\). It is fairly easy to generate simple games that are not swap robust. The following theorem is a characterization of complete simple games:

Theorem 3.3

(Proposition 3.2.6 in Taylor and Zwicker 1999) G is a complete simple game if and only if G is swap robust.

Clearly, non-complete games are not 2-invariant trade robust. In fact, it is always possible to find two shift-minimal winning coalitions which convert into losing coalitions after a one-for-one exchange. Thus, the difficulty of the problem of determining when a given simple game is weighted can be focused exclusively on the class of complete games. To obtain significant results it is helpful to have a compact and manageable presentation of these games.

If, in a complete game, the number of the equivalence classes is lower than the number of players, i.e., \(t<|N|\), we have such a presentation. Indeed, Carreras and Freixas (1996) provide a classification theorem for complete simple games, here Theorem 4.2, that allows to enumerate all these games up to isomorphism by listing the possible values of certain invariants. An advantage of using the classification theorem is that it usually allows to work with a smaller number of vectors than would be required with minimal winning coalitions. In the next section we introduce a notion of trade-robustness based on these invariants.

As the basic game theoretic notions for simple games, which we use in this paper, have already been introduced, we provide two brief lists of language analogies between these notions to the fields of threshold logic or Boolean algebra in next subsection. These analogies allow the easy translation of the results from one field to the other. In particular, this list will be useful for scholars in threshold logic to be aware of the new results we find in this paper and the questions and conjectures we propose to be studied.

3.1 A list of analogies in the context of threshold logic

For the sake of simplicity, clarity, and for being coherent with the historical studies, we write the notions in the language of Boolean algebra (very similar to that of neural networks or threshold logic). Tables 1 and 2 contain the main equivalences. The list is not exhaustive. Throughout the rest of the paper we exclusively deal with simple games and refer to these two tables for direct analogies of the results we find and the questions and conjectures we pose.

Table 1 Variables and vectors versus players and coalitions
Table 2 Types of functions versus types of simple games

4 Symmetries and a parametrization of complete simple games

For \(t<|N|\) types of voters we can represent coalitions in a more compact way. Let \((N,\mathcal {W})\) be a simple game and \(N_1,\dots ,N_t\) be a partition of the player set into t equivalence classes of voters cf. Sect. 2. A coalition type (or coalition vector) is a vector \(\overline{s}=(s_1,\dots ,s_t)\in (\mathbb {N} \cup \{0\})^t\) with \(0\le s_i\le |N_i|\) for all \(1\le i\le t\). We say that a coalition \(S\subseteq N\) has type \(\overline{s}\) if \(s_i=|S\cap N_i|\) for all \(1\le i\le t\). A coalition type \(\overline{s}\) is called winning if the coalitions of that type are winning. Analogously, the notions of minimal winning, shift-minimal winning, losing, maximal losing and shift-maximal losing are translated similarly for coalitional types. So, the simple game from Example 2.1 can be described by the unique minimal winning coalition type (5, 4) which represents all coalitions with 5 permanent members and 4 non-permanent members, and the simple game from Example 2.2 can be described by the unique minimal winning coalition type (1, 6) which represents all coalitions with 1 big province and 6 small provinces.

The notion of a trading transform for coalitions can be transferred to coalitional types for vectors.

4.1 Coalitional types

Let \(G=(N, {\mathcal {W}})\) be a simple game and \(N_1,\dots ,N_t\) be a partition into t equivalence classes of players. A vectorial trading transform for G is a sequence \( \langle \overline{x}_1, \dots , \overline{x}_j | \overline{y}_1, \dots , \overline{y}_j\rangle \) of coalition types of even length such that

$$\begin{aligned} \sum _{i=1}^j x_{i,k} = \sum _{i=1}^j y_{i,k} \quad \text {for all} \; \; 1\le k\le t. \end{aligned}$$
(1)

The definition of a vectorial trading transform means that for each component \(1\le k\le t\), the sum of the k components for the \({\overline{x}}\)s coincide with the sum of the k components for the \({\overline{y}}\)s.

A vectorial m-trade is a vectorial trading transform with \(j\le m\) such that the \(\overline{x}_i\)s are winning and after trades, as described in (1), convert into \(\overline{y}_i\)s.

A given m-trade can easily be converted into a vectorial m-trade. The following lemma shows that the converse is also true, i.e., each given vectorial m-trade can be converted into an m-trade.

Lemma 4.1

For each pair of vectors \(\overline{a}=(a_1,\dots ,a_r)\in \mathbb {N}_{>0}^r\), \(\overline{b}=(b_1,\dots ,b_s)\in \mathbb {N}_{>0}^s\) with \(\sum _{i=1}^r a_i=\sum _{i=1}^s b_i\) and \(m=\max \left( \max _i a_i,\max _i b_i\right) \), there exist two sequences of sets \(A_1,\dots ,A_r\subseteq \{1,\dots ,m\}\) and \(B_1,\dots ,B_s\subseteq \{1,\dots ,m\}\) with \(|A_i|=a_i\), \(|B_i|=b_i\) and

$$\begin{aligned} \left| \{i\,:\, j\in A_i\}\right| =\left| \{i\,:\, j\in B_i\}\right| \end{aligned}$$

for all \(j\in \{1,\dots ,m\}\).

Proof

W.l.o.g. we assume \(a_1\ge \dots \ge a_r\) and \(b_1\ge \dots \ge b_s\). We prove the statement by induction on \(\sigma =\sum _{i=1}^r a_i\). For \(\sigma =1\) we have \(r=s=a_1=b_1=m=1\) and can choose \(A_1=B_1=\{1\}\). We remark that the statement is also true for \(\sigma =0\), i.e., where \(r=s=0\).

If there exist indices ij with \(a_i=b_j\), then we can choose \(A_i=\{1,\dots ,a_i\}\), \(B_j=\{1,\dots ,b_j=a_i\}\) and apply the induction hypothesis on \((a_1,\dots ,a_{i-1},a_{i+1},\) \(\dots ,a_r)\) and \((b_1,\dots ,b_{j-1},b_{j+1},\dots ,b_s)\).

In the remaining cases we assume w.l.o.g. \(a_1=m\) and \(b_1<m\). Now let l be the maximal index with \(a_l=m\). Since \(\sum _{i=1}^r a_i=\sum _{i=1}^s b_i\) we have \(s\ge l\). So, we can consider the reduction to \((a_1-1,\dots ,a_l-1,a_{l+1},\dots ,a_r)\) and \((b_1-1,\dots ,b_l-1,b_{l+1},\dots ,b_s)\), where we possibly have to remove some zero entries and the maximum entry decreases to \(m-1\). Let \(A'_1,\dots ,A'_r,B'_1,\dots ,B'_s \subseteq \{1,\dots ,m-1\}\) be suitable coalitions (allowing \(A'_i=\emptyset \) or \(B'_i=\emptyset \) for the ease of notation). Adding player m to the first l coalitions in both cases yields the desired sequences of coalitions.\(\square \)

The construction in Lemma 4.1 for each equivalence class of voters separately converts a vectorial m-trade into an m-trade. Also for vectorial m-trades we may assume that the winning coalition types are minimal winning or that the losing coalition types are maximal losing. Since the number of coalition types is at most as large as the number of coalitions we can computationally benefit from considering vectorial m-trades if the number of types of voters is less than the number of voters.

4.2 A parametrization of complete simple games

In a complete simple game \(G=(N,\mathcal {W})\) we have a strict ordering between two voters of different equivalence classes. This ordering entails a hierarchy among voters. Some studies on allowable hierarchies can be found in Bean et al. (2008), Freixas and Pons (2010), Friedman et al. (2006). As before, we denote by \({N_1}> \dots > {N_t}\) the equivalence classes which form the unique partition of N where \(a \succ b\) for all \(a \in N_i\) and \(b \in {N_j}\) with \(i<j\). Let \(\overline{n} = (n_1, \dots ,n_t)\) where \({n_i} = |N_i|\) for all \(i=1,\ldots ,t\). Consider

$$\begin{aligned} \Lambda (\overline{n})=\{\overline{s}\in (\mathbb {N}\cup \{0\})^{t}:\overline{n}\ge \overline{s}\}, \end{aligned}$$

where \(\ge \) stands for the ordinary componentwise ordering, that is, \(\overline{a}\ge \overline{b}\) if and only if \(a_{k}\ge b_{k}\) for every \(k=1,\dots ,t\), and also consider the weaker ordering \(\succeq \) given by comparison of partial sums, that is,

$$\begin{aligned} \overline{a}\,\succeq \,\overline{b}\;\text {if and only if} \; \sum _{i=1}^k a_i \ge \sum _{i=1}^k b_i \; \text {for} \; k=1,\ldots ,t. \end{aligned}$$

If \(\overline{a}\, \succeq \,\overline{b}\) we say that \(\overline{a}\) dominates \(\overline{b}.\)

The couple \((\Lambda (\overline{n}),\succeq )\) is a distributive lattice and possesses a maximum (respectively, minimum) element, namely \(\overline{n} =(n_{1},\ldots ,n_{t})\) (resp. \(\overline{0}=(0,\ldots ,0)\)). As abbreviations we use \(\overline{a}\succ \overline{b}\) for the cases where \(\overline{a}\succeq \overline{b}\) but \(\overline{a}\ne \overline{b}\) and \(\overline{a}\bowtie \overline{b}\) for the cases where neither \(\overline{a}\succeq \overline{b}\) nor \(\overline{b}\succeq \overline{a}\).

The interpretation of \(\overline{a}\succeq \overline{b}\) is as follows: if \(\overline{b}\) is a winning coalitional vector and \(\overline{a}\succeq \overline{b}\), then also \(\overline{a}\) is winning. Similarly, if \(\overline{a}\) is losing then \(\overline{b}\) is losing too for all \(\overline{a}\succeq \overline{b}\).

A winning coalitional vector \(\overline{a}\) such that \(\overline{b}\) is losing for all \(\overline{a}\succ \overline{b}\) is called shift-minimal winning. Similarly, a losing coalition type \(\overline{b}\) such that \(\overline{a}\) is winning for all \(\overline{a}\succ \overline{b}\) are called shift-maximal losing. Each complete simple game can be uniquely described by either its set of shift-minimal winning coalition types or its set of shift-maximal losing coalition types.

Based on this insight, Carreras and Freixas (1996, pp. 148–150) provided a classification theorem for complete simple games that allow to enumerate all these games up to isomorphism by listing the possible values of certain invariants. Indeed, to each complete simple game \((N,\mathcal {W})\) one can associate the vector \(\overline{n} \in \mathbb {N}^t\) as defined above and the list of shift-minimal winning coalitional vectors: \(\overline{m}_p = (m_{p,1},m_{p,2}, \ldots , m_{p,t})\) for \(1 \le p \le r\).

Recall that two simple games \((N,\mathcal {W})\) and \((N^{\prime },\mathcal {W}^{\prime })\) are said to be isomorphic if there exists a bijective map \( f:N\rightarrow N^{\prime }\) such that \(S\in \mathcal {W}\) if only if \(f(S)\in \mathcal {W}^{\prime }.\)

Theorem 4.2

(Theorem 4.1 in Carreras and Freixas 1996) (a) Given a vector \(\overline{n} \in \mathbb {N}^t\) and a matrix \(\mathcal {M}\) whose rows \(\overline{m}_p = (m_{p,1},m_{p,2}, \dots , m_{p,t})\) for \(1 \le p \le r\) satisfy the following properties:

  1. (i)

    \(0 \le \overline{m}_p \le \overline{n}\) for \(1 \le p \le r\);

  2. (ii)

    \( \overline{m}_p \bowtie \overline{m}_q\) if \(p \ne q\) (i.e., \(\overline{m}_p\) and \(\overline{m}_q\) are not \(\succeq \)-comparable);

  3. (iii)

    if \(t=1\), then \(m_{1,1}>0\); if \(t>1\), then for every \(k<t\) there exists some p such that

    $$\begin{aligned} m_{p,k}>0, \; m_{p,k+1}<n_{k+1}; \end{aligned}$$

    and

  4. (iv)

    \({\mathcal {M}}\) is lexicographically ordered by partial sums, if \(p<q\) either \(m_{p,1}>m_{q,1}\) or there exists some \(k \ge 1\) such that \(m_{p,k} > m_{q,k}\) and \( m_{p,i} = m_{q,i}\) for \(i<k\).

Then, there exists a complete simple game \((N, {\mathcal {W}})\) associated to \((\overline{n}, \mathcal {M})\).

(Theorem 4.2 in Carreras and Freixas 1996) (b) Two complete games \((N, \mathcal {W})\) and \((N',\mathcal {W}')\) are isomorphic if and only if \({\overline{n}} = \overline{n'}\) and \({\mathcal {M}} = {\mathcal {M}} '\).

The pair \(({\overline{n}}, {\mathcal {M}})\) is referred to as the characteristic invariants of game \((N, {\mathcal {W}})\). The authors prove that these parameters determine the game in the sense that one is able to define a unique up to isomorphism complete simple game which possesses these invariants. The characteristic invariants allow us to count and generate all these games for small values of n. Other applications of the characteristic invariants are to considerably reduce the calculus of some solutions, as values or power indices, of the game (see e.g., Freixas and Puente 1998 for the nucleolus Schmeidler 1969) or to study whether a game admits a representation as a weighted game by studying the consistency of a system of inequalities as we will see below.

If matrix \({\mathcal {M}}\) has only one row, \(r=1\), i.e. a unique shift-minimal coalitional vector, then the characteristic invariants reduce to the couple \(({\overline{n}}, {\overline{m}})\) with

$$\begin{aligned} 1\le & {} m_{1}\le n_{1}\\ 1\le & {} m_{k}\le n_{k}-1 \quad \text {if} \; 2\le k\le t-1, \\ 0\le & {} m_{t}\le \, n_{t}-1, \end{aligned}$$

where the first subindex in matrix \({\mathcal {M}}\) is omitted. It is said, see Freixas and Puente (1998), that \(({\overline{n}}, {\overline{m}})\) is a complete game with minimum.

We sketch here how to obtain the characteristic invariants \((\overline{n}, {\mathcal {M}})\) for the complete game from winning coalitions and reciprocally.

Given a simple game \((N, {\mathcal {W}})\), for each coalition S we consider the vector or coalitional type

$$\begin{aligned} \overline{s}=(\left| S\cap N_{1} \right| ,\ldots ,\left| S\cap N_{t}\right| ), \end{aligned}$$

in \(\Lambda (\overline{n})\) where \(N_{i}\) are the equivalence classes with \(N_{1}>\cdots >N_{t}.\) The vector \({\overline{n}}\) is \((\left| N_{1}\right| ,\ldots ,\left| N_{t} \right| ).\) The rows of matrix \({\mathcal {M}}\) are those \({\overline{s}}\) such that any S is a shift-minimal winning coalition in the lattice \((\Lambda (\overline{n}),\succeq ).\) Observe that each vector of indices that \(\succeq \)-dominates a row of \({\mathcal {M}}\) corresponds to winning coalitions.

Conversely, given \((\overline{n},{\mathcal {M}})\) the game \((N,{\mathcal {W}} )\) can be reconstructed, up to isomorphism, as follows: the cardinality of N is \(n=\sum _{i=1}^t n_i\), the elements of N are denoted by \(\{1,2,\dots ,n\}.\) The equivalent classes of \((N, {\mathcal {W}})\) are \(N_{1}=\{1,\dots ,n_1\},\) \(N_2=\{n_1+1,\dots ,n_1+n_2\},\) and so on.

Each \(S\subseteq N\) with vector \(\overline{s} =(\left| S\cap N_{1}\right| ,\ldots ,\left| S\cap N_{t}\right| )\) is a winning coalition if \(\overline{s}\, \succeq \,\overline{m}\) for some \(\overline{m}\) being a row of \({\mathcal {M}}\). Hence, the set of winning coalitions is

$$\begin{aligned} \mathcal {W}=\{S\subseteq N \,: \, \,\overline{s}\,\succeq \,\overline{m}_p, \; \, \text {where} \; \overline{m}_p \; \text {is a row of} \; \mathcal {M}\}. \end{aligned}$$

Notice that a winning vector is a vector \(\overline{r}\) such that the coalition representative R is winning. In particular, the shift-minimal winning coalitions are those with a vector being a row of \({\mathcal {M}}\). Precisely,

$$\begin{aligned} \mathcal {W}^{s}=\{S\subseteq N:\overline{s}\,=\,\overline{m}_p \ \text {for some} \ p=1, \dots r\}. \end{aligned}$$

Analogously, one can define the coalitional types of shift-maximal losing coalitions which can be written as rows in a matrix \(\mathcal {Y}\) lexicographically ordered, as requested also for \({\mathcal {M}}\), to preserve uniqueness. These coalitional types are the maximal vectors which are not \(\succeq \)-comparable among them.

Some particular forms of the pair \(({\overline{n}}, {\mathcal {M}})\) reveal the presence of players being either vetoers or nulls. For instance, if \(m_{p,t}=0\) for all \(p=1, \dots ,r\) the game has \(n_{t}\) null players. If \(m_{p,1}=n_1\) for all \(p=1, \dots ,r\) the game has \(n_{1}\) vetoers.

Using the well-known fact that any weighted game admits normalized representations, where \(i \sim j\) if and only if \(w_{i}=w_{j}\), we will consider from now on, \(w=(w_{1},\ldots ,w_{t}),\) the vector of weights to be assigned to the members of each of the t equivalence classes. Using normalized representations a weighted game may be expressed as \([q;w_1(n_1),\dots ,w_t(n_t)]\) in which repetition of weights is indicated within parentheses and q stands for the quota or threshold. However, these parentheses will be omitted provided that \(\overline{n}=(n_1, \dots ,n_t)\) is a known vector. A complete simple game, \((N,\mathcal {W})\), is weighted if and only if there is a vector \(w=(w_{1},\ldots ,w_{t}),\) such that \( w_{1}>\cdots >w_{t}\ge 0\), which satisfies the system of inequalities

$$\begin{aligned} (\overline{m}_p-\overline{\alpha }_q )\cdot w>0 \ \text { for all } \ p=1,2,\ldots ,r, \ \ q=1, \dots , s \end{aligned}$$

where r is the number of rows of \({\mathcal {M}}\), s the number of rows of \({\mathcal {Y}}\), and \(\overline{\alpha }_q\) are the rows of \({\mathcal {Y}}\).

Only for \(n\ge 6\) there are complete simple games which are not weighted.

Example 4.3

  1. (a)

    (Example 2.1 revisited) The characteristic invariants for this example are \({\overline{n}} = (5,10)\) and \({\mathcal {M}} = ( 5 \ 4)\). Thus,

    $$\begin{aligned} {\mathcal {W}}= & {} \{ (5,x) \in \Lambda (5,10)\, : \, x \ge 4 \}\\ {\mathcal {W}}^m= & {} {\mathcal {W}}^s = \{ (5,4) \} \end{aligned}$$

    Note also that \({\mathcal {Y}} =\left( \begin{array}{cc}5 &{} 3 \\ 4 &{} 10 \\ \end{array}\right) \) whose rows are the shift-maximal coalitional types. As shown, this game is weighted. In the next section we will show that to prove this it suffices to verify k-invariant trade robustness, where k is 2.

  2. (b)

    (Example 2.2 revisited) The characteristic invariants for this example are \({\overline{n}} = (2,8)\) and \({\mathcal {M}} = ( 1 \ 6)\). Thus,

    $$\begin{aligned} {\mathcal {W}}= & {} \{ (x,y) \in \Lambda (2,8) \, : \, x \ge 1 \ \text {and} \ x+y \ge 7 \}\\ {\mathcal {W}}^m= & {} \{ (2,5), \, (1,6) \}\\ {\mathcal {W}}^s= & {} \{ (1,6) \} \end{aligned}$$

    Note also that \({\mathcal {Y}} =\left( \begin{array}{cc}2 &{} 4 \\ 0 &{} 8\\ \end{array}\right) \) whose rows are the shift-maximal coalitional types.

    Note that Example 2.2 is not 2-invariant trade robust since the coalitional type trading transform \(\langle (1,6),(1,6) | (2,4),(0,8) \rangle \) is a certificate for it. Hence, the game is not weighted.

4.3 Two parameters for complete simple games

As previously remarked, two parameters for a complete simple game are significant for our studies: r the number of rows of \({\mathcal {M}}\) or number of shift-minimal coalitional vectors and t the number of equivalence classes of players in the game. The conditions that \({\mathcal {M}}\) must fulfill are described in Theorem 4.2. The question we pose here is the following: are there some values for r and t for which 2-invariant trade robustness is conclusive? The purpose of Sect. 5 is to prove that the posed question has an affirmative answer for either \(r=1\) (no matter the value of t) or \(t=2\) (no matter the value of r), while in Sect. 6 we investigate the remaining cases.

Let us remark that the number of complete and weighted games as a function of |N| up to isomorphisms has been determined for these two parameters. We use below the notations \(cg(n,\star ,r)\), \(cg(n,t,\star )\), \(wg(n,\star ,r)\), and \(wg(n,t,\star )\) depending on whether we consider complete or weighted games or parameter r or parameter t. The first (trivial) exact counting establishes the number of k-out-of-n simple games. Each of such games admits \([k;\underbrace{1,1,\dots ,1}_n]\) as a weighted representation where \(k \in \{1, \dots , n \}\). As \(t=1\) implies \(r=1\) we have \(cg(n,1,\star )=wg(n,1,\star )=n\).

For \(r=1\), we have \(cg(n,\star ,1)=2^n-1\) (see Freixas and Puente 2008) complete simple games with minimum with n players up to isomorphism and the number of weighted games with minimum, \(wg(n,\star ,1)\), is given by

$$\begin{aligned} wg(n,\star ,1) = \left\{ \begin{array}{ll} 2^n-1, &{}\quad \text {if} \; n \le 5 \\ \dfrac{n^4-6n^3+23n^2-18n+12}{12}, &{}\quad \text {if} \; n \ge 6 \\ \end{array} \right. \end{aligned}$$

cf. Freixas and Kurz (2014a).

For \(t=2\) we have the nice formula \(cg(n,2,\star ) = F(n+6)-(n^2 + 4n +8)\) (cf. Freixas et al. 2012) where F(n) are the Fibonacci numbers which constitute a well-known sequence of integer numbers defined by the following recurrence relation: \(F(0)=0\), \(F(1)=1\), and \(F(n)=F(n-1)+F(n-2)\) for all \(n>1\). Quite curiously the addition of trivial voters, as null voters or vetoers, in complete games with two equivalence classes formed by non-trivial voters, give new larger Fibonacci sequences (cf. Freixas and Kurz 2013). Up to now there is not a known formula for \(wg(n,2,\star )\) although it has been proved in Freixas and Kurz (2014b) that \(wg(n,2,\star ) \le \frac{n^5}{15} + 4n^4\).

Concerning general enumeration for simple, complete and weighted games it should be said that in the successive works by Muroga et al. (1961, 1962, 1970) the number of such games was determined up to eight voters. Only the numbers of complete and weighted games for \(n=9\) voters have been determined since then, cf. Freixas and Molinero (2010) for the number of complete games for \(n=9\) and cf. Kartak et al. (2015), Kurz (2012) for the number of weighted games for \(n=9\). An asymptotic upper bound for weighted games is given in Keijzer et al. (2014) and an asymptotic lower bound for complete games in Peled and Simeone (1985).

5 Cases for which the test of \(\mathbf {2}\)-invariant trade robustness is conclusive

Note first that each simple game with a unique equivalence class of voters, \(t=1\), is anonymous (symmetric), and thus weighted. Non-complete games are not swap robust and, therefore, they are obviously not weighted. Hence, we can limit our study to complete simple games.

Prior to study them, let us consider the null effect on invariant trade robustness of removing either null or veto players in a given complete simple game. Since adding and removing null players does not change a coalition from winning to losing or the other way round, we can state the following:

Lemma 5.1

Let G be a complete simple game and \(G'\) be the game arising from G by removing its null players. With this we have that G is m-invariant trade robust if and only if \(G'\) is m-invariant trade robust.

And a similar result, not as immediate, concerns veto players.

Lemma 5.2

Let G be a complete simple game and \(G'\) be the game arising from G by removing its veto players. If \(G'\) is a simple game, then G is m-invariant trade robust if and only if \(G'\) is m-invariant trade robust.

Proof

If veto players are present, then each winning coalition of a simple game must contain all veto players. So, in any m-trade every involved losing coalition must also contain all veto players. Let \(G=(N,\mathcal {W})\) be a simple game, where \(\emptyset \ne V\subseteq N\) is the set of veto players. If \(V=N\) the game G is the unanimity game and, therefore, weighted. Otherwise, we can consider \(G'=(N',\mathcal {W}')\), where \(N'=N\backslash V\) and \(N'\supseteq S\in \mathcal {W}'\) if and only if \(S\cup V\in \mathcal {W}\). If \(\emptyset \in \mathcal {W}'\), then the players in \(N\backslash V\) are nulls in \(G'\) and the game is indeed weighted. Otherwise, \(G'\) is a simple game too. If G is complete, then \(G'\) is complete too, see, e.g. Freixas and Kurz (2013). Given an m-trade for \(G'\), we can obtain an m-trade for G by adding V to all coalitions. For the other direction removing all veto players turns an m-trade for G into an m-trade for \(G'\). \(\square \)

5.1 The \(\mathbf {2}\)-invariant characterization for \(\mathbf {r=1}\)

Theorem 5.3

Each complete simple game G with \(r=1\) shift-minimal winning coalition type is either weighted or not 2-invariant trade robust.

Proof

Due to Lemmas 5.1 and 5.2 we can assume that G contains neither nulls nor vetoers, since also the number of shift-minimal winning coalition types is preserved by the transformations used in the respective proofs.

For \(t \ge 3\) types of players let the invariants of G be given by \(\overline{n}=(n_1,\dots ,n_t)\) and \(\mathcal {M}=\begin{pmatrix}m_1&\quad \dots&\quad m_t\end{pmatrix}\), where we abbreviate the unique shift-minimal winning coalitional vector by \(\overline{m}\). From the conditions of the general parametrization theorem in Carreras and Freixas (1996) we conclude \(1\le m_1\le n_1\), \(0\le m_t\le n_t-1\), and \(1\le m_i\le n_i-1\) for all \(1<i<t\). If \(m_1=n_1\), then G contains veto players, and if \(m_t=0\), then G contains null players (cf. Freixas and Kurz 2013). So, we have \(1\le m_i\le n_i-1\) for all \(1\le i\le t\) in our situation. We can easily check that \(\overline{a}=(m_1-1,m_2+1,m_3+1,m_4,\dots ,m_t)\) and \(\overline{b}=(m_1+1,m_2-1,m_3-1,m_4,\dots ,m_t)\) are losing. Thus, \(\langle \overline{m},\overline{m}\, | \, \overline{a},\overline{b} \rangle \) is a 2-trade and G is not 2-invariant trade robust.

For \(t = 2\) types of players let the invariants of G be given by \(\overline{n}=(n_1,n_2)\) and \(\mathcal {M}=\begin{pmatrix}m_1 \ m_2\end{pmatrix}\), where again we abbreviate the unique shift-minimal winning coalitional vector by \(\overline{m}\). From the conditions of the general parametrization theorem in Carreras and Freixas (1996) we conclude \(1\le m_1\le n_1\) and \(0\le m_2\le n_2-1\). If \(m_1=n_1\), then G contains veto players, and if \(m_t=0\), then G contains null players. So, we have \(1\le m_i\le n_i-1\) for all \(1\le i\le 2\) in our situation.

If \(2\le m_2\le n_2-2\), then \(\overline{a}=(m_1-1,m_2+2)\) and \(\overline{b}=(m_1+1,m_2-2)\) are losing. Thus, \(\langle \overline{m},\overline{m} \, | \,\overline{a},\overline{b} \rangle \) is a 2-trade and G is not 2-invariant trade robust.

If \(m_2=1\) or \(m_2=n_2-1\), then both games are weighted.

Indeed, if \(m_2=1\), then \({\mathcal {Y}} = \left( \begin{array}{cc} m_1 &{} 0 \\ m_1-1 &{} n_2 \\ \end{array} \right) \), and the weights \((w_1,w_2)=(n_2,1)\) may be assigned to players in each class, respectively, so that a quota of \(m_1 \cdot w_1 + w_2 = m_1\cdot n_2+1\) separates weights of winning and losing coalition types.

If \(m_2=n_2-1\), then \({\mathcal {Y}} = \left( \begin{array}{cc} c_1 &{} c_2 \\ m_1-1 &{} n_2 \\ \end{array} \right) \), where \(c_1=\min (n_1,m_1+n_2-2)\) and \(c_2=\max (m_1+n_2-2-n_1,0)\).

Now, we have two subcases to consider:

If \(c_1=n_1\) a solution is \((w_1,w_2)=(n_1-m_1+2,n_1-m_1+1)\) with quota \(q=m_1\cdot w_1+(n_2-1) \cdot w_2 = m_1 \cdot (n_1-m_1+2)+(n_2-1) \cdot (n_1-m_1+1)\).

If \(c_1=m_1+n_2-2\), then \(c_2=0\) and a solution is \((w_1,w_2)=(n_2,n_2-1)\) with quota \(q=m_1\cdot w_1+(n_2-1) \cdot w_2 = m_1 \cdot n_2+(n_2-1)^2\).\(\square \)

So, complete simple games with \(r=1\) have the property that they are either weighted or not 2-invariant trade robust. Note that with \(r=1\) weighted games are only feasible for \(t\le 4\).

Now we are going to see that this characterization for 2-invariant trade robustness is also true for \(t=2\).

5.2 The \(\mathbf {2}\)-invariant characterization for \(\mathbf {t=2}\)

Freixas and Molinero (2009) prove that there is a sequence of complete simple games \(G_m\) with three types of equivalent voters, i.e., \(t=3\), and three types of shift-minimal winning types, i.e., \(r=3\), such that \(G_m\) is m-invariant trade but not \((m+1)\)-invariant trade robust for each positive integer m. Moreover, they state in Conjecture 6.1 of their paper that any complete game with \(t=2\) types of equally desirable voters is either weighted or not 2-invariant trade robust. In this subsection we prove this conjecture. Prior to stating the result let us introduce some characterizations for weightedness that will be used in the sequel. The definition of a weighted game can be rewritten to a quota-free variant:

Lemma 5.4

Let \(G = (N,\mathcal {W})\) be a simple game. Then, G is weighted \(\Longleftrightarrow \) there are n nonnegative integers \({w_1},\dots , {w_n}\) such that

$$\begin{aligned} \sum \limits _{i \in S} w_i > \sum \limits _{i \in T} {w_i} \end{aligned}$$
(2)

for all \(S \in \mathcal {W}\) and all \(T \in \mathcal {L}\).

Moreover, we can use a single weight for equivalent players, i.e., a common weight \(w_i\) for each voter \(p \in N_i\) where \(N_i\) is an equivalence class of players according to the desirability relation. If the game is complete we have a total order among the equivalence classes, \(N_1>\dots >N_t\). Assume from now on \(t=2\) so that \(N_1 \ne \emptyset \) and \(N_2 \ne \emptyset \) is a partition of N. By \(\mathcal {W}^v\) we denote the set of winning coalition types and by \(\mathcal {L}^v\) the set of losing coalition types. For instance, \((x,y) \in {\mathcal {W}}^v\) means that all coalition \(S \subseteq N\) such that \(|S\cap N_1|=x\) and \(|S\cap N_2|=y\) is winning. With this, Lemma 5.4 can be rewritten as follows:

Lemma 5.5

Let \(G=(N,\mathcal {W})\) be a complete simple game with two types of voters. Then, G is weighted \(\;\Longleftrightarrow \;\) there are two integers \(w_1,w_2\ge 0\) such that

$$\begin{aligned}{}[(x,y) - (x',y')] \cdot (w_1,w_2) > 0 \end{aligned}$$
(3)

for all \((x,y) \in \mathcal {W}^{v}\) and all \((x',y') \in \mathcal {L}^{v}\) and “\(\cdot \)” stands here for the inner product.

For the proof of the theorem for \(t=2\) two special parameters of a complete simple game will play a key role so that we give even another reformulation of Lemma 5.4:

Lemma 5.6

Let \(G=(N,\mathcal {W})\) be a complete simple game with two types of voters. Then, G is weighted \(\Longleftrightarrow \) there are two integers \(w_1,w_2\ge 0\) such that

$$\begin{aligned} w_2> M w_1\quad \text {and}\quad w_1 > P w_2, \end{aligned}$$
(4)

where

$$\begin{aligned} M = \max _{(x,y) \in \mathcal {W}^v,\,(x',y') \in \mathcal {L}^v\,:\,x' \ge x} \dfrac{x'-x}{y-y'} \end{aligned}$$

and

$$\begin{aligned} P = \max _{(x,y) \in \mathcal {W}^v,\,(x',y') \in \mathcal {L}^v\,:\,x' < x} \dfrac{y'-y}{x-x'} \end{aligned}$$

fulfill \(0\le M<1\) and \(P\ge 1\).

Proof

Let \((x,y) \in \mathcal {W}^v\) and \((x',y') \in \mathcal {L}^v\). If \(x' \ge x\), then \(x+y >x'+y'\), so that \(y-y'>x'-x \ge 0\). Thus, M is well defined and we have \(0\le M<1\). Also P is well defined, since we assume \(x' < x\) in its definition. For \(r=2\) in matrix \({\mathcal {M}}\) in Theorem 4.2 we conclude the existence of a shift-minimal winning type (ab) with \(a>0\) and \(b<|N_2|\), i.e., \((a-1,b+1)\) is losing. Thus, we have \(P\ge \frac{(b+1)-b}{a-(a-1)}=1\).

It remains to remark that all inequalities of the definition of a weighted game are implied by the ones in (4).\(\square \)

Corollary 5.7

Let \(G=(N,{\mathcal {W}})\) be a complete simple game with two types of voters. Using the notation from Lemma 5.6, we have

$$\begin{aligned} \text {{ G} is weighted} \ \ \ \Longleftrightarrow \ \ \ M \, P < 1. \end{aligned}$$
(5)

We still need an additional technical trivial lemma.

Lemma 5.8

Let \(s,u\in \mathbb {R}_{\ge 0}\) and \(t,v\in \mathbb {R}_{>0}\). If \(t>v\) and \(\frac{s}{t}\ge \frac{u}{v}\), then we have \(\frac{s-u}{t-v}\ge \frac{s}{t}\).

Let us finally prove the result of this subsection, which was previously stated as Conjecture 6.1 in Freixas and Molinero (2009, page 1507).

Theorem 5.9

Let \(G = (N,{\mathcal {W}})\) be a complete simple game with two types of voters. Then, G is weighted if and only if G is 2-invariant trade robust.

Proof

The direct part is immediate since G being weighted implies G satisfies m-invariant trade robustness for all \(m>1\). For the other part we start by proving that if G is a complete simple game with \(t=2\) types of voters and G is 2-invariant trade robust, then it is 2-trade robust.

Let \(\left\langle (a_1,b_1),(a_2,b_2) \, | \, (u_1,v_1),(u_2,v_2)\right\rangle \) be a 2-trade of G such that \((a_1,b_1)\) and \((a_2,b_2)\) are minimal winning. If both coalition types are shift-minimal, we have finished. In the remaining cases we construct a 2-trade with one shift-minimal winning coalition type more than before. W.l.o.g. we assume that \((a_1,b_1)\) is not shift-minimal, so that we consider the shift to \((a_1-1,b_1+1)\). If \(u_1\ge 1\) and \(v_1\le n_2-1\) then we can replace \((u_1,v_1)\) by the losing coalitional vector \((u_1-1,v_1+1)\). By symmetry the same is true for \((u_2,v_2)\). Thus, for the cases, where we can not shift one of the losing vectors, we have

$$\begin{aligned} \left( u_1=0 \,\vee \, v_1=n_2\right) \,\wedge \, \left( u_2=0 \,\vee \, v_2=n_2\right) . \end{aligned}$$
  1. (1)

    \(u_1=0\), \(u_2=0\):

    Since \(u_1+u_2=a_1+a_2\) we have \(a_1=a_2=0\). Since \((0,b_1)\), \((0,b_2)\) are winning and \((0,v_1)\), \((0,v_2)\) are losing, we have \(\min (b_1,b_2)>\max (v_1,v_2)\), which contradicts \(b_1+b_2=v_1+v_2\).

  2. (2)

    \(v_1=n_2\), \(v_2=n_2\):

    Since \(b_1+b_2=v_1+v_2\) we have \(b_1=b_2=n_2\). Since \((a_1,n_2)\), \((a_2,n_2)\) are winning and \((u_1,n_2)\), \((u_2,n_2)\) are losing, we have \(\min (a_1,a_2)>\max (u_1,u_2)\), which contradicts \(a_1+a_2=u_1+u_2\).

  3. (3)

    \(u_1=0\), \(v_2=n\):

    Since \(u_1+u_2=a_1+a_2\) we have \(a_2\le u_2\). Comparing the winning coalitional vector \((a_2,b_2)\) with the losing vector \((u_2,n_2)\), yields \(b_2>n_2\), which is not possible.

  4. (4)

    \(u_2=0\), \(v_1=n\):

    Similar to case (3).

Thus, a shift of one of the losing vectors is always possible, if not both winning vectors are shift-minimal.

According to Theorem 3.1 it remains to prove that for \(t=2\) it is not possible for G to be 2-trade robust but not weighted.

Let (ab) and \((a',b')\) be two winning vectors, (cd) and \((c',d')\) be two losing vectors such that

$$\begin{aligned} M = \dfrac{c-a}{b-d} \qquad \text {and} \qquad P = \dfrac{d'-b'}{a'-c'}, \end{aligned}$$
(6)

where we assume that the vectors are chosen in such a way that both \(c-a\) and \(d'-b'\) are minimized. We remark \(a'-c'>0\), \(d'-b'>0\), \(b-d>0\) and \(c-a\ge 0\). The latter inequality can be strengthened to \(c-a>0\), since \(c-a\) implies \(M=0\) and \(MP<1\), which is a contradiction to the non-weightedness of G.

Corollary 5.7 implies \(MP\ge 1\), so that

$$\begin{aligned} \dfrac{c-a}{b-d} \ge \dfrac{a'-c'}{d'-b'}. \end{aligned}$$
(7)

With this, we have only the following three cases:

  1. (a)

    \(c-a \ge a'-c'\) and \(b-d \le d'-b'\).

  2. (b)

    \(c-a > a'-c'\) and \(b-d > d'-b'\).

  3. (c)

    \(c-a < a'-c'\).

If \(c-a = a'-c'\) then we have \(b-d \le d'-b'\) according to Inequality (7), i.e., we are in case (a). If \(c-a > a'-c'\) then either case (a) or case (b) applies. The remaining cases are summarized in (c).

  1. (a)

    Since \(c+c' \ge a+a'\) and \(d+d' \ge b+b'\), we can delete convenient units of some coordinates of (cd) and \((c',d')\) to obtain two well-defined losing vectors satisfying \((c'',d'') \le (c,d)\) and \((c''',d''') \le (c',d')\) with \(c''+c''' = a+a'\) and \(d''+d''' = b+b'\). Thus, \(\langle (a,b), (a',b') \, | \, (c'',d''), (c''',d''')\rangle \) certifies a failure of 2-trade robustness.

  2. (b)

    Consider \((c'',d'') = (a+a'-c',b+b'-d')\). Since \(a'-c'>0\) and \(c-a > a'-c'\) we have \(a<c''<c\). Since \(b-d > d'-b'\) and \(d'-b'>0\) we have \(d<d''<b\). Thus, \((c'',d'')\) is a well-defined coalition type. Assuming that \((c'',d'')\) is winning, we obtain

    $$\begin{aligned} \dfrac{c-c''}{d''-d} = \dfrac{\overset{> 0}{\overbrace{c-a}}-(\overset{>0}{\overbrace{a'-c'}})}{\underset{>0}{\underbrace{b-d}}-(\underset{>0}{\underbrace{d'-b'}})}\quad \overset{\text {Lemma }5.8}{\ge } \quad \dfrac{c-a}{b-d} = M, \end{aligned}$$

    using \(b-d > d'-b'\) and Inequality (7). Since \(c-c''<c-a\) we have either a contradiction to the maximality of M or the minimality of \(c-a\). Thus, \((c'',d'')\) has to be losing and \(\langle (a,b), (a',b') \, | \, (c',d'), (c'',d'')\rangle \) certifies a failure of 2-trade robustness.

  3. (c)

    With \(c-a < a'-c'\) Inequality (7) implies \(d'-b'>b-d\). Consider \((a'',b'')=(c+c'-a,d+d'-b)\). Since \(c-a> 0\) and \(c-a < a'-c'\) we have \(c'< a''<a'\). Since \(d'-b'>b-d\) and \(b-d>0\) we have \(b'<b''<d'\). Thus, \((a'',b'')\) is a well-defined coalition type. Assuming that \((a'',b'')\) is losing, we obtain

    $$\begin{aligned} \dfrac{b''-b'}{a'-a''} = \dfrac{\overset{>0}{\overbrace{d'-b'}}-(\overset{>0}{\overbrace{b-d}})}{\underset{>0}{\underbrace{a'-c'}}-(\underset{> 0}{\underbrace{c-a}})} \quad \overset{\text {Lemma }5.8}{\ge } \quad \dfrac{d'-b'}{a'-c'} = P \end{aligned}$$

    using \(c-a < a'-c'\) and Inequality (7). Since \(b''-b'<d'-b'\) we have either a contradiction to the maximality of P or the minimality of \(d'-b'\). Thus, \((a'',b'')\) has to be winning and \(\langle (a,b), (a'',b'') \, | \, (c,d), (c',d') \rangle \) certifies a failure of 2-trade robustness.\(\square \)

Let us have a look at Example 2.2 again. We have already observed that this game is not weighted. Nevertheless it can be represented as the intersection \([7;1,1,1,1,1,1,1,1,1,1]\cap [12;6,6,1,1,1,1,1,1,1,1]\), i.e., there are only two types of provinces—the large ones, Ontario and Quebec, and the small ones, see Freixas et al. (2012). Indeed the game is complete and the minimal winning vectors are given by (2, 5) and (1, 6). The maximal losing vectors are given by (2, 4), (1, 5), and (0, 8), so that we have \(M=\frac{1}{2}\) and \(P=3\). These values are uniquely attained by the coalition types (1, 6), (2, 5) and (2, 4), (0, 8). Thus we are in case (c) of the proof of Theorem 5.9 and determine the winning coalitional vector \((a'',b'')=(1,6)\). Indeed, \(\langle (1,6), (1,6) \, | \, (2,4), (0,8)\rangle \) certifies a failure of 2-trade robustness. We remark that our previous argument for non-weightedness was exactly of this form and that the coalition type (1, 6) is shift-minimal. Let us finally conclude this subsection by recalling that Theorem 5.9 establishes that a complete game with 2 types of voters is weighted if and only it is 2-invariant trade robust. Checking that property requires fewer computations than 2-trade robustness, which was proved in Herranz (2011) to be sufficient for testing weightedness.

6 Further invariant trade characterizations

We have seen in the previous section that complete simple games with \(t=2\) or \(r=1\) have the property that they are either weighted or not 2-invariant trade robust.

For other combinations of r and t it is interesting to ascertain which is the maximum integer m such that m-invariant trade robustness for the given game with parameters r and t guarantees that it is weighted. Note first that \(t=1\) implies \(r=1\) so that the pairs \((r,t)=(r,1)\) for \(r>1\) are not feasible. The results in the previous section allow us to conclude that for \((r,t) =(1,t)\) with t arbitrary or for \((r,t) =(r,2)\) with r arbitrary such an m is given by 2.

The existence of a sequence of complete games being m-invariant trade robust but not \((m+1)\)-invariant trade robust is proven for \(m\ge 4\) by using complete games with parameters \((r,t)=(3,3)\) in Freixas and Molinero (2009). This sequence of games is uniquely characterized by \({\overline{n}} = (2,m,m-1)\) and \({\mathcal {M}} = \left( \begin{array}{ccc} 2 &{} 0 &{} 1 \\ 1 &{} 0 &{} m-1 \\ 0 &{} m &{} m-2 \end{array}\right) \). We wonder what is happening for the remaining cases of the parameters r and t.

Consider first the smallest case: \((r,t)=(2,3)\).

Proposition 6.1

For \(m\ge 3\) the sequence of complete simple games uniquely characterized by \({\overline{n}} = (2,m,m)\) and \({\mathcal {M}} = \left( \begin{array}{ccc} 2 &{} 0 &{} 1 \\ 1 &{} 1 &{} m-1 \\ \end{array} \right) \) is \((m-1)\)-invariant trade robust but not m-invariant trade robust.

Proof

For brevity we set \(w_1=(2,0,1)\) and \(w_2=(1,1,m-1)\). The maximal losing coalition types are given by \(l_1=(2,0,0)\), \(l_2=(1,0,m)\), \(l_3=(1,1,m-2)\), and \(l_4=(0,m,m)\). Since \(m\cdot w_2=1\cdot l_1+(m-2)\cdot l_2+1\cdot l_4\), the game is not m-invariant trade robust.

Now assume that there are non-negative integers abcdef with \(a+b = c+d+e+f>0\) and

$$\begin{aligned} a\cdot w_1+b\cdot w_2\le c\cdot l_1+d\cdot l_2+e\cdot l_3+f\cdot l_4. \end{aligned}$$

We conclude

$$\begin{aligned} 2a+b\le & {} 2c+d+e,\end{aligned}$$
(8)
$$\begin{aligned} b\le & {} e+m\cdot f ,\text { and}\end{aligned}$$
(9)
$$\begin{aligned} a+(m-1)\cdot b\le & {} (m-1)\cdot (d+e+f) . \end{aligned}$$
(10)

Assuming \(f=0\), we conclude \(b\le e\) from Inequality (9), so that we have \(a\ge c+d\) due to \(a+b = d+e+f\). Inequality (8) then yields \(a=c\), \(b=e\), and \(d=0\). By inserting this into Inequality (10), we conclude \(c=e=0\), which contradicts \(d+e+f>0\). Thus, we have \(f\ge 1\).

Inequality (8) yields \(c\ge a+f\ge 1\). Assuming \(b\le d+e+f\) we conclude \(a\ge c\) from \(a+b = d+e+f\), which is a contradiction to \(c\ge a+f\) and \(f\ge 1\). Thus, we have \(b\ge d+e+f+1\).

Inequality (10) yields

$$\begin{aligned} \frac{d+f-e}{m-1}-a\ge 1, \end{aligned}$$
(11)

so that \(d+f\ge m-1\). Since \(c\ge 1\), we have \(c+d+e+f\ge m\), i.e., the game is \((m-1)\)-invariant trade robust.\(\square \)

We remark that the smallest complete simple game with \(t=3\), \(r=2\) being 3-invariant trade robust, but not 4-invariant trade robust, is given by \({\overline{n}} = (2,2,3)\) and \({\mathcal {M}} = \left( \begin{array}{ccc} 2 &{} 1 &{} 0 \\ 1 &{} 0 &{} 3 \\ \end{array} \right) \), as already observed in Freixas and Molinero (2009). A certificate for a failure of 4-invariant trade robustness is given by \(\langle w_1,w_1,w_2,w_2;l_1,l_1,l_1,l_2\rangle \), where \(w_1=(2,1,0)\), \(w_2=(1,0,3)\), \(l_1=(2,0,1)\), and \(l_2=(0,2,3)\). The smallest complete simple game with \(t=3\), \(r=2\) being 4-invariant trade robust, but not 5-invariant trade robust, is attained by Proposition 6.1 for \(m=5\).

Proposition 6.2

For \(m\ge 3\) the sequence of complete simple games uniquely characterized by \({\overline{n}} = (2,m,m)\) and \( {\mathcal {M}} = \left( \begin{array}{ccc} 2 &{} 1 &{} 0 \\ 2 &{} 0 &{} 2 \\ 1 &{} 0 &{} m \\ 0 &{} m &{} m-1 \\ \end{array} \right) \) is m-invariant trade robust but not \((m+1)\)-invariant trade robust.

Proof

For brevity we set \(w_1=(2,1,0)\), \(w_2=(2,0,2)\), \(w_3=(1,0,m)\), and \(w_4=(0,m,m-1)\). The maximal losing coalition types are given by \(l_1=(2,0,1)\), \(l_2=(1,0,m-1)\), \(l_3=(1,1,m-3)\), \(l_4=(0,m,m-2)\), and \(l_5=(0,m-1,m)\). Since \((m-1)\cdot w_1+2\cdot w_3=m\cdot l_1+1\cdot l_5\), the game is not \((m+1)\)-invariant trade robust.

Now assume that there are non-negative integers \(a_1,a_2,a_3,a_4,b_1,b_2,b_3,b_4,\) and \(b_5\) with \(\sum _{i=1}^4 a_i = \sum _{i=1}^5 b_i>0\) and

$$\begin{aligned} k= \sum _{i=1}^4 a_i\cdot w_i \le \sum _{i=1}^5 b_i \cdot l_i. \end{aligned}$$
(12)

It suffices to consider the cases where \(k\le m\). We conclude

$$\begin{aligned} 2a_1+2a_2+a_3\le & {} 2b_1+b_2+b_3,\end{aligned}$$
(13)
$$\begin{aligned} a_1+ma_4\le & {} b_3+m(b_4+b_5)-b_5,\text { and}\end{aligned}$$
(14)
$$\begin{aligned} 2a_2+ma_3+(m-1)a_4\le & {} b_1+(m-1)\left( \sum _{i=2}^5 b_i\right) -2b_3-b_4+b_5 . \end{aligned}$$
(15)

Let us first assume \(a_4=0\). Using Inequality (12) and Inequality (13) we obtain

$$\begin{aligned} a_3\ge b_2+b_3+2b_4+2b_5. \end{aligned}$$
(16)

Inserting this into Inequality (15) yields after rearranging

$$\begin{aligned} 2a_2 + b_2+3b_3+(m+2)b_4+mb_5 \le b_1. \end{aligned}$$
(17)

Since \(k\le m\), we have \(b_4=b_5=0\). (For \(k=m+1\) we have the solution \(b_1=m\), \(b_2=b_3=b_4=0\), \(b_5=1\), \(a_1=m-1\), \(a_3=2\), and \(a_2=a_4=0\).) With this, Inequality (14) simplifies to \(b_3\ge a_1\) and Inequality (15) simplifies to \(b_1+(m-1)b_2+(m-3)b_3\ge 2a_2+ma_3\). Twice the first plus the second inequality gives

$$\begin{aligned} b_1+(m-1)b_2+(m-1)b_3 \ge 2a_1+2a_2+ma_3. \end{aligned}$$
(18)

Inserting Inequality (12) yields

$$\begin{aligned} -b_1+(m-3)(b_2+b_3) \ge (m-3)a_3+a_3. \end{aligned}$$
(19)

Using Inequality (16) we conclude \(a_3=b_1=0\). Using Inequality (16) again, we conclude \(b_2=b_3=0\), which is a contradiction to \(k=b_1+b_2+b_3+b_4+b_5>0\). Thus, we have \(a_4\ge 1\) in all cases.

\(2m-2\) times Inequality (13) plus twice Inequality (14) plus Inequality (15) minus \(3m-2\) times Inequality (12) yields

$$\begin{aligned} ma_1+ma_2+b_2+b_3+a_4\le (m-1)b_1. \end{aligned}$$

Since \(a_4\ge 1\) and \(b_1\in \mathbb {Z}_{\ge 0}\), we have \(b_1\ge 1\).

\(3m-4\) times Inequality (13) plus 4 times Inequality (14) plus twice Inequality (15) minus \(6m-4\) times Inequality (12) yields

$$\begin{aligned} ma_3\ge 2a_4+2b_1+(m-2)b_2+(m-2)b_3. \end{aligned}$$

Since \(a_4,b_1\ge 1\) and \(a_3\in \mathbb {Z}_{\ge 0}\), we have \(a_3\ge 1\).

\(m-\frac{3}{2}\) times Inequality (13) plus Inequality (14) plus Inequality (15) minus \(2m-2\) times Inequality (12) yields

$$\begin{aligned} a_2+\frac{a_3}{2}+a_4\le -\frac{b_2}{2}-\frac{3b_3}{2}+b_5. \end{aligned}$$
(20)

Since \(a_3,b_4\ge 1\) and \(b_5\in \mathbb {Z}_{\ge 0}\), we have \(b_5\ge 2\).

\(k=a_1+a_2+a_3+a_4\le m\) plus m times Inequality (13) plus Inequality (15) minus \(2m+1\) times Inequality (12) yields

$$\begin{aligned} 2a_2-(m+1)a_4\le -2b_2-4b_3-(m+3)b_4-(m+1)b_5+m. \end{aligned}$$
(21)

Since \(b_5\ge 2\) and \(a_4\in \mathbb {Z}_{\ge 0}\), we have \(a_4\ge 2\).

From Inequality (20) and \(a_2,b_2,b_3\ge 0\) we conclude \(b_5\ge \frac{a_3}{2}+a_4\), so that \(b_5\ge a_4+1\) due to \(a_3\ge 1\) and \(b_5\in \mathbb {Z}_{\ge 0}\). From Inequality (21) and \(a_2,b_2,b_3,b_4\ge 0\) we conclude \((m+1)a_4\ge (m+1)b_5-m\). Inserting \(b_5\ge a_4+1\) finally yields the contradiction \((m+1)a_4\ge (m+1)a_4+1\).\(\square \)

We remark that the proof of Proposition 6.2 looks rather technical and complicated at first sight. However, the underlying idea is very simple. We have to show that the parametric ILP given by inequalities (12)–(15) and 9 non-negative integer variables \(a_1,\dots ,a_4,b_1,\dots ,b_5\) has a minimum value of \(m+1\) for the target function \(a_1+a_2+a_3+a_4\). By relaxing the integrality conditions we obtain a corresponding linear program. Minimizing a suitable variable yields a fractional lower bound that can be rounded up. The corresponding dual multipliers are used to conclude the respective lower bounds directly.

Conjecture 6.3

For each \(r\ge 5\), i.e. at least 5 coalitional types of shift-minimal winning coalitions, there exists a sequence \(\left( G_m^r\right) _{m\ge 3}\) of complete simple games, such that \(G_m^r\) is m-invariant trade robust but not \((m+1)\)-invariant trade robust.

Proposition 6.4

Let \(G=(\overline{n},\mathcal {M})\) be a complete simple game with t types of voters and r shift-minimal winning coalition types, being m-invariant trade robust, but not \((m+1)\)-invariant trade robust for some \(m>1\). Then, there exists a complete simple game \(G'\) with \(t+1\) types of voters and r shift-minimal winning coalition types, which is m-invariant trade robust, but not \((m+1)\)-invariant trade robust.

Proof

Let \(\widetilde{m}^1,\dots ,\widetilde{m}^r\) denote the rows of \(\mathcal {M}\). If G contains nulls, i.e., if \(\widetilde{m}^i_t=0\) for all \(1\le i\le r\), we set \(\widehat{m}^i_j=\widetilde{m}^i_j\), \(\widehat{m}^i_t=1\), \(\widehat{m}^i_{t+1}=0\), \(\widehat{n}_j=\overline{n}_j\), \(\widehat{n}_t=2\), and \(\widehat{n}_{t+1}=\overline{n}_t\) for all \(1\le j\le t-1\), \(1\le i\le r\). Otherwise we set \(\widehat{m}^i_j=\widetilde{m}^i_j\), \(\widehat{m}^i_t=1\), \(\widehat{n}_j=\overline{n}_j\), and \(\widehat{n}_{t+1}=2\) for all \(1\le j\le t\), \(1\le i\le r\).

With this, we choose \(G'=(\widehat{n},\mathcal {M}')\), where \(\mathcal {M}'\) is composed of the r rows \(\widehat{m}^1,\dots ,\widehat{m}^r\). We can easily check that \(G'\) is indeed weighted. Let \(l=(l_1,\dots ,l_{t+1})\) be a losing coalitional vector in \(G'\). If G contains no nulls, then \((l_1,\dots ,l_{t})\) is a losing vector in G. Otherwise, \((l_1,\dots ,l_{t-1},l_{t+1})\) is a losing coalitional vector in G. Thus, a possible certificate for the failure of m-invariant trade robustness for \(G'\) could be converted into a certificate for the failure of m-invariant trade robustness for G by deleting the \((t-1)\)th or tth column of the corresponding vectors—a contradiction. Similarly, we can convert a certificate for the failure of \((m+1)\)-invariant trade robustness for G into a certificate for the failure of \((m+1)\)-invariant trade robustness for \(G'\) by inserting ones into the \((t-1)\)th or tth column of the corresponding vectors.\(\square \)

The same proof is literally valid in the case of trade robustness:

Proposition 6.5

Let \(G=(\overline{n},\mathcal {M})\) be a complete simple game with t types of voters and r shift-minimal winning coalition types, being m-trade robust, but not \((m+1)\)-trade robust for some \(m>1\). Then, there exists a complete simple game \(G'\) with \(t+1\) types of voters and r shift-minimal winning coalition types, which is m-trade robust, but not \((m+1)\)-trade robust.

With these results at hand we may prove that larger classes of games according to parameters r and t never reduce the largest failures of invariant-trade robustness. Table 3 summarizes the invariant trade robust test to be used for a game to determine whether this is weighted. Looking at this table we conclude that 2-invariant trade robustness is conclusive exactly for the cases determined in Sect. 5 (conjectured values are printed in bold face), while for others there is no combination of r and t for which some \(m>2\) be enough to ensure that the game is weighted.

Table 3 W: weighted; –: not possible; 2-I-T-R: either weighted or not 2-invariant trade robust; \(\infty \)-I-T-R: there are games that are not m-invariant trade robust for all m; NW: not a weighted game; conjectured values in bold face

In words, if one wishes to study the class of complete games with a given pair (rt) then 2-invariant trade robustness is a very powerful tool to check weightedness for \(t\le 2\) and \(r=1\), but for the rest of combinations (rt) we need to look at trade-robustness, which is the purpose of the next section.

7 Further trade characterizations

It is well known that all simple games with up to 3 voters are weighted while there are non-weighted simple games for \(n\ge 4\) voters. Restricting the class of simple games to swap robust simple games, i.e. complete simple games, one can state that up to 5 voters each such game is weighted while for \(n\ge 6\) voters there are non-weighted complete simple games. Going over to 2-invariant trade robustness does not help too much. As shown in Freixas and Molinero (2009), precisely 3 of the 60 non-weighted complete simple games with \(n=6\) voters are 2-invariant trade robust but not 3-invariant trade robust. For the classical trade robustness the same authors have shown that all 2-trade robust complete simple games with up to seven voters are weighted. By an exhaustive enumeration we have shown that the same statement is true for \(n=8\) voters, i.e., there are exactly \(2\,730\,164\) weighted games and the remaining \(13\,445\,024\) complete simple games are not 2-trade robust. As shown in Gvozdeva and Slinko (2011), there are complete simple games with \(n=9\) voters, which are 3-trade robust but not 4-trade robust. The corresponding example, belonging to a parametric family, consists of nine different types of players, i.e., no two players are equivalent.

If the number t of types of players is restricted we can obtain tighter weighted characterizations. For \(t=1\) the games are always weighted and for \(t=2\) weightedness is equivalent with 2-trade robustness (or 2-invariant trade robustness for complete simple games). Based on this characterization one can computationally determine the number of complete simple games with two types of voters which are either weighted, i.e. 2-invariant trade robust, or not weighted, i.e. not 2-invariant trade robust. In Freixas et al. (2012) this calculation was executed for \(n\le 40\) voters. It turns out that the fraction of non 2-invariant trade robust complete simple games quickly tends to 1. An exact, easy-to-evaluate, and exponentially growing formula for the number of complete simple games with two types of voters is proven in Freixas et al. (2012), Kurz and Tautenhahn (2013). From the upper bound \(n^5/15+4n^4\), see Freixas and Kurz (2014b), for the number of weighted games with two types of voters, we can conclude that this is generally true. We remark that it is not too hard to compute the number of 2-invariant trade robust complete simple games with \(t=2\) for \(n\le 200\), see Freixas and Kurz (2013), so that we abstain from giving a larger table.

Table 4 Classification of complete simple games with three types of up to 17 voters

For \(t=3\) types of voters we have checked by an exhaustive enumeration that up to \(n=10\) voters each complete simple game is either weighted or not 2-trade robust. For \(n=11\) voters we have the four examples given by \(\overline{n}=(3,3,5)\), \(\mathcal {M}_1=\begin{pmatrix}2&{}\quad 2&{}\quad 3\\ 1&{}\quad 2&{}\quad 5\end{pmatrix}\), \(\mathcal {M}_2=\begin{pmatrix}1&{}\quad 1&{}\quad 2\\ 0&{}\quad 1&{}\quad 4\end{pmatrix}\), \(\mathcal {M}_3=\begin{pmatrix}3&{}\quad 3&{}\quad 0\\ 3&{}\quad 0&{}\quad 4\\ 2&{}\quad 3&{}\quad 2\\ 0&{}\quad 3&{}\quad 5\end{pmatrix}\), and \(\mathcal {M}_4=\begin{pmatrix}3&{}\quad 0&{}\quad 0\\ 2&{}\quad 0&{}\quad 2\\ 0&{}\quad 3&{}\quad 1\\ 0&{}\quad 0&{}\quad 5\end{pmatrix}\), which are all 2-trade robust but not 3-trade robust. This resolves an open problem from Freixas and Molinero (2009). We have computationally checked all complete simple games with three types of voters, i.e. \(t=3\), and up to 17 voters, i.e. \(|N|\le 17\), see Table 4. It seems that the number of games which are 2-trade robust but not 3-trade robust grows rather slowly. Indeed, up to 17 players every 3-trade robust game is weighted.

For \(t=4\) types and \(n=9\) voters there are several complete simple games which are 2-trade robust but not 3-trade robust, e.g. the one given by \(\overline{n}=(1,2,3,3)\) and \(\mathcal {M}=\begin{pmatrix}1&{}\quad 0&{}\quad 1&{}\quad 0\\ 0&{}\quad 2&{}\quad 0&{}\quad 1\\ 0&{}\quad 1&{}\quad 2&{}\quad 0\\ 0&{}\quad 1&{}\quad 1&{}\quad 2\\ 0&{}\quad 0&{}\quad 3&{}\quad 2\end{pmatrix}\). For \(t=4\) and \(n=10\) there are already 120 complete simple games which are 2-trade robust but not 3-trade robust.

The next cases to look at are \(t=3\) and \(r=2\). For both cases we have already presented examples which are 2-trade robust but not 3-trade robust.

In the next section we state a conjecture and ask for several questions related to the problem in relation with the two parameters r and t of a complete game.

8 Open problems

Still we found no example with 3 types of voters which is 3-trade robust but not 4-trade robust.

Question 8.1

Is every 3-trade robust complete simple game with \(t=3\) types of voters weighted?

Question 8.2

Is every 3-trade robust complete simple game with \(r=2\) shift-minimal winning coalition types weighted?

As a first step into the direction of these two questions, we have looked at the intersection of both classes, i.e., complete simple games with \(t=3\) and \(r=2\). The game corresponding to the previously presented matrices \(\mathcal {M}_1\) and \(\mathcal {M}_2\) for \(n=11\) voters are of this type and can be generalized:

Lemma 8.3

For each \(k_1,k_2,k_3,l\in \mathbb {N}\) the games uniquely characterized by \(\overline{n}_1=(n_1,n_2,n_3)\), \(\mathcal {M}_1=\begin{pmatrix}n_1-(l+1)&{}\quad n_2-1&{}\quad n_3-(l+2)\\ n_1-2(l+1)&{}\quad n_2-1&{}\quad n_3\end{pmatrix}\), where \(n_1=3+k_1+2l\), \(n_2=3+k_2\), \(n_3=5+k_3+2l\), and \(\overline{n}_2=(n_1,n_2,5+2l)\), \(\mathcal {M}_2=\begin{pmatrix}l+1&{}\quad 1&{}\quad l+2\\ 0&{}\quad 1&{}\quad 2(l+2)\end{pmatrix}\) are 2-trade robust but not 3-trade robust.

We skip the easy but somewhat technical and lengthy proof. Having the nice parametrization at hand, we can easily state the corresponding generating function, whose coefficients in the resulting power series serve to count the number of those games, where the exponent denotes the number of players:

$$\begin{aligned} x^{11}\left( \frac{1}{(1-x)^3(1-x^4)}+\frac{1}{(1-x)^2(1-x^4)}\right) =\frac{x^{11}(2-x)}{(1-x)^3(1-x^4)} \end{aligned}$$

We deduce that asymptotically there are \(\frac{n^3}{24}+O(n^2)\) such games.Footnote 3

Conjecture 8.4

All 3-trade robust complete simple games with \(t=3\) and \(r=2\) are weighted. Additionally, the 2-trade robust but not 3-trade robust games are exactly those from Lemma 8.3.

By an exhaustive enumeration we have checked Conjecture 8.4 up to \(n=20\) voters. From the previous results it is not clear whether a small number of types or shift-minimal winning coalition types allows to restrict the check of m-trade robustness to a finite m.

Question 8.5

For which values of t does a sequence \(G_k\) of complete simple games with t types of voters exist such that \(G_k\) is k-trade robust but not \((k+1)\)-trade robust for all \(k\ge 2\)?

Question 8.6

For which values of r does a sequence \(G_k\) of complete simple games with r shift-minimal winning coalition types exist such that \(G_k\) is k-trade robust but not \((k+1)\)-trade robust for all \(k\ge 2\)?

Any progress concerning answers for either the conjecture or the questions posed would be of interest. In Table 5 we combine the results from Sect. 5 with the questions of this section. For \(r=2\) or \(t=3\) we have not found any example being 3-trade robust but not weighted, but this should be checked formally and become a conjecture for future work (in Table 5 it appears in black).

Table 5 W: weighted; –: not possible; 2-I-T-R: either weighted or not 2-invariant trade robust; 3-T-R for small values of n all games are either weighted or not 3-trade robust—still a conjecture; NW: not a weighted game; ?: it is not known if some \(m>2\) suffices to assert that m-trade robustness implies weighted

9 Conclusion

This paper looks at the characterization of weighted games (threshold functions) within the class of simple games (switching functions). We have tried to gather results and efforts that have taken place in different areas of study. The new results presented in this paper have been exposed in the simple game terminology since some significant advances have been held in this area in the last two decades. To study the main problem we have restricted ourselves to the class of complete games since non-complete games are not swap-robust and therefore not weighted.

For complete games the test of trade robustness can be computationally relaxed to invariant trade robustness. The strongest condition for invariant trade robustness, 2-invariant trade robustness, is conclusive for deciding if a given complete game is weighted if the complete game has either a unique coalitional type of shift-minimal winning coalitions or two types of equivalent voters. Larger values for the number of shift-minimal winning coalitions or for the number of equivalence classes show that the tests of trade robustness and invariant trade robustness are complementary. We have found some conspicuous examples of non-weighted games being k-trade robust (or \(k'\)-invariant trade robust for some \(k' \ge k\)) but not \((k+1)\)-trade robust (or not \((k'+1)\)-invariant trade robust). We have incorporated a number of open questions in hopes of others taking up the challenges that we have left over.