How to use this playground
Type code on the left and press Run (or Ctrl/⌘ + Enter). Your code runs on a fresh GitHub machine, and the result appears on the right, usually within a minute.
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 (permutations, matrices, fractions, powers, groups) automatically, plus any maths written 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. If your proof has no errors, the output confirms all goals are accomplished.
💡 First time here or collaborating with PY? (GitHub setup for mathematicians)
Calculations run in the cloud on GitHub Actions runners. To run code, you need a free GitHub account and a Personal Access Token (PAT).
If PY invited you as a collaborator on fraubentz/gap-online, you can run directly on that repository using your own token!
Alternatively, click Fork on GitHub to run on your own free account.
Expand Connection settings below for the 60-second step-by-step guide.