Left to Prove | cut Select byte positions Status: Open Seeds: 3000 Category: Text processing Invocation: cut -b LIST Input domain: Read LF-terminated lines from stdin under LC_ALL=C. LIST is a nonempty set of 1-based indices and inclusive ranges with bounded numeric endpoints. Proof obligation: For each input line, emit the bytes at selected positions that exist, in input order and at most once, followed by LF. Test cases: Overlapping and out-of-order ranges, repeated indices, empty lines, and positions beyond the end of a line. Outside this profile: Character and field modes, named files, option parsing beyond the stated grammar, open-ended ranges, and invalid LIST values. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/cut.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/cut.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) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/cut.json Implementation replay command: sh targets/cut/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: cut Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt