{
  "proofEvidence": {
    "statement": "Specs.CatContract.accepted",
    "assumptionsPolicy": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/assumptions-allowlist.txt",
    "registry": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/targets.json",
    "status": "replayed",
    "replay": {
      "contract": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/targets/cat/Contract.v",
      "revision": "3440f400d235544fe816475adde8e55009e057c0",
      "checkedAt": "2026-12-01T17:27:44.000Z",
      "run": "https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785",
      "bundle": "https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785#artifacts"
    }
  },
  "target": "cat",
  "scope": {
    "status": "scoped",
    "invocation": "cat",
    "inputDomain": "Use no arguments and stream arbitrary finite bytes from stdin. A successful write of a nonempty buffer reports positive progress.",
    "proofObligation": "On success, stdout equals stdin byte for byte, regardless of how reads or short successful writes partition the stream. Show that a returned write count cannot cause a byte to be dropped or emitted twice.",
    "excluded": "Named files, transformations, hostile hosts, and behavior after terminal I/O errors."
  },
  "obligations": [
    {
      "id": "cat.copy",
      "target": "cat",
      "title": "Byte-at-a-time copy",
      "summary": "The copy export copies stdin to stdout one byte at a time through root, for every modeled I/O trace.",
      "status": "proved",
      "statement": "CatContract.copy",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/cat/Cat.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/6",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/cat/#cat.copy"
    }
  ],
  "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"
    },
    {
      "id": "root.exit",
      "target": "root",
      "title": "Exit status",
      "summary": "exit forwards a command's status to the host adapter unchanged, for every i32 status, and returns or traps as the adapter does.",
      "status": "tested",
      "statement": "RootContract.exit",
      "proof": null,
      "requires": [],
      "unblocks": 4,
      "recommended": false,
      "page": "/utilities/root/#root.exit"
    }
  ],
  "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/cat-invocation.html",
    "source": "https://github.com/coreutils/coreutils/blob/v9.11/src/cat.c"
  },
  "specification": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/SPEC.md",
  "rocq": {
    "statement": "CatContract.accepted",
    "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/Contract.v",
    "checkSpecification": [
      "./ltp check cat"
    ]
  },
  "fixtures": {
    "cases": "Empty input, embedded NULs, one-byte reads, and short writes in the deterministic host model.",
    "data": [
      {
        "name": "embedded NUL and non-ASCII byte",
        "args": [],
        "stdinHex": "6100ff0a",
        "stdoutHex": "6100ff0a",
        "exitStatus": 0
      },
      {
        "name": "empty input",
        "args": [],
        "stdinHex": "",
        "stdoutHex": "",
        "exitStatus": 0
      }
    ],
    "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/fixtures.json"
  },
  "submission": {
    "url": "https://github.com/bloom-directory/lefttoprove/compare",
    "metadata": [
      "Target: cat",
      "Contribution: proof"
    ],
    "replay": "sh targets/cat/verify.sh",
    "existingVerifier": {
      "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh",
      "instruction": "Replay the current cat milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt."
    }
  }
}
