{
  "proofEvidence": {
    "statement": "Specs.UniqContract.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/uniq/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": "uniq",
  "scope": {
    "status": "scoped",
    "invocation": "uniq",
    "inputDomain": "Use no options. Read byte lines from stdin under LC_ALL=C, each shorter than 2^20 bytes excluding LF. Treat a final line without LF as a line.",
    "proofObligation": "Emit exactly the first line of each maximal run of byte-identical lines, in input order, followed by LF. Repeated lines that occur in separate runs stay separate.",
    "excluded": "Counting, skip flags, named files, locale-sensitive comparison, and I/O failures."
  },
  "obligations": [
    {
      "id": "uniq.adjacent",
      "target": "uniq",
      "title": "Collapse adjacent runs",
      "summary": "Write one LF-terminated line for each adjacent run of equal byte lines shorter than 2^20 bytes, including a final line without LF.",
      "status": "proved",
      "statement": "UniqContract.adjacent",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/uniq/Uniq.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/11",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/uniq/#uniq.adjacent"
    }
  ],
  "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/uniq-invocation.html",
    "source": "https://github.com/coreutils/coreutils/blob/v9.11/src/uniq.c"
  },
  "specification": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/uniq/SPEC.md",
  "rocq": {
    "statement": "UniqContract.accepted",
    "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/uniq/Contract.v",
    "checkSpecification": [
      "./ltp check uniq"
    ]
  },
  "fixtures": {
    "cases": "Empty input, blank lines, long runs, the sequence A, B, A, and a final line without LF.",
    "data": [
      {
        "name": "collapse runs while preserving separated duplicates",
        "args": [],
        "stdinHex": "610a610a620a610a",
        "stdoutHex": "610a620a610a",
        "exitStatus": 0
      },
      {
        "name": "repeated blank lines",
        "args": [],
        "stdinHex": "0a0a",
        "stdoutHex": "0a",
        "exitStatus": 0
      },
      {
        "name": "normalize a final line without LF",
        "args": [],
        "stdinHex": "610a62",
        "stdoutHex": "610a620a",
        "exitStatus": 0
      },
      {
        "name": "deduplicate a final line without LF",
        "args": [],
        "stdinHex": "610a61",
        "stdoutHex": "610a",
        "exitStatus": 0
      }
    ],
    "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/uniq/fixtures.json"
  },
  "submission": {
    "url": "https://github.com/bloom-directory/lefttoprove/compare",
    "metadata": [
      "Target: uniq",
      "Contribution: proof"
    ],
    "replay": "sh targets/uniq/verify.sh",
    "existingVerifier": {
      "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/uniq/verify.sh",
      "instruction": "Replay the current uniq milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt."
    }
  }
}
