Left to Prove | cp Copy one regular file Status: Open Seeds: 5000 Category: Paths and files Invocation: cp SOURCE DEST Input domain: Use distinct regular-file paths under preopened directories, with a readable source and a nonexistent destination in an immutable namespace except for command writes. Proof obligation: After success DEST contains SOURCE's exact initial bytes and SOURCE and unrelated paths retain their contents. Test cases: Empty and binary files, short reads and writes, and source and destination in different preopened directories. Outside this profile: Existing destinations, links, recursion, metadata equivalence, and failure recovery. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/cp.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/cp.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/cp.json Implementation replay command: sh targets/cp/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: cp Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt