Repository navigation
Home
A Refal-5 compiler that compiles itself. A prover that decides by supercompilation. Valentin Turchin's supersystem, rebuilt in Rust.
This wiki is the long-form companion to the README. The README is the overview; the pages here are the details that would otherwise crowd it.
$ git clone https://github.com/Abhinav-Rust/REFAL-SUPERSYSTEM
$ cd REFAL-SUPERSYSTEM
$ cargo build -p refal
$ ./target/debug/refal compile examples/compiler.ref | wc -c
111600A stable Rust toolchain is the only prerequisite.
| Page | What it answers |
|---|---|
| Architecture | What the four layers are, what each one does, and what they share |
| Command reference | Every refal subcommand, and the arguments it takes |
| Conformance | What "100% complete" means — the E-1 … E-26 rows, and how the published figure is derived |
| Turchin source index | Which paper each capability implements |
| Building and testing | The build, the fast gate, and the full suite |
The compiler — layers 0 and 2, plus most of layer 4 — is complete and gated: it compiles its own source, it drives rather than re-prints, and its output is checked against a differential oracle on every program in the corpus. Layer 1 is a service, function inversion is built, and layer 3 decides equations as well as predicates. What remains of layer 3 is the general relational form.
The honest completion figure, its method, and the capability table live in the README and are the single source of truth. This wiki deliberately does not repeat the number, so the two cannot drift apart.