{
  "date": "2026-10-13",
  "status": "passed",
  "teaching_units": 34,
  "finite_example_and_boundary_checks": 46,
  "arithmetic": "Python double precision; not a backend floating-point identity or performance benchmark",
  "normalization_scope": "eps0 in nondegenerate illustrations; positive epsilon boundary cases checked",
  "attention_scope": "single head, no mask, dropout0, default scale1/sqrt(2)",
  "cases": [
    {
      "id": "elementwise",
      "scope": "stated example",
      "computed": [
        4,
        10,
        18
      ],
      "expected": [
        4,
        10,
        18
      ],
      "status": "passed"
    },
    {
      "id": "dot",
      "scope": "stated example",
      "computed": 32,
      "expected": 32,
      "status": "passed"
    },
    {
      "id": "matmul",
      "scope": "stated example",
      "computed": [
        [
          19,
          22
        ],
        [
          43,
          50
        ]
      ],
      "expected": [
        [
          19,
          22
        ],
        [
          43,
          50
        ]
      ],
      "status": "passed"
    },
    {
      "id": "conv",
      "scope": "stated example",
      "computed": [
        12,
        23
      ],
      "expected": [
        12,
        23
      ],
      "status": "passed"
    },
    {
      "id": "conv-transpose",
      "scope": "stated example",
      "computed": [
        1,
        3,
        2
      ],
      "expected": [
        1,
        3,
        2
      ],
      "status": "passed"
    },
    {
      "id": "reduction",
      "scope": "stated example",
      "computed": [
        12,
        4.0,
        6
      ],
      "expected": [
        12,
        4,
        6
      ],
      "status": "passed"
    },
    {
      "id": "reduction",
      "scope": "negative maximum",
      "computed": -1,
      "expected": -1,
      "status": "passed"
    },
    {
      "id": "pooling",
      "scope": "stated example",
      "computed": [
        [
          3,
          4
        ],
        [
          2.0,
          3.0
        ]
      ],
      "expected": [
        [
          3,
          4
        ],
        [
          2,
          3
        ]
      ],
      "status": "passed"
    },
    {
      "id": "cumsum",
      "scope": "stated example",
      "computed": [
        1,
        3,
        6
      ],
      "expected": [
        1,
        3,
        6
      ],
      "status": "passed"
    },
    {
      "id": "relu",
      "scope": "stated example",
      "computed": [
        0,
        0,
        3
      ],
      "expected": [
        0,
        0,
        3
      ],
      "status": "passed"
    },
    {
      "id": "sigmoid",
      "scope": "stated example",
      "computed": [
        0.11920292202211755,
        0.5,
        0.8807970779778823
      ],
      "expected": [
        0.11920292202211755,
        0.5,
        0.8807970779778823
      ],
      "status": "passed"
    },
    {
      "id": "gelu",
      "scope": "stated example",
      "computed": [
        -0.15865525393145707,
        0.0,
        0.8413447460685429
      ],
      "expected": [
        -0.15865525393145707,
        0,
        0.8413447460685429
      ],
      "status": "passed"
    },
    {
      "id": "silu",
      "scope": "stated example",
      "computed": [
        -0.2689414213699951,
        0.0,
        0.7310585786300049
      ],
      "expected": [
        -0.2689414213699951,
        0,
        0.7310585786300049
      ],
      "status": "passed"
    },
    {
      "id": "silu",
      "scope": "two-branch gate example",
      "computed": 5.284782467867294,
      "expected": 5.284782467867294,
      "status": "passed"
    },
    {
      "id": "softmax",
      "scope": "stated example",
      "computed": [
        0.25,
        0.25,
        0.5
      ],
      "expected": [
        0.25,
        0.25,
        0.5
      ],
      "status": "passed"
    },
    {
      "id": "softmax",
      "scope": "finite shift invariance -1000",
      "computed": [
        0.2500000000000069,
        0.2500000000000069,
        0.49999999999998623
      ],
      "expected": [
        0.25,
        0.25,
        0.5
      ],
      "status": "passed"
    },
    {
      "id": "softmax",
      "scope": "finite shift invariance 0",
      "computed": [
        0.25,
        0.25,
        0.5
      ],
      "expected": [
        0.25,
        0.25,
        0.5
      ],
      "status": "passed"
    },
    {
      "id": "softmax",
      "scope": "finite shift invariance 1000",
      "computed": [
        0.2500000000000069,
        0.2500000000000069,
        0.49999999999998623
      ],
      "expected": [
        0.25,
        0.25,
        0.5
      ],
      "status": "passed"
    },
    {
      "id": "layernorm",
      "scope": "stated example",
      "computed": [
        -1.0,
        1.0
      ],
      "expected": [
        -1,
        1
      ],
      "status": "passed"
    },
    {
      "id": "layernorm",
      "scope": "constant input with positive epsilon",
      "computed": [
        0.0,
        0.0
      ],
      "expected": [
        0,
        0
      ],
      "status": "passed"
    },
    {
      "id": "rmsnorm",
      "scope": "stated example",
      "computed": [
        0.848528137423857,
        1.131370849898476
      ],
      "expected": [
        0.848528137423857,
        1.131370849898476
      ],
      "status": "passed"
    },
    {
      "id": "rmsnorm",
      "scope": "zero input with positive epsilon",
      "computed": [
        0.0,
        0.0
      ],
      "expected": [
        0,
        0
      ],
      "status": "passed"
    },
    {
      "id": "batchnorm",
      "scope": "stated example",
      "computed": [
        [
          -1.0,
          -1.0
        ],
        [
          1.0,
          1.0
        ]
      ],
      "expected": [
        [
          -1,
          -1
        ],
        [
          1,
          1
        ]
      ],
      "status": "passed"
    },
    {
      "id": "instance-groupnorm",
      "scope": "stated example",
      "computed": [
        [
          -1.0,
          1.0
        ],
        [
          -1.0,
          1.0
        ]
      ],
      "expected": [
        [
          -1,
          1
        ],
        [
          -1,
          1
        ]
      ],
      "status": "passed"
    },
    {
      "id": "instance-groupnorm",
      "scope": "one group",
      "computed": [
        -1.3416407864998738,
        -0.4472135954999579,
        0.4472135954999579,
        1.3416407864998738
      ],
      "expected": [
        -1.3416407864998738,
        -0.4472135954999579,
        0.4472135954999579,
        1.3416407864998738
      ],
      "status": "passed"
    },
    {
      "id": "embedding",
      "scope": "stated example",
      "computed": [
        [
          3,
          4
        ],
        [
          1,
          0
        ]
      ],
      "expected": [
        [
          3,
          4
        ],
        [
          1,
          0
        ]
      ],
      "status": "passed"
    },
    {
      "id": "gather-scatter",
      "scope": "stated example",
      "computed": [
        30,
        10,
        30
      ],
      "expected": [
        30,
        10,
        30
      ],
      "status": "passed"
    },
    {
      "id": "gather-scatter",
      "scope": "unique scatter locations",
      "computed": [
        5,
        0,
        7
      ],
      "expected": [
        5,
        0,
        7
      ],
      "status": "passed"
    },
    {
      "id": "slice",
      "scope": "stated example",
      "computed": [
        20,
        30
      ],
      "expected": [
        20,
        30
      ],
      "status": "passed"
    },
    {
      "id": "reshape",
      "scope": "stated example",
      "computed": [
        [
          1,
          2
        ],
        [
          3,
          4
        ],
        [
          5,
          6
        ]
      ],
      "expected": [
        [
          1,
          2
        ],
        [
          3,
          4
        ],
        [
          5,
          6
        ]
      ],
      "status": "passed"
    },
    {
      "id": "transpose",
      "scope": "stated example",
      "computed": [
        [
          1,
          4
        ],
        [
          2,
          5
        ],
        [
          3,
          6
        ]
      ],
      "expected": [
        [
          1,
          4
        ],
        [
          2,
          5
        ],
        [
          3,
          6
        ]
      ],
      "status": "passed"
    },
    {
      "id": "broadcast",
      "scope": "stated example",
      "computed": [
        [
          11,
          22,
          33
        ],
        [
          14,
          25,
          36
        ]
      ],
      "expected": [
        [
          11,
          22,
          33
        ],
        [
          14,
          25,
          36
        ]
      ],
      "status": "passed"
    },
    {
      "id": "concat-split",
      "scope": "stated example",
      "computed": [
        1,
        2,
        3,
        4
      ],
      "expected": [
        1,
        2,
        3,
        4
      ],
      "status": "passed"
    },
    {
      "id": "resize",
      "scope": "stated example",
      "computed": [
        0,
        5.0,
        10
      ],
      "expected": [
        0,
        5,
        10
      ],
      "status": "passed"
    },
    {
      "id": "depth-to-space",
      "scope": "stated example",
      "computed": [
        [
          1,
          2
        ],
        [
          3,
          4
        ]
      ],
      "expected": [
        [
          1,
          2
        ],
        [
          3,
          4
        ]
      ],
      "status": "passed"
    },
    {
      "id": "attention",
      "scope": "no mask, dropout zero, scale 1/sqrt(2)",
      "computed": [
        0.6697615493266569,
        0.3302384506733431
      ],
      "expected": [
        0.6697615493266569,
        0.3302384506733431
      ],
      "status": "passed"
    },
    {
      "id": "attention",
      "scope": "stated example",
      "computed": [
        6.697615493266569,
        6.604769013466862
      ],
      "expected": [
        6.697615493266569,
        6.604769013466862
      ],
      "status": "passed"
    },
    {
      "id": "attention",
      "scope": "weights before any dropout",
      "computed": 1.0,
      "expected": 1,
      "status": "passed"
    },
    {
      "id": "rope",
      "scope": "illustrative 90 degree rotation",
      "computed": [
        6.123233995736766e-17,
        1.0
      ],
      "expected": [
        0,
        1
      ],
      "status": "passed"
    },
    {
      "id": "topk",
      "scope": "stated example",
      "computed": [
        [
          0.7,
          0.2
        ],
        [
          1,
          0
        ]
      ],
      "expected": [
        [
          0.7,
          0.2
        ],
        [
          1,
          0
        ]
      ],
      "status": "passed"
    },
    {
      "id": "cast",
      "scope": "stated example",
      "computed": 1.0,
      "expected": 1.0,
      "status": "passed"
    },
    {
      "id": "quantization",
      "scope": "stated example",
      "computed": [
        1,
        2
      ],
      "expected": [
        1,
        2
      ],
      "status": "passed"
    },
    {
      "id": "quantization",
      "scope": "reconstructed grid values",
      "computed": [
        0.5,
        1.0
      ],
      "expected": [
        0.5,
        1.0
      ],
      "status": "passed"
    },
    {
      "id": "loss",
      "scope": "stated example",
      "computed": [
        0.2231435513142097,
        1.6094379124341003
      ],
      "expected": [
        0.2231435513142097,
        1.6094379124341003
      ],
      "status": "passed"
    },
    {
      "id": "gradient",
      "scope": "stated example",
      "computed": [
        -36,
        3.8,
        0.3600000000000017
      ],
      "expected": [
        -36,
        3.8,
        0.36
      ],
      "status": "passed"
    },
    {
      "id": "dropout",
      "scope": "stated example",
      "computed": [
        4.0,
        0,
        12.0,
        0
      ],
      "expected": [
        4,
        0,
        12,
        0
      ],
      "status": "passed"
    }
  ]
}
