Utility catalogue
Streams
tail
Take a suffix of lines
Open3,000 seeds
Proof brief
- Invocation
tail -n N- Input domain
- Read finite LF-terminated lines from stdin. N is a bounded nonnegative integer.
- Proof obligation
- Emit the final min(N, line count) complete lines in input order. Use a rolling buffer with a documented limit and prove that dropping old lines cannot change the final suffix.
- Test cases
- Zero, one, and more lines requested than present, repeated empty lines, and multiple buffer wraparounds.
- Outside this profile
- Follow mode, byte mode, named files, resource exhaustion, and an unterminated last line.
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/tail/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/tail/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.