Utility catalogue
Text processing
sort
Order lines by byte value
Open5,000 seeds
Proof brief
- 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.
Subtasks and prerequisites
Read obligations JSONThis target needs root.io (proved).
Task bundle
Read bundle JSONA formal Rocq statement has yet to be published for this profile.
This target has no verifier yet. Add targets/sort/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/sort/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.