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.
Temporal & Archival Scope: Era II OpenIE Study (November 21, 2026) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/rce/ · Primary Paper & Methods: https://research.openie.dev/papers/rce/ · Canonical Digest:
blake3:tv:6d19f6f263097e58b92f17fb3d4a4745f98bc5a2496157ac1c25b7fa22c2cb24Provenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class:
reported_j(measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered— Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).
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: Hardware & Telemetry · Primary-Paper Grounding & Scope: Apple M5 Max (
128 GB, macOS27.2.1, DarwinL3ri_energy_njreported_j) for49.04 mJsingle-Form check and15.44 J62-Form suite; x86-64 LinuxRAPLpackage-0(22,354.77 J,319.80 sreported_j) for 6-kernellake check --paranoid.measured_j = null(board_metered = false). - Methodological Dimension: Workload & Benchmark Suite · Primary-Paper Grounding & Scope:
62valid Form blueprints (60top-level +2package),13syntax-reject and73type/admissibility-reject negative tests,2,236normative conformance checks (311clauses),837Rust unit tests (159files),77canonical JSON vectors, and97Lean4.36.0proof files. - Methodological Dimension: Baseline(s) Compared · Primary-Paper Grounding & Scope: Byte-for-byte trace parity across
4reference emitters (Rust,Python,JavaScript,Scala; plus CLIverilog/wasmtargets); literature context from DéjàVu GitHub clone density (70%, Lopes et al. 2017) and TBarDefects4Jrepair protocols (§7–§8, planned empirically inrce-jepa). - Methodological Dimension: Runs (N) & Spread / Uncertainty · Primary-Paper Grounding & Scope: Conformance & Lean checks are deterministic (
2,221/2,236pass,0fail;6/6Lean kernels pass). Apple M5 Max49.04 mJ(7.32 ms) and15.44 J(2.32 s): aggregate suite means recorded on2026-11-22inrce-facts.json(Spread: per-run SD/IQR not recorded in single-pass receipt summary). - Methodological Dimension: Caching / Cold vs. Warm Scope · Primary-Paper Grounding & Scope: Language specification separates cold candidate search (
G1–G3) fromG0content-addressed shape lookup keyed by nameless structural Form hash (T7);rcepaper itself measures checker/language invariants whilerce-jepabenchmarksG0–G2repair streams. - Methodological Dimension: Artifact & License Availability · Primary-Paper Grounding & Scope:
Apache-2.0public repository athttps://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].
Canonical Provenance, Primary Artifacts & Independent Replication
- Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/rce/
- Primary Study & Methods: https://research.openie.dev/papers/rce/
- Public Code / Replication Harness: https://github.com/openIE-dev/rce
- Illustrated Video Summary (OpenIE Research TV): https://research.openie.dev/tv/?study=rce (9:16 Vertical MP4)
- Signed Provenance · Self-Checked Disclosure & Licensing: 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 details at https://blog.openie.dev/verification/ and https://blog.openie.dev/glossary/.