Reproduce

What on monogate.dev you can re-run yourself, with the commands to do it, and what you cannot, because it runs on a private repository.

1 · Install the compiler you get

bash
python3 -m venv .venv
. .venv/bin/activate
pip install monogate-forge
eml-compile --version

That installs the newest monogate-forge release on PyPI. Before each deploy the site installs the same release and runs every compile command it shows against it, so the lessons are checked against what you have, not against unreleased source.

2 · Compile a kernel

Save this as clamp_demo.eml. Its contract says the result never exceeds limit. The Lean target needs @verify(lean); the Verilog target needs @target(fpga).

clamp_demo.eml
module clamp_demo;

@verify(lean, theorem = "clamp_demo_bounded")
@target(fpga, clock_mhz = 100)
fn clamp_demo(request: Real, limit: Real) -> Real
    requires (limit > 0.0)
    ensures (result <= limit)
{
    min(request, limit)
}
bash
eml-compile clamp_demo.eml --profile-only
eml-compile clamp_demo.eml --target python -o clamp_demo.py
eml-compile clamp_demo.eml --target c -o clamp_demo.c
eml-compile clamp_demo.eml --target verilog -o clamp_demo.v
eml-compile clamp_demo.eml --target lean -o clamp_demo.lean
eml-compile clamp_demo.eml --allocate

Each command writes one file, or prints a profile or a resource plan. The site's command check runs all six in an empty directory holding only the source above and requires each to exit 0. It does not compare what they print.

3 · Ask Lean about the theorem

clamp_demo.lean states the theorem clamp_demo_bounded. Whether Lean accepts its proof is a separate step: it needs MachLib, the Lean library the theorem is stated against, and #print axioms. Level 1, Lesson 4 shows the commands and how to read the answer.

4 · The checks behind this site

Four checks run before each deploy, from scripts in the public monogate-dev repository. They are not scheduled, so a result can change between deploys without the site noticing.

5 · What runs on private repositories

Links

PyPI — monogate-forge, the compilermachlib — the Lean library (public)monogate-lean — home of the Lean-claims checker (public)arXiv:2603.21852 — Odrzywołek 2026monogate.org — the research record