Left to Prove | sort Order lines by byte value Status: Open Seeds: 5000 Category: Text processing Invocation: sort Input domain: Use no flags. Read LF-terminated lines from stdin under LC_ALL=C, within a documented memory bound. Proof obligation: The output contains exactly the input multiset of lines and is ordered lexicographically by unsigned byte value. Include the case of one line being a prefix of another. Test cases: Empty input, duplicate lines, already sorted and reversed input, and a line with a shared prefix. Outside this profile: Locale collation, keys, merge mode, external sorting, and unterminated lines. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sort.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/sort.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/sort.json Implementation replay command: sh targets/sort/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: sort Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt