{
  "target": "fold",
  "scope": {
    "status": "scoped",
    "invocation": "fold -b -w N",
    "inputDomain": "Read LF-terminated byte lines from stdin with no carriage returns or backspaces. N is a positive bounded integer.",
    "proofObligation": "Insert LF between consecutive N-byte pieces of each original line. Preserve each original LF, with no extra empty piece at exact multiples of N.",
    "excluded": "Display widths, word wrapping, carriage returns, backspaces, named inputs, and unterminated lines."
  },
  "obligations": [],
  "requires": [
    {
      "id": "root.io",
      "target": "root",
      "title": "Byte I/O and argument forwarding",
      "summary": "read_byte, write_byte, arg_count and arg_byte forward to the host adapter and return its results unchanged.",
      "status": "proved",
      "statement": "RootContract.io",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/root/Root.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/8",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [],
      "unblocks": 44,
      "recommended": false,
      "page": "/utilities/root/#root.io"
    }
  ],
  "reference": {
    "name": "GNU Coreutils",
    "version": "9.11",
    "release": "https://github.com/coreutils/coreutils/releases/tag/v9.11",
    "manual": "https://www.gnu.org/software/coreutils/manual/html_node/fold-invocation.html",
    "source": "https://github.com/coreutils/coreutils/blob/v9.11/src/fold.c"
  },
  "specification": "https://pubs.opengroup.org/onlinepubs/9799919799/utilities/fold.html",
  "rocq": null,
  "fixtures": {
    "cases": "Width 1, exact multiples, empty lines, and lines spanning multiple read chunks.",
    "data": [],
    "source": null
  },
  "submission": {
    "url": "https://github.com/bloom-directory/lefttoprove/compare",
    "metadata": [
      "Target: fold",
      "Contribution: proof"
    ],
    "replay": "sh targets/fold/verify.sh",
    "existingVerifier": null
  }
}
