Left to Prove | grep Select exact literal lines Status: Open Seeds: 5000 Category: Text processing 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. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/grep.html Reference: https://www.gnu.org/software/grep/ Prerequisites: root.io: Byte I/O and argument forwarding (Proved) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/grep.json Implementation replay command: sh targets/grep/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: grep Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt