Left to Prove | cat Copy a byte stream Status: Open Seeds: 2000 Category: Streams (first wave) Invocation: cat Input domain: Use no arguments and stream arbitrary finite bytes from stdin. A successful write of a nonempty buffer reports positive progress. Proof obligation: On success, stdout equals stdin byte for byte, regardless of how reads or short successful writes partition the stream. Show that a returned write count cannot cause a byte to be dropped or emitted twice. Test cases: Empty input, embedded NULs, one-byte reads, and short writes in the deterministic host model. Outside this profile: Named files, transformations, hostile hosts, and behavior after terminal I/O errors. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/cat.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/cat.c Reference release: GNU Coreutils 9.11 (https://github.com/coreutils/coreutils/releases/tag/v9.11) Prerequisites: root.io: Byte I/O and argument forwarding (Proved) root.exit: Exit status (Tested, not proved) Subtasks: cat.copy: Byte-at-a-time copy (Proved; requires root.io; unblocks 1 target) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/cat.json Proof replay: Specs.CatContract.accepted (replayed) Rocq contract: https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/targets/cat/Contract.v Rocq assumptions policy: https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/assumptions-allowlist.txt Replay bundle and recorded assumptions: https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785#artifacts Rocq statement: CatContract.accepted (https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/Contract.v) Specification replay from the contribution checkout: ./ltp check cat Reference fixtures: https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/fixtures.json Implementation replay command: sh targets/cat/verify.sh Replay the current cat milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: cat Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt