Utility catalogue
Text processing
grep
Select exact literal lines
Open5,000 seeds
Proof brief
- Invocation
grep -F -x -- PATTERN- Input domain
- Read LF-terminated ASCII lines. PATTERN is a single ASCII string without LF or NUL.
- Proof obligation
- Write precisely the input lines equal to PATTERN, preserving order and multiplicity. Exit 0 when any line matches and 1 when none do.
- Test cases
- Empty pattern against empty lines, duplicate matches, prefixes, and no matches.
- Outside this profile
- Regular expressions, files, binary detection, and locale behavior.
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/grep/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/grep/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.