GitPedia

Lean4game

Server to host Lean games

From leanprover-community·Updated June 21, 2026·View on GitHub·

This is the source code for the Lean Game Server hosted at [adam.math.hhu.de](https://adam.math.hhu.de). The project is written primarily in TypeScript, distributed under the GNU General Public License v3.0 license, first published in 2022. Key topics include: lean4, react.

Lean 4 Game

This is the source code for the Lean Game Server hosted at adam.math.hhu.de.

Creating a Game

Please follow the tutorial Creating a Game. In particular, the following steps may be of interest:

Documentation

The documentation is very much work in progress but the links below should be up-to-date:

Game creation API

Frontend API

Backend

  • Server: describes the server part (i.e. the content of server/ and relay/).

Hosting

Contributing

Contributions to lean4game are always welcome!

Translation

We welcome translations of the game interface and of the various games hosted on the Lean Game Server into different languages!

Security

Providing the use access to a Lean instance running on the server is a severe security risk. That is why we start the Lean server with bubblewrap.

Contact

In case of a server outage at adam.math.hhu.de please open an issue and/or contact us by <a href="mailto:adam@math.hhu.de?subject=Server Outage">email</a>. Bug reports and feature requests regarding the game interface should be filed on the issues page of this repository. For specific games on the Lean Game Server, please refer to the github repositories linked to below or contact the maintainers.

Game/repositoryMaintainer
Knights and KnavesJad Abou Hawili
Linear Algebra GameZRTMRH
Logic GameTrequetrum
Natural Number Game (NNG)Kevin Buzzard
Real Analysis GameAlex Kontorovich
Reintroduction to ProofsEmily Riehl
Robo / ScribbleMarcus Zibrowius
Set Theory GameDan Velleman

Credits

The project has primarily been developed by Alexander Bentkamp and Jon Eugster.

It is based on ideas from the Lean Game Maker and the Natural Number Game
(NNG)

by Kevin Buzzard and Mohammad Pedramfar, and on Patrick Massot's prototype: NNG4.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from leanprover-community/lean4game via the GitHub API.Last fetched: 6/27/2026