Utility catalogue
Text processing
sed
Replace the first literal match per line
Open5,000 seeds
Proof brief
- Invocation
sed 's/OLD/NEW/'- Input domain
- Read LF-terminated ASCII lines. OLD is nonempty and both operands consist of ASCII letters, digits, or spaces.
- Proof obligation
- Replace the leftmost occurrence of OLD with NEW at most once on each line, preserving other bytes and the original line boundaries.
- Test cases
- No match, multiple and overlapping matches, empty replacement, and blank lines.
- Outside this profile
- Regex metacharacters, flags, command scripts, and unterminated input.
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/sed/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/sed/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.