Draft — mutable and not usable as a dependency; its citation marks the draft state.

Version history

Submission versions

Newest first. “Current version” is the latest registered successor; drafts are identified separately.

  1. lax-67viewingdraft

    The Word RAM

    GitHub sourceShown on this page
  2. lax-13current version

    The Word RAM

The Word RAM

lax-67·formalized by Jan Dreier·Claude Fable 5 (Anthropic)·created 2026-09-03·GitHub @512403f·Lean v4.30.0 epoch · mathlib c5ea00351c28

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this submission may be incorrect.

No flags have been submitted.

    Community review

    Flag this submission

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    Abstract

    This submission defines a word RAM and computation within an explicit instruction bound on a stated domain of inputs. Writable memory has 2w2 ^ w cells holding ww-bit words and starts at zero. The read-only input is a finite array supplied at initialization, with constant-time indexed access and length metadata, a sequential read operation, and an explicit end-of-input test. Zero remains ordinary input data. Output is append-only, and correctness constrains the complete output list.

    Arithmetic values, input values and lengths, input indices, and data-memory addresses are reduced modulo 2w2 ^ w. Program labels and the program counter are unrestricted natural numbers. Time charges one unit per executed instruction, including explicit halthalt and exhausted readread; falling outside the program costs no nonexistent instruction. The formalization notes state fitting conditions, the input-access convention, the additive linear cost of loading sequential input when comparing models, and the distinction from Cook and Reckhow's terminated input encoding. The proof package provides compiler transfer theorems, a verified execution driver, and semantic regression proofs for raw-list length parity, constant-time indexed input access, and exact termination costs.

    Concepts

    defdefinition

    Concept map

    Proven claimOpen claimDefinitionThis submissionOther submissionA → B: B builds on A

    Proofs

    No proofs in this submission.

    Proof code is not displayed; the archive records each proof's checked relationship between claims.

    Related submissions

    Submission map

    This submissionOther submissionA → B: B's concepts build on AA → B: only B's proofs build on A

    Cite this

    @misc{lax-67,
      author = {Jan Dreier and Claude Fable 5 (Anthropic)},
      title = {The Word RAM},
      year = {2026},
      howpublished = {Lax Archive, lax-67},
      url = {https://laxarchive.org/lax-67/},
      note = {draft},
    }

    References

    1. Alfred V. Aho, John E. Hopcroft and Jeffrey D. Ullman. The Design and Analysis of Computer Algorithms. Addison-Wesley, 1974.
    2. Stephen A. Cook and Robert A. Reckhow. Time bounded random access machines. Journal of Computer and System Sciences 7(4):354–375, 1973. doi:10.1016/S0022-0000(73)80029-7
    3. Torben Hagerup. Sorting and searching on the word RAM. In STACS 98: 15th Annual Symposium on Theoretical Aspects of Computer Science 1373:366–398, 1998. doi:10.1007/BFb0028575
    4. Michael L. Fredman and Dan E. Willard. Surpassing the information theoretic bound with fusion trees. Journal of Computer and System Sciences 47(3):424–436, 1993. doi:10.1016/0022-0000(93)90040-4
    5. Peter van Emde Boas. Machine models and simulations. In Handbook of Theoretical Computer Science, Volume A: Algorithms and Complexity 1–66, 1990.

    Community review

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.

    0 comments

    Loading discussion…