Start
Set up TLC
Setup
You need TLC, the model checker, which runs on Java. Pick one of three ways in. Each ends with ./tla doctor printing "Ready."
The course repository is github.com/Indicogni/tla-plus.
Option 1: GitHub Codespaces (nothing to install)
- On the repository page, choose Code > Codespaces > Create codespace on main, or use the badge in the README.
- Wait for the container to finish building. It downloads the pinned Java and tla2tools.jar, checks both checksums, writes the telemetry opt-out, and runs
./tla doctor. - In the terminal, run
./tla next.
Codespaces usage counts against your GitHub account's quota.
Option 2: the dev container on your machine
With Docker and VS Code (Dev Containers extension) installed, open the folder and choose Reopen in Container. The container is the same as in Codespaces. It forwards no ports and adds no privileges. This is also the place to run code that an AI assistant or a teammate wrote for you, after reading it. It is not a sandbox: lesson 00-04 says what it does not isolate.
Option 3: manual install
- Java 21 or newer. Check with
java -version. If you do not have it,scripts/get-tools.sh --jdk(Linux or macOS) downloads a pinned Eclipse Temurin JDK 21 into.tools/jdk/and checks its checksum; thenexport TLA_JAVA="$PWD/.tools/jdk/bin/java". On Windows, runscripts\get-tools.ps1 -Jdk, then$env:TLA_JAVA = "$PWD\.tools\jdk\bin\java.exe". - The TLA+ tools.
scripts/get-tools.sh(orscripts\get-tools.ps1) downloadstla2tools.jarinto.tools/and checks its SHA-256 againsttools.lock. A download that does not match is thrown away. - Check.
./tla doctor(Windows:.\tla.cmd doctoror.\tla.ps1 doctor).
./tla finds Java through TLA_JAVA, or uses java from your PATH. TLA_JAR points it at a different copy of the jar; the checksum is still checked, and there is no way to skip that check.
What ./tla doctor checks
- the Java version (21 or newer);
- the jar's SHA-256 against
tools.lock(the version string is shown, but only the checksum counts); - a real TLC run on a tiny model;
- the telemetry opt-out (below);
- whether
javacis present: if it is, the shim compiles the engine once into.tools/engine/and starts faster.
Telemetry
TLC contains a statistics collector. It reads ~/.tlaplus/esc.txt. When the first line of that file is NO_STATISTICS, the collector stops before any network access. Without the file, it may look up an opt-in record on the network. (This was confirmed by reading util.ExecutionStatisticsCollector in the pinned jar.)
The dev container and CI write the opt-out for you. On your own machine, opt out with:
mkdir -p ~/.tlaplus && echo NO_STATISTICS > ~/.tlaplus/esc.txtor scripts/get-tools.sh --telemetry-opt-out (Windows: scripts\get-tools.ps1 -TelemetryOptOut). The course itself sends nothing anywhere: no analytics, no accounts, and your progress stays in your browser.
Your editor
The official TLA+ extension for VS Code (tlaplus.vscode-ide) is recommended for syntax highlighting and navigation. It bundles its own copy of the TLA+ tools and has no setting to use the course's pinned jar, so in this course the extension is for editing and syntax only. Verdicts come from ./tla. The workspace settings turn off the extension's local MCP server, which the course does not need.
Two VS Code tasks come with the repository (Terminal > Run Task):
- TLA: check this lesson runs
./tla checkon the file you have open; errors appear in the Problems pane with file and line. - TLA: open lesson in browser opens the matching lesson page.
Keep your own work private
From chapter 01 on, milestones ask you to describe a system from your own work. Put that in a private repository: on GitHub, use Use this template to create a private copy of the course, then run ./tla my-system init. Never put it in a fork of the public repository: a fork of a public repository is public. my-system/ is gitignored so it is not committed by accident.
The same care applies to AI tools: do not paste proprietary designs, customer data, credentials or unreleased specs into a third-party AI tool without your organisation's approval. Chapter 00 lesson 04 explains the course's AI-use policy.
If something goes wrong
setup problem: no jar at .tools/tla2tools.jar: runscripts/get-tools.sh.SHA-256 ... does not match tools.lock: delete.tools/tla2tools.jarand runscripts/get-tools.shagain. If it still fails, upstream has moved on and the course mirror is unavailable; write to feedback@indicogni.com.- Exit codes: 0 means passed or the expected outcome was met, 1 means the spec does not do what its cfg says, 2 means a setup problem.
- Every run keeps the raw TLC output in
.tla-out/<id>.log.