The Reality Code Engine (RCE): Total State-Machine Specification, 49 mJ Single-Form Checks vs. 15.44 J Suite Scope, and Open Draft Theorems
Specifies RCE Draft 0.9 at openIE-dev/rce (f87d6af2): reconciles 49.04 mJ single-Form check vs 15.44 J 62-Form suite and 2,221/2,236 conformance clauses, and discloses 12 unproved draft-0.9 theorems alongside 97 completed Lean files.
Primary Source: Primary Paper: research.openie.dev/papers/rce/ · Canonical Digest:
blake3:tv:6d19f6f263097e58b92f17fb3d4a4745f98bc5a2496157ac1c25b7fa22c2cb24· Telemetry Class:reported_j(External Apple M5 Max L3 ri_energy_nj (49.04 mJ/Form, 15.44 J/62 Forms) & Linux RAPL Lean audit (22,354.77 J) reported_j; CLI native host.Energy unimplemented)Unattended Gate Flag (
human_in_gate = false): Automated build, benchmark, and proof-checking scripts ran without manual human override; signed & self-checked by OpenIE — not independently peer-reviewed (Verification & AI-Use Disclosure · Glossary).Inline Evidence Tags:
[T]machine-checked Lean 4 theorem over stated axioms ·[E]empirical benchmark or hardware log ·[M]analytical/mathematical model or simulation ·[S]external literature, filing, or specification citation.

RCE Draft 0.9 (openIE-dev/rce f87d6af2): reconciled single-Form vs. 62-Form reported_j scopes, 2,221/2,236 conformance checks, and honest Lean theorem status.
Key Claims & Evidence Tags
- [E · Reconciled
49.04 mJvs.15.44 Jvs.2,221Checks (reported_j)] Earlier summaries conflated three separate workloads fromrce-facts.json:49.04 mJ(7.32 ms, Apple M5 MaxL3reported_j) is the cost of one single-Formrce checkinvocation;15.44 J(2.32 s,~249 mJ/Form) is the cost of checking, running, and multi-target emitting all62valid example Forms (60top-level +2package Forms, alongside13syntax-reject and73type/admissibility-reject tests); and2,221 / 2,236(0failures,15unsupported/reserved) is the normative conformance test count across311spec clauses (not2,221 × 49 mJ). Moreover,rceCLI receipts themselves currently emit deterministic integerC.6fuel units rather than reading OShost.Energycounters natively (§1,§6.3). - [T · Honest Lean 4.36.0 Proof Boundary] Across
97completed.leanfiles inspec/lean/(f87d6af2),0 sorry,0 opaque, and0 ofReduceBoolappear across1,264source theorem/lemma declarations (5,393kernel theorem constants verified by all6/6independent checkers inbwrapat22,354.77 JLinuxRAPLreported_j)—alongside12unproved Draft-0.9 theorem statements in Appendix F.9 (T42–T56exceptT48, T51, T53), plusT60and parts ofT57, T59, T61, while Appendix C concurrency theorems (T16–T31) are proved on abstract models rather than the Rust evaluator. - [T/E · Scoped Totality Guarantee] Rather than claiming RCE “eliminates undefined crashes,” its totality discipline prevents stuck or non-terminating step evaluations within the modeled total Form core (requiring every event either to step or record a state-preserving kept step
T8), excluding host OS failures, FFI boundaries, target-language compiler bugs, hardware faults, and open input-entry item#15.
Methods, Baselines & Artifact Scope
| Methodological Dimension | Primary-Paper Grounding & Scope |
|---|---|
| Hardware & Telemetry | Apple M5 Max (128 GB, macOS 27.2.1, Darwin L3 ri_energy_nj reported_j) for 49.04 mJ single-Form check and 15.44 J 62-Form suite; x86-64 Linux RAPL package-0 (22,354.77 J, 319.80 s reported_j) for 6-kernel lake check --paranoid. measured_j = null (board_metered = false). |
| Workload & Benchmark Suite | 62 valid Form blueprints (60 top-level + 2 package), 13 syntax-reject and 73 type/admissibility-reject negative tests, 2,236 normative conformance checks (311 clauses), 837 Rust unit tests (159 files), 77 canonical JSON vectors, and 97 Lean 4.36.0 proof files. |
| Baseline(s) Compared | Byte-for-byte trace parity across 4 reference emitters (Rust, Python, JavaScript, Scala; plus CLI verilog/wasm targets); literature context from DéjàVu GitHub clone density (70%, Lopes et al. 2017) and TBar Defects4J repair protocols (§7–§8, planned empirically in rce-jepa). |
| Runs (N) & Spread / Uncertainty | Conformance & Lean checks are deterministic (2,221/2,236 pass, 0 fail; 6/6 Lean kernels pass). Apple M5 Max 49.04 mJ (7.32 ms) and 15.44 J (2.32 s): aggregate suite means recorded on 2026-11-22 in rce-facts.json (Spread: per-run SD/IQR not recorded in single-pass receipt summary). |
| Caching / Cold vs. Warm Scope | Language specification separates cold candidate search (G1–G3) from G0 content-addressed shape lookup keyed by nameless structural Form hash (T7); rce paper itself measures checker/language invariants while rce-jepa benchmarks G0–G2 repair streams. |
| Artifact & License Availability | Apache-2.0 public repository at https://github.com/openIE-dev/rce (commit f87d6af2) + browser playground (openie-dev.github.io/rce); self-checked by OpenIE, open for independent replication. |
Reconciling Workload Scopes (49.04 mJ, 15.44 J, and 2,221 Checks)
Inspecting src/data/rce-facts.json and §1 / §6.3 of src/content/papers/rce.md separates three numbers that short video/blog summaries previously compressed together [E]:
-
49.04 mJ(7.32 mson Apple M5 MaxL3ri_energy_nj,reported_j): External OS counter cost of one single-Formrce checkrun. -
15.44 J(2.32 son Apple M5 MaxL3reported_j): External OS counter cost of running the complete62-Form example suite (syntax/type/totality checking plus multi-target Rust, Python, JS, and Scala trace verification across60standalone and2package Forms,~249 mJ/Formend-to-end). -
2,221 / 2,236Conformance Checks (0failures,15unsupported/reserved Draft-0.9 clauses): Normative clause assertions across311specification rules (104core grammar rules /1,028LR states with0shift/reduce conflicts). Furthermore,§1candidly discloses thatopenIE-dev/rcemain does not yet implementrce host calibrateor nativehost.EnergyOS-counter receipts inside the checker binary; internal receipts record deterministic integerC.6fuel units[E].
Theorem Audit (5,393 Constants vs. 12 Unproved Draft-0.9 Statements)
Scientific precision requires reporting both proved and unproved parts of Draft 0.9 [T]:
-
Completed Lean
4.36.0proofs (f87d6af2):97.leanfiles containing1,264hand-writtentheorem/lemmadeclarations elaborate to5,393kernel theorem constants (5,537under Lean4.12.0due to elaborator splitter differences) with0 sorry,0custom axioms,0 opaque, and0 Lean.ofReduceBool, accepted by all6/6independent checkers (con-leche,con-ron,lean4lean,nanoda,leanchecker --paranoid, andLean v4.36.0) inside a networklessbubblewrapsandbox[T]. -
Unproved Draft-0.9 statements & model gaps: Appendix F.9 states theorems
T42–T56, of whichT48,T51, andT53are proved over models while 12 Draft-0.9 theorems remain unproved;T60and full-alphabet/evaluator extensions ofT57,T59,T61, andT62remain open inspec/book/10-theorems.md; and concurrency theoremsT16–T31apply to abstract core models rather than mechanical extraction of the Rust reference checker[T, E].
Limitations: Identifiers, Comprehension, and Totality Boundaries
-
Modeled core totality vs. real-world host faults: Theorem
T8guarantees every transition within a valid Form terminates in a new state or a logged kept step—preventing stuck evaluations inside the modeled language core, not OS OOM kills, FFI wrapper bugs, target-compiler miscompilations, or cosmic-ray bit flips (and entry-contract check#15in§10remains open)[T, E]. -
Nameless hashing vs. LLM/human readability (
§2.1): While positional hashing (T7) canonicalizes variable names out of the Form digest,§2.1cites empirical software-comprehension studies ([139]) showing frontier LLMs lose11–29points of summarization/prediction accuracy when identifiers are stripped—meaning human/model side-tables carrying identifier concepts remain essential[S].
Energy & Telemetry Scope
All reported joules (49.04 mJ, 15.44 J, 22,354.77 J) are reported_j chip counters (measured_j = null, board_metered = false). Relative to generating a multi-language repair via a local 35B LLM (84.25 J reported_j per candidate in rce-jepa), running rce check (0.049 J) costs 1,718x less on-chip reported_j on workstations [E].
Related Work & References
- Gurevich (Abstract State Machines, 2000), Abrial (B-Method / Event-B, 1996/2010) & Dijkstra (1975): Total deterministic state-machine refinement from formal specifications
[S]. - Leroy (CompCert, CACM 2009) & Klein et al. (seL4, SOSP 2009): Machine-checked compiler and OS-kernel verification setting the standard for mechanized proof disclosures
[S]. - Lopes et al. (DéjàVu, OOPSLA 2017) & Hindle et al. (ICSE 2012): Large-scale GitHub clone density (
70%) and code naturalness motivating verified shape reuse[S]. - Moura & Ullrich (Lean 4, CADE 2021): Proof assistant and independent kernel checkers (
lean4lean,nanoda)[S].
David Charlot
Open Interface Engineering, Inc. · Signed Provenance · Self-Checked
Full Rust reference checker, 4-target emitters, conformance suite, and 97 Lean 4 files public at openIE-dev/rce (Apache-2.0); prose CC0-1.0; self-checked, open for external replication. Full licensing & AI-use disclosure →
Video Summaries, Syndication & Site Reference
Check the primary artifacts or run an independent replication
Inspect signed provenance manifests, rerun our public Apache-2.0 commodity-hardware replication kits, review our November 25, 2026 outside-review errata, or browse primary manuscripts on the Research Hub.