{
  "item": "abbreviations",
  "batch": "e04-b-abbreviation-singletons",
  "approach": "Rebuild the registered abbreviation vocabulary and apply the report section 2 equality pattern in printed order. Enumerate the full structural placement space by counting each distinct group text on every admissible placement, then obtain the zero bin by complement.",
  "conclusion": "All ten formerly unresolved groups permit a singleton somewhere in the structural placement universe. The indexed controls yield zero singleton draws in those groups. Observed Z32 yields zero readings even in the full registered union. Z32 stays unsolved.",
  "frozenDefinitions": {
    "groups": [
      "A3",
      "T10/A1",
      "T10/A3",
      "T6",
      "T6/A0",
      "T7",
      "T7/A0",
      "T8/A2",
      "T9/A1",
      "T9/A3"
    ],
    "coordinates": "Zero-based 0..31, upper row then lower row, left to right within each. Sort endpoints within each pair and sort the three pairs lexicographically.",
    "universe": "Three disjoint unordered pairs, with 26 remaining singleton positions. All C(32,6)*15 placements weighted equally for the structural histogram.",
    "groupRule": "Tn uses one-based template n, An counts n original active token types whose replacement differs from the original, and Tn/An is their intersection. Deduplicate length-32 normalized readings within each group. Preserve the registration's choices and identity route.",
    "algorithm": "For each distinct text in a group, list all equal-letter pairs in coordinate order, then enumerate increasing triples of pairs and reject repeated endpoints. Increment each resulting placement once for this text. Count keys with value one or greater than one, and subtract occupied placements from the universe for zero. Record the lexicographically first singleton when available and scan every row in that group directly to verify it.",
    "criterion": "One reading requires exactly one distinct normalized length-32 group text satisfying all three equalities. There is no inequality constraint between different glyphs. A complete zero singleton bin means no such placement anywhere in the universe.",
    "negativeControl": {
      "pairs": [
        [
          0,
          25
        ],
        [
          1,
          31
        ],
        [
          5,
          13
        ]
      ],
      "expected": 0,
      "scope": "Printed Z32, full union and each target group"
    },
    "positiveControl": {
      "group": "A0",
      "draw1Based": 56,
      "expected": 1,
      "scope": "Pinned literal shuffle, preselected from ledger A0 nonzeroDrawVectors"
    },
    "sample": "Directly count all 199 literal indexed shuffles for each target group, preserve draw order and multiplicity, and compare the vectors to the ledger. Keep sample histograms separate from structural histograms.",
    "toy": {
      "rows": [
        [
          0,
          0,
          1,
          1,
          2,
          2,
          3
        ],
        [
          0,
          0,
          0,
          0,
          1,
          1,
          2
        ],
        [
          0,
          1,
          0,
          1,
          2,
          2,
          3
        ]
      ],
      "check": "Compare sparse placement counts with a second enumeration over six-coordinate subsets and recursive perfect matchings, scanning rows directly for each."
    }
  },
  "frozenDefinitionsSha256": "e078b0bfe8ff64f4360662da3143232b0578b88e303c316f4e550de2331cb3c9",
  "freezeScope": "Local hash recorded before structural enumeration. The positive sample index and its expected count were chosen from the prior ledger before computing.",
  "histogramOrder": [
    "zero",
    "one",
    "many (two or more)"
  ],
  "coverage": {
    "targetGroups": 10,
    "fullyClassified": 10,
    "singletonPossible": 10,
    "singletonImpossible": 0,
    "unknown": 0
  },
  "exhaustionProof": "Every placement consists of six distinct coordinates and one of 5\u00d73\u00d71 matchings. A group text admits a placement exactly when each pair is among its equal-letter pairs. Enumerating increasing triples from that list and rejecting shared endpoints visits every admitted placement exactly once for that text. Deduplicating texts inside a group makes each counter value the distinct-reading count. Every absent placement has zero readings. Group sets overlap, so the histograms are per group.",
  "sourcePins": {
    "z32Report": {
      "url": "https://api.imd.fun/artifacts/e254764c1c80b74fc17aca82f660f81d84da8e959073169b0995bddc7d4f6304",
      "sha256": "e254764c1c80b74fc17aca82f660f81d84da8e959073169b0995bddc7d4f6304"
    },
    "acceptedFileIndex": {
      "url": "https://api.imd.fun/jobs/1a42670d-81e5-4560-9bd3-e2e9d9f5ae65/result",
      "sha256": "dad21d3f945c112f9aaa988ef1729458e3e571ae92bf2bb58b71a233c6101ac0"
    },
    "z13Report": {
      "url": "https://api.imd.fun/artifacts/ffaf03d067cab45edbd7d13667554edf02e5f049cf00a0f0ce37488c27944079",
      "sha256": "ffaf03d067cab45edbd7d13667554edf02e5f049cf00a0f0ce37488c27944079"
    },
    "ledger": {
      "url": "https://api.imd.fun/artifacts/d66e9a0ea24cc148ec9be9013ffc170d5dd7989ca5b6c69014f8d8094b6db68f",
      "sha256": "d66e9a0ea24cc148ec9be9013ffc170d5dd7989ca5b6c69014f8d8094b6db68f"
    },
    "registration": {
      "url": "https://api.imd.fun/artifacts/90c3ec38203dbbf9329acb642eb8f43b04d1b514f37f2752bb73a0f1961c5397",
      "sha256": "90c3ec38203dbbf9329acb642eb8f43b04d1b514f37f2752bb73a0f1961c5397"
    },
    "abbreviationAudit": {
      "url": "https://api.imd.fun/artifacts/aea3821e8d813835cf408eec790a9f79d9ebfd6fb72b76c3307132ce9c225b5b",
      "sha256": "aea3821e8d813835cf408eec790a9f79d9ebfd6fb72b76c3307132ce9c225b5b"
    },
    "transcriptionAdjudication": {
      "url": "https://api.imd.fun/artifacts/36ed91f0ee75ac438b9b1c03bd341c9b2a48f2f2f46d498c3d6f891c50a7d048",
      "sha256": "36ed91f0ee75ac438b9b1c03bd341c9b2a48f2f2f46d498c3d6f891c50a7d048"
    }
  },
  "sourceUse": {
    "z32Report": "Sections 2, 8 and 9 provide aliases, historical interpretation and baseline certificate.",
    "acceptedFileIndex": "Snapshot containing the URL and pin for every accepted file. All indexed files were fetched and read as data.",
    "z13Report": "Baseline context only.",
    "ledger": "canonicalData.abbreviations gives the ten unresolved groups, group sizes and ordered shuffle comparisons.",
    "registration": "protocol.data and protocol.controlPlan fix the vocabulary and the literal indexed draws.",
    "abbreviationAudit": "Corroborates group definitions and interpretation of the positional controls.",
    "transcriptionAdjudication": "Corroborates the observed equality pairs."
  },
  "baselineChecks": {
    "acceptedFileEntriesVerified": 84,
    "acceptedDistinctFilesVerified": 80,
    "section9BeforeCounting": {
      "exit": 0,
      "codeSha256": "3647beb914fe3cc14a67aeff6c3d6f6ae5c8b47eb3a4bafd37fadc670809f741",
      "stdoutSha256": "85ff857d7bcdf55f031ccf8ebd00c9d47874b63e40742665b422ac965941754b"
    },
    "registrationRowsMatchReportSection2": true,
    "registeredGeneratorCrossCheck": "Identical normalized text sets in every nonempty length-32 group and identical ordered draws."
  },
  "canonicalEncoding": {
    "json": "SHA-256 of sorted-key compact JSON, ensure_ascii=True, separators comma and colon, ASCII bytes, no final LF.",
    "vocabularies": "SHA-256 of lexicographically sorted distinct rows joined with LF, UTF-8 bytes, no final LF.",
    "draws": "Same LF serialization, preserving the registered draw order and multiplicity.",
    "code": "SHA-256 of the UTF-8 bytes of the decoded embedded code, including its final LF.",
    "resultScope": "The canonicalResults object only."
  },
  "canonicalInputDigests": {
    "registeredProtocol": "572b2a466647d7ad5eff42bb130eee0edcd8b81ee5729a70fcf4c48fec017e2f",
    "registeredLiteralData": "4b6adcdf93519da4704200b383652a57052ad9dadf3bc070a93429e90160721f",
    "priorLedgerCanonicalData": "434358bd77f6c6c80ad2d4ace269d967d991be78f6dedd066e3dac27680d81b0",
    "registeredGeneratorCode": "2e5d325a340394400c7b0ee5c3adcf208780741c52db5a14eb58d5a0ddcc2414",
    "allLengthsVocabulary": "57c1837adf600cfdf9911aa294be44161cb68af7fcf19e31daced28115862b73",
    "length32Vocabulary": "a4f8f052431d727d56a2147d0e9eb426b38ae11b844d593ad8a416c13c21cf38",
    "orderedDraws": "b68c7d524cdf88b87420f0331a9af7af2bd54ee86bfef4a5ff81aa7d8c793ccd"
  },
  "canonicalResults": {
    "vocabularySize": 581,
    "vocabularySha256": "a4f8f052431d727d56a2147d0e9eb426b38ae11b844d593ad8a416c13c21cf38",
    "placementsPerGroup": 13592880,
    "observedZ32UnionCount": 0,
    "observedZ32Pairs": [
      [
        0,
        25
      ],
      [
        1,
        31
      ],
      [
        5,
        13
      ]
    ],
    "shuffleDrawCount": 199,
    "drawsSha256": "b68c7d524cdf88b87420f0331a9af7af2bd54ee86bfef4a5ff81aa7d8c793ccd",
    "positiveControlPairs": [
      [
        1,
        16
      ],
      [
        2,
        4
      ],
      [
        7,
        17
      ]
    ],
    "positiveControlReadingCount": 1,
    "positiveControlRowsScanned": 10,
    "toyPlacements": 105,
    "toyZeroOneMany": [
      102,
      1,
      2
    ],
    "toyExactMapAgreement": true,
    "groups": {
      "A3": {
        "vocabularySize": 68,
        "groupVocabularySha256": "4bc5b4aa5463e862cc478e0d7f7356b6c69aa1f2f069ded3d387a6725fa70ef5",
        "structuralZeroOneMany": [
          13509330,
          53630,
          29920
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          198,
          0,
          1
        ],
        "indexedShuffleCountsSha256": "cbb4385ce33e99e94d20058647d1e25f699725febcafbef019046a50ff9e22d9",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            2
          ],
          [
            3,
            13
          ],
          [
            4,
            14
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 68,
        "occupiedPlacements": 83550,
        "placementReadingIncidences": 140235
      },
      "T10/A1": {
        "vocabularySize": 11,
        "groupVocabularySha256": "03f6b7920b1683f92d7619e8a7a821a3f97af34b6a2f320ebbee2258e9d2265a",
        "structuralZeroOneMany": [
          13575342,
          11986,
          5552
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            8
          ],
          [
            1,
            3
          ],
          [
            4,
            12
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 11,
        "occupiedPlacements": 17538,
        "placementReadingIncidences": 26661
      },
      "T10/A3": {
        "vocabularySize": 15,
        "groupVocabularySha256": "f0c69db2e757220b539a19ace68e71cfd60d1054974ca00aa859f94c8ef3f1e3",
        "structuralZeroOneMany": [
          13572340,
          14513,
          6027
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            2
          ],
          [
            3,
            13
          ],
          [
            4,
            14
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 15,
        "occupiedPlacements": 20540,
        "placementReadingIncidences": 30805
      },
      "T6": {
        "vocabularySize": 2,
        "groupVocabularySha256": "8c170d6da8e144a487316c35c7b96b90ed42f27714b079a4300843b9a3ecc42c",
        "structuralZeroOneMany": [
          13586393,
          5409,
          1078
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            2
          ],
          [
            1,
            13
          ],
          [
            4,
            10
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 2,
        "occupiedPlacements": 6487,
        "placementReadingIncidences": 7565
      },
      "T6/A0": {
        "vocabularySize": 2,
        "groupVocabularySha256": "8c170d6da8e144a487316c35c7b96b90ed42f27714b079a4300843b9a3ecc42c",
        "structuralZeroOneMany": [
          13586393,
          5409,
          1078
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            2
          ],
          [
            1,
            13
          ],
          [
            4,
            10
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 2,
        "occupiedPlacements": 6487,
        "placementReadingIncidences": 7565
      },
      "T7": {
        "vocabularySize": 2,
        "groupVocabularySha256": "d7d71dd4b1d233753ed9cccdd755ca0c9b032f3a778b33edbae2cf4f4a98611b",
        "structuralZeroOneMany": [
          13586919,
          4862,
          1099
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            15
          ],
          [
            1,
            24
          ],
          [
            2,
            5
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 2,
        "occupiedPlacements": 5961,
        "placementReadingIncidences": 7060
      },
      "T7/A0": {
        "vocabularySize": 2,
        "groupVocabularySha256": "d7d71dd4b1d233753ed9cccdd755ca0c9b032f3a778b33edbae2cf4f4a98611b",
        "structuralZeroOneMany": [
          13586919,
          4862,
          1099
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            15
          ],
          [
            1,
            24
          ],
          [
            2,
            5
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 2,
        "occupiedPlacements": 5961,
        "placementReadingIncidences": 7060
      },
      "T8/A2": {
        "vocabularySize": 2,
        "groupVocabularySha256": "3355da9e56c24aa30e8217367f8e45ff7a8842a99303bbcd56f0d1314857c7f0",
        "structuralZeroOneMany": [
          13587377,
          4503,
          1000
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            12
          ],
          [
            1,
            27
          ],
          [
            2,
            5
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 2,
        "occupiedPlacements": 5503,
        "placementReadingIncidences": 6503
      },
      "T9/A1": {
        "vocabularySize": 3,
        "groupVocabularySha256": "8031bba31357c779ad640834779693778f5d1e7cde2bced142db3c84b627d4dc",
        "structuralZeroOneMany": [
          13583571,
          7709,
          1600
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          199,
          0,
          0
        ],
        "indexedShuffleCountsSha256": "e98dc811a87cef7e26d8a8656daad84f072b435e783f70f787d117b1f7f17795",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            9
          ],
          [
            1,
            6
          ],
          [
            3,
            11
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 3,
        "occupiedPlacements": 9309,
        "placementReadingIncidences": 10969
      },
      "T9/A3": {
        "vocabularySize": 53,
        "groupVocabularySha256": "ae80e9ed8c47da51d096edb6e35ec2b654f7d2edd1a4ce65f359af7efda1b3a6",
        "structuralZeroOneMany": [
          13529815,
          39194,
          23871
        ],
        "observedZ32Count": 0,
        "indexedShuffleZeroOneMany": [
          198,
          0,
          1
        ],
        "indexedShuffleCountsSha256": "cbb4385ce33e99e94d20058647d1e25f699725febcafbef019046a50ff9e22d9",
        "singletonPossible": true,
        "witnessPairs": [
          [
            0,
            6
          ],
          [
            1,
            17
          ],
          [
            14,
            28
          ]
        ],
        "witnessDirectCount": 1,
        "witnessRowsScanned": 53,
        "occupiedPlacements": 63065,
        "placementReadingIncidences": 109430
      }
    }
  },
  "canonicalResultSha256": "34b6cdd7f466ce336b814e3f99f197973ee9278fc171e16b1d379c4ada399fb6",
  "runnable": {
    "language": "Python 3.10+ standard library",
    "invocation": "Save runnable.code verbatim as supplement.py. Run python3 supplement.py result.json registration.json ledger.json using local byte-identical copies from sourcePins.registration and sourcePins.ledger.",
    "sha256": "a13d99c2ceb3aeaec1b312e8367d82abdfbd401b81189946c1e2db3c985c9d51",
    "code": "\"\"\"Offline verifier. Run python3 supplement.py result.json registration.json ledger.json.\"\"\"\nfrom collections import Counter, defaultdict\nfrom hashlib import sha256\nfrom itertools import combinations, product\nfrom math import comb\nfrom pathlib import Path\nimport json\nimport sys\n\n\ndef digest(blob):\n    return sha256(blob).hexdigest()\n\n\ndef canonical_digest(value):\n    return digest(json.dumps(value, sort_keys=True, separators=(\",\", \":\"),\n                             ensure_ascii=True).encode(\"ascii\"))\n\n\ndef line_digest(lines):\n    return digest(\"\\n\".join(lines).encode(\"utf-8\"))\n\n\ndef rebuild(data):\n    groups = defaultdict(set)\n    all_lengths = set()\n    for template_id, template in enumerate(data[\"templates\"], 1):\n        for angle, distance in product(range(*data[\"angleRange\"]),\n                                       range(*data[\"distanceRange\"])):\n            angle_unit = data[\"angleForms\"][int(angle == 1)]\n            distance_unit = data[\"distanceForms\"][int(distance == 1)]\n            tokens = template.format(A=f'{data[\"words\"][angle]} {angle_unit}',\n                                     D=f'{data[\"words\"][distance]} {distance_unit}').split()\n            options = data[\"tokenChoices\"]\n            active = sorted(set(tokens) & options.keys())\n            for choices in product(*(options[token] for token in active)):\n                replacements = dict(zip(active, choices))\n                changed = sum(token != replacement for token, replacement in replacements.items())\n                reading = \"\".join(replacements.get(token, token) for token in tokens)\n                all_lengths.add(reading)\n                if len(reading) == 32:\n                    for name in (\"union\", f\"T{template_id}\", f\"A{changed}\",\n                                 f\"T{template_id}/A{changed}\"):\n                        groups[name].add(reading)\n    return groups, all_lengths\n\n\ndef equality_pairs(row):\n    return tuple((left, right) for left, right in combinations(range(len(row)), 2)\n                 if row[left] == row[right])\n\n\ndef placement_counts(rows):\n    counts = Counter()\n    for row in rows:\n        pairs = equality_pairs(row)\n        edges = [(pair, (1 << pair[0]) | (1 << pair[1])) for pair in pairs]\n        for (first, a), (second, b), (third, c) in combinations(edges, 3):\n            if (a & b) == (a & c) == (b & c) == 0:\n                counts[first, second, third] += 1\n    return counts\n\n\ndef direct(rows, pairs):\n    return sum(all(row[left] == row[right] for left, right in pairs) for row in rows)\n\n\ndef matchings(positions):\n    if not positions:\n        yield ()\n        return\n    first, *rest = positions\n    for index, second in enumerate(rest):\n        for tail in matchings(rest[:index] + rest[index + 1:]):\n            yield ((first, second),) + tail\n\n\ndef histogram(counts):\n    return [sum(n == 0 for n in counts), sum(n == 1 for n in counts),\n            sum(n >= 2 for n in counts)]\n\n\ndef compute(frozen, registration, ledger):\n    protocol = registration[\"protocol\"]\n    data = protocol[\"data\"]\n    plan = protocol[\"controlPlan\"]\n    baseline = ledger[\"canonicalData\"][\"abbreviations\"]\n    assert frozen[\"groups\"] == baseline[\"readingSingletonUnknown\"]\n    assert canonical_digest(protocol) == registration[\"protocolSha256\"]\n    assert canonical_digest(data) == registration[\"literalDataSha256\"]\n    assert canonical_digest(ledger[\"canonicalData\"]) == ledger[\"canonicalDataSha256\"]\n\n    groups, all_lengths = rebuild(data)\n    vocabulary_digest = line_digest(sorted(groups[\"union\"]))\n    assert len(groups[\"union\"]) == 581\n    assert vocabulary_digest == registration[\"vocabularyCounts\"][\"registeredVocabularySha256\"]\n    assert vocabulary_digest == baseline[\"vocabulary32Sha256\"]\n    assert line_digest(sorted(all_lengths)) == baseline[\"vocabularyAllSha256\"]\n    for name, row in baseline[\"groups\"].items():\n        assert len(groups.get(name, ())) == row[1][0]\n\n    assert tuple(map(len, data[\"ciphertextRows\"])) == (17, 15)\n    printed = \"\".join(data[\"ciphertextRows\"])\n    multiplicities = Counter(printed)\n    assert Counter(multiplicities.values()) == {1: 26, 2: 3}\n    observed_pairs = equality_pairs(printed)\n    assert observed_pairs == tuple(map(tuple, frozen[\"negativeControl\"][\"pairs\"]))\n    observed_union = direct(groups[\"union\"], observed_pairs)\n    assert observed_union == frozen[\"negativeControl\"][\"expected\"]\n\n    draws = plan[\"orderedDraws\"]\n    draw_digest = line_digest(draws)\n    assert len(draws) == 199\n    assert draw_digest == plan[\"orderedDrawsSha256\"] == baseline[\"drawsSha256\"]\n    assert all(Counter(draw) == multiplicities for draw in draws)\n    controls = list(map(equality_pairs, draws))\n    pc = frozen[\"positiveControl\"]\n    assert pc[\"group\"] in baseline[\"readingSingletonWitnessedByControl\"]\n    positive_pairs = controls[pc[\"draw1Based\"] - 1]\n    positive_count = direct(groups[pc[\"group\"]], positive_pairs)\n    assert positive_count == pc[\"expected\"]\n    recorded = {row[0]: row[1] for row in baseline[\"groups\"][pc[\"group\"]][3]}\n    assert positive_count == recorded[pc[\"draw1Based\"]]\n\n    toy = frozen[\"toy\"][\"rows\"]\n    sparse = placement_counts(toy)\n    brute = {}\n    for six in combinations(range(len(toy[0])), 6):\n        for placement in matchings(six):\n            assert placement not in brute\n            brute[placement] = direct(toy, placement)\n    assert len(brute) == 15 * comb(len(toy[0]), 6)\n    assert sparse == {p: n for p, n in brute.items() if n}\n\n    total = 15 * comb(32, 6)\n    assert total == 13_592_880\n    results = {}\n    for name in frozen[\"groups\"]:\n        rows = groups[name]\n        counts = placement_counts(rows)\n        one = sum(n == 1 for n in counts.values())\n        many = len(counts) - one\n        witness = min((p for p, n in counts.items() if n == 1), default=None)\n        checked = direct(rows, witness) if witness is not None else None\n        assert checked == (1 if one else None)\n        observed = direct(rows, observed_pairs)\n        assert observed == 0\n        sample = [direct(rows, pairs) for pairs in controls]\n        recorded = {row[0]: row[1] for row in baseline[\"groups\"][name][3]}\n        assert sample == [recorded.get(i, 0) for i in range(1, 200)]\n        results[name] = dict(\n            vocabularySize=len(rows), groupVocabularySha256=line_digest(sorted(rows)),\n            structuralZeroOneMany=[total - len(counts), one, many],\n            observedZ32Count=observed, indexedShuffleZeroOneMany=histogram(sample),\n            indexedShuffleCountsSha256=canonical_digest(sample),\n            singletonPossible=bool(one), witnessPairs=witness, witnessDirectCount=checked,\n            witnessRowsScanned=len(rows) if witness is not None else None,\n            occupiedPlacements=len(counts), placementReadingIncidences=sum(counts.values()))\n    return dict(vocabularySize=len(groups[\"union\"]), vocabularySha256=vocabulary_digest,\n                placementsPerGroup=total, observedZ32UnionCount=observed_union,\n                observedZ32Pairs=observed_pairs, shuffleDrawCount=len(draws),\n                drawsSha256=draw_digest, positiveControlPairs=positive_pairs,\n                positiveControlReadingCount=positive_count,\n                positiveControlRowsScanned=len(groups[pc[\"group\"]]),\n                toyPlacements=len(brute), toyZeroOneMany=histogram(brute.values()),\n                toyExactMapAgreement=True, groups=results)\n\n\nif __name__ == \"__main__\":\n    supplement = json.loads(Path(sys.argv[1]).read_bytes())\n    frozen = supplement[\"frozenDefinitions\"]\n    assert canonical_digest(frozen) == supplement[\"frozenDefinitionsSha256\"]\n    assert digest(Path(__file__).read_bytes()) == supplement[\"runnable\"][\"sha256\"]\n    inputs = []\n    for path, key in zip(sys.argv[2:], (\"registration\", \"ledger\"), strict=True):\n        source = Path(path).read_bytes()\n        assert digest(source) == supplement[\"sourcePins\"][key][\"sha256\"]\n        inputs.append(json.loads(source))\n    results = compute(frozen, *inputs)\n    assert canonical_digest(results) == supplement[\"canonicalResultSha256\"]\n    print(json.dumps(results, sort_keys=True, indent=2))\n"
  },
  "whatWouldChangeClassification": "A verified error in transcription, registered token application, group membership, deduplication or placement counting would warrant a recount. A changed vocabulary, glyph multiplicity or key rule defines a different classification and requires a separate freeze. Historical decipherment requires independent evidence selecting the intended rule, such as an authenticated linked key or worksheet, or a prediction fixed before testing and independently verified. These synthetic and sampled checks make no historical prediction."
}
