Left to Prove | tee Copy one stream to two destinations Status: Open Seeds: 5000 Category: Streams 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. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/tee.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/tee.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.preopens: Files under a preopen (Not supported yet) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/tee.json Implementation replay command: sh targets/tee/verify.sh No verify.sh exists for this target yet. Write it as part of the submission, modeled on https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh. Build the checker image first: see SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: tee Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt