{
  "kind": "synthetic exact-rational teaching example",
  "model": {
    "alphabet_order": [
      "A",
      "B"
    ],
    "frequencies": [
      3,
      1
    ]
  },
  "stopping_rule": "Exactly two symbols, supplied externally",
  "excluded_costs": [
    "model",
    "message length",
    "framing",
    "integrity metadata"
  ],
  "rows": [
    {
      "message": "AA",
      "interval": "[0, 9/16)",
      "dyadic_interval": "[0, 1/2)",
      "prefix": "0",
      "payload_bits": 1,
      "fixed_width_bits": 2,
      "packed_bytes": 1,
      "probability": "9/16"
    },
    {
      "message": "AB",
      "interval": "[9/16, 3/4)",
      "dyadic_interval": "[5/8, 3/4)",
      "prefix": "101",
      "payload_bits": 3,
      "fixed_width_bits": 2,
      "packed_bytes": 1,
      "probability": "3/16"
    },
    {
      "message": "BA",
      "interval": "[3/4, 15/16)",
      "dyadic_interval": "[3/4, 7/8)",
      "prefix": "110",
      "payload_bits": 3,
      "fixed_width_bits": 2,
      "packed_bytes": 1,
      "probability": "3/16"
    },
    {
      "message": "BB",
      "interval": "[15/16, 1)",
      "dyadic_interval": "[15/16, 1)",
      "prefix": "1111",
      "payload_bits": 4,
      "fixed_width_bits": 2,
      "packed_bytes": 1,
      "probability": "1/16"
    }
  ],
  "phrase_rate_control": {
    "kind": "constructed phrase frequencies, not observed data or a finite-file codec",
    "rows": [
      {
        "phrase": "AAA",
        "probability": "27/64",
        "count": 27
      },
      {
        "phrase": "AAB",
        "probability": "9/64",
        "count": 9
      },
      {
        "phrase": "AB",
        "probability": "3/16",
        "count": 12
      },
      {
        "phrase": "B",
        "probability": "1/4",
        "count": 16
      }
    ],
    "phrase_count": 64,
    "source_symbols": 148,
    "payload_bits": 128,
    "bits_per_phrase": 2,
    "expected_phrase_length": "37/16",
    "aggregate_bits_per_symbol": "32/37",
    "phrase_weighted_bits_per_symbol": "17/16",
    "excluded_costs": [
      "dictionary",
      "framing",
      "final partial phrase",
      "integrity metadata"
    ]
  },
  "expected_payload_bits": "31/16",
  "wrong_model": {
    "tag": "5/8",
    "length": 2,
    "frequencies": [
      1,
      3
    ],
    "decoded": "BB"
  },
  "limitations": "Not Opus, finite-precision range coding, a benchmark or paper replication."
}
