Environment v4.30.0. The archive's epoch is v4.33.0; only submissions in v4.30.0 can cite this work.

Version history

Submission versions

  1. lax-808846current version

    The Word RAM

  2. lax-67viewing

    The Word RAM

    GitHub sourceShown on this page
  3. lax-13

    The Word RAM

The Word RAM

lax-67·formalized by Jan Dreier · Claude Fable 5 (Anthropic)·registered·created ·GitHub @512403f·Lean v4.30.0 · 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

    Concept map
    2 concepts
    100%
    DefinitionThis submissionA → B: B builds on A

    Proofs

    No proofs in this submission.

    Related submissions

    No other submission in the archive builds on this one, and this one builds on none.

    Cite this

    This is only the formalizers. The authors of the formalized results may be different (see References).

    @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 = {superseded by lax-808846},
    }

    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.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…