Left to Prove /bloom
Utility catalogue

Foundation · First wave

root

Shared WASI runtime and I/O

Open10,000 seeds

Proof brief

Invocation
root · WASI 0.2 CLI support library
Input domain
Use a pinned WASI 0.2 CLI host model with UTF-8 arguments, stdin, stdout, stderr, and a preopened directory for file-backed streams. State memory and resource bounds and model host progress.
Proof obligation
Specify a small shared library for startup and exit status, opening files relative to a preopen, and reading and writing byte streams. Prove that stream loops handle short I/O and preserve byte order, distinguish EOF from error, and propagate failure without claiming a complete write. Show with cat or wc that a command can reuse the interfaces and that its proof composes with root's contracts.
Test cases
Empty input, NUL bytes, one-byte chunks, short writes, no-progress writes, read or write failure after partial progress, absent file permissions, and normal and error exit statuses.
Outside this profile
Full libc ABI compatibility, threads, subprocesses, sockets, locale implementation, and proof of the WASI host itself.

Subtasks and prerequisites

Read obligations JSON
  1. root.io Byte I/O and argument forwarding Proved

    read_byte, write_byte, arg_count and arg_byte forward to the host adapter and return its results unchanged.

    Statement RootContract.io · Proof source · Contribution #8 · Unblocks 44 targets

  2. root.exit Exit status Tested, not proved

    exit forwards a command's status to the host adapter unchanged, for every i32 status, and returns or traps as the adapter does.

    Statement RootContract.exit · Unblocks 4 targets

  3. root.preopens Files under a preopen Not supported yet Recommended next task

    Open files relative to a preopened directory and read and write them as byte streams.

    Requires root.io · Unblocks 13 targets

Replayed proof evidence

Replayed on main

Task bundle

Read bundle JSON

RootContract.accepted

./ltp check root

Replay the current milestone with sh targets/root/verify.sh. Replay the current root milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt.

GitHub submissions

See the review queue

View GitHub pull requests for the current status.

View GitHub pull requests