How to use this playground
Type code on the left and press Run (or β/Ctrl + Enter). Your code runs in an isolated runner, and results appear on the right, usually within a minute.
β‘ Batch Execution Model: Each run executes the complete script in your editor from top to bottom in a clean, isolated cloud sandbox. All variables, functions, and theorems defined within your editor work together seamlessly. Because each run starts fresh, there is no lingering or hidden state from previous runs—ensuring 100% reproducible computations and proofs.
GAP: Like the GAP prompt, a statement ending in ; shows its value,
while ;; hides it. Print(β¦) works too. Load packages with LoadPackage("semigroups");. Runs stop after 120 seconds.
Choose LaTeX above the output to typeset GAP results automatically, plus any maths between $β¦$ or $$β¦$$.
Prover9 and Mace4: pick the tool next to the editor title. Both read the same input language
(formulas(assumptions). β¦ end_of_list., then formulas(goals). β¦ end_of_list.).
Prover9 searches for a proof; Mace4 searches for a finite model or counterexample
(use assign(domain_size, 6). to fix the size).
Lean 4 + Mathlib 4: pick Lean 4 next to the editor title. Import modules like import Mathlib.Algebra.Group.Basic or import Mathlib.Tactic. Use tactics such as linarith, ring, rw, and induction, or run evaluations with #eval and #check.