Utility catalogue
Text processing
cut
Select byte positions
Open3,000 seeds
Proof brief
- 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.
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/cut/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/cut/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.