Left to Prove /bloom
Utility catalogue

Streams

tee

Copy one stream to two destinations

Open5,000 seeds

Proof brief

Invocation
tee FILE
Input domain
Read finite bytes from stdin and write to stdout and one regular file in a preopened directory. Writes succeed with positive progress for nonempty buffers.
Proof obligation
On success both destinations contain the full input. Existing destination contents are replaced and unrelated paths are preserved.
Test cases
Empty input with existing output, binary bytes, and different short-write schedules for the two destinations.
Outside this profile
Append, multiple files, signals, aliasing, and terminal I/O failures.

Subtasks and prerequisites

Read obligations JSON

This target needs root.io (proved), root.preopens (not supported yet).

Task bundle

Read bundle JSON

A formal Rocq statement has yet to be published for this profile.

This target has no verifier yet. Add targets/tee/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/tee/verify.sh.

GitHub submissions

See the review queue

View GitHub pull requests for the current status.

View GitHub pull requests