{
  "target": "tee",
  "scope": {
    "status": "scoped",
    "invocation": "tee FILE",
    "inputDomain": "Read finite bytes from stdin and write to stdout and one regular file in a preopened directory. Writes succeed with positive progress for nonempty buffers.",
    "proofObligation": "On success both destinations contain the full input. Existing destination contents are replaced and unrelated paths are preserved.",
    "excluded": "Append, multiple files, signals, aliasing, and terminal I/O failures."
  },
  "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"
    },
    {
      "id": "root.preopens",
      "target": "root",
      "title": "Files under a preopen",
      "summary": "Open files relative to a preopened directory and read and write them as byte streams.",
      "status": "missing",
      "statement": null,
      "proof": null,
      "requires": [
        "root.io"
      ],
      "unblocks": 13,
      "recommended": true,
      "page": "/utilities/root/#root.preopens"
    }
  ],
  "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/tee-invocation.html",
    "source": "https://github.com/coreutils/coreutils/blob/v9.11/src/tee.c"
  },
  "specification": "https://pubs.opengroup.org/onlinepubs/9799919799/utilities/tee.html",
  "rocq": null,
  "fixtures": {
    "cases": "Empty input with existing output, binary bytes, and different short-write schedules for the two destinations.",
    "data": [],
    "source": null
  },
  "submission": {
    "url": "https://github.com/bloom-directory/lefttoprove/compare",
    "metadata": [
      "Target: tee",
      "Contribution: proof"
    ],
    "replay": "sh targets/tee/verify.sh",
    "existingVerifier": null
  }
}
