Each program is compiled and run in this browser. The core module must be the bytes that the independent OCaml front end writes for the same source, the wasm must be the pinned bytes, and the value must equal the pinned value. A digest names each result, so a difference is found at its hop.
| program | front end | back end | run | core, against OCaml | wasm, pinned | value |
|---|
This page uses the compiler of the rsd 0.3 release as published: the two seed modules that rebuild themselves from source. The programs are written in its bootstrap surface, a subset of Lean 4.14.
| hop | done by | Lean needed |
|---|---|---|
| text to core module | rsdc.wasm, in this page | no |
| core module to wasm | rsc.wasm, in this page | no |
| wasm to value | this browser's engine | no |
| Rust-like surface | a syntax extension elaborated by Lean 4.14, outside this page | yes, until Lean's front end runs on this chain |
| theorems and proofs | Lean 4.14's kernel and our checker, outside this page | yes, until the checker runs on this chain |
A result is named by the SHA-256 of its bytes, written q. The same source gives the same q in every browser and on the command line. The entry of main is reached through a wrapper with thirteen unused words, added before compiling, so the sizes and digests here are of the program with that wrapper.
Source, release and the recipe that rebuilds the compiler: github.com/residua-labs/Residua (Apache-2.0). Editor: CodeMirror 5.65.16 (MIT).