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