Skip to main content

Exploring Tetris as a Transformation Semigroup

  • Conference paper
  • First Online:
Recent Developments in Mathematical, Statistical and Computational Sciences (AMMCS 2019)

Part of the book series: Springer Proceedings in Mathematics & Statistics ((PROMS,volume 343))

  • 929 Accesses

Abstract

Tetris is a popular puzzle video game, invented in 1984. We formulate two versions of the game as a transformation semigroup and use this formulation to view the game through the lens of Krohn-Rhodes theory. In a variation of the game upon which it restarts if the player loses, we find permutation group structures, including the symmetric group \(S_5\) which contains a non-abelian simple group as a subgroup. This implies, at least in a simple case, that iterated Tetris is finitarily computationally universal.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 139.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 179.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 179.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Baccherini, D., Merlini, D.: Combinatorial analysis of Tetris-like games. Discrete Math. 308(18), 4165–4176 (2008)

    Article  MathSciNet  Google Scholar 

  2. Brzustowski, J.: Can you win at Tetris? Master’s thesis, University of British Columbia (1992)

    Google Scholar 

  3. Burgiel, H.: How to lose at Tetris. Math. Gaz. 81(491), 194–200 (1997)

    Article  Google Scholar 

  4. Demaine, E., Hohenberger, S., Liben-Nowell, D.: Tetris is hard, even to approximate. In: Computing and Combinatorics, pp. 351–363. LNCS, vol. 2697. Springer (2003)

    Google Scholar 

  5. Egri-Nagy, A., Mitchell, J.D., Nehaniv, C.L.: SgpDec: cascade (de)compositions of finite transformation semigroups and permutation groups. In: International Congress on Mathematical Software, pp. 75–82. LNCS, vol. 8592. Springer (2014)

    Google Scholar 

  6. Egri-Nagy, A., Nehaniv, C.L.: Ideas of the holonomy decomposition of finite transformation semigroups. RIMS Kôkyûroku 2051, 43–45 (2017)

    Google Scholar 

  7. Eilenberg, S.: Automata, Languages, and Machines, Vol. B. Academic Press (1976)

    Google Scholar 

  8. Germundsson, R.: A Tetris Controller: An Example of a Discrete Event Dynamic System. Linköping University, Sweden (1991)

    Google Scholar 

  9. Hoad, P.: Tetris: how we made the addictive computer game (2014). https://www.theguardian.com/culture/2014/jun/02/how-we-made-tetris

  10. Hoogeboom, H.J., Kosters, W.A.: The Theory of Tetris. Nieuwsbr. Ned. Ver. voor Theoret. Inform. 9, 14–21 (2005)

    Google Scholar 

  11. Jim Pattison Group: Guinness World Records: Gamer’s edition (2011)

    Google Scholar 

  12. Krohn, K., Rhodes, J.: Algebraic theory of machines. I. Prime decomposition theorem for finite semigroups and machines. Trans. Am. Math. Soc. 116, 450–464 (1965)

    Google Scholar 

  13. Maler, O.: On the Krohn-Rhodes cascaded decomposition theorem. In: Time for Verification: Essays in Memory of Amir Pnueli, pp. 260–278, LNCS, vol. 6200. Springer (2010)

    Google Scholar 

  14. Maurer, W.D., Rhodes, J.L.: A property of finite simple non-abelian groups. Proc. Am. Math. Soc. 16(3), 552–554 (1965)

    Article  MathSciNet  Google Scholar 

  15. Nehaniv, C.L., Rhodes, J., Egri-Nagy, A., Dini, P., Rothstein Morris, E., Horváth, G., Karimi, F., Schreckling, D., Schilstra, M.J.: Symmetry structure in discrete models of biochemical systems: natural subsystems and the weak control hierarchy in a new model of computation driven by interactions. Philos. Trans. R. Soc. A: Math. Phys. Eng. Sci. 373(2046), 20140,223 (2015)

    Google Scholar 

  16. Weisstein, E.W.: Tetromino. from Wolfram MathWorld (2003). https://mathworld.wolfram.com/Tetromino.html

Download references

Acknowledgements

We acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC), funding reference number RGPIN-2019-04669. Cette recherche a été financée par le Conseil de recherches en sciences naturelles et en génie du Canada (CRSNG), numéro de référence RGPIN-2019-04669.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Peter C. Jentsch .

Editor information

Editors and Affiliations

Appendix: Krohn-Rhodes Theory and the Holonomy Decomposition

Appendix: Krohn-Rhodes Theory and the Holonomy Decomposition

The Krohn-Rhodes (KR) theorem describes a general decomposition of transformation semigroups in terms of wreath products of the finite simple groups and the flip-flop monoid. A visualization of the flip-flop monoid is shown in Fig. 6.

Fig. 6
figure 6

The flip-flop monoid on \( X = \{1,2\}\) is given by the set of transformations \(S = \{A,B,I\}\)

Theorem 2

(Krohn-Rhodes decomposition [12]) A finite transformation semigroup (X, S), with states X and semigroup S acting on states by transformations, has a decomposition

$$(X,S) \text { divides } H_1 \wr H_2 \wr H_3 \ldots \wr H_n$$

with components \(H_1, H_2, \ldots , H_n\), such that each \(H_i\) is a finite simple group dividing S or the flip-flop monoid.

The decomposition given by this theorem tends to be far from optimal in practice. Therefore, most practical implementations of semigroup decomposition use the holonomy method described in [7].

We will reproduce the relevant definitions and theorems here. Define the set Q as

$$Q = \{\{X \cdot s\} | s \in S\} \cup \{X\} \cup \{\{a\} | a \in X \}$$

then we can define a relation on Q called subduction.

Definition 2

(Subduction) Let \(S^I\) denote S with a new identity element appended. Given, \(A,B \in Q\), we define an reflexive, transitive relation on Q,

$$A \le B \iff \exists s \in S^I, A \subseteq B \cdot s$$

Furthermore, let \(A < B\) if \(A \le B\) but not \(B \le A\). This relation, which we will call subduction, induces an equivalence relation on Q: \(A \equiv B \iff A \le B\) and \(B \le A\). For each equivalence class \(A /\!\!\equiv \) in \(Q /\!\!\equiv \), let \(\bar{A}\) be a unique representative.

Definition 3

(Tiles) Define A to be a tile of B if \(A \subsetneq B\) and

$$\forall Z \in Q, (A \le Z \le B \implies Z = A \text { or } Z = B)$$

If \(A \in Q\) with \(|A|>1\), the set of tiles of A is \(\Theta _A \subset Q\)

Definition 4

(Holonomy group) The holonomy group, written \(H_A\), of A is the set of permutations of \(\Theta _A\) induced by the elements of \(S^I\). If we let \(H_A\) act on \(\Theta _A\), then \((\Theta _A,H_A)\) is the holonomy permutation group of A.

Definition 5

(Height of an Image Set) The height of \(A\in Q\) is h(A), where h(A) is the length of the longest strict subduction chain up to A.

We are now able to state the holonomy decomposition theorem, which asserts that the semigroup (X, S) divides a cascade product, from which the Krohn-Rhodes (KR) decomposition (Theorem 2) can be derived. The holonomy theorem describes the transformation semigroup (X, S) in terms of symmetries in the way transformations in S act on the set of tiles of the \(\bar{A} \in Q\).

Theorem 3

(Holonomy decomposition [7]) Let (X, S) be a finite transformation semigroup, with \(h = h(X)\) the height of X. For each i with \(1\le i \le h\), let

$$(\Phi _i, \mathfrak {H_i}) = \prod _{\{A\in Q: h(A)=i,\, \bar{A}=A\}} (\Theta _{\bar{A}}, H_{\bar{A}})$$

\((\Phi _i, \mathfrak {H_i})\) is a permutation group and \((\Phi _i, \overline{\mathfrak {H_i}})\) is the permutation-reset transformation semigroup obtained by appending all constant maps to \(\mathfrak {H_i}\). Then

$$(X,S) \text { divides } (\Phi _1, \overline{\mathfrak {H_1}}) \wr (\Phi _2, \overline{\mathfrak {H_2}}) \wr \cdots \wr (\Phi _h, \overline{\mathfrak {H_h}}).$$

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Jentsch, P.C., Nehaniv, C.L. (2021). Exploring Tetris as a Transformation Semigroup. In: Kilgour, D.M., Kunze, H., Makarov, R., Melnik, R., Wang, X. (eds) Recent Developments in Mathematical, Statistical and Computational Sciences. AMMCS 2019. Springer Proceedings in Mathematics & Statistics, vol 343. Springer, Cham. https://doi.org/10.1007/978-3-030-63591-6_7

Download citation

Publish with us

Policies and ethics