Frédéric Wang Yet another non-exponentially growing weblog

About Me  Blog Archive

Infinite version of the Set card game

edit 2023/06/17: I elaborated a bit more in the conclusion about the open problem of finding a minimal κ\kappa.

The Set Game

I visited A Coruña last week for the Web Engines Hackfest and to participate to internal events with my fellow Igalians. One of our tradition being to play board games, my colleague Ioanna presented a card game called Set. To be honest I was not very good at it, but it made me think of a potential generalization for infinite sets that is worth a blog post…

Basically, we have a deck of λμ\lambda^\mu cards with μ=4\mu = 4 features (number of shapes, shape, shading and color), each of them taking λ=3\lambda = 3 possible values (e.g. red, green or purple for the color). Given κ\kappa cards on the table, players must extract λ\lambda cards forming what is called a Set, which is defined as follows: for each of the μ\mu features, either the cards use the same value or they use pairwise distinct values.

Formally, this can be generalized for any cardinal λ\lambda as follows:

  • A card is a function from μ\mu (the features) to λ\lambda (the values).
  • A set of cards SS is a Set iff for any feature α<μ\alpha < \mu, the mapping ΦαS:Sλ\Phi_\alpha^S : S \rightarrow \lambda

    that maps a card cc to the value c(α)c(\alpha) is either constant or one-to-one.

Given a value κ\kappa such that λκλμ\lambda \leq \kappa \leq \lambda^\mu, can we always extract a Set when κ\kappa cards are put on the table? Or said otherwise, is there a set of κ\kappa cards from which we cannot extract any Set?

Trivial cases (λ2\lambda \leq 2 or μ1\mu \leq 1)

Given κλ\kappa \geq \lambda cards, we can always extract a Set SS in the following trivial cases:

  • If μ=0\mu = 0 then the deck contains only one card c=c = \emptyset. If λ2\lambda \geq 2 such a set of κ\kappa cards does not exist. Otherwise we can just take S=S = \emptyset or S={c}S ={\{c\}}: these are Sets since the definition is trivial for μ=0\mu = 0.
  • If μ1\mu \geq 1 and λ=0\lambda = 0 then the deck is empty. We take S=S = \emptyset and for any α<μ\alpha < \mu, Φα=\Phi_\alpha^\emptyset = \emptyset is both constant and one-to-one.
  • If μ=1\mu = 1 and λ1\lambda \geq 1, a card cc is fully determined by its value c(0)c(0), so distinct cards give distinct values. So we can pick any SS of size λ\lambda: it is a Set since Φ0\Phi_0 is one-to-one.
  • If λ=1\lambda = 1 then we can pick any singleton SS: it is a Set since for any feature α<μ\alpha < \mu the mapping ΦαS\Phi_\alpha^S is both constant and one-to-one.
  • If λ=2\lambda = 2 then we can pick any pair of cards SS: it is a Set since for any feature α<μ\alpha < \mu the mapping ΦαS\Phi_\alpha^S is either constant or one-to-one (depending on whether the two cards display the same value or not).

👉🏼 For the rest of this blog post, I’ll assume μ2\mu \geq 2 and λ3\lambda \geq 3.

Not enough cards on the table (κμ\kappa \leq \mu)

If μκλ3\mu \geq \kappa \geq \lambda \geq 3 then we consider cards cαc_\alpha for each α<κ\alpha < \kappa defined for each β<μ\beta < \mu as cα(β)=δα,βc_\alpha{(\beta)} = \delta_{\alpha, \beta} (using Kronecker delta). If we extract a subset SS from these cards and α1,α2,α3<κμ\alpha_1, \alpha_2, \alpha_3 < \kappa \leq \mu are indices for elements of SS then Φα1S\Phi_{\alpha_1}^S respectively evaluates to 1, 0 and 0 for α1,α2,α3\alpha_1, \alpha_2, \alpha_3 so SS is not a Set.

👉🏼 For the rest of this blog post, we’ll assume μ<κ\mu < \kappa and will even focus on the minimal case κ=λ\kappa = \lambda.

Finite number of values (λ<0\lambda < \aleph_0)

Let’s consider a finite number of values λ3\lambda \geq 3 and define the card cαc_\alpha for each α<λ\alpha < \lambda as follows: cα(β)=δα,0c_\alpha(\beta) = \delta_{\alpha, 0} for β=0\beta=0 (again Kronecker delta) and cα(β)=αc_\alpha(\beta) = \alpha for 0<β<μ0 < \beta < \mu. Since μ2\mu \geq 2, the latter case shows that S={cα:α<λ}S = \{ c_\alpha : \alpha < \lambda \} contains exactly λ\lambda cards. Since κ=λ<0\kappa = \lambda < \aleph_0, the only way to extract a subset of size λ\lambda would be to take all the cards. But they don’t form a Set since by construction Φ0(c0)=10=Φ0(c1)=Φ0(c2){\Phi_0{(c_0)}} = 1 \neq 0 = {\Phi_0{(c_1)}} = {\Phi_0{(c_2)}}.

👉🏼 For the rest of the blog post, I’ll assume λ\lambda is infinite.

Singular number of values (cf(λ)<λ\mi{cf}(\lambda) < \lambda)

If λ\lambda is a singular cardinal, then we consider a cofinal sequence {αγ,γ<ν}λ{\{ \alpha_{\gamma}, \gamma < \nu \}} \subseteq \lambda of length ν<λ\nu < \lambda and define the card cαc_\alpha for α<λ\alpha < \lambda as follows:

  • For β=0\beta = 0, we consider the smallest ordinal γ<νλ\gamma < \nu \leq \lambda such that α<αγ\alpha < \alpha_\gamma and define cα(0)=γc_\alpha{(0)} = \gamma.
  • For any 1β<μ1 \leq \beta < \mu, cα(β)=α{c_\alpha{(\beta)}} = \alpha.

Since μ2\mu \geq 2, the latter case shows that these are λ\lambda distinct cards. Consider S{cα,α<λ}S \subseteq {\{c_\alpha, \alpha < \lambda \}}. If Φ0S\Phi_0^S evaluates to a constant value γ<ν\gamma < \nu then S=(Φ0S)1({γ})S = {\left(\Phi_0^S\right)}^{-1}(\{\gamma\}) has size at most |αγ|<λ{|\alpha_\gamma|} < \lambda. If instead Φ0S\Phi_0^S is one-to-one then it takes at most ν\nu distinct values so again |S|ν<λ{|S|} \leq \nu < \lambda. Hence SS is not a Set.

👉🏼 For the rest of the blog post, I’ll assume λ\lambda is an infinite regular cardinal.

Finite number of features (μ<0\mu < \aleph_0)

In this section, we assume that the number of features μ\mu is finite. Let’s consider λ\lambda cards cαc_\alpha and extract a Set SS by induction as follows:

  • S0={cα:α<λ}S_0 = \{ c_\alpha : \alpha < \lambda \}
  • For any β<μ\beta < \mu, we construct Sβ+1SβS_{\beta+1} \subseteq S_{\beta} of cardinality λ\lambda. We note that λ\lambda is regular and Sβ=αΦβSβ(Sβ)(ΦβSβ)1({α}) S_\beta = {\bigcup_{\alpha \in \Phi_\beta^{S_\beta}{(S_\beta)}} {\left(\Phi_\beta^{S_\beta}\right)}^{-1}{(\{\alpha\})} }

    so there are only two possible cases:

    • If ΦβSβ(Sβ)\Phi_\beta^{S_\beta}{(S_\beta)} is of cardinality λ\lambda then pick λ\lambda elements from SβS_\beta with pairwise distinct image by ΦβSβ\Phi_\beta^{S_\beta}.
    • Otherwise, if there is α<λ\alpha < \lambda such that (ΦβSβ)1({α}){\left(\Phi_\beta^{S_\beta}\right)}^{-1}{(\{\alpha\})} is of cardinality λ\lambda, then let it be our Sβ+1S_{\beta+1}.
  • S=SμS = S_{\mu}

Then by construction, SS is of size λ\lambda and for any β<μ\beta < \mu, SSβ+1S \subseteq S_{\beta+1} which means that ΦβS=(ΦβSβ)|S\Phi_\beta^S = { {(\Phi_\beta^{S_\beta})}_{| S}} is either constant or one-to-one.

Incidentally, although I said I would focus on the case κ=λ\kappa = \lambda the result of this session shows that we can extract a Set if more than λ\lambda cards are put on the table!

Summary and open questions

Above are the results I found from a preliminary investigation, which can be summarized as follows:

  1. If λ2\lambda \leq 2 or μ1\mu \leq 1 then we can always find a Set from κλ\kappa \geq \lambda cards.
  2. If 3λμ3 \leq \lambda \leq \mu then for any κ\kappa such that λκμ\lambda \leq \kappa \leq \mu there is a set of κ\kappa cards from which we cannot extract any Set.
  3. If 2μ<λ<02 \leq \mu < \lambda < \aleph_0 there is a set of λ\lambda cards from which we cannot extract any Set.
  4. If 2μ2 \leq \mu and λ\lambda is singular then there is a set of λ\lambda cards from which we cannot extract any Set.
  5. If 2μ<0cf(λ)=λ2 \leq \mu < \aleph_0 \leq {\mi{cf}(\lambda)} = \lambda, then we can always find a Set from κλ\kappa \geq \lambda cards.

Note that for the standard game 3=λ<μ=43 = \lambda < \mu = 4 the only of the results above that applies is (2). Indeed, having only three or four cards on the table is generally not enough to extract a Set!

So far, I was not able to find an answer for the case 0μ<cf(λ)=λκ\aleph_0 \leq \mu < {\mi{cf}(\lambda)} = \lambda \leq \kappa. It looks like the inductive construction from the previous paragraph could work, but it’s not clear what guarantees that taking intersection at limit step would preserve size κ\kappa (an idea would be to use closed unbounded SβS_\beta instead but I didn’t find a satisfying proof). I also failed to build a counter-example set of λ\lambda cards without any Set subset, despite several attempts.

More generally, an open problem is to determine the minimal number of cards κ\kappa (with λκλμ\lambda \leq \kappa \leq \lambda^\mu) to put on the table to ensure players can always extract a Set subset… or even if such a number actually exists! If it does, then in cases (2) (3) (4) we only know κ>λ\kappa > \lambda. In cases (1) and (5) the minimum value κ=λ\kappa = \lambda works ; and when μ2\mu \geq 2 and λ3\lambda \geq 3 are finite, the maximum value κ=λμ\kappa = \lambda^\mu means taking the full deck, which works too (e.g. it always contains the Set given by α<λ,β<μ,cα(β)=α\forall \alpha < \lambda, \forall \beta < \mu, c_\alpha(\beta) = \alpha). Incidentally, note that the latter case is consistent with (2) and (3) since we have λμ>μ,λ\lambda^\mu > \mu, \lambda. But in general for infinite parameters putting κ=λμ\kappa = \lambda^\mu cards on the table does not mean putting the full deck, so it’s less obvious whether we can extract a Set