Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/af3774a49be16c83 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-mv#374 (code only) closed derived `af3774a49be16c83` #374 Imported from GitHub aien-dev/omega-mv#374 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `cda98d2d90c149161e6db3d611327047461b425e` · Head `fbcdf3bd74044a3fbc817ba7cf6b9a463bb52980` ### Fetch it A git bundle of the pull request's head, 114356 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/af3774a49be16c83.bundle -o af3774a49be16c83.bundle git fetch af3774a49be16c83.bundle refs/pull/374/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 374 fbcdf3bd74044a3fbc817ba7cf6b9a463bb52980 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":374,"url":"https://github.com/aien-dev/omega-mv/pull/374","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:35Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 92fe51b82..52c5e4137 100644 --- a/.crumb +++ b/.crumb @@ -75,8 +75,8 @@ "purpose": "Directory polyglot. Purpose not yet described by a human." }, { - "digest": "a5b94f7b1e45a598d529101b45877c7315c73837788e3a5d1a0fac0935b6bd71", - "last_commit": "7874df24", + "digest": "925f2ef0ad171497ddc3e89022bb476921477e3ce73d5dfb344499f37fbffa03", + "last_commit": "043552e5", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, @@ -105,15 +105,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:764ad5e1f01d6b92b78e9051c37150f937c4b73d0cc82380ad64e45f58277147", - "compiled_at": "2026-10-10T03:57:59Z", + "children_root": "sha256:4b7fc790b4c03dcf776cd2b33552992972652b8c31444a9b5f0a3802ca057c2e", + "compiled_at": "2026-10-10T04:01:04Z", "compiler": "crumb-compile/1", - "digest": "sha256:43e0faa75cc73967c2bd18d3deb774f6a7e121b0eea884f2f62d7a042aa62d1d", + "digest": "sha256:38cd99040f341eb97a5e8249201d52121fa1ea97234397de891de10ccb016057", "evidence_files": 5533, "evidence_root": "sha256:8ca3b3e15e055b21c3e96200e3c76f26c3b139e6db06f5a94bc62c97f67157f5", - "files": 7807, - "generated_at_commit": "47e752ebdf1407e744109e0a97b0edc3631aef51", - "source_tree": "sha256:e0d264b198c59921b18afd26260950efe88f2210d0cd6ff5ab931d2833909dfe" + "files": 7932, + "generated_at_commit": "537a9b85b8472cd20d9b3e4bdf5bfa0a86bc7b6d", + "source_tree": "sha256:2ffd3c31d26c715385fa908b8a148ba29def92985e1be1cc78462fd596d4ee91" }, "owner_lane": "", "provenance": { diff --git a/research/.crumb b/research/.crumb index 4d82a565b..5af5d51de 100644 --- a/research/.crumb +++ b/research/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "5bf3b79478c5af75db3590831b7d2b3e6d7533c171f586e709590ac61fd451e4", - "last_commit": "7874df24", + "digest": "fee0cb53aab4a17e1bde919214993dc2409ad9c32a77e8d21b393e15385f25bd", + "last_commit": "043552e5", "name": "atemporal", "purpose": "AT-0 Clock-Free Universe research program: relational (Page-Wootters) quantum models with no ext" }, @@ -33,15 +33,15 @@ "purpose": "Directory research/dirac-oracle. Purpose not yet described by a human." } ], - "children_root": "sha256:3b10c7f4ec14c758f1cec14bf3c49700006285eda7bb043ad061206e70a0e6c8", - "compiled_at": "2026-10-10T03:57:59Z", + "children_root": "sha256:03424d5ebe613ee478cd261e26276cf588a39692fb6f562b70421fd58740eef8", + "compiled_at": "2026-10-10T04:01:04Z", "compiler": "crumb-compile/1", - "digest": "sha256:a5b94f7b1e45a598d529101b45877c7315c73837788e3a5d1a0fac0935b6bd71", + "digest": "sha256:925f2ef0ad171497ddc3e89022bb476921477e3ce73d5dfb344499f37fbffa03", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 408, - "generated_at_commit": "47e752ebdf1407e744109e0a97b0edc3631aef51", - "source_tree": "sha256:73dbded4f5bb6dc3f4972a9f14d6df3cdaa710a0ac68de53840e97321880dda3" + "files": 533, + "generated_at_commit": "537a9b85b8472cd20d9b3e4bdf5bfa0a86bc7b6d", + "source_tree": "sha256:cc7e4b50d13ab2ce0fd7e3b599edcb564f96f2186133e3225813900dadf8cc73" }, "owner_lane": "", "provenance": { diff --git a/research/atemporal/.crumb b/research/atemporal/.crumb index ecdf7d2a0..c8933d044 100644 --- a/research/atemporal/.crumb +++ b/research/atemporal/.crumb @@ -10,14 +10,14 @@ } ], "children_root": "sha256:f7bd1d7019a69ef57140cd019f86634f3cb80c1e31ca3063dfdf73ac9deef7c6", - "compiled_at": "2026-10-10T03:57:59Z", + "compiled_at": "2026-10-10T04:01:04Z", "compiler": "crumb-compile/1", - "digest": "sha256:5bf3b79478c5af75db3590831b7d2b3e6d7533c171f586e709590ac61fd451e4", + "digest": "sha256:fee0cb53aab4a17e1bde919214993dc2409ad9c32a77e8d21b393e15385f25bd", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 262, - "generated_at_commit": "47e752ebdf1407e744109e0a97b0edc3631aef51", - "source_tree": "sha256:a2581a64a5578d6191586a5e3f4150fa71ca4d124bcf0da45eef1cf00fd38249" + "files": 387, + "generated_at_commit": "537a9b85b8472cd20d9b3e4bdf5bfa0a86bc7b6d", + "source_tree": "sha256:dae8dd5bb5f2fef23c2f00584515d06200e7a00fc6ba7f749e2c645b545e1288" } }, "name": "atemporal", diff --git a/research/atemporal/at1/evaluator/.crumb b/research/atemporal/at1/evaluator/.crumb new file mode 100644 index 000000000..f48584e1f --- /dev/null +++ b/research/atemporal/at1/evaluator/.crumb @@ -0,0 +1,19 @@ +{ + "extensions": { + "generated": { + "children": [], + "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "compiled_at": "2026-10-10T03:18:12Z", + "compiler": "crumb-compile/1", + "digest": "sha256:e7822ba0ba52d08e727eab878485e3141994c5933aabcf3014d77baea6ac936f", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 125, + "generated_at_commit": "043552e54f797a60f567937d9365298c4f4d13ce", + "source_tree": "sha256:2e4bdd33122856e5ebc891e0ab1624068b89c0bc39cb4467a38e3516028fe570" + } + }, + "name": "evaluator", + "purpose": "AT-1 Agent 4 adversarial evaluator: independent AT1_CASE_V1 codec, exact-arithmetic AT1_RESULT_V1 / AT0_RESULT_V2 verifier with exact shadow model, runner splice, 95-file public corpus (12 positive, 12 negative, 71 refusals), mutant kill receipt, isolation gate with controls, 27-case hidden-set commitment, qualification harness (run.sh)", + "schema_version": "1.0.0" +} diff --git a/research/atemporal/at1/evaluator/HIDDEN_COMMITMENT.txt b/research/atemporal/at1/evaluator/HIDDEN_COMMITMENT.txt new file mode 100644 index 000000000..6453016d4 --- /dev/null +++ b/research/atemporal/at1/evaluator/HIDDEN_COMMITMENT.txt @@ -0,0 +1,14 @@ +# AT-1 Agent 4 hidden qualification set: commitment only. The seed and the case files are withheld. +# commitment = SHA-256 of the manifest bytes; manifest = one line per .case file, +# "", sorted bytewise by name, LF-terminated +# (the AT1_SPEC 12.3 item 3 procedure; this is Agent 4's set, separate from Agent 7's). +# Generator: `at1-eval hidden-gen ` (src/hidden.rs, public), 27 AT1_CASE_V1 files H01.case..H27.case, +# family = index mod 9 over the AT1_SPEC 13.1 item 7 families (F0..F8 in src/hidden.rs), Pythagorean axes, +# quarter-turn phases, every draw kept only if it meets the AT1_SPEC 8.3 margin rule. 12 POSITIVE, 15 NEGATIVE. +# Seed: 256 bits from /dev/urandom, kept with the files on the Spark under ~/at1-private/agent4/, outside every repository. +# Reveal (after the candidate freeze): place the files in a directory with no MANIFEST.tsv and run +# sh run.sh '' '' cases build/qualify +# run.sh recomputes the commitment, refuses on a mismatch, then qualifies the hidden cases. +# A digest proves identity of the files later revealed; it does not prove non-access (same account, same host). +count 27 +commitment 91ad47bfb3d411268f64523dace7eef03a5b8915ee2df821ffa1822701745c38 diff --git a/research/atemporal/at1/evaluator/Makefile b/research/atemporal/at1/evaluator/Makefile new file mode 100644 index 000000000..c49dac61b --- /dev/null +++ b/research/atemporal/at1/evaluator/Makefile @@ -0,0 +1,42 @@ +# AT-1 Agent 4 evaluator. Portable: GNU make 3.81 or later, POSIX sh, rustc +# (std only, no Cargo), a C compiler only for the isolation-gate controls. +RUSTC ?= rustc +CC ?= cc +BIN = build/at1-eval +SRC = src/main.rs src/big.rs src/rat.rs src/dd.rs src/sha256.rs src/text.rs src/case.rs \ + src/model.rs src/result.rs src/judge.rs src/verify.rs src/synth.rs src/mutants.rs \ + src/corpus.rs src/hidden.rs src/scan.rs src/qualify.rs + +all: $(BIN) + +$(BIN): $(SRC) + mkdir -p build + $(RUSTC) --edition 2021 -O src/main.rs -o $(BIN) + +build/at1-eval-test: $(SRC) + mkdir -p build + $(RUSTC) --edition 2021 -O --test src/main.rs -o build/at1-eval-test + +# Unit tests, run-time self-test, corpus byte check, mutant receipt (compared with the +# committed one), gate controls. Writes only under build/, so the tree stays clean. +test: $(BIN) build/at1-eval-test + ./build/at1-eval-test + ./$(BIN) selftest + ./$(BIN) corpus-check cases + ./$(BIN) mutants build/MUTANT_RECEIPT.tsv + cmp build/MUTANT_RECEIPT.tsv results/MUTANT_RECEIPT.tsv + CC="$(CC)" sh gates/isolation.sh --controls ./$(BIN) build/ISOLATION_RECEIPT.txt + +# Refresh the committed receipts (the mutant receipt is identical on every host; +# the isolation receipt names the host it ran on). +receipts: $(BIN) + ./$(BIN) mutants results/MUTANT_RECEIPT.tsv + CC="$(CC)" sh gates/isolation.sh --controls ./$(BIN) results/ISOLATION_RECEIPT.txt + +corpus: $(BIN) + ./$(BIN) corpus-gen cases + +clean: + rm -rf build + +.PHONY: all test receipts corpus clean diff --git a/research/atemporal/at1/evaluator/README.md b/research/atemporal/at1/evaluator/README.md new file mode 100644 index 000000000..7ffbfe37a --- /dev/null +++ b/research/atemporal/at1/evaluator/README.md @@ -0,0 +1,172 @@ +# AT-1 Agent 4: adversarial evaluator + +Independent evaluator for AT-1 (aien-dev/omega#371). It reads only the frozen contracts +`AT1_CASE_V1`, `AT1_RESULT_V1` and `AT0_RESULT_V2` (identical at arch commits `cbe4c8e`, +`81047f5` and `ea91d7c`) and `AT1_SPEC` / `AT1_CHARTER`; it never reads the oracle's +(Agent 2) or the engine's (Agent 3) code. PASS here means conformance to those +documents and nothing else; no statement about physics is made or implied. + +Rust 2021, std only, no Cargo, one `rustc` call; the gate controls need a C11 compiler. +Portable to macOS arm64 (Apple clang 17, GNU make 3.81, rustc 1.97.1): POSIX sh, no +GNU-make-4 features, digests computed in code. No Python. + +## Run lines + +```sh +make # build/at1-eval +make test # unit tests, selftest, corpus byte check, mutant receipt (cmp with the committed one), gate controls; writes only under build/ +make receipts # refresh results/MUTANT_RECEIPT.tsv and results/ISOLATION_RECEIPT.txt +make corpus # regenerate cases/ (corpus-check must then report 0 differ) + +# qualify the candidates (templates: {case} = case path, {out} = result path; without {out}, stdout) +sh run.sh ' {case} {out}' ' {case} {out}' [cases] [out-dir] [hidden-dir] + +# isolation gate G2 on the candidates' compute objects (not on static executables, see limits) +sh gates/isolation.sh ./build/at1-eval ... + +# single tools +./build/at1-eval case [--why] # codec: AT1_CASE_OK or one stderr line, exit 2 +./build/at1-eval shadow # exact (or double-double) model values +./build/at1-eval verify --case # exit 0 PASS, 1 FAIL, 3 INCONCLUSIVE +./build/at1-eval verify --case --oracle-record +./build/at1-eval splice +``` + +A dry run with the built-in honest synthetic engine and oracle (all gates PASS): +`B=$PWD/build/at1-eval; sh run.sh "$B synth-engine {case} {out}" "$B synth-oracle {case} {out}"`. + +## What is here + +| Path | Content | +|---|---| +| `cases/` | public corpus, 96 files: 12 positive (P1a/b/c, P2 KAT, P2 variants t4 global phase i and t5 scale 2, P3, P3b, P4 ref t1, P4 ref t0, P5, P6), 12 negative (N1 to N1f IDEAL target, N2, N3, N4a, N4b, N5, N6), 72 refusals (spec 13.5 rows R0a to R14, AT-0 rows R01 to R39 re-expressed, charter-reading rows X1 to X6, and X7 `clock_dim 0` with `clock_energies none`). `MANIFEST.tsv` gives each file's expected codec response. | +| `src/` | codec (`case.rs`), strict result parser and writer (`result.rs`), check re-derivation (`judge.rs`), verifier (`verify.rs`), shadow model (`model.rs`), runner splice and synthetic candidates (`synth.rs`), corpus generator (`corpus.rs`), mutants (`mutants.rs`), hidden-set generator (`hidden.rs`), instruction scanner (`scan.rs`), qualification and selftest (`qualify.rs`) | +| `gates/` | isolation gate `isolation.sh` and its four C controls: clean, hidden clock (`clock_gettime`), counter (inline `mrs cntvct_el0` / `rdtsc`), raw syscall (inline `svc` / `syscall`); these are spec 9.2 mutant M7 | +| `results/MUTANT_RECEIPT.tsv` | mutant kill receipt (deterministic and host-independent; `make test` regenerates it under build/ and compares) | +| `results/ISOLATION_RECEIPT.txt` | gate controls receipt from the host that last ran `make receipts` | +| `HIDDEN_COMMITMENT.txt` | SHA-256 commitment of the 27-case hidden set; seed and files withheld | + +## Design + +- **Codec.** Independent `AT1_CASE_V1` parser; every refusal row must give exactly its code + (one stderr line, exit 2) from my codec, the engine and the oracle (gate G1). The KAT + `at1-kat-rotated-level-n4` reproduces case_file_sha256 `76e282fe...9ba4`, case_id + `890980a4...25f1` and acceptance_id `d63246c3...4d8f` (selftest). +- **Shadow model.** Exact rational arithmetic when every phase is a quarter turn, otherwise + double-double with a claimed bound of 1e-24. It reproduces the spec 13.2 hand tables + exactly and the 13.3 deviation maxima (selftest, 549 assertions). +- **Runner splice.** The engine writes engine lines with `reference_*` undefined; the + splice copies all four reference families from the oracle record, binds oracle + provenance, re-judges checks 1 to 12 per `AT0_RESULT_V2` sections 4 and 5 and reseals + `verdict_id` and `evidence_sha256`. An oracle ERROR record gives ERROR `ORACLE_UNAVAILABLE`. +- **Verify.** Re-derives every check, the outcome, the codes and the expectation from the + written values and compares; decides check 3 (trivial kernel) from the exact shadow, as + AT-0 did, while the splice judges on the engine's own claim; compares every engine and + reference value with the shadow. Engine lines: beyond bound plus tolerance is a FAIL; + beyond only its own bound is a FAIL for RIGOROUS, INCONCLUSIVE for ESTIMATED, nothing for + NONE. Reference lines are calibration data and are judged on the value alone: farther than + the tolerance from the exact value is a FAIL whatever bound is written beside it, so a wrong + reference cannot hide behind a wide bound, also where no check reads it (`reference_ideal` + under an INTERACTING target, or on a trivial kernel). +- **Per-case table.** `qualify` writes `TABLE.tsv` (PASS / FAIL / INDETERMINATE per case; + INCONCLUSIVE findings map to INDETERMINATE) and `VERDICT_IDS.tsv`, prints the gate lines + G1, G3, G4, G5 and T9 (engine run twice with another time zone and an extra environment + variable), and exits 0 only when all pass. G2 is `gates/isolation.sh`; G6 and G7 belong + to Agents 6 and 7. + +### Finding codes + +| Code | Severity | Meaning | +|---|---|---| +| E4-PARSE | FAIL | result not byte-exact `AT1_RESULT_V1` | +| E4-VERDICT-ID, E4-EVIDENCE-DIGEST | FAIL | identity digest does not recompute | +| E4-CASE-SHA, E4-CASE-BINDING | FAIL | copied case lines do not rebuild the case file, or ids do not match the case | +| E4-PROV-ORACLE-RECORD, -ORACLE-IS-ENGINE, -NONE, -TIME-ORDER | FAIL | provenance rule broken | +| E4-PROV-CONTRACT-UNKNOWN, E4-PROV-DIRTY-TREE | INCONCLUSIVE | contract commit off the allowlist, or dirty tree | +| E4-PLACEHOLDER-SHAPE, E4-RUN-NOT-COMPLETED, E4-UNDEFINED-DISCIPLINE, E4-TRIVIAL-SHAPE, E4-ORACLE-TRIVIAL, E4-LABEL-RULE, E4-BOUND-NONE-NONZERO | FAIL | shape rules of the result contract | +| E4-CHECK-MISMATCH, -OUTCOME-MISMATCH, -CODES-MISMATCH, -EXPECTATION-MISMATCH | FAIL | written verdict differs from the re-derived one | +| E4-EXPECTATION-NOT-MET | FAIL | candidate's result does not meet the case's expectation | +| E4-EXPECTATION-INDETERMINATE | INCONCLUSIVE | the only discrepancy is `PRECISION_INSUFFICIENT` | +| E4-SHADOW-KERNEL-DIM, -TRIVIAL, -POVM, -CLOCK, -LABEL, -PAULI | FAIL | engine value disagrees with the shadow | +| E4-ORACLE-CLOCK, -LABEL, -INTERACTING, -IDEAL | FAIL | spliced reference disagrees with the shadow (gate G3) | +| E4-BOUND-CLAIM-FALSE | FAIL | RIGOROUS bound does not cover the shadow difference | +| E4-BOUND-ESTIMATE-LOW | INCONCLUSIVE | ESTIMATED bound does not cover the shadow difference | + +### Mutants (`results/MUTANT_RECEIPT.tsv`, 244 cells, 0 unexpected) + +Each cell is KILLED (its intended finding fires), FLAGGED (INCONCLUSIVE by design), +BLIND (predicted from spec 9.2 or from the honest values; any unpredicted blindness fails +the receipt), UNEXPECTED (killed although predicted blind, so the mutant is not the one the +spec describes; fails the receipt), ACCIDENT (killed only by an unintended finding, fails the +receipt) or SURVIVED. Oracle-mutant blindness is predicted the same way: O2 where M1 is blind +(P1, P1c); O3 where M4 is blind (P6, N1f), on trivial kernels (every reference undefined), and +on real-data cases with P(Y+) = 1/2 on every DEFINED label, where a phase-sign flip is complex +conjugation (N3). + +| Mutant | Killed | Blind (predicted) | +|---|---|---| +| M1 drop V | 15 | 3 (P1a, P1b, P1c) | +| M2 flip V | 15 | 3 | +| M3 wrong level | 16 | 2 | +| M4 phase sign | 16 | 2 (P6, N1f) | +| M5 Y sign, M6 axis swap | 16, 18 | 2, 0 | +| M8 IDEAL marginal from engine instead of w/N | 15 | 3 | +| M9 stale label status, M10 NONE bound nonzero | 1, 1 | 0 | +| O1 oracle IDEAL without h, O2 oracle drop V, O3 oracle phase sign (all 24 valid cases) | 24, 21, 19 | 0, 3, 5 | +| F1 to F18 file forgeries, F9 oracle record presented as candidate, F19/F20 wrong `reference_ideal` behind a bound of 1 (P2, N2) | 18 killed, 2 flagged (F15, F16) | 0 | +| M7 counter and raw-syscall clock (gate controls) | 3 of 3 mutants FAIL the gate, clean control PASS | | + +All 24 honest controls PASS. M2 is trivial on P3 and P6, as spec 9.2 states. + +## Hidden set + +`at1-eval hidden-gen ` draws 27 cases (families F0 to F8 of spec 13.1 item 7, +index mod 9) from a SHA-256 counter-mode stream keyed by a private 256-bit seed; a draw is +kept only if its honest verdict has the family's intended codes and it meets the spec 8.3 +margin rule. Only the commitment is in the repository (`HIDDEN_COMMITMENT.txt`, procedure of +spec 12.3 item 3). At reveal, `run.sh` recomputes the commitment before running the cases. +Agent 7 keeps its own, separate hidden set. + +## Limits + +1. Isolation is procedural on one host and one account: the hidden-set digest proves the + identity of the files later revealed, not that nobody read them. +2. The gate scans compute objects. Static executables contain libc's own `svc` and clock + code, so apply it to the candidates' object files or compute-only archives. +3. The x86-64 instruction scan is a byte-pattern scan and can report false positives in + data inside executable sections; the aarch64 scan decodes aligned words. +4. The shadow's double-double path (non-quarter-turn phases) is not exact; it claims 1e-24, + far inside every tolerance in the corpus, and is checked against the exact path in selftest. +5. ESTIMATED engine bounds that miss the shadow give INCONCLUSIVE, not FAIL. + `E4-BOUND-NONE-NONZERO` applies to every line, references included (AT1_RESULT_V1 section 2: + NONE means every bound `0@0`). When the engine and oracle bound kinds differ, the spliced file + carries the engine's kind over the oracle's bounds; `qualify` notes it as + `NOTE:bound_kind-mixed` in the table (contract note below). +6. Check 2 aggregates over references as well as engine values, as `AT0_RESULT_V2` section 4 + reads; `PRECISION_INSUFFICIENT` from an engine label is read from engine lines only. +7. The hidden-set seed is passed on the command line (visible to local process listings + while the generator runs, about 0.1 s). +8. No real engine or oracle existed on any remote branch when this was built; the + qualification so far ran against the synthetic candidates only. +9. The hidden-set metadata is public by design: the generator is in the repository, so the + family of each index (index mod 9) and the 12 positive / 15 negative split are known; the + seed and the drawn parameters are not. +10. Portability was checked on the MacBook (macOS arm64, Apple clang 17, GNU make 3.81, + rustc 1.97.1) from source in a temporary directory: `make test` passes there, and + `MUTANT_RECEIPT.tsv`, `VERDICT_IDS.tsv` and `TABLE.tsv` of the synthetic dry run are + byte-identical to the Spark run. The temporary directory was deleted afterwards. + +## Contract notes (for Agent 0) + +- The two items spec 13.5 left out (an `AT0_CASE_V1` header, a non-canonical coupling index + token) are in the corpus as X1 (`CASE_PARSE_ERROR`) and X3 (`CASE_NONCANONICAL`), per charter + readings (d) and (e). +- `none` is read as the empty list everywhere (AT1_CASE_V1 section 2), so `clock_dim 0` with + `clock_energies none` passes the shape pass and is `CASE_INVALID_PARAMETER` (row X7). A list + whose only item would be the token `none` cannot be written; no numeric list is affected. +- R13 uses the value-preserving `6/20` for the spec's "2/10" example, which is the same + rational and still non-canonical. +- Open question: the runner splices oracle reference bounds under the engine's `bound_kind`; + the contracts do not say what the spliced file's `bound_kind` means when the two kinds + differ (for example a NONE engine with nonzero oracle bounds, which section 2 then makes a + FAIL). diff --git a/research/atemporal/at1/evaluator/cases/MANIFEST.tsv b/research/atemporal/at1/evaluator/cases/MANIFEST.tsv new file mode 100644 index 000000000..eaaf9ddef --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/MANIFEST.tsv @@ -0,0 +1,97 @@ +# path class expected tool response (every parser must give it; refusals: one stderr line, exit 2) +positive/P1a-zero-coupling-interacting.case P1 AT1_CASE_OK +positive/P1b-zero-coupling-ideal.case P1 AT1_CASE_OK +positive/P1c-spectator-coupling-ideal.case P1 AT1_CASE_OK +positive/P2-kat-rotated-level-n4.case P2 AT1_CASE_OK +positive/P2t4-global-phase-i.case P2 AT1_CASE_OK +positive/P2t5-scale-2.case P2 AT1_CASE_OK +positive/P3-every-level-coupled.case P3 AT1_CASE_OK +positive/P3b-degenerate-level.case P3 AT1_CASE_OK +positive/P4-complex-psi-ref-t1.case P4 AT1_CASE_OK +positive/P4t7-complex-psi-ref-t0.case P4 AT1_CASE_OK +positive/P5-large-rationals.case P5 AT1_CASE_OK +positive/P6-near-miss-energies.case P6 AT1_CASE_OK +negative/N1-p2-target-ideal.case N1 AT1_CASE_OK +negative/N1b-p3-target-ideal.case N1 AT1_CASE_OK +negative/N1c-p3b-target-ideal.case N1 AT1_CASE_OK +negative/N1d-p4-target-ideal.case N1 AT1_CASE_OK +negative/N1e-p5-target-ideal.case N1 AT1_CASE_OK +negative/N1f-p6-target-ideal.case N1 AT1_CASE_OK +negative/N2-every-level-out.case N2 AT1_CASE_OK +negative/N3-zero-label.case N3 AT1_CASE_OK +negative/N4a-wrong-weight.case N4 AT1_CASE_OK +negative/N4b-broken-clock-tau3.case N4 AT1_CASE_OK +negative/N5-precision-demand.case N5 AT1_CASE_OK +negative/N6-zero-projection.case N6 AT1_CASE_OK +refuse/R0a-line-removed.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R0b-one-crlf-line.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R1-noncanonical-tau.case R1 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R2-header-v2.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R2b-domain-v2.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R2c-contract-v2.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R3-clock-dim-65.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R3b-clock-dim-1.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R4-irrational-level.case R4 AT1_CASE_REFUSED CASE_IRRATIONAL_SPECTRUM +refuse/R4b-irrational-h.case R4 AT1_CASE_REFUSED CASE_IRRATIONAL_SPECTRUM +refuse/R5-case-id-digit.case R5 AT1_CASE_REFUSED CASE_ID_MISMATCH +refuse/R5b-acceptance-id-digit.case R5 AT1_CASE_REFUSED CASE_ID_MISMATCH +refuse/R6-fail-without-codes.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R6b-code-outside-set.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R7-coupling-count.case R7 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R8-coupling-order.case R8 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R9-interaction-none.case R9 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R10-at0-model-family.case R10 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R11-at0-constraint.case R11 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R12-target-both.case R12 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R12b-target-missing.case R12 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R13-noncanonical-coupling.case R13 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R14-coupling-over-limit.case R14 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R01-noncanonical-rational.case R1 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R02-header-v2.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R03-clock-dim-1.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R04-irrational-spectrum.case R4 AT1_CASE_REFUSED CASE_IRRATIONAL_SPECTRUM +refuse/R05-wrong-case-id.case R5 AT1_CASE_REFUSED CASE_ID_MISMATCH +refuse/R06-codes-with-pass.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R06b-codes-unsorted.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R06c-codes-unknown.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R06d-fail-without-codes.case R6 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R07-crlf.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R08-tab.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R09-blank-line.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R10-trailing-space.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R11-double-space.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R12-missing-key.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R13-unknown-key.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R14-duplicate-key.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R15-out-of-order.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R16-float-text.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R17-noncanonical-integer.case R1 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R18-noncanonical-scaled.case R1 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R19-label-uppercase.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R20-energies-not-increasing.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R21-psi-zero.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R22-tau-zero.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R23-weight-negative.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R24-wrong-domain.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R25-wrong-contract.case R2 AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/R26-clock-dim-65.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R27-rational-over-limit.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R28-duplicate-label.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R29-ref-label-missing.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/R30-negative-zero.case R1 AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/R31-control-kind-bad.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R32-case-name-two-tokens.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R33-missing-final-lf.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R34-empty.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R35-trailing-line.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R36-label-count-mismatch.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R37-model-family-bad.case R0 AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/R38-acceptance-id-wrong.case R5 AT1_CASE_REFUSED CASE_ID_MISMATCH +refuse/R39-huge-digits-tau.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER +refuse/X1-at0-header.case Rd AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/X2-at0-domain.case Rd AT1_CASE_REFUSED CASE_UNSUPPORTED_VERSION +refuse/X3-coupling-index-01.case Re AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/X4-coupling-index-a.case Re AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/X5-coupling-index-wrong.case Re AT1_CASE_REFUSED CASE_PARSE_ERROR +refuse/X6-clock-label-index-01.case Re AT1_CASE_REFUSED CASE_NONCANONICAL +refuse/X7-clock-dim-0-none.case R3 AT1_CASE_REFUSED CASE_INVALID_PARAMETER diff --git a/research/atemporal/at1/evaluator/cases/negative/N1-p2-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1-p2-target-ideal.case new file mode 100644 index 000000000..4bad7454f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1-p2-target-ideal.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1-p2-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N1b-p3-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1b-p3-target-ideal.case new file mode 100644 index 000000000..8424ec6a2 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1b-p3-target-ideal.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1b-p3-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 3 +clock_energies -1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 3/10,0/1,-1/10 +interaction_pauli 1 0/1,3/10,-1/10 +interaction_pauli 2 6/5,0/1,2/5 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 3/4 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 2273ab7a73d4e29f39ca277b07d33e840a520e1467d0f2e654c1af1f2dd5f720 +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N1c-p3b-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1c-p3b-target-ideal.case new file mode 100644 index 000000000..cf3168c9a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1c-p3b-target-ideal.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1c-p3b-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 3 +clock_energies -1/2,0/1,1/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,-1/2 +interaction_pauli 2 3/10,0/1,-1/10 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(0/1;1/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/2 +povm_weight 3/4 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 4790c019ffa88f5e67d632f4a1f95dc30ac3abd3aa98b041e8c98f4778837fb5 +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N1d-p4-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1d-p4-target-ideal.case new file mode 100644 index 000000000..7434a959b --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1d-p4-target-ideal.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1d-p4-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t1 +reference_system_state (1/1;0/1),(3/5;4/5) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 921e497172361058b52b87444dfff3ae442cf220ce88cea63fbd3463cef926e4 +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N1e-p5-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1e-p5-target-ideal.case new file mode 100644 index 000000000..550fc29a3 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1e-p5-target-ideal.case @@ -0,0 +1,43 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1e-p5-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 2 +clock_energies -524289/1048574,524285/1048574 +system_dim 2 +system_hamiltonian_pauli 1/524287,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 524175/1048354,724/524177,-1/2 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/2 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 03beb780ef16e93140272c9a0c3ef2c90a6d506c90252467f4349afcc8a0d585 +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N1f-p6-target-ideal.case b/research/atemporal/at1/evaluator/cases/negative/N1f-p6-target-ideal.case new file mode 100644 index 000000000..85dae383d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N1f-p6-target-ideal.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n1f-p6-target-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,1/1 +interaction_pauli 1 0/1,0/1,1/1048576 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target IDEAL +expected_outcome FAIL +expected_failure_codes SCHRODINGER_DEVIATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id e406d8672cb9e4fd563d34ab6a2f7eddc7b931f233f20860a5706cf18e142c6f +acceptance_id e1923453902b4834198b0f513e1476a122f6327c38fc072e8f0d4b5078a263d1 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N2-every-level-out.case b/research/atemporal/at1/evaluator/cases/negative/N2-every-level-out.case new file mode 100644 index 000000000..498801cd4 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N2-every-level-out.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n2-every-level-out +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,1/2 +interaction_pauli 2 0/1,0/1,1/2 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes TRIVIAL_PHYSICAL_STATE +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 9e31669b05f401ef2900cc5295c1519912500177af374060ab23e4b4d37571e1 +acceptance_id 8f79bf3d89d5580452207d6ad16eb99fc29fd7408930147544b07c66ba6329bc +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N3-zero-label.case b/research/atemporal/at1/evaluator/cases/negative/N3-zero-label.case new file mode 100644 index 000000000..0d5a16104 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N3-zero-label.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n3-zero-label +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 0/1,0/1,-1/1 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes CONDITIONAL_UNDEFINED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 6b97f727561cc7bdc405eb98b1f6ea74a3c669786319fb64b61c5ec9802907e7 +acceptance_id e21a8799796aa0f131d32d24e8f2843ecf1b6eb754813a1dbe6a75cc8b72ee3d +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N4a-wrong-weight.case b/research/atemporal/at1/evaluator/cases/negative/N4a-wrong-weight.case new file mode 100644 index 000000000..4c8325447 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N4a-wrong-weight.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n4a-wrong-weight +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/2 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id cbfee5d54341692e3cce5d991b6f8ee6592a2b974f2947b13d5d8def6dec8485 +acceptance_id 0b0cf2ba90f798329ddbfda972114add52783721f2cef34a3caa2810c6c18759 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N4b-broken-clock-tau3.case b/research/atemporal/at1/evaluator/cases/negative/N4b-broken-clock-tau3.case new file mode 100644 index 000000000..559d713a3 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N4b-broken-clock-tau3.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n4b-broken-clock-tau3 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/3 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id b38d78895bfc845c2e3165a77b7de02d30c317c7ebe538a84d36a8a87687c8a1 +acceptance_id 0b0cf2ba90f798329ddbfda972114add52783721f2cef34a3caa2810c6c18759 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N5-precision-demand.case b/research/atemporal/at1/evaluator/cases/negative/N5-precision-demand.case new file mode 100644 index 000000000..d164c394a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N5-precision-demand.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n5-precision-demand +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes BOUND_KIND_INSUFFICIENT +min_bound_kind RIGOROUS +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 5713c441496ac2036a0834c4454065809b4f62a026b0090e734b9c2021d81e12 +end diff --git a/research/atemporal/at1/evaluator/cases/negative/N6-zero-projection.case b/research/atemporal/at1/evaluator/cases/negative/N6-zero-projection.case new file mode 100644 index 000000000..04d9b8ef7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/negative/N6-zero-projection.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-n6-zero-projection +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,1/2 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (3/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes TRIVIAL_PHYSICAL_STATE +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id e90b82cb42d511d5f93034e4f66a94802bd56b5c8e14fb18f8ad0d9d03f63887 +acceptance_id 8f79bf3d89d5580452207d6ad16eb99fc29fd7408930147544b07c66ba6329bc +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P1a-zero-coupling-interacting.case b/research/atemporal/at1/evaluator/cases/positive/P1a-zero-coupling-interacting.case new file mode 100644 index 000000000..812ca788f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P1a-zero-coupling-interacting.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p1a-zero-coupling-interacting +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 0/1,0/1,0/1 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id d0393c29fd4c4de2e29b8abbcb09af3e97ef9372caf269c47b0e30351db2c278 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P1b-zero-coupling-ideal.case b/research/atemporal/at1/evaluator/cases/positive/P1b-zero-coupling-ideal.case new file mode 100644 index 000000000..47bee17fe --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P1b-zero-coupling-ideal.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p1b-zero-coupling-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 0/1,0/1,0/1 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target IDEAL +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id d0393c29fd4c4de2e29b8abbcb09af3e97ef9372caf269c47b0e30351db2c278 +acceptance_id 9a18f790f4bb6e40bf39960337d1274021f12b8ff78550d93ed31f890943c9ba +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P1c-spectator-coupling-ideal.case b/research/atemporal/at1/evaluator/cases/positive/P1c-spectator-coupling-ideal.case new file mode 100644 index 000000000..a9011d33d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P1c-spectator-coupling-ideal.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p1c-spectator-coupling-ideal +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,1/2 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 0/1,0/1,0/1 +interaction_pauli 3 3/10,0/1,-1/10 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target IDEAL +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id c287bb7d1bcde25c0e087c7fd75f58361c95800adf3351b7f4c68f28d9ca6e21 +acceptance_id 9a18f790f4bb6e40bf39960337d1274021f12b8ff78550d93ed31f890943c9ba +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P2-kat-rotated-level-n4.case b/research/atemporal/at1/evaluator/cases/positive/P2-kat-rotated-level-n4.case new file mode 100644 index 000000000..d92e2126e --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P2-kat-rotated-level-n4.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P2t4-global-phase-i.case b/research/atemporal/at1/evaluator/cases/positive/P2t4-global-phase-i.case new file mode 100644 index 000000000..91d7f17e7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P2t4-global-phase-i.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p2-t4-global-phase-i +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (0/1;1/1),(0/1;1/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id edb1b8edf9650efc0782539c05dcca41fb4f39a82eeba86c6865e2537e271da7 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P2t5-scale-2.case b/research/atemporal/at1/evaluator/cases/positive/P2t5-scale-2.case new file mode 100644 index 000000000..bada68913 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P2t5-scale-2.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p2-t5-scale-2 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (2/1;0/1),(2/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id baa52d4db766f0f0d3d2faa10f45a52673fc10fbffb9cf2c485c2ecb2c4bb666 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P3-every-level-coupled.case b/research/atemporal/at1/evaluator/cases/positive/P3-every-level-coupled.case new file mode 100644 index 000000000..757cf0f18 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P3-every-level-coupled.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p3-every-level-coupled +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 3 +clock_energies -1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 3/10,0/1,-1/10 +interaction_pauli 1 0/1,3/10,-1/10 +interaction_pauli 2 6/5,0/1,2/5 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 3/4 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 2273ab7a73d4e29f39ca277b07d33e840a520e1467d0f2e654c1af1f2dd5f720 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P3b-degenerate-level.case b/research/atemporal/at1/evaluator/cases/positive/P3b-degenerate-level.case new file mode 100644 index 000000000..471289e0b --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P3b-degenerate-level.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p3b-degenerate-level +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 3 +clock_energies -1/2,0/1,1/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,-1/2 +interaction_pauli 2 3/10,0/1,-1/10 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(0/1;1/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/2 +povm_weight 3/4 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 4790c019ffa88f5e67d632f4a1f95dc30ac3abd3aa98b041e8c98f4778837fb5 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P4-complex-psi-ref-t1.case b/research/atemporal/at1/evaluator/cases/positive/P4-complex-psi-ref-t1.case new file mode 100644 index 000000000..d30fba6e6 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P4-complex-psi-ref-t1.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p4-complex-psi-ref-t1 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t1 +reference_system_state (1/1;0/1),(3/5;4/5) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 921e497172361058b52b87444dfff3ae442cf220ce88cea63fbd3463cef926e4 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P4t7-complex-psi-ref-t0.case b/research/atemporal/at1/evaluator/cases/positive/P4t7-complex-psi-ref-t0.case new file mode 100644 index 000000000..e38bee720 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P4t7-complex-psi-ref-t0.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p4-t7-ref-t0 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(3/5;4/5) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 290fcf92b4a627ea33aaabf29df9752453cae445cb4b5faa4885af5e96f898b8 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P5-large-rationals.case b/research/atemporal/at1/evaluator/cases/positive/P5-large-rationals.case new file mode 100644 index 000000000..339d5e897 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P5-large-rationals.case @@ -0,0 +1,43 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p5-large-rationals +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 2 +clock_energies -524289/1048574,524285/1048574 +system_dim 2 +system_hamiltonian_pauli 1/524287,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 524175/1048354,724/524177,-1/2 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/2 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 03beb780ef16e93140272c9a0c3ef2c90a6d506c90252467f4349afcc8a0d585 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/positive/P6-near-miss-energies.case b/research/atemporal/at1/evaluator/cases/positive/P6-near-miss-energies.case new file mode 100644 index 000000000..eab16b87a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/positive/P6-near-miss-energies.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-p6-near-miss-energies +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,1/1 +interaction_pauli 1 0/1,0/1,1/1048576 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id e406d8672cb9e4fd563d34ab6a2f7eddc7b931f233f20860a5706cf18e142c6f +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R01-noncanonical-rational.case b/research/atemporal/at1/evaluator/cases/refuse/R01-noncanonical-rational.case new file mode 100644 index 000000000..8b88f35f7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R01-noncanonical-rational.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 2/2 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 861172e0c8fd9b4ea5f44a998463ef72f76e7b9d4301b27d14a1c89fc38f4396 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R02-header-v2.case b/research/atemporal/at1/evaluator/cases/refuse/R02-header-v2.case new file mode 100644 index 000000000..c2145fe17 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R02-header-v2.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v2 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R03-clock-dim-1.case b/research/atemporal/at1/evaluator/cases/refuse/R03-clock-dim-1.case new file mode 100644 index 000000000..e1912d096 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R03-clock-dim-1.case @@ -0,0 +1,42 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 1 +clock_energies -1/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 3694b19cd01e59c57b84268d09e9d46f715f50c9fee9ad0e22a5882945fa054e +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R04-irrational-spectrum.case b/research/atemporal/at1/evaluator/cases/refuse/R04-irrational-spectrum.case new file mode 100644 index 000000000..3feee0117 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R04-irrational-spectrum.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,1/1,0/1,1/1 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id d1df8ffc95ffc4367ef7adb6a3b7c8d61fa40330c22c8a99effd53edf006a379 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R05-wrong-case-id.case b/research/atemporal/at1/evaluator/cases/refuse/R05-wrong-case-id.case new file mode 100644 index 000000000..8440dc98d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R05-wrong-case-id.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 090980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R06-codes-with-pass.case b/research/atemporal/at1/evaluator/cases/refuse/R06-codes-with-pass.case new file mode 100644 index 000000000..5cd65fe62 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R06-codes-with-pass.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes TRIVIAL_PHYSICAL_STATE +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 6f957a9238d74d727d7400411d4a4736a90e00cb5639d82b2e3c35253ca9ceda +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R06b-codes-unsorted.case b/research/atemporal/at1/evaluator/cases/refuse/R06b-codes-unsorted.case new file mode 100644 index 000000000..d200fe0f5 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R06b-codes-unsorted.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes PROBABILITY_SUM_EXCEEDED,POVM_NORMALIZATION_EXCEEDED +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 8971b526625f0b6170ce7cb22820081e9a0326c20445725a949ee4fef4a21817 +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R06c-codes-unknown.case b/research/atemporal/at1/evaluator/cases/refuse/R06c-codes-unknown.case new file mode 100644 index 000000000..0d29baea7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R06c-codes-unknown.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes FOO_BAR +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id a9f352d1168482a37577b93293ad199044fb08626896f474bbd10ec7a8f1adaf +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R06d-fail-without-codes.case b/research/atemporal/at1/evaluator/cases/refuse/R06d-fail-without-codes.case new file mode 100644 index 000000000..24a143316 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R06d-fail-without-codes.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 75bad3284d2f4ac4096373597a4383bfc001bb6e415c14c404401c2553ac2a1f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R07-crlf.case b/research/atemporal/at1/evaluator/cases/refuse/R07-crlf.case new file mode 100644 index 000000000..3737a6c78 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R07-crlf.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R08-tab.case b/research/atemporal/at1/evaluator/cases/refuse/R08-tab.case new file mode 100644 index 000000000..8eab2d61c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R08-tab.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 89e292c0718ccabb5fde22f00adb570eb380e9926829557787182dac44fdf99c +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R09-blank-line.case b/research/atemporal/at1/evaluator/cases/refuse/R09-blank-line.case new file mode 100644 index 000000000..99231b869 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R09-blank-line.case @@ -0,0 +1,46 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic + +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 0ac23fa3fabe0efc27e1b952b7a586eedde567b01e7d5f4b7210a1701649c379 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R0a-line-removed.case b/research/atemporal/at1/evaluator/cases/refuse/R0a-line-removed.case new file mode 100644 index 000000000..a99dfd24d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R0a-line-removed.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id da02f4831c6485a16dd61853b27f25acec7d76df702d161ef7aa4a2b0c51885b +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R0b-one-crlf-line.case b/research/atemporal/at1/evaluator/cases/refuse/R0b-one-crlf-line.case new file mode 100644 index 000000000..36e2d2fde --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R0b-one-crlf-line.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R1-noncanonical-tau.case b/research/atemporal/at1/evaluator/cases/refuse/R1-noncanonical-tau.case new file mode 100644 index 000000000..cfd64df7e --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R1-noncanonical-tau.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 2/8 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 9b14ff7f2389212047ade1c4c6bf04a75c7c086e24da8f1386d74e599aee8887 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R10-at0-model-family.case b/research/atemporal/at1/evaluator/cases/refuse/R10-at0-model-family.case new file mode 100644 index 000000000..72e3a39ec --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R10-at0-model-family.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_IDEAL +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 7a2999562cf3f540964bca17f889ba9531591df57a48debff88a6ebed6e077f2 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R10-trailing-space.case b/research/atemporal/at1/evaluator/cases/refuse/R10-trailing-space.case new file mode 100644 index 000000000..4aedd0011 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R10-trailing-space.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 50ea4f3ce7ca27cf51a134935b52026e1f6edb0dd26563c3d0a5efd758933adc +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R11-at0-constraint.case b/research/atemporal/at1/evaluator/cases/refuse/R11-at0-constraint.case new file mode 100644 index 000000000..c3c3cb57e --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R11-at0-constraint.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id fb879b8123248dc84213320d9b917b055252bf5de49111678e5524bdf3498d30 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R11-double-space.case b/research/atemporal/at1/evaluator/cases/refuse/R11-double-space.case new file mode 100644 index 000000000..5cf9a4b4c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R11-double-space.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 1d4e96d16c32b1249169f0748c048b12e35cd4ae24af84cf782f4d210e07b0af +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R12-missing-key.case b/research/atemporal/at1/evaluator/cases/refuse/R12-missing-key.case new file mode 100644 index 000000000..754e6d3e4 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R12-missing-key.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id c6992c2f828ba371b27ba905c274c391a8a465e12a169c08d4b7f4fca93f0a82 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R12-target-both.case b/research/atemporal/at1/evaluator/cases/refuse/R12-target-both.case new file mode 100644 index 000000000..12b264756 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R12-target-both.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target BOTH +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id a0a7b918bd83676135a1a011ce0331e4b5e2da8656ba70c402a29e3b0b1908f9 +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R12b-target-missing.case b/research/atemporal/at1/evaluator/cases/refuse/R12b-target-missing.case new file mode 100644 index 000000000..cd68e5658 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R12b-target-missing.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id ad3a318e52be1d54b687aa1780264fbc8b12c4ae504e17ace62e143976aa4c6c +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R13-noncanonical-coupling.case b/research/atemporal/at1/evaluator/cases/refuse/R13-noncanonical-coupling.case new file mode 100644 index 000000000..f15250d23 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R13-noncanonical-coupling.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 6/20,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 4a4e0838648850e33ea959ba57c51c130a18c3e1b1c443c2eca2cc00e27b2dcd +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R13-unknown-key.case b/research/atemporal/at1/evaluator/cases/refuse/R13-unknown-key.case new file mode 100644 index 000000000..079568ee7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R13-unknown-key.case @@ -0,0 +1,46 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +foo bar +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id ce90f16eb2dfc074f4ecbe24e7259faa2fc531ead34de559fbc0f3fddde4885a +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R14-coupling-over-limit.case b/research/atemporal/at1/evaluator/cases/refuse/R14-coupling-over-limit.case new file mode 100644 index 000000000..92bfb73e8 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R14-coupling-over-limit.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,1048577/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id b94dacdd14a1e204b4ff7087afff99bbf40cd55bc3d4ed359412459a4b034a95 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R14-duplicate-key.case b/research/atemporal/at1/evaluator/cases/refuse/R14-duplicate-key.case new file mode 100644 index 000000000..617612c22 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R14-duplicate-key.case @@ -0,0 +1,46 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id cbd1532d5f0ea39cb69430a4b88ceb8067bf3ee4617a2143e2b9e3107241f274 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R15-out-of-order.case b/research/atemporal/at1/evaluator/cases/refuse/R15-out-of-order.case new file mode 100644 index 000000000..82f2034e2 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R15-out-of-order.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +interaction CLOCK_DIAGONAL_PAULI +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 008f7b23c419797c15d44a5f5ac03bb3ba4e2a934f86312b043e286c15337ea7 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R16-float-text.case b/research/atemporal/at1/evaluator/cases/refuse/R16-float-text.case new file mode 100644 index 000000000..20f213f97 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R16-float-text.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 0.25 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id ba6f1018555869e466df100fe01a4e7d1fb5aa05245668e6198848a67415b72f +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R17-noncanonical-integer.case b/research/atemporal/at1/evaluator/cases/refuse/R17-noncanonical-integer.case new file mode 100644 index 000000000..5cd2fbb8b --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R17-noncanonical-integer.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 04 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 389ce166c7e12b874b93a5ba55cf8db05acae61b97ce9d7bf5684a856dee7315 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R18-noncanonical-scaled.case b/research/atemporal/at1/evaluator/cases/refuse/R18-noncanonical-scaled.case new file mode 100644 index 000000000..23162d65a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R18-noncanonical-scaled.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 10@13 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id c82901d229d0ee1ff85a74b371e62552502927ae11847227338bebc9307321cd +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R19-label-uppercase.case b/research/atemporal/at1/evaluator/cases/refuse/R19-label-uppercase.case new file mode 100644 index 000000000..057350341 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R19-label-uppercase.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label T0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 T0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 159437bd8ed364eab46542b3d61eba847e89609242fa0986fb8074589ccb2118 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R2-header-v2.case b/research/atemporal/at1/evaluator/cases/refuse/R2-header-v2.case new file mode 100644 index 000000000..c2145fe17 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R2-header-v2.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v2 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R20-energies-not-increasing.case b/research/atemporal/at1/evaluator/cases/refuse/R20-energies-not-increasing.case new file mode 100644 index 000000000..ee3396ebd --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R20-energies-not-increasing.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -1/2,-3/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 8796000b667659e50d30371f337cd4ebe030b55a4b7877d44b25e4c10802b417 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R21-psi-zero.case b/research/atemporal/at1/evaluator/cases/refuse/R21-psi-zero.case new file mode 100644 index 000000000..d289f389d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R21-psi-zero.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (0/1;0/1),(0/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id ebb66f4cbb8ecb73d5668cd739677dd9ebb4af244bde192bd8932e37795d1376 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R22-tau-zero.case b/research/atemporal/at1/evaluator/cases/refuse/R22-tau-zero.case new file mode 100644 index 000000000..df2130a5a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R22-tau-zero.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 0/1 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 40b50356a014f027d089c7c57f6b779fb05aa27a60dd5980c6cc0aa0d83b607e +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R23-weight-negative.case b/research/atemporal/at1/evaluator/cases/refuse/R23-weight-negative.case new file mode 100644 index 000000000..017d6f359 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R23-weight-negative.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight -1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 32f202c09959792bd32597554c3d1216363c8d0d2eb95ba14b681906f99f6214 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R24-wrong-domain.case b/research/atemporal/at1/evaluator/cases/refuse/R24-wrong-domain.case new file mode 100644 index 000000000..4b1292ab1 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R24-wrong-domain.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v2 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R25-wrong-contract.case b/research/atemporal/at1/evaluator/cases/refuse/R25-wrong-contract.case new file mode 100644 index 000000000..fe9662f21 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R25-wrong-contract.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V2 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R26-clock-dim-65.case b/research/atemporal/at1/evaluator/cases/refuse/R26-clock-dim-65.case new file mode 100644 index 000000000..925523962 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R26-clock-dim-65.case @@ -0,0 +1,106 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 65 +clock_energies 0/1,1/1,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,21/1,22/1,23/1,24/1,25/1,26/1,27/1,28/1,29/1,30/1,31/1,32/1,33/1,34/1,35/1,36/1,37/1,38/1,39/1,40/1,41/1,42/1,43/1,44/1,45/1,46/1,47/1,48/1,49/1,50/1,51/1,52/1,53/1,54/1,55/1,56/1,57/1,58/1,59/1,60/1,61/1,62/1,63/1,64/1 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +interaction_pauli 4 0/1,0/1,0/1 +interaction_pauli 5 0/1,0/1,0/1 +interaction_pauli 6 0/1,0/1,0/1 +interaction_pauli 7 0/1,0/1,0/1 +interaction_pauli 8 0/1,0/1,0/1 +interaction_pauli 9 0/1,0/1,0/1 +interaction_pauli 10 0/1,0/1,0/1 +interaction_pauli 11 0/1,0/1,0/1 +interaction_pauli 12 0/1,0/1,0/1 +interaction_pauli 13 0/1,0/1,0/1 +interaction_pauli 14 0/1,0/1,0/1 +interaction_pauli 15 0/1,0/1,0/1 +interaction_pauli 16 0/1,0/1,0/1 +interaction_pauli 17 0/1,0/1,0/1 +interaction_pauli 18 0/1,0/1,0/1 +interaction_pauli 19 0/1,0/1,0/1 +interaction_pauli 20 0/1,0/1,0/1 +interaction_pauli 21 0/1,0/1,0/1 +interaction_pauli 22 0/1,0/1,0/1 +interaction_pauli 23 0/1,0/1,0/1 +interaction_pauli 24 0/1,0/1,0/1 +interaction_pauli 25 0/1,0/1,0/1 +interaction_pauli 26 0/1,0/1,0/1 +interaction_pauli 27 0/1,0/1,0/1 +interaction_pauli 28 0/1,0/1,0/1 +interaction_pauli 29 0/1,0/1,0/1 +interaction_pauli 30 0/1,0/1,0/1 +interaction_pauli 31 0/1,0/1,0/1 +interaction_pauli 32 0/1,0/1,0/1 +interaction_pauli 33 0/1,0/1,0/1 +interaction_pauli 34 0/1,0/1,0/1 +interaction_pauli 35 0/1,0/1,0/1 +interaction_pauli 36 0/1,0/1,0/1 +interaction_pauli 37 0/1,0/1,0/1 +interaction_pauli 38 0/1,0/1,0/1 +interaction_pauli 39 0/1,0/1,0/1 +interaction_pauli 40 0/1,0/1,0/1 +interaction_pauli 41 0/1,0/1,0/1 +interaction_pauli 42 0/1,0/1,0/1 +interaction_pauli 43 0/1,0/1,0/1 +interaction_pauli 44 0/1,0/1,0/1 +interaction_pauli 45 0/1,0/1,0/1 +interaction_pauli 46 0/1,0/1,0/1 +interaction_pauli 47 0/1,0/1,0/1 +interaction_pauli 48 0/1,0/1,0/1 +interaction_pauli 49 0/1,0/1,0/1 +interaction_pauli 50 0/1,0/1,0/1 +interaction_pauli 51 0/1,0/1,0/1 +interaction_pauli 52 0/1,0/1,0/1 +interaction_pauli 53 0/1,0/1,0/1 +interaction_pauli 54 0/1,0/1,0/1 +interaction_pauli 55 0/1,0/1,0/1 +interaction_pauli 56 0/1,0/1,0/1 +interaction_pauli 57 0/1,0/1,0/1 +interaction_pauli 58 0/1,0/1,0/1 +interaction_pauli 59 0/1,0/1,0/1 +interaction_pauli 60 0/1,0/1,0/1 +interaction_pauli 61 0/1,0/1,0/1 +interaction_pauli 62 0/1,0/1,0/1 +interaction_pauli 63 0/1,0/1,0/1 +interaction_pauli 64 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 50909c607664aa886ea17fcd352dfcc47877634bc592509e20e92b9cbf65fa01 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R27-rational-over-limit.case b/research/atemporal/at1/evaluator/cases/refuse/R27-rational-over-limit.case new file mode 100644 index 000000000..aa5ccf7ec --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R27-rational-over-limit.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -1048577/1,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 1b95a78ab4b7ad276950fe983d9f01729f59514f64a891371926c3f7ebcb02a9 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R28-duplicate-label.case b/research/atemporal/at1/evaluator/cases/refuse/R28-duplicate-label.case new file mode 100644 index 000000000..f3b62e7fe --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R28-duplicate-label.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t1 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 6769dd081269806ca54701c92138f84474265f5d45fda4943fe36d103bbca79b +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R29-ref-label-missing.case b/research/atemporal/at1/evaluator/cases/refuse/R29-ref-label-missing.case new file mode 100644 index 000000000..ed234a6a7 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R29-ref-label-missing.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t9 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 4f363fef90b892d41a3d399510710699d7cc96313a5cbbcb33b8a4c699d998ac +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R2b-domain-v2.case b/research/atemporal/at1/evaluator/cases/refuse/R2b-domain-v2.case new file mode 100644 index 000000000..4b1292ab1 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R2b-domain-v2.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v2 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R2c-contract-v2.case b/research/atemporal/at1/evaluator/cases/refuse/R2c-contract-v2.case new file mode 100644 index 000000000..fe9662f21 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R2c-contract-v2.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V2 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R3-clock-dim-65.case b/research/atemporal/at1/evaluator/cases/refuse/R3-clock-dim-65.case new file mode 100644 index 000000000..925523962 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R3-clock-dim-65.case @@ -0,0 +1,106 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 65 +clock_energies 0/1,1/1,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,21/1,22/1,23/1,24/1,25/1,26/1,27/1,28/1,29/1,30/1,31/1,32/1,33/1,34/1,35/1,36/1,37/1,38/1,39/1,40/1,41/1,42/1,43/1,44/1,45/1,46/1,47/1,48/1,49/1,50/1,51/1,52/1,53/1,54/1,55/1,56/1,57/1,58/1,59/1,60/1,61/1,62/1,63/1,64/1 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +interaction_pauli 4 0/1,0/1,0/1 +interaction_pauli 5 0/1,0/1,0/1 +interaction_pauli 6 0/1,0/1,0/1 +interaction_pauli 7 0/1,0/1,0/1 +interaction_pauli 8 0/1,0/1,0/1 +interaction_pauli 9 0/1,0/1,0/1 +interaction_pauli 10 0/1,0/1,0/1 +interaction_pauli 11 0/1,0/1,0/1 +interaction_pauli 12 0/1,0/1,0/1 +interaction_pauli 13 0/1,0/1,0/1 +interaction_pauli 14 0/1,0/1,0/1 +interaction_pauli 15 0/1,0/1,0/1 +interaction_pauli 16 0/1,0/1,0/1 +interaction_pauli 17 0/1,0/1,0/1 +interaction_pauli 18 0/1,0/1,0/1 +interaction_pauli 19 0/1,0/1,0/1 +interaction_pauli 20 0/1,0/1,0/1 +interaction_pauli 21 0/1,0/1,0/1 +interaction_pauli 22 0/1,0/1,0/1 +interaction_pauli 23 0/1,0/1,0/1 +interaction_pauli 24 0/1,0/1,0/1 +interaction_pauli 25 0/1,0/1,0/1 +interaction_pauli 26 0/1,0/1,0/1 +interaction_pauli 27 0/1,0/1,0/1 +interaction_pauli 28 0/1,0/1,0/1 +interaction_pauli 29 0/1,0/1,0/1 +interaction_pauli 30 0/1,0/1,0/1 +interaction_pauli 31 0/1,0/1,0/1 +interaction_pauli 32 0/1,0/1,0/1 +interaction_pauli 33 0/1,0/1,0/1 +interaction_pauli 34 0/1,0/1,0/1 +interaction_pauli 35 0/1,0/1,0/1 +interaction_pauli 36 0/1,0/1,0/1 +interaction_pauli 37 0/1,0/1,0/1 +interaction_pauli 38 0/1,0/1,0/1 +interaction_pauli 39 0/1,0/1,0/1 +interaction_pauli 40 0/1,0/1,0/1 +interaction_pauli 41 0/1,0/1,0/1 +interaction_pauli 42 0/1,0/1,0/1 +interaction_pauli 43 0/1,0/1,0/1 +interaction_pauli 44 0/1,0/1,0/1 +interaction_pauli 45 0/1,0/1,0/1 +interaction_pauli 46 0/1,0/1,0/1 +interaction_pauli 47 0/1,0/1,0/1 +interaction_pauli 48 0/1,0/1,0/1 +interaction_pauli 49 0/1,0/1,0/1 +interaction_pauli 50 0/1,0/1,0/1 +interaction_pauli 51 0/1,0/1,0/1 +interaction_pauli 52 0/1,0/1,0/1 +interaction_pauli 53 0/1,0/1,0/1 +interaction_pauli 54 0/1,0/1,0/1 +interaction_pauli 55 0/1,0/1,0/1 +interaction_pauli 56 0/1,0/1,0/1 +interaction_pauli 57 0/1,0/1,0/1 +interaction_pauli 58 0/1,0/1,0/1 +interaction_pauli 59 0/1,0/1,0/1 +interaction_pauli 60 0/1,0/1,0/1 +interaction_pauli 61 0/1,0/1,0/1 +interaction_pauli 62 0/1,0/1,0/1 +interaction_pauli 63 0/1,0/1,0/1 +interaction_pauli 64 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 50909c607664aa886ea17fcd352dfcc47877634bc592509e20e92b9cbf65fa01 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R30-negative-zero.case b/research/atemporal/at1/evaluator/cases/refuse/R30-negative-zero.case new file mode 100644 index 000000000..0ec83762c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R30-negative-zero.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli -0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id f6913a061b26924a2e7c9f28d7b2fb1bf82074e57761c2f6f937ae4004ca9102 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R31-control-kind-bad.case b/research/atemporal/at1/evaluator/cases/refuse/R31-control-kind-bad.case new file mode 100644 index 000000000..8dc628e62 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R31-control-kind-bad.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind MAYBE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id bc8d0ca614fe74ab57b67a750ffd50ff24550dcb6eaf6155435ff1b6b54847af +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R32-case-name-two-tokens.case b/research/atemporal/at1/evaluator/cases/refuse/R32-case-name-two-tokens.case new file mode 100644 index 000000000..3894e131f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R32-case-name-two-tokens.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1 kat +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R33-missing-final-lf.case b/research/atemporal/at1/evaluator/cases/refuse/R33-missing-final-lf.case new file mode 100644 index 000000000..718f63c6b --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R33-missing-final-lf.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end \ No newline at end of file diff --git a/research/atemporal/at1/evaluator/cases/refuse/R34-empty.case b/research/atemporal/at1/evaluator/cases/refuse/R34-empty.case new file mode 100644 index 000000000..e69de29bb diff --git a/research/atemporal/at1/evaluator/cases/refuse/R35-trailing-line.case b/research/atemporal/at1/evaluator/cases/refuse/R35-trailing-line.case new file mode 100644 index 000000000..1af4f4381 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R35-trailing-line.case @@ -0,0 +1,46 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end +extra diff --git a/research/atemporal/at1/evaluator/cases/refuse/R36-label-count-mismatch.case b/research/atemporal/at1/evaluator/cases/refuse/R36-label-count-mismatch.case new file mode 100644 index 000000000..ee584b8c5 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R36-label-count-mismatch.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 5 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id d8b59ae32dd7df40841e8a7cfdeadfbf10914bcd5ac95d198f4f0b49b3614fcd +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R37-model-family-bad.case b/research/atemporal/at1/evaluator/cases/refuse/R37-model-family-bad.case new file mode 100644 index 000000000..1ab65b73c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R37-model-family-bad.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_INTERACTING +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id bc1f88a5203d8e21d7e828f0e42deed50fc804b1de69b53428a7e10f5a8c62e5 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R38-acceptance-id-wrong.case b/research/atemporal/at1/evaluator/cases/refuse/R38-acceptance-id-wrong.case new file mode 100644 index 000000000..a1d5e4d2c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R38-acceptance-id-wrong.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 063246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R39-huge-digits-tau.case b/research/atemporal/at1/evaluator/cases/refuse/R39-huge-digits-tau.case new file mode 100644 index 000000000..ff11106a2 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R39-huge-digits-tau.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 340282366920938463463374607431768211457/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 21b61e80aefc93f77573ac3dfe0a76b4d86ebacc828473d0eacd6699d2ef137c +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R3b-clock-dim-1.case b/research/atemporal/at1/evaluator/cases/refuse/R3b-clock-dim-1.case new file mode 100644 index 000000000..e1912d096 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R3b-clock-dim-1.case @@ -0,0 +1,42 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 1 +clock_energies -1/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 3694b19cd01e59c57b84268d09e9d46f715f50c9fee9ad0e22a5882945fa054e +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R4-irrational-level.case b/research/atemporal/at1/evaluator/cases/refuse/R4-irrational-level.case new file mode 100644 index 000000000..db4c0fddc --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R4-irrational-level.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 1/2,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 27ced5d956350979781cf85f90f901f25fec2e273fc8cba1a54849e525ff42c5 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R4b-irrational-h.case b/research/atemporal/at1/evaluator/cases/refuse/R4b-irrational-h.case new file mode 100644 index 000000000..3feee0117 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R4b-irrational-h.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,1/1,0/1,1/1 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id d1df8ffc95ffc4367ef7adb6a3b7c8d61fa40330c22c8a99effd53edf006a379 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R5-case-id-digit.case b/research/atemporal/at1/evaluator/cases/refuse/R5-case-id-digit.case new file mode 100644 index 000000000..8440dc98d --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R5-case-id-digit.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 090980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R5b-acceptance-id-digit.case b/research/atemporal/at1/evaluator/cases/refuse/R5b-acceptance-id-digit.case new file mode 100644 index 000000000..a1d5e4d2c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R5b-acceptance-id-digit.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 063246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R6-fail-without-codes.case b/research/atemporal/at1/evaluator/cases/refuse/R6-fail-without-codes.case new file mode 100644 index 000000000..5c5010301 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R6-fail-without-codes.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id 130bf28c0bbf838b383eb931e30601e5683a562e4b133600afb279ae97ef3e69 +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R6b-code-outside-set.case b/research/atemporal/at1/evaluator/cases/refuse/R6b-code-outside-set.case new file mode 100644 index 000000000..aaa066082 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R6b-code-outside-set.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind NEGATIVE +prediction_target INTERACTING +expected_outcome FAIL +expected_failure_codes ORACLE_UNAVAILABLE +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id f12260b4934bd6aa7e1c520e3e2f40a87702586bbbb914bd85f3817daa11a2e4 +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R7-coupling-count.case b/research/atemporal/at1/evaluator/cases/refuse/R7-coupling-count.case new file mode 100644 index 000000000..79572492f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R7-coupling-count.case @@ -0,0 +1,44 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 77acd31d228394b78786a26d5e8baf629ced6e0cb625eba2bbfffd69bf5e3373 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R8-coupling-order.case b/research/atemporal/at1/evaluator/cases/refuse/R8-coupling-order.case new file mode 100644 index 000000000..17130b44f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R8-coupling-order.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 8ee8989fcc863526cba335adfc94c1199551dac11d45f58787404ba5f160318b +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/R9-interaction-none.case b/research/atemporal/at1/evaluator/cases/refuse/R9-interaction-none.case new file mode 100644 index 000000000..5f7229af3 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/R9-interaction-none.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction NONE +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 5de054e65d1d0d778ee509c14694f72aaa3cb98ee795f8c21ba46b06960b76fe +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X1-at0-header.case b/research/atemporal/at1/evaluator/cases/refuse/X1-at0-header.case new file mode 100644 index 000000000..d0304949a --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X1-at0-header.case @@ -0,0 +1,45 @@ +OMEGA-AT0-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X2-at0-domain.case b/research/atemporal/at1/evaluator/cases/refuse/X2-at0-domain.case new file mode 100644 index 000000000..c4bcadfa3 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X2-at0-domain.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at0.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X3-coupling-index-01.case b/research/atemporal/at1/evaluator/cases/refuse/X3-coupling-index-01.case new file mode 100644 index 000000000..12c5c3d2f --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X3-coupling-index-01.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 01 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 02886383902d7f75edc65ddc9ffb23489078e693e851cc325bc443b4ee2851c3 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X4-coupling-index-a.case b/research/atemporal/at1/evaluator/cases/refuse/X4-coupling-index-a.case new file mode 100644 index 000000000..39a41c247 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X4-coupling-index-a.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli a 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 5136a2506477088c22fd3d63b783b10bc94b8cdffad4bf7758a759a729469a06 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X5-coupling-index-wrong.case b/research/atemporal/at1/evaluator/cases/refuse/X5-coupling-index-wrong.case new file mode 100644 index 000000000..e87f05b5c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X5-coupling-index-wrong.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 2 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id cecde5551480fe5c3f18fcd22f1c1383ea6b5ca73a7aea8ae5557e897badf89b +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X6-clock-label-index-01.case b/research/atemporal/at1/evaluator/cases/refuse/X6-clock-label-index-01.case new file mode 100644 index 000000000..6e3b65d68 --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X6-clock-label-index-01.case @@ -0,0 +1,45 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 01 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id ccc3da270101bfdf330ba2f65dc25633d48e69051e38474eedc9d83fe2f7ea34 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/cases/refuse/X7-clock-dim-0-none.case b/research/atemporal/at1/evaluator/cases/refuse/X7-clock-dim-0-none.case new file mode 100644 index 000000000..e7e97341c --- /dev/null +++ b/research/atemporal/at1/evaluator/cases/refuse/X7-clock-dim-0-none.case @@ -0,0 +1,41 @@ +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 0 +clock_energies none +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id e2a50be47719a297c5bf9999111f72afb02b6d57339b8b3d59802f4a4fd50ccc +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end diff --git a/research/atemporal/at1/evaluator/gates/clean_control.c b/research/atemporal/at1/evaluator/gates/clean_control.c new file mode 100644 index 000000000..8ca4fa4d7 --- /dev/null +++ b/research/atemporal/at1/evaluator/gates/clean_control.c @@ -0,0 +1,4 @@ +/* Negative control for gates/isolation.sh (AT-1 G2): pure arithmetic, no + * forbidden symbol, no counter read, no system call. The gate must PASS. */ +#include +double at1_clean_phase(double x) { return cos(x) * cos(x) + sin(x) * sin(x); } diff --git a/research/atemporal/at1/evaluator/gates/counter_mutant.c b/research/atemporal/at1/evaluator/gates/counter_mutant.c new file mode 100644 index 000000000..948b6df63 --- /dev/null +++ b/research/atemporal/at1/evaluator/gates/counter_mutant.c @@ -0,0 +1,18 @@ +/* Positive control for gates/isolation.sh (AT-1 G2, charter mutant "counter"): + * reads the hardware counter inline, so no symbol is referenced and a symbol + * scan alone is blind. The instruction scan (at1-eval scan-clock) must reject + * it. Compiled only, never linked or run. */ +#include +double at1_counter_phase(double x) { + uint64_t t = 0; +#if defined(__aarch64__) + __asm__ volatile("mrs %0, cntvct_el0" : "=r"(t)); +#elif defined(__x86_64__) + uint32_t lo, hi; + __asm__ volatile("rdtsc" : "=a"(lo), "=d"(hi)); + t = ((uint64_t)hi << 32) | lo; +#else +#error "counter_mutant.c: unsupported architecture" +#endif + return x + (double)(t % 7) * 1e-18; +} diff --git a/research/atemporal/at1/evaluator/gates/hidden_clock_mutant.c b/research/atemporal/at1/evaluator/gates/hidden_clock_mutant.c new file mode 100644 index 000000000..a692c48c7 --- /dev/null +++ b/research/atemporal/at1/evaluator/gates/hidden_clock_mutant.c @@ -0,0 +1,9 @@ +/* Positive control for gates/isolation.sh (AT-1 G2): a compute-like object + * that reads the wall clock through libc. The symbol scan must reject it. + * Compiled only, never linked or run. */ +#include +double at1_hidden_clock_phase(double x) { + struct timespec ts; + clock_gettime(CLOCK_REALTIME, &ts); + return x + (double)(ts.tv_nsec % 7) * 1e-18; +} diff --git a/research/atemporal/at1/evaluator/gates/isolation.sh b/research/atemporal/at1/evaluator/gates/isolation.sh new file mode 100644 index 000000000..9259b34ef --- /dev/null +++ b/research/atemporal/at1/evaluator/gates/isolation.sh @@ -0,0 +1,87 @@ +#!/bin/sh +# AT-1 isolation gate (charter section 6, G2; adapted from the AT-0 Agent 4 +# gate). Two independent scans of each compute object or executable: +# 1. symbol scan (nm): no clock, randomness, environment, file, network, +# process, thread or raw-syscall entry point, C or Rust std; +# 2. instruction scan (at1-eval scan-clock): no inline counter read +# (CNTVCT_EL0, CNTPCT_EL0, PMCCNTR_EL0, RDTSC) and no inline system call +# (SVC, SYSCALL), which no symbol table shows. +# Portable POSIX sh: works with GNU nm and the llvm nm of Apple clang. +# sh gates/isolation.sh ... judge candidate objects +# sh gates/isolation.sh --controls [receipt] prove the gate on its controls +# Exit 0 only on PASS. +set -u +FORBIDDEN="clock_gettime clock_getres clock_nanosleep clock gettimeofday time timegm timelocal localtime localtime_r gmtime gmtime_r mktime strftime nanosleep sleep usleep mach_absolute_time mach_continuous_time clock_gettime_nsec_np rand rand_r srand random srandom drand48 lrand48 arc4random arc4random_buf getrandom getentropy getenv secure_getenv setenv putenv fopen fopen64 freopen open open64 openat openat64 creat socket connect accept bind listen send recv sendto recvfrom getaddrinfo gethostbyname dlopen dlsym system popen fork vfork posix_spawn execv execve execvp execl pthread_create thrd_create clone syscall __syscall read write pread pwrite pread64 pwrite64 readv writev fread fwrite fgets fgetc getc getchar getline getdelim fscanf scanf mmap mmap64 ioctl" + +scan_one() { # $1 = at1-eval, $2 = object; prints hits, returns 1 on any + o=$2; bad=0 + if [ ! -f "$o" ]; then echo "FAIL: missing $o"; return 1; fi + t=$(mktemp "${TMPDIR:-/tmp}/at1iso.XXXXXX") || return 1 + { nm -p "$o" 2>/dev/null; nm -D "$o" 2>/dev/null; } > "$t" + if [ ! -s "$t" ] && ! nm "$o" >/dev/null 2>&1; then echo "FAIL: $o: nm cannot read symbols"; rm -f "$t"; return 1; fi + # strip version suffixes and hardened-libc aliases (__fread_chk -> fread, __open_2 -> open) + syms=$(awk 'NF>=2 {print $NF}' "$t" | sed -E 's/@.*$//; s/^_?__([a-z0-9_]+)_chk$/\1/; s/^_?__([a-z0-9_]+)_2$/\1/') + for f in $FORBIDDEN; do + if printf '%s\n' "$syms" | grep -qx "_\{0,1\}$f"; then echo "FAIL: $o references $f"; bad=1; fi + done + { nm -C -p "$o" 2>/dev/null; nm -C -D "$o" 2>/dev/null; } >> "$t" + if grep -qE '3std4time|3std3env|3std2fs|3std3net|3std7process|3std6thread|3std2io5stdio|10SystemTime|7Instant|getrandom|std::(time|env|fs|net|process|thread|io::stdio)|SystemTime|Instant::|rand::' "$t"; then + echo "FAIL: $o references a Rust std time/env/fs/net/process/thread or rand path"; bad=1 + fi + rm -f "$t" + # instruction scan (skipped only in the symbol-scan-only control, where $1 is `true`); + # a scanner that cannot run, or does not end with its PASS line, fails the object + if [ "$1" != true ]; then + sc=$("$1" scan-clock "$o" 2>&1); st=$? + printf '%s\n' "$sc" | sed -n 's/^HIT /FAIL: instruction /p; s/^UNREADABLE /FAIL: unreadable /p' + if [ $st -ne 0 ] || ! printf '%s\n' "$sc" | grep -qx "AT1_CLOCK_SCAN: PASS"; then + printf '%s\n' "$sc" | grep -qE '^(HIT|UNREADABLE) ' || echo "FAIL: instruction scan did not run on $o (exit $st)" + bad=1 + fi + fi + return $bad +} + +if [ "${1:-}" = "--controls" ]; then + EVAL=${2:?usage: isolation.sh --controls [receipt]} + if [ ! -x "$EVAL" ]; then echo "AT1_ISOLATION_CONTROLS: FAIL ($EVAL is not an executable at1-eval)"; exit 1; fi + OUT=${3:-results/ISOLATION_RECEIPT.txt} + D=$(mktemp -d "${TMPDIR:-/tmp}/at1gate.XXXXXX") || exit 1 + here=$(dirname "$0") + CC=${CC:-cc} + ok=1 + { + echo "# AT-1 G2 gate controls: $(uname -s) $(uname -m), CC=$CC ($($CC --version 2>/dev/null | head -n 1))" + for c in clean_control hidden_clock_mutant counter_mutant raw_syscall_mutant; do + if ! $CC -c -O1 -o "$D/$c.o" "$here/$c.c" 2>"$D/$c.err"; then + echo "$c NOT_BUILT $(head -n 1 "$D/$c.err")"; ok=0; continue + fi + hits=$(scan_one "$EVAL" "$D/$c.o") + if [ -z "$hits" ]; then got=PASS; else got=FAIL; fi + if [ "$c" = clean_control ]; then want=PASS; else want=FAIL; fi + if [ "$got" = "$want" ]; then v=AS_INTENDED; else v=WRONG; ok=0; fi + echo "$c gate=$got want=$want $v $(printf '%s' "$hits" | tr '\n' ';')" + done + # the symbol scan alone must be blind to the two inline mutants (that is why the instruction scan exists) + for c in counter_mutant raw_syscall_mutant; do + [ -f "$D/$c.o" ] || continue + if scan_one true "$D/$c.o" >/dev/null 2>&1; then echo "$c symbol-scan-only=PASS (blind, as expected)"; else echo "$c symbol-scan-only=FAIL"; fi + done + if [ $ok = 1 ]; then echo "AT1_ISOLATION_CONTROLS: PASS"; else echo "AT1_ISOLATION_CONTROLS: FAIL"; fi + } | sed "s|$D/||g" > "$D/receipt" + mkdir -p "$(dirname "$OUT")" + cp "$D/receipt" "$OUT" + cat "$OUT" + rm -rf "$D" + # ok is set inside the piped block (a subshell), so the verdict is read back from the receipt + grep -qx "AT1_ISOLATION_CONTROLS: PASS" "$OUT" + exit $? +fi + +EVAL=${1:?usage: isolation.sh ...} +if [ ! -x "$EVAL" ]; then echo "AT1_ISOLATION: FAIL ($EVAL is not an executable at1-eval)"; exit 1; fi +shift +fail=0 +for o in "$@"; do scan_one "$EVAL" "$o" || fail=1; done +if [ $fail = 0 ]; then echo "AT1_ISOLATION: PASS ($# objects clean)"; else echo "AT1_ISOLATION: FAIL"; fi +exit $fail diff --git a/research/atemporal/at1/evaluator/gates/raw_syscall_mutant.c b/research/atemporal/at1/evaluator/gates/raw_syscall_mutant.c new file mode 100644 index 000000000..d3cf5d0cf --- /dev/null +++ b/research/atemporal/at1/evaluator/gates/raw_syscall_mutant.c @@ -0,0 +1,30 @@ +/* Positive control for gates/isolation.sh (AT-1 G2, charter mutant + * "raw-syscall"): asks the kernel for the time with an inline system call, so + * no libc symbol is referenced. The instruction scan (at1-eval scan-clock) + * must reject it. Compiled only, never linked or run. + * Linux aarch64: svc #0 with x8 = 113 (clock_gettime) + * macOS arm64: svc #0x80 with x16 = 116 (gettimeofday) + * Linux x86_64: syscall with rax = 228 (clock_gettime) */ +#include +struct at1_ts { int64_t s, ns; }; +double at1_raw_syscall_phase(double x) { + struct at1_ts ts = { 0, 0 }; +#if defined(__aarch64__) && defined(__linux__) + register long r0 __asm__("x0") = 0; + register long r1 __asm__("x1") = (long)&ts; + register long r8 __asm__("x8") = 113; + __asm__ volatile("svc #0" : "+r"(r0) : "r"(r1), "r"(r8) : "memory"); +#elif defined(__aarch64__) && defined(__APPLE__) + register long r0 __asm__("x0") = (long)&ts; + register long r1 __asm__("x1") = 0; + register long r16 __asm__("x16") = 116; + __asm__ volatile("svc #0x80" : "+r"(r0) : "r"(r1), "r"(r16) : "memory", "cc"); +#elif defined(__x86_64__) && defined(__linux__) + long ret; + __asm__ volatile("syscall" : "=a"(ret) : "a"(228L), "D"(0L), "S"(&ts) : "rcx", "r11", "memory"); + (void)ret; +#else +#error "raw_syscall_mutant.c: unsupported platform" +#endif + return x + (double)(ts.ns % 7) * 1e-18; +} diff --git a/research/atemporal/at1/evaluator/results/ISOLATION_RECEIPT.txt b/research/atemporal/at1/evaluator/results/ISOLATION_RECEIPT.txt new file mode 100644 index 000000000..072e92232 --- /dev/null +++ b/research/atemporal/at1/evaluator/results/ISOLATION_RECEIPT.txt @@ -0,0 +1,8 @@ +# AT-1 G2 gate controls: Linux aarch64, CC=cc (cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0) +clean_control gate=PASS want=PASS AS_INTENDED +hidden_clock_mutant gate=FAIL want=FAIL AS_INTENDED FAIL: hidden_clock_mutant.o references clock_gettime +counter_mutant gate=FAIL want=FAIL AS_INTENDED FAIL: instruction counter_mutant.o .text +0x0: d53be040 MRS from the generic timer (CNT*_EL0) +raw_syscall_mutant gate=FAIL want=FAIL AS_INTENDED FAIL: instruction raw_syscall_mutant.o .text +0x34: d4000001 SVC (raw system call) +counter_mutant symbol-scan-only=PASS (blind, as expected) +raw_syscall_mutant symbol-scan-only=PASS (blind, as expected) +AT1_ISOLATION_CONTROLS: PASS diff --git a/research/atemporal/at1/evaluator/results/MUTANT_RECEIPT.tsv b/research/atemporal/at1/evaluator/results/MUTANT_RECEIPT.tsv new file mode 100644 index 000000000..cf5ab4851 --- /dev/null +++ b/research/atemporal/at1/evaluator/results/MUTANT_RECEIPT.tsv @@ -0,0 +1,281 @@ +# AT-1 Agent 4 mutant kill receipt (generated by `at1-eval mutants`; deterministic) +# mutant case runner_failure_codes verifier_findings intended verdict +M1-drop-v positive/P1a-zero-coupling-interacting.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M2-flip-v positive/P1a-zero-coupling-interacting.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M3-wrong-level positive/P1a-zero-coupling-interacting.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M4-phase-sign positive/P1a-zero-coupling-interacting.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P1a-zero-coupling-interacting.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P1a-zero-coupling-interacting.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P1a-zero-coupling-interacting.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M1-drop-v positive/P1b-zero-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M2-flip-v positive/P1b-zero-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M3-wrong-level positive/P1b-zero-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M4-phase-sign positive/P1b-zero-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign positive/P1b-zero-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap positive/P1b-zero-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal positive/P1b-zero-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M1-drop-v positive/P1c-spectator-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M2-flip-v positive/P1c-spectator-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M3-wrong-level positive/P1c-spectator-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign positive/P1c-spectator-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign positive/P1c-spectator-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap positive/P1c-spectator-coupling-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal positive/P1c-spectator-coupling-ideal.case none none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M1-drop-v positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P2-kat-rotated-level-n4.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P2t4-global-phase-i.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P2t5-scale-2.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P3-every-level-coupled.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P3-every-level-coupled.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P3b-degenerate-level.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P4-complex-psi-ref-t1.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P4t7-complex-psi-ref-t0.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M5-y-sign positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M6-axis-swap positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P5-large-rationals.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v positive/P6-near-miss-energies.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M2-flip-v positive/P6-near-miss-energies.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M3-wrong-level positive/P6-near-miss-energies.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M4-phase-sign positive/P6-near-miss-energies.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M5-y-sign positive/P6-near-miss-energies.case none none EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) BLIND (predicted) +M6-axis-swap positive/P6-near-miss-energies.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M8-ideal-marginal positive/P6-near-miss-energies.case INTERACTING_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3) KILLED +M1-drop-v negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1-p2-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M1-drop-v negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1b-p3-target-ideal.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1b-p3-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M1-drop-v negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1c-p3b-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M1-drop-v negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1d-p4-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M1-drop-v negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M5-y-sign negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M6-axis-swap negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1e-p5-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M1-drop-v negative/N1f-p6-target-ideal.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M2-flip-v negative/N1f-p6-target-ideal.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M3-wrong-level negative/N1f-p6-target-ideal.case TRIVIAL_PHYSICAL_STATE E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-NOT-MET,E4-SHADOW-KERNEL-DIM,E4-SHADOW-LABEL,E4-SHADOW-TRIVIAL,E4-UNDEFINED-DISCIPLINE EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M4-phase-sign negative/N1f-p6-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M5-y-sign negative/N1f-p6-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) BLIND (predicted) +M6-axis-swap negative/N1f-p6-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-PAULI EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M8-ideal-marginal negative/N1f-p6-target-ideal.case ORACLE_DISAGREEMENT,SCHRODINGER_DEVIATION_EXCEEDED E4-EXPECTATION-NOT-MET,E4-SHADOW-CLOCK EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3) KILLED +M9-stale-label negative/N3-zero-label.case CONDITIONAL_UNDEFINED,ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-LABEL-RULE,E4-SHADOW-LABEL E4-LABEL-RULE KILLED +M10-bound-none-nonzero positive/P2-kat-rotated-level-n4.case BOUND_KIND_INSUFFICIENT E4-BOUND-NONE-NONZERO,E4-EXPECTATION-NOT-MET E4-BOUND-NONE-NONZERO KILLED +O1-ideal-without-h positive/P1a-zero-coupling-interacting.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P1a-zero-coupling-interacting.case none none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O3-oracle-phase-sign positive/P1a-zero-coupling-interacting.case none E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P1b-zero-coupling-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P1b-zero-coupling-ideal.case none none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O3-oracle-phase-sign positive/P1b-zero-coupling-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P1c-spectator-coupling-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P1c-spectator-coupling-ideal.case none none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O3-oracle-phase-sign positive/P1c-spectator-coupling-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P2-kat-rotated-level-n4.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P2-kat-rotated-level-n4.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P2-kat-rotated-level-n4.case none E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P2t4-global-phase-i.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P2t4-global-phase-i.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P2t4-global-phase-i.case none E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P2t5-scale-2.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P2t5-scale-2.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P2t5-scale-2.case none E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P3-every-level-coupled.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P3-every-level-coupled.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P3-every-level-coupled.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P3b-degenerate-level.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P3b-degenerate-level.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P3b-degenerate-level.case none E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P4-complex-psi-ref-t1.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P4-complex-psi-ref-t1.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P4-complex-psi-ref-t1.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P4t7-complex-psi-ref-t0.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P4t7-complex-psi-ref-t0.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P4t7-complex-psi-ref-t0.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P5-large-rationals.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P5-large-rationals.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P5-large-rationals.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h positive/P6-near-miss-energies.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v positive/P6-near-miss-energies.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign positive/P6-near-miss-energies.case none none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O1-ideal-without-h negative/N1-p2-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1-p2-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1-p2-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N1b-p3-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1b-p3-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1b-p3-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N1c-p3b-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1c-p3b-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-KERNEL-DIM,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1c-p3b-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N1d-p4-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1d-p4-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1d-p4-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N1e-p5-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1e-p5-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1e-p5-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N1f-p6-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N1f-p6-target-ideal.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N1f-p6-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O1-ideal-without-h negative/N2-every-level-out.case TRIVIAL_PHYSICAL_STATE E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N2-every-level-out.case none E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-MISMATCH,E4-ORACLE-TRIVIAL,E4-OUTCOME-MISMATCH,E4-SHADOW-KERNEL-DIM,E4-SHADOW-TRIVIAL,E4-TRIVIAL-SHAPE E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N2-every-level-out.case TRIVIAL_PHYSICAL_STATE none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O1-ideal-without-h negative/N3-zero-label.case CONDITIONAL_UNDEFINED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N3-zero-label.case none E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-ORACLE-LABEL,E4-SHADOW-CLOCK,E4-SHADOW-LABEL,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N3-zero-label.case CONDITIONAL_UNDEFINED none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +O1-ideal-without-h negative/N4a-wrong-weight.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N4a-wrong-weight.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N4a-wrong-weight.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N4b-broken-clock-tau3.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N4b-broken-clock-tau3.case POVM_NORMALIZATION_EXCEEDED E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N4b-broken-clock-tau3.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N5-precision-demand.case BOUND_KIND_INSUFFICIENT E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N5-precision-demand.case BOUND_KIND_INSUFFICIENT E4-ORACLE-CLOCK,E4-ORACLE-INTERACTING,E4-SHADOW-CLOCK,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N5-precision-demand.case BOUND_KIND_INSUFFICIENT E4-ORACLE-INTERACTING,E4-SHADOW-PAULI E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O1-ideal-without-h negative/N6-zero-projection.case TRIVIAL_PHYSICAL_STATE E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +O2-oracle-drop-v negative/N6-zero-projection.case none E4-CHECK-MISMATCH,E4-CODES-MISMATCH,E4-EXPECTATION-MISMATCH,E4-ORACLE-TRIVIAL,E4-OUTCOME-MISMATCH,E4-SHADOW-KERNEL-DIM,E4-SHADOW-TRIVIAL,E4-TRIVIAL-SHAPE E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL KILLED +O3-oracle-phase-sign negative/N6-zero-projection.case TRIVIAL_PHYSICAL_STATE none E4-ORACLE-INTERACTING|E4-ORACLE-CLOCK|E4-ORACLE-LABEL|E4-ORACLE-TRIVIAL BLIND (predicted) +F1-wrong-evidence-digest positive/P2-kat-rotated-level-n4.case none E4-EVIDENCE-DIGEST E4-EVIDENCE-DIGEST KILLED +F2-wrong-verdict-id positive/P2-kat-rotated-level-n4.case none E4-VERDICT-ID E4-VERDICT-ID KILLED +F3-dropped-line positive/P2-kat-rotated-level-n4.case unparsed E4-PARSE E4-PARSE KILLED +F4-outcome-lie negative/N1-p2-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-OUTCOME-MISMATCH E4-OUTCOME-MISMATCH KILLED +F5-codes-lie negative/N4a-wrong-weight.case POVM_NORMALIZATION_EXCEEDED E4-CODES-MISMATCH E4-CODES-MISMATCH KILLED +F6-check-lie negative/N1-p2-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED E4-CHECK-MISMATCH E4-CHECK-MISMATCH KILLED +F7-expectation-lie positive/P2-kat-rotated-level-n4.case none E4-EXPECTATION-MISMATCH E4-EXPECTATION-MISMATCH KILLED +F8-oracle-is-engine positive/P2-kat-rotated-level-n4.case none E4-PROV-ORACLE-IS-ENGINE E4-PROV-ORACLE-IS-ENGINE KILLED +F10-time-order positive/P2-kat-rotated-level-n4.case none E4-PROV-TIME-ORDER E4-PROV-TIME-ORDER KILLED +F11-case-sha positive/P2-kat-rotated-level-n4.case none E4-CASE-SHA E4-CASE-SHA KILLED +F12-undefined-on-defined positive/P2-kat-rotated-level-n4.case none E4-UNDEFINED-DISCIPLINE E4-UNDEFINED-DISCIPLINE KILLED +F13-trivial-shape negative/N2-every-level-out.case TRIVIAL_PHYSICAL_STATE E4-TRIVIAL-SHAPE E4-TRIVIAL-SHAPE KILLED +F14-nonfinite-value positive/P2-kat-rotated-level-n4.case NONFINITE_VALUE E4-EXPECTATION-NOT-MET E4-EXPECTATION-NOT-MET KILLED +F15-dirty-tree positive/P2-kat-rotated-level-n4.case none E4-PROV-DIRTY-TREE E4-PROV-DIRTY-TREE FLAGGED +F16-unknown-contract positive/P2-kat-rotated-level-n4.case none E4-PROV-CONTRACT-UNKNOWN E4-PROV-CONTRACT-UNKNOWN FLAGGED +F17-wrong-kernel-dim positive/P2-kat-rotated-level-n4.case none E4-SHADOW-KERNEL-DIM E4-SHADOW-KERNEL-DIM KILLED +F18-label-status-lie negative/N3-zero-label.case ORACLE_DISAGREEMENT E4-EXPECTATION-NOT-MET,E4-LABEL-RULE,E4-SHADOW-LABEL E4-LABEL-RULE KILLED +F19-wide-bound-reference-ideal positive/P2-kat-rotated-level-n4.case none E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +F20-wide-bound-reference-ideal-trivial negative/N2-every-level-out.case TRIVIAL_PHYSICAL_STATE E4-ORACLE-IDEAL E4-ORACLE-IDEAL KILLED +F9-oracle-record-as-candidate positive/P2-kat-rotated-level-n4.case none E4-PROV-ORACLE-RECORD E4-PROV-ORACLE-RECORD KILLED +honest positive/P1a-zero-coupling-interacting.case none none no finding PASS +honest positive/P1b-zero-coupling-ideal.case none none no finding PASS +honest positive/P1c-spectator-coupling-ideal.case none none no finding PASS +honest positive/P2-kat-rotated-level-n4.case none none no finding PASS +honest positive/P2t4-global-phase-i.case none none no finding PASS +honest positive/P2t5-scale-2.case none none no finding PASS +honest positive/P3-every-level-coupled.case none none no finding PASS +honest positive/P3b-degenerate-level.case none none no finding PASS +honest positive/P4-complex-psi-ref-t1.case none none no finding PASS +honest positive/P4t7-complex-psi-ref-t0.case none none no finding PASS +honest positive/P5-large-rationals.case none none no finding PASS +honest positive/P6-near-miss-energies.case none none no finding PASS +honest negative/N1-p2-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N1b-p3-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N1c-p3b-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N1d-p4-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N1e-p5-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N1f-p6-target-ideal.case SCHRODINGER_DEVIATION_EXCEEDED none no finding PASS +honest negative/N2-every-level-out.case TRIVIAL_PHYSICAL_STATE none no finding PASS +honest negative/N3-zero-label.case CONDITIONAL_UNDEFINED none no finding PASS +honest negative/N4a-wrong-weight.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED none no finding PASS +honest negative/N4b-broken-clock-tau3.case POVM_NORMALIZATION_EXCEEDED,PROBABILITY_SUM_EXCEEDED none no finding PASS +honest negative/N5-precision-demand.case BOUND_KIND_INSUFFICIENT none no finding PASS +honest negative/N6-zero-projection.case TRIVIAL_PHYSICAL_STATE none no finding PASS +# summary: mutant killed_or_flagged blind_explained unexpected cells +# F1-wrong-evidence-digest 1 0 0 1 +# F10-time-order 1 0 0 1 +# F11-case-sha 1 0 0 1 +# F12-undefined-on-defined 1 0 0 1 +# F13-trivial-shape 1 0 0 1 +# F14-nonfinite-value 1 0 0 1 +# F15-dirty-tree 1 0 0 1 +# F16-unknown-contract 1 0 0 1 +# F17-wrong-kernel-dim 1 0 0 1 +# F18-label-status-lie 1 0 0 1 +# F19-wide-bound-reference-ideal 1 0 0 1 +# F2-wrong-verdict-id 1 0 0 1 +# F20-wide-bound-reference-ideal-trivial 1 0 0 1 +# F3-dropped-line 1 0 0 1 +# F4-outcome-lie 1 0 0 1 +# F5-codes-lie 1 0 0 1 +# F6-check-lie 1 0 0 1 +# F7-expectation-lie 1 0 0 1 +# F8-oracle-is-engine 1 0 0 1 +# F9-oracle-record-as-candidate 1 0 0 1 +# M1-drop-v 15 3 0 18 +# M10-bound-none-nonzero 1 0 0 1 +# M2-flip-v 15 3 0 18 +# M3-wrong-level 16 2 0 18 +# M4-phase-sign 16 2 0 18 +# M5-y-sign 16 2 0 18 +# M6-axis-swap 18 0 0 18 +# M8-ideal-marginal 15 3 0 18 +# M9-stale-label 1 0 0 1 +# O1-ideal-without-h 24 0 0 24 +# O2-oracle-drop-v 21 3 0 24 +# O3-oracle-phase-sign 19 5 0 24 +# honest controls failing: 0 +# MUTANT_RECEIPT: PASS diff --git a/research/atemporal/at1/evaluator/run.sh b/research/atemporal/at1/evaluator/run.sh new file mode 100644 index 000000000..7c083547a --- /dev/null +++ b/research/atemporal/at1/evaluator/run.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# AT-1 Agent 4 qualification run (POSIX sh; Linux and macOS). +# sh run.sh '' '' [cases-dir] [out-dir] [hidden-dir] +# Each command is a template: {case} is replaced by the case file path and +# {out} by the result file to write (without {out}, standard output is used). +# Example: sh run.sh '../model/build/at1-engine {case} {out}' '../oracle/build/at1-oracle {case} {out}' +# out-dir defaults to build/qualify (git-ignored), so a run leaves the tree clean. +# hidden-dir (only after the candidate freeze): the revealed hidden .case files and +# nothing else; their commitment must equal HIDDEN_COMMITMENT.txt before they are run. +# Exit 0 only when every step passes. +set -eu +cd "$(dirname "$0")" +ENGINE=${1:?engine command template required} +ORACLE=${2:?oracle command template required} +CASES=${3:-cases} +OUT=${4:-build/qualify} +HIDDEN=${5:-} +make -s all +mkdir -p build +./build/at1-eval corpus-check cases +./build/at1-eval selftest > build/selftest.txt || { cat build/selftest.txt; echo "SELFTEST FAILED" >&2; exit 1; } +tail -n 1 build/selftest.txt +./build/at1-eval mutants build/MUTANT_RECEIPT.tsv +cmp build/MUTANT_RECEIPT.tsv results/MUTANT_RECEIPT.tsv +status=0 +./build/at1-eval qualify --cases "$CASES" --engine "$ENGINE" --oracle "$ORACLE" --out "$OUT" || status=1 +if [ -n "$HIDDEN" ]; then + if [ -e "$HIDDEN/MANIFEST.tsv" ]; then + echo "HIDDEN SET REFUSED: $HIDDEN/MANIFEST.tsv exists; the commitment covers only the .case files" >&2 + exit 1 + fi + want=$(sed -n 's/^commitment //p' HIDDEN_COMMITMENT.txt) + got=$(./build/at1-eval hidden-commit "$HIDDEN" | sed -n 's/^commitment //p') + if [ -z "$got" ] || [ "$want" != "$got" ]; then + echo "HIDDEN COMMITMENT MISMATCH: committed $want, revealed ${got:-none}" >&2 + exit 1 + fi + echo "hidden commitment matches: $got" + ./build/at1-eval qualify --cases "$HIDDEN" --engine "$ENGINE" --oracle "$ORACLE" --out "$OUT-hidden" || status=1 +fi +exit $status diff --git a/research/atemporal/at1/evaluator/src/big.rs b/research/atemporal/at1/evaluator/src/big.rs new file mode 100644 index 000000000..fcc531c48 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/big.rs @@ -0,0 +1,456 @@ +//! Arbitrary-precision signed integers (std only). Little-endian u32 limbs, +//! normalised (no high zero limbs; zero is an empty vector with neg = false). +//! Division is Knuth algorithm D (Hacker's Delight divmnu form). + +use std::cmp::Ordering; + +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct Int { + neg: bool, + mag: Vec, +} + +fn trim(v: &mut Vec) { + while let Some(&0) = v.last() { + v.pop(); + } +} + +fn mag_cmp(a: &[u32], b: &[u32]) -> Ordering { + if a.len() != b.len() { + return a.len().cmp(&b.len()); + } + for i in (0..a.len()).rev() { + if a[i] != b[i] { + return a[i].cmp(&b[i]); + } + } + Ordering::Equal +} + +fn mag_add(a: &[u32], b: &[u32]) -> Vec { + let (a, b) = if a.len() >= b.len() { (a, b) } else { (b, a) }; + let mut r = Vec::with_capacity(a.len() + 1); + let mut carry = 0u64; + for i in 0..a.len() { + let s = a[i] as u64 + if i < b.len() { b[i] as u64 } else { 0 } + carry; + r.push(s as u32); + carry = s >> 32; + } + if carry != 0 { + r.push(carry as u32); + } + r +} + +/// a - b, requires a >= b. +fn mag_sub(a: &[u32], b: &[u32]) -> Vec { + let mut r = Vec::with_capacity(a.len()); + let mut borrow = 0i64; + for i in 0..a.len() { + let mut d = a[i] as i64 - borrow - if i < b.len() { b[i] as i64 } else { 0 }; + if d < 0 { + d += 1 << 32; + borrow = 1; + } else { + borrow = 0; + } + r.push(d as u32); + } + assert!(borrow == 0, "mag_sub underflow"); + trim(&mut r); + r +} + +fn mag_mul(a: &[u32], b: &[u32]) -> Vec { + if a.is_empty() || b.is_empty() { + return Vec::new(); + } + let mut r = vec![0u32; a.len() + b.len()]; + for i in 0..a.len() { + let mut carry = 0u64; + let ai = a[i] as u64; + if ai == 0 { + continue; + } + for j in 0..b.len() { + let t = ai * b[j] as u64 + r[i + j] as u64 + carry; + r[i + j] = t as u32; + carry = t >> 32; + } + let mut k = i + b.len(); + while carry != 0 { + let t = r[k] as u64 + carry; + r[k] = t as u32; + carry = t >> 32; + k += 1; + } + } + trim(&mut r); + r +} + +fn mag_divrem_small(a: &[u32], d: u32) -> (Vec, u32) { + let mut q = vec![0u32; a.len()]; + let mut rem = 0u64; + for i in (0..a.len()).rev() { + let cur = (rem << 32) | a[i] as u64; + q[i] = (cur / d as u64) as u32; + rem = cur % d as u64; + } + trim(&mut q); + (q, rem as u32) +} + +/// Knuth D. Requires v nonzero. +fn mag_divrem(u: &[u32], v: &[u32]) -> (Vec, Vec) { + assert!(!v.is_empty(), "division by zero"); + if mag_cmp(u, v) == Ordering::Less { + return (Vec::new(), u.to_vec()); + } + if v.len() == 1 { + let (q, r) = mag_divrem_small(u, v[0]); + let mut rv = vec![r]; + trim(&mut rv); + return (q, rv); + } + let n = v.len(); + let m = u.len() - n; + let s = v[n - 1].leading_zeros(); + let mut vn = vec![0u32; n]; + let mut un = vec![0u32; u.len() + 1]; + if s > 0 { + for i in (1..n).rev() { + vn[i] = (v[i] << s) | (v[i - 1] >> (32 - s)); + } + vn[0] = v[0] << s; + un[u.len()] = u[u.len() - 1] >> (32 - s); + for i in (1..u.len()).rev() { + un[i] = (u[i] << s) | (u[i - 1] >> (32 - s)); + } + un[0] = u[0] << s; + } else { + vn.copy_from_slice(v); + un[..u.len()].copy_from_slice(u); + un[u.len()] = 0; + } + let b: u128 = 1u128 << 32; + let mut q = vec![0u32; m + 1]; + for j in (0..=m).rev() { + let num: u128 = ((un[j + n] as u128) << 32) | un[j + n - 1] as u128; + let mut qhat = num / vn[n - 1] as u128; + let mut rhat = num % vn[n - 1] as u128; + loop { + if qhat >= b || qhat * vn[n - 2] as u128 > ((rhat << 32) | un[j + n - 2] as u128) { + qhat -= 1; + rhat += vn[n - 1] as u128; + if rhat < b { + continue; + } + } + break; + } + let mut k: i128 = 0; + let mut t: i128; + for i in 0..n { + let p: u128 = qhat * vn[i] as u128; + t = un[i + j] as i128 - k - (p & 0xffff_ffff) as i128; + un[i + j] = t as u32; + k = (p >> 32) as i128 - (t >> 32); + } + t = un[j + n] as i128 - k; + un[j + n] = t as u32; + q[j] = qhat as u32; + if t < 0 { + q[j] = q[j].wrapping_sub(1); + let mut c: u64 = 0; + for i in 0..n { + let s2 = un[i + j] as u64 + vn[i] as u64 + c; + un[i + j] = s2 as u32; + c = s2 >> 32; + } + un[j + n] = un[j + n].wrapping_add(c as u32); + } + } + let mut r = vec![0u32; n]; + if s > 0 { + for i in 0..n { + r[i] = (un[i] >> s) | (((un[i + 1] as u64) << (32 - s)) as u32); + } + } else { + r.copy_from_slice(&un[..n]); + } + trim(&mut q); + trim(&mut r); + (q, r) +} + +impl Int { + pub fn zero() -> Int { + Int { neg: false, mag: Vec::new() } + } + pub fn from_u64(v: u64) -> Int { + let mut mag = vec![v as u32, (v >> 32) as u32]; + trim(&mut mag); + Int { neg: false, mag } + } + pub fn from_i64(v: i64) -> Int { + let mut r = Int::from_u64(v.unsigned_abs()); + r.neg = v < 0 && !r.mag.is_empty(); + r + } + fn from_parts(neg: bool, mut mag: Vec) -> Int { + trim(&mut mag); + let neg = neg && !mag.is_empty(); + Int { neg, mag } + } + /// Parses a string of ASCII decimal digits (no sign). None if empty or not digits. + pub fn from_dec_digits(s: &str) -> Option { + if s.is_empty() || !s.bytes().all(|c| c.is_ascii_digit()) { + return None; + } + let mut mag: Vec = Vec::new(); + for chunk in s.as_bytes().chunks(9) { + let mut mul: u64 = 1; + let mut add: u64 = 0; + for &c in chunk { + mul *= 10; + add = add * 10 + (c - b'0') as u64; + } + let mut carry = add; + for limb in mag.iter_mut() { + let t = *limb as u64 * mul + carry; + *limb = t as u32; + carry = t >> 32; + } + while carry != 0 { + mag.push(carry as u32); + carry >>= 32; + } + } + Some(Int::from_parts(false, mag)) + } + pub fn to_dec(&self) -> String { + if self.mag.is_empty() { + return "0".to_string(); + } + let mut parts = Vec::new(); + let mut cur = self.mag.clone(); + while !cur.is_empty() { + let (q, r) = mag_divrem_small(&cur, 1_000_000_000); + parts.push(r); + cur = q; + } + let mut s = String::new(); + if self.neg { + s.push('-'); + } + s.push_str(&parts.last().unwrap().to_string()); + for p in parts.iter().rev().skip(1) { + s.push_str(&format!("{:09}", p)); + } + s + } + pub fn is_zero(&self) -> bool { + self.mag.is_empty() + } + pub fn is_neg(&self) -> bool { + self.neg + } + pub fn signum(&self) -> i32 { + if self.mag.is_empty() { + 0 + } else if self.neg { + -1 + } else { + 1 + } + } + pub fn neg(&self) -> Int { + Int::from_parts(!self.neg, self.mag.clone()) + } + pub fn abs(&self) -> Int { + Int::from_parts(false, self.mag.clone()) + } + pub fn add(&self, o: &Int) -> Int { + if self.neg == o.neg { + return Int::from_parts(self.neg, mag_add(&self.mag, &o.mag)); + } + match mag_cmp(&self.mag, &o.mag) { + Ordering::Equal => Int::zero(), + Ordering::Greater => Int::from_parts(self.neg, mag_sub(&self.mag, &o.mag)), + Ordering::Less => Int::from_parts(o.neg, mag_sub(&o.mag, &self.mag)), + } + } + pub fn sub(&self, o: &Int) -> Int { + self.add(&o.neg()) + } + pub fn mul(&self, o: &Int) -> Int { + Int::from_parts(self.neg != o.neg, mag_mul(&self.mag, &o.mag)) + } + /// Truncated division (quotient rounds toward zero; remainder has the sign of self). + pub fn divrem(&self, o: &Int) -> (Int, Int) { + let (q, r) = mag_divrem(&self.mag, &o.mag); + (Int::from_parts(self.neg != o.neg, q), Int::from_parts(self.neg, r)) + } + /// Floor division and the matching non-negative remainder for a positive divisor. + pub fn div_floor(&self, o: &Int) -> (Int, Int) { + assert!(o.signum() > 0); + let (q, r) = self.divrem(o); + if r.is_neg() { + (q.sub(&Int::from_u64(1)), r.add(o)) + } else { + (q, r) + } + } + pub fn cmp(&self, o: &Int) -> Ordering { + match (self.neg, o.neg) { + (false, true) => Ordering::Greater, + (true, false) => Ordering::Less, + (false, false) => mag_cmp(&self.mag, &o.mag), + (true, true) => mag_cmp(&o.mag, &self.mag), + } + } + pub fn gcd(a: &Int, b: &Int) -> Int { + let mut x = a.abs(); + let mut y = b.abs(); + while !y.is_zero() { + let (_, r) = x.divrem(&y); + x = y; + y = r; + } + x + } + pub fn shl(&self, bits: u32) -> Int { + if self.mag.is_empty() { + return self.clone(); + } + let limbs = (bits / 32) as usize; + let s = bits % 32; + let mut r = vec![0u32; limbs]; + if s == 0 { + r.extend_from_slice(&self.mag); + } else { + let mut carry = 0u32; + for &l in &self.mag { + r.push((l << s) | carry); + carry = l >> (32 - s); + } + if carry != 0 { + r.push(carry); + } + } + Int::from_parts(self.neg, r) + } + pub fn bits(&self) -> u32 { + match self.mag.last() { + None => 0, + Some(&top) => (self.mag.len() as u32 - 1) * 32 + (32 - top.leading_zeros()), + } + } + pub fn pow10(k: u32) -> Int { + let mut r = Int::from_u64(1); + let ten = Int::from_u64(10); + for _ in 0..k { + r = r.mul(&ten); + } + r + } + pub fn pow2(k: u32) -> Int { + Int::from_u64(1).shl(k) + } + /// floor(sqrt(self)) for self >= 0. + pub fn isqrt(&self) -> Int { + assert!(!self.neg); + if self.is_zero() { + return Int::zero(); + } + let mut x = Int::pow2(self.bits() / 2 + 1); + loop { + let (q, _) = self.divrem(&x); + let y = x.add(&q).shr1(); + if y.cmp(&x) != Ordering::Less { + return x; + } + x = y; + } + } + fn shr1(&self) -> Int { + let mut r = self.mag.clone(); + let mut carry = 0u32; + for i in (0..r.len()).rev() { + let l = r[i]; + r[i] = (l >> 1) | (carry << 31); + carry = l & 1; + } + Int::from_parts(self.neg, r) + } + pub fn is_even(&self) -> bool { + self.mag.first().map_or(true, |l| l & 1 == 0) + } + /// The low 64 bits of the magnitude. + pub fn low_u64(&self) -> u64 { + let a = *self.mag.first().unwrap_or(&0) as u64; + let b = *self.mag.get(1).unwrap_or(&0) as u64; + a | (b << 32) + } + /// Top 64 bits of the magnitude, and the shift such that |self| ~ top * 2^shift (exact when shift <= 0). + pub fn top_bits(&self, want: u32) -> (u64, i32) { + let b = self.bits(); + if b <= want { + return (self.low_u64(), 0); + } + let shift = b - want; + let (q, _) = mag_divrem(&self.mag, &Int::pow2(shift).mag); + let qi = Int::from_parts(false, q); + (qi.low_u64(), shift as i32) + } +} + +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn dec_roundtrip_and_division() { + let a = Int::from_dec_digits("340282366920938463463374607431768211457").unwrap(); + assert_eq!(a.to_dec(), "340282366920938463463374607431768211457"); + let b = Int::from_dec_digits("18446744073709551629").unwrap(); + let (q, r) = a.divrem(&b); + assert_eq!(q.mul(&b).add(&r), a); + assert!(r.cmp(&b) == Ordering::Less); + let c = a.mul(&a).add(&Int::from_u64(12345)); + assert_eq!(c.isqrt(), a); + assert_eq!(Int::gcd(&Int::from_i64(-12), &Int::from_u64(18)), Int::from_u64(6)); + let (fq, fr) = Int::from_i64(-7).div_floor(&Int::from_u64(4)); + assert_eq!((fq, fr), (Int::from_i64(-2), Int::from_u64(1))); + } + #[test] + fn knuth_d_random_like() { + // deterministic pseudo-random operands exercising the add-back branch + let mut x: u64 = 0x9e3779b97f4a7c15; + for _ in 0..300 { + let mut gen = |n: usize| { + let mut v = Vec::new(); + for _ in 0..n { + x ^= x << 13; + x ^= x >> 7; + x ^= x << 17; + v.push(x as u32); + } + Int::from_parts(false, v) + }; + let a = gen(9); + let b = gen(4); + if b.is_zero() { + continue; + } + let (q, r) = a.divrem(&b); + assert_eq!(q.mul(&b).add(&r), a); + assert!(r.cmp(&b) == Ordering::Less); + } + let a = Int::from_parts(false, vec![0, 0, 0x8000_0000, 0x7fff_ffff]); + let b = Int::from_parts(false, vec![1, 0, 0x8000_0000]); + let (q, r) = a.divrem(&b); + assert_eq!(q.mul(&b).add(&r), a); + } +} diff --git a/research/atemporal/at1/evaluator/src/case.rs b/research/atemporal/at1/evaluator/src/case.rs new file mode 100644 index 000000000..40a265d10 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/case.rs @@ -0,0 +1,650 @@ +//! Independent AT1_CASE_V1 codec: byte rules, fixed line grammar, canonical +//! encodings and the six validity rules in contract order (section 4), with +//! arbitrary-precision exact arithmetic for rules 3 and 4 (no implementation +//! refusal, no wrap-around). Charter readings c, d, e are applied. + +use crate::rat::{parse_crat, parse_int, parse_rat, parse_scaled, Cq, Scaled, Tok, Q}; +use crate::sha256::{sha256_hex, tagged_hex}; +use crate::text::{is_code, is_digest, is_label, is_name, join_lf, lines_checked, FAILURE_CODES}; + +pub const CASE_DOMAIN: &str = "omega.at1.case.v1"; +pub const ACC_DOMAIN: &str = "omega.at1.acceptance.v1"; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Refusal { + ParseError, + NonCanonical, + UnsupportedVersion, + InvalidParameter, + IrrationalSpectrum, + IdMismatch, +} + +impl Refusal { + pub fn code(self) -> &'static str { + match self { + Refusal::ParseError => "CASE_PARSE_ERROR", + Refusal::NonCanonical => "CASE_NONCANONICAL", + Refusal::UnsupportedVersion => "CASE_UNSUPPORTED_VERSION", + Refusal::InvalidParameter => "CASE_INVALID_PARAMETER", + Refusal::IrrationalSpectrum => "CASE_IRRATIONAL_SPECTRUM", + Refusal::IdMismatch => "CASE_ID_MISMATCH", + } + } +} + +#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] +pub enum BoundKind { + None = 0, + Estimated = 1, + Rigorous = 2, +} +impl BoundKind { + pub fn parse(s: &str) -> Option { + match s { + "NONE" => Some(BoundKind::None), + "ESTIMATED" => Some(BoundKind::Estimated), + "RIGOROUS" => Some(BoundKind::Rigorous), + _ => None, + } + } + pub fn text(self) -> &'static str { + match self { + BoundKind::None => "NONE", + BoundKind::Estimated => "ESTIMATED", + BoundKind::Rigorous => "RIGOROUS", + } + } +} + +#[derive(Clone, Debug)] +pub struct Case { + pub name: String, + pub n: usize, + pub e: Vec, + pub h0: Q, + pub h: [Q; 3], + pub v: Vec<[Q; 3]>, + pub ref_label: String, + pub ref_index: usize, + pub psi: [Cq; 2], + pub tau: Q, + pub w: Q, + pub m: usize, + pub labels: Vec, + pub control_positive: bool, + pub target_ideal: bool, + pub expected_pass: bool, + pub expected_codes: Vec, + pub min_bound_kind: BoundKind, + pub tol_constraint: Scaled, + pub tol_povm: Scaled, + pub tol_prob: Scaled, + pub tol_zero: Scaled, + pub tol_schro: Scaled, + pub case_id: String, + pub acceptance_id: String, + /// lines from case_name through acceptance_id (what a result copies) + pub body_lines: Vec, + pub sem_lines: Vec, + pub acc_lines: Vec, + pub file_sha256: String, + /// exact level norms |h + v_j| (rule 4 guarantees rational) + pub level_r: Vec, +} + +struct P<'a> { + lines: &'a [String], + i: usize, + noncanon: Option, + bad_param: Option, + bad_version: Option, +} + +type R = Result; + +fn perr(msg: String) -> R { + Err((Refusal::ParseError, msg)) +} + +impl<'a> P<'a> { + fn next(&mut self) -> R<&'a str> { + if self.i >= self.lines.len() { + return perr("unexpected end of file".into()); + } + let l = &self.lines[self.i]; + self.i += 1; + Ok(l) + } + /// A `key value...` line with exactly `ntok` tokens after the key. + fn key(&mut self, key: &str, ntok: usize) -> R> { + let ln = self.i + 1; + let l = self.next()?; + let t: Vec<&str> = l.split(' ').collect(); + if t[0] != key { + return perr(format!("line {}: expected key {}, found {}", ln, key, t[0])); + } + if t.len() != ntok + 1 { + return perr(format!("line {}: {} takes {} token(s)", ln, key, ntok)); + } + Ok(t[1..].to_vec()) + } + fn exact(&mut self, text: &str) -> R<()> { + let ln = self.i + 1; + let l = self.next()?; + if l != text { + return perr(format!("line {}: expected `{}`", ln, text)); + } + Ok(()) + } + fn tok(&mut self, t: Tok, what: &str) { + if t == Tok::NonCanonical && self.noncanon.is_none() { + self.noncanon = Some(format!("line {}: non-canonical {}", self.i, what)); + } + } + fn param(&mut self, msg: String) { + if self.bad_param.is_none() { + self.bad_param = Some(msg); + } + } + fn rat(&mut self, s: &str, what: &str) -> R { + match parse_rat(s) { + None => perr(format!("line {}: {} `{}` is not a rational", self.i, what, s)), + Some((q, t)) => { + self.tok(t, what); + if !q.within_limits() { + self.param(format!("line {}: {} outside the token limits", self.i, what)); + } + Ok(q) + } + } + } + fn list(&self, s: &str) -> R> { + // AT1_CASE_V1 section 2: "the empty list is `none`" + if s == "none" { + return Ok(Vec::new()); + } + let v: Vec = s.split(',').map(|x| x.to_string()).collect(); + if v.iter().any(|x| x.is_empty()) { + return perr(format!("line {}: empty list item", self.i)); + } + Ok(v) + } + fn count(&mut self, s: &str, what: &str) -> R { + match parse_int(s) { + None => perr(format!("line {}: {} is not an integer", self.i, what)), + Some((v, t)) => { + self.tok(t, what); + if v.is_neg() || v.bits() > 40 { + return perr(format!("line {}: {} cannot be a count", self.i, what)); + } + Ok(v.low_u64() as i64) + } + } + } + fn index(&mut self, s: &str, pos: usize, what: &str) -> R<()> { + // reading (e): parsed value compared with the position; canonicality after the shape pass + match parse_int(s) { + None => perr(format!("line {}: {} index `{}` is not an integer", self.i, what, s)), + Some((v, t)) => { + if v.is_neg() || v.bits() > 40 || v.low_u64() as usize != pos { + return perr(format!("line {}: {} index {} is not its position {}", self.i, what, s, pos)); + } + self.tok(t, what); + Ok(()) + } + } + } + fn scaled(&mut self, key: &str) -> R { + let t = self.key(key, 1)?; + match parse_scaled(t[0]) { + None => perr(format!("line {}: {} is not a scaled decimal", self.i, key)), + Some((s, tk)) => { + self.tok(tk, key); + Ok(s) + } + } + } +} + +/// Parses the lines from `case_name` through `acceptance_id` (shape pass plus token +/// canonicality and range flags). Used for standalone files and inside results. +fn parse_body(p: &mut P) -> R { + let body_start = p.i; + let name = p.key("case_name", 1)?[0]; + if !is_name(name) { + return perr("case_name grammar".into()); + } + let sem_start = p.i; + p.exact("begin semantic")?; + p.exact("model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG")?; + p.exact("energy_unit DIMENSIONLESS_HBAR_1")?; + let t = p.key("clock_dim", 1)?[0]; + let n = p.count(t, "clock_dim")?; + let et = p.key("clock_energies", 1)?; + let items = p.list(et[0])?; + if items.len() as i64 != n { + return perr(format!("clock_energies has {} entries, clock_dim {}", items.len(), n)); + } + let mut e = Vec::new(); + for it in &items { + e.push(p.rat(it, "clock energy")?); + } + p.exact("system_dim 2")?; + let ht = p.key("system_hamiltonian_pauli", 1)?; + let hi = p.list(ht[0])?; + if hi.len() != 4 { + return perr("system_hamiltonian_pauli needs 4 rationals".into()); + } + let mut hv = Vec::new(); + for it in &hi { + hv.push(p.rat(it, "system_hamiltonian_pauli component")?); + } + p.exact("interaction CLOCK_DIAGONAL_PAULI")?; + let mut v = Vec::new(); + for j in 0..n as usize { + let t = p.key("interaction_pauli", 2)?; + p.index(t[0], j, "interaction_pauli")?; + let comps = p.list(t[1])?; + if comps.len() != 3 { + return perr("interaction_pauli needs 3 rationals".into()); + } + let a = p.rat(&comps[0], "coupling component")?; + let b = p.rat(&comps[1], "coupling component")?; + let c = p.rat(&comps[2], "coupling component")?; + v.push([a, b, c]); + } + p.exact("constraint SUM_HC_HS_V")?; + p.exact("physical_state NULLSPACE_PROJECTION")?; + let rl = p.key("reference_clock_label", 1)?[0]; + if !is_label(rl) { + return perr("reference_clock_label grammar".into()); + } + let st = p.key("reference_system_state", 1)?; + let sv = p.list(st[0])?; + if sv.len() != 2 { + return perr("reference_system_state needs 2 complex rationals".into()); + } + let mut psi = Vec::new(); + for it in &sv { + match parse_crat(it) { + None => return perr("reference_system_state component is not a complex rational".into()), + Some((z, t)) => { + p.tok(t, "reference_system_state"); + if !z.re.within_limits() || !z.im.within_limits() { + p.param("reference_system_state outside the token limits".into()); + } + psi.push(z); + } + } + } + p.exact("clock_povm COVARIANT_DISCRETE")?; + let tau = { + let t = p.key("povm_tau_turns", 1)?; + p.rat(t[0], "povm_tau_turns")? + }; + let w = { + let t = p.key("povm_weight", 1)?; + p.rat(t[0], "povm_weight")? + }; + let t = p.key("clock_label_count", 1)?[0]; + let m = p.count(t, "clock_label_count")?; + let mut labels = Vec::new(); + for k in 0..m as usize { + let t = p.key("clock_label", 2)?; + p.index(t[0], k, "clock_label")?; + if !is_label(t[1]) { + return perr(format!("clock_label {} grammar", k)); + } + labels.push(t[1].to_string()); + } + p.exact("observables PAULI_X,PAULI_Y,PAULI_Z")?; + p.exact("end semantic")?; + let sem_end = p.i; + p.exact("begin acceptance")?; + let control_positive = match p.key("control_kind", 1)?[0] { + "POSITIVE" => true, + "NEGATIVE" => false, + _ => return perr("control_kind outside its set".into()), + }; + let target_ideal = match p.key("prediction_target", 1)?[0] { + "IDEAL" => true, + "INTERACTING" => false, + _ => return perr("prediction_target outside its set".into()), + }; + let expected_pass = match p.key("expected_outcome", 1)?[0] { + "PASS" => true, + "FAIL" => false, + _ => return perr("expected_outcome outside its set".into()), + }; + let ct = p.key("expected_failure_codes", 1)?[0]; + let expected_codes: Vec = if ct == "none" { + Vec::new() + } else { + let l = p.list(ct)?; + if l.iter().any(|c| !is_code(c)) { + return perr("expected_failure_codes token grammar".into()); + } + l + }; + let min_bound_kind = match BoundKind::parse(p.key("min_bound_kind", 1)?[0]) { + Some(b) => b, + None => return perr("min_bound_kind outside its set".into()), + }; + let tol_constraint = p.scaled("tol_constraint_residual")?; + let tol_povm = p.scaled("tol_povm_residual")?; + let tol_prob = p.scaled("tol_probability")?; + let tol_zero = p.scaled("tol_zero_probability")?; + let tol_schro = p.scaled("tol_schrodinger")?; + p.exact("end acceptance")?; + let acc_end = p.i; + let cid = p.key("case_id", 1)?[0]; + if !is_digest(cid) { + return perr("case_id is not a digest".into()); + } + let aid = p.key("acceptance_id", 1)?[0]; + if !is_digest(aid) { + return perr("acceptance_id is not a digest".into()); + } + let lines = p.lines; + Ok(Case { + name: name.to_string(), + n: n as usize, + e, + h0: hv[0].clone(), + h: [hv[1].clone(), hv[2].clone(), hv[3].clone()], + v, + ref_label: rl.to_string(), + ref_index: 0, + psi: [psi[0].clone(), psi[1].clone()], + tau, + w, + m: m as usize, + labels, + control_positive, + target_ideal, + expected_pass, + expected_codes, + min_bound_kind, + tol_constraint, + tol_povm, + tol_prob, + tol_zero, + tol_schro, + case_id: cid.to_string(), + acceptance_id: aid.to_string(), + body_lines: lines[body_start..p.i].to_vec(), + sem_lines: lines[sem_start..sem_end].to_vec(), + acc_lines: lines[sem_end..acc_end].to_vec(), + file_sha256: String::new(), + level_r: Vec::new(), + }) +} + +/// Rules 3 to 6 on a shape-valid, canonical, version-valid case. +fn rules_3_to_6(c: &mut Case, bad_param: Option) -> R<()> { + let ip = |m: String| Err((Refusal::InvalidParameter, m)); + if let Some(m) = bad_param { + return ip(m); + } + if c.n < 2 || c.n > 64 { + return ip(format!("clock_dim {} outside 2..64", c.n)); + } + for j in 1..c.n { + if c.e[j].cmp(&c.e[j - 1]) != std::cmp::Ordering::Greater { + return ip("clock_energies not strictly increasing".into()); + } + } + if c.psi[0].is_zero() && c.psi[1].is_zero() { + return ip("reference_system_state is zero".into()); + } + if c.w.signum() <= 0 { + return ip("povm_weight <= 0".into()); + } + if c.tau.signum() <= 0 { + return ip("povm_tau_turns <= 0".into()); + } + if c.m < 1 || c.m > 256 { + return ip(format!("clock_label_count {} outside 1..256", c.m)); + } + let mut ref_index = None; + for k in 0..c.m { + if c.labels[..k].contains(&c.labels[k]) { + return ip("duplicate clock label".into()); + } + if c.labels[k] == c.ref_label { + ref_index = Some(k); + } + } + match ref_index { + None => return ip("reference_clock_label not among the clock labels".into()), + Some(r) => c.ref_index = r, + } + // rule 4, per level, exact + let mut rs = Vec::new(); + for j in 0..c.n { + let nx = c.h[0].add(&c.v[j][0]); + let ny = c.h[1].add(&c.v[j][1]); + let nz = c.h[2].add(&c.v[j][2]); + let r2 = nx.mul(&nx).add(&ny.mul(&ny)).add(&nz.mul(&nz)); + match r2.sqrt_exact() { + Some(r) => rs.push(r), + None => return Err((Refusal::IrrationalSpectrum, format!("level {}: |h + v_j|^2 = {} is not a rational square", j, r2.text()))), + } + } + c.level_r = rs; + // rule 5 + let cid = tagged_hex(CASE_DOMAIN, &join_lf(&c.sem_lines)); + let aid = tagged_hex(ACC_DOMAIN, &join_lf(&c.acc_lines)); + if cid != c.case_id { + return Err((Refusal::IdMismatch, format!("case_id recomputes to {}", cid))); + } + if aid != c.acceptance_id { + return Err((Refusal::IdMismatch, format!("acceptance_id recomputes to {}", aid))); + } + // rule 6 + if c.expected_pass { + if !c.expected_codes.is_empty() { + return ip("expected_failure_codes must be none when expected_outcome PASS".into()); + } + } else { + if c.expected_codes.is_empty() { + return ip("expected_failure_codes empty with expected_outcome FAIL".into()); + } + for i in 1..c.expected_codes.len() { + if c.expected_codes[i - 1].as_bytes() >= c.expected_codes[i].as_bytes() { + return ip("expected_failure_codes not sorted or not unique".into()); + } + } + for code in &c.expected_codes { + if !FAILURE_CODES.contains(&code.as_str()) { + return ip(format!("{} is not an AT1_RESULT_V1 failure code", code)); + } + } + } + Ok(()) +} + +/// Parses and validates the lines of a body (case_name .. acceptance_id) that +/// sit after the three version lines (already checked by the caller). +pub fn validate_lines(lines: &[String], start: usize, bad_version: Option) -> R<(Case, usize)> { + let mut p = P { lines, i: start, noncanon: None, bad_param: None, bad_version }; + let mut c = parse_body(&mut p)?; + let end = p.i; + if let Some(m) = p.noncanon.take() { + return Err((Refusal::NonCanonical, m)); + } + if let Some(m) = p.bad_version.take() { + return Err((Refusal::UnsupportedVersion, m)); + } + rules_3_to_6(&mut c, p.bad_param.take())?; + Ok((c, end)) +} + +/// Full case file validation in contract order. +pub fn validate_bytes(bytes: &[u8]) -> R { + let lines = lines_checked(bytes).map_err(|m| (Refusal::ParseError, m))?; + let mut bad_version = None; + // reading (d): first token is the key (shape, step 1); the rest is the value (step 2) + let ver = [("OMEGA-AT1-CASE", "v1"), ("domain", CASE_DOMAIN), ("contract", "AT1_CASE_V1")]; + for (i, (k, val)) in ver.iter().enumerate() { + let l = lines.get(i).ok_or((Refusal::ParseError, "file too short".to_string()))?; + let t: Vec<&str> = l.split(' ').collect(); + if t[0] != *k || t.len() != 2 { + return Err((Refusal::ParseError, format!("line {}: expected version line with key {}", i + 1, k))); + } + if t[1] != *val && bad_version.is_none() { + bad_version = Some(format!("line {}: {} {} is not {}", i + 1, k, t[1], val)); + } + } + // shape of the remainder must be checked before the version value is reported + let mut p = P { lines: &lines, i: 3, noncanon: None, bad_param: None, bad_version }; + let mut c = parse_body(&mut p)?; + p.exact("end")?; + if p.i != lines.len() { + return perr(format!("line {}: content after `end`", p.i + 1)); + } + if let Some(m) = p.noncanon.take() { + return Err((Refusal::NonCanonical, m)); + } + if let Some(m) = p.bad_version.take() { + return Err((Refusal::UnsupportedVersion, m)); + } + rules_3_to_6(&mut c, p.bad_param.take())?; + c.file_sha256 = sha256_hex(bytes); + Ok(c) +} + +/// Rebuilds the exact bytes of the case file a result was made from (the result +/// copies every line except the three version lines and `end`). +pub fn case_bytes_from_body(body: &[String]) -> Vec { + let mut lines = vec!["OMEGA-AT1-CASE v1".to_string(), format!("domain {}", CASE_DOMAIN), "contract AT1_CASE_V1".to_string()]; + lines.extend_from_slice(body); + lines.push("end".into()); + join_lf(&lines) +} + +/// Case generator: canonical text with both identities computed. +#[derive(Clone, Debug)] +pub struct Spec { + pub name: String, + pub e: Vec, + pub h: [Q; 4], + pub v: Vec<[Q; 3]>, + pub ref_label: String, + pub psi: [Cq; 2], + pub tau: Q, + pub w: Q, + pub labels: Vec, + pub control_positive: bool, + pub target_ideal: bool, + pub expected_pass: bool, + pub codes: Vec, + pub min_bk: String, + pub tols: [String; 5], +} + +impl Spec { + /// The base clock B of AT1_SPEC section 13 with zero coupling. + pub fn base(name: &str) -> Spec { + let z = Q::zero; + Spec { + name: name.into(), + e: vec![Q::frac(-3, 2), Q::frac(-1, 2), Q::frac(1, 2), Q::frac(3, 2)], + h: [z(), z(), z(), Q::frac(1, 2)], + v: vec![[z(), z(), z()], [z(), z(), z()], [z(), z(), z()], [z(), z(), z()]], + ref_label: "t0".into(), + psi: [Cq::real(Q::one()), Cq::real(Q::one())], + tau: Q::frac(1, 4), + w: Q::one(), + labels: (0..4).map(|k| format!("t{}", k)).collect(), + control_positive: true, + target_ideal: false, + expected_pass: true, + codes: Vec::new(), + min_bk: "ESTIMATED".into(), + tols: ["1@12".into(), "1@12".into(), "1@12".into(), "1@9".into(), "1@12".into()], + } + } + pub fn negative(mut self, codes: &[&str]) -> Spec { + self.control_positive = false; + self.expected_pass = false; + self.codes = codes.iter().map(|s| s.to_string()).collect(); + self + } + pub fn lines(&self) -> Vec { + // the empty list is written `none` (AT1_CASE_V1 section 2) + let qs = |v: &[Q]| if v.is_empty() { "none".to_string() } else { v.iter().map(|q| q.text()).collect::>().join(",") }; + let cs = |z: &Cq| format!("({};{})", z.re.text(), z.im.text()); + let mut sem = vec!["begin semantic".to_string(), "model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG".into(), "energy_unit DIMENSIONLESS_HBAR_1".into()]; + sem.push(format!("clock_dim {}", self.e.len())); + sem.push(format!("clock_energies {}", qs(&self.e))); + sem.push("system_dim 2".into()); + sem.push(format!("system_hamiltonian_pauli {}", qs(&self.h))); + sem.push("interaction CLOCK_DIAGONAL_PAULI".into()); + for (j, v) in self.v.iter().enumerate() { + sem.push(format!("interaction_pauli {} {}", j, qs(v))); + } + sem.push("constraint SUM_HC_HS_V".into()); + sem.push("physical_state NULLSPACE_PROJECTION".into()); + sem.push(format!("reference_clock_label {}", self.ref_label)); + sem.push(format!("reference_system_state {},{}", cs(&self.psi[0]), cs(&self.psi[1]))); + sem.push("clock_povm COVARIANT_DISCRETE".into()); + sem.push(format!("povm_tau_turns {}", self.tau.text())); + sem.push(format!("povm_weight {}", self.w.text())); + sem.push(format!("clock_label_count {}", self.labels.len())); + for (k, l) in self.labels.iter().enumerate() { + sem.push(format!("clock_label {} {}", k, l)); + } + sem.push("observables PAULI_X,PAULI_Y,PAULI_Z".into()); + sem.push("end semantic".into()); + let acc = vec![ + "begin acceptance".to_string(), + format!("control_kind {}", if self.control_positive { "POSITIVE" } else { "NEGATIVE" }), + format!("prediction_target {}", if self.target_ideal { "IDEAL" } else { "INTERACTING" }), + format!("expected_outcome {}", if self.expected_pass { "PASS" } else { "FAIL" }), + format!("expected_failure_codes {}", if self.codes.is_empty() { "none".to_string() } else { self.codes.join(",") }), + format!("min_bound_kind {}", self.min_bk), + format!("tol_constraint_residual {}", self.tols[0]), + format!("tol_povm_residual {}", self.tols[1]), + format!("tol_probability {}", self.tols[2]), + format!("tol_zero_probability {}", self.tols[3]), + format!("tol_schrodinger {}", self.tols[4]), + "end acceptance".to_string(), + ]; + let mut out = vec!["OMEGA-AT1-CASE v1".to_string(), format!("domain {}", CASE_DOMAIN), "contract AT1_CASE_V1".into(), format!("case_name {}", self.name)]; + out.extend(sem); + out.extend(acc); + out.push("case_id 0".into()); + out.push("acceptance_id 0".into()); + out.push("end".into()); + recompute_ids(&mut out); + out + } + pub fn bytes(&self) -> Vec { + join_lf(&self.lines()) + } +} + +/// Rewrites the case_id and acceptance_id lines of a (possibly defective) case +/// text from its current semantic and acceptance blocks, when they can be found. +pub fn recompute_ids(lines: &mut [String]) { + let find = |s: &str| lines.iter().position(|l| l == s); + if let (Some(a), Some(b)) = (find("begin semantic"), find("end semantic")) { + if a < b { + let cid = tagged_hex(CASE_DOMAIN, &join_lf(&lines[a..=b])); + if let Some(i) = lines.iter().position(|l| l.starts_with("case_id ")) { + lines[i] = format!("case_id {}", cid); + } + } + } + let find = |s: &str| lines.iter().position(|l| l == s); + if let (Some(a), Some(b)) = (find("begin acceptance"), find("end acceptance")) { + if a < b { + let aid = tagged_hex(ACC_DOMAIN, &join_lf(&lines[a..=b])); + if let Some(i) = lines.iter().position(|l| l.starts_with("acceptance_id ")) { + lines[i] = format!("acceptance_id {}", aid); + } + } + } +} diff --git a/research/atemporal/at1/evaluator/src/corpus.rs b/research/atemporal/at1/evaluator/src/corpus.rs new file mode 100644 index 000000000..38b946912 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/corpus.rs @@ -0,0 +1,399 @@ +//! The public AT-1 case corpus: one file per charter case class and per +//! AT1_SPEC section 13 row, generated deterministically (no shell edits, so it +//! regenerates byte-identically on Linux and macOS). Positive and negative +//! controls come from the generator; refusal controls are single-defect edits +//! of the worked example with identities recomputed (except identity rows). + +use crate::case::Spec; +use crate::rat::{Cq, Q}; +use crate::text::join_lf; + +pub struct Row { + pub path: String, + pub class: String, + /// `AT1_CASE_OK` or `AT1_CASE_REFUSED ` + pub expect: String, + pub bytes: Vec, +} + +fn q(n: i64, d: i64) -> Q { + Q::frac(n, d) +} +fn z() -> Q { + Q::zero() +} +fn rho() -> [Q; 3] { + [q(3, 10), z(), q(-1, 10)] +} +fn c(re: Q, im: Q) -> Cq { + Cq::new(re, im) +} + +/// The worked example `at1-kat-rotated-level-n4` (AT1_CASE_V1 section 6). +pub fn kat() -> Spec { + let mut s = Spec::base("at1-kat-rotated-level-n4"); + s.v[2] = rho(); + s +} +fn p2(name: &str) -> Spec { + let mut s = kat(); + s.name = name.into(); + s +} +fn p3(name: &str) -> Spec { + let mut s = Spec::base(name); + s.e = vec![q(-1, 2), q(1, 2), q(3, 2)]; + s.v = vec![rho(), [z(), q(3, 10), q(-1, 10)], [q(6, 5), z(), q(2, 5)]]; + s.w = q(3, 4); + s +} +fn p3b(name: &str) -> Spec { + let mut s = Spec::base(name); + s.e = vec![q(-1, 2), z(), q(1, 2)]; + s.v = vec![[z(), z(), z()], [z(), z(), q(-1, 2)], rho()]; + s.psi = [c(Q::one(), z()), c(z(), Q::one())]; + s.tau = q(1, 2); + s.w = q(3, 4); + s +} +fn p4(name: &str) -> Spec { + let mut s = p2(name); + s.psi = [c(Q::one(), z()), c(q(3, 5), q(4, 5))]; + s.ref_label = "t1".into(); + s +} +fn p5(name: &str) -> Spec { + let mut s = Spec::base(name); + s.e = vec![q(-524289, 1048574), q(524285, 1048574)]; + s.h = [q(1, 524287), z(), z(), q(1, 2)]; + s.v = vec![[z(), z(), z()], [q(524175, 1048354), q(724, 524177), q(-1, 2)]]; + s.w = q(1, 2); + s +} +fn p6(name: &str) -> Spec { + let mut s = Spec::base(name); + s.v = vec![[z(), z(), Q::one()], [z(), z(), q(1, 1048576)], rho(), [z(), z(), z()]]; + s +} +fn ideal_neg(mut s: Spec) -> Spec { + s.target_ideal = true; + s.negative(&["SCHRODINGER_DEVIATION_EXCEEDED"]) +} + +fn ok(path: &str, class: &str, s: &Spec) -> Row { + Row { path: path.into(), class: class.into(), expect: "AT1_CASE_OK".into(), bytes: s.bytes() } +} + +/// Valid cases: (path, class, spec). +pub fn valid_specs() -> Vec<(String, String, Spec)> { + let mut v: Vec<(&str, &str, Spec)> = Vec::new(); + // ---- positive (expected PASS, codes none) ---- + let mut s = Spec::base("at1-p1a-zero-coupling-interacting"); + v.push(("positive/P1a-zero-coupling-interacting.case", "P1", s.clone())); + s.name = "at1-p1b-zero-coupling-ideal".into(); + s.target_ideal = true; + v.push(("positive/P1b-zero-coupling-ideal.case", "P1", s)); + let mut s = Spec::base("at1-p1c-spectator-coupling-ideal"); + s.v[0] = [z(), z(), q(1, 2)]; + s.v[3] = rho(); + s.target_ideal = true; + v.push(("positive/P1c-spectator-coupling-ideal.case", "P1", s)); + v.push(("positive/P2-kat-rotated-level-n4.case", "P2", kat())); + let mut s = p2("at1-p2-t4-global-phase-i"); + s.psi = [c(z(), Q::one()), c(z(), Q::one())]; + v.push(("positive/P2t4-global-phase-i.case", "P2", s)); + let mut s = p2("at1-p2-t5-scale-2"); + s.psi = [c(q(2, 1), z()), c(q(2, 1), z())]; + v.push(("positive/P2t5-scale-2.case", "P2", s)); + v.push(("positive/P3-every-level-coupled.case", "P3", p3("at1-p3-every-level-coupled"))); + v.push(("positive/P3b-degenerate-level.case", "P3", p3b("at1-p3b-degenerate-level"))); + v.push(("positive/P4-complex-psi-ref-t1.case", "P4", p4("at1-p4-complex-psi-ref-t1"))); + let mut s = p4("at1-p4-t7-ref-t0"); + s.ref_label = "t0".into(); + v.push(("positive/P4t7-complex-psi-ref-t0.case", "P4", s)); + v.push(("positive/P5-large-rationals.case", "P5", p5("at1-p5-large-rationals"))); + v.push(("positive/P6-near-miss-energies.case", "P6", p6("at1-p6-near-miss-energies"))); + // ---- negative (expected FAIL, exact code sets) ---- + v.push(("negative/N1-p2-target-ideal.case", "N1", ideal_neg(p2("at1-n1-p2-target-ideal")))); + v.push(("negative/N1b-p3-target-ideal.case", "N1", ideal_neg(p3("at1-n1b-p3-target-ideal")))); + v.push(("negative/N1c-p3b-target-ideal.case", "N1", ideal_neg(p3b("at1-n1c-p3b-target-ideal")))); + v.push(("negative/N1d-p4-target-ideal.case", "N1", ideal_neg(p4("at1-n1d-p4-target-ideal")))); + v.push(("negative/N1e-p5-target-ideal.case", "N1", ideal_neg(p5("at1-n1e-p5-target-ideal")))); + v.push(("negative/N1f-p6-target-ideal.case", "N1", ideal_neg(p6("at1-n1f-p6-target-ideal")))); + let mut s = Spec::base("at1-n2-every-level-out"); + s.v[1] = [z(), z(), q(1, 2)]; + s.v[2] = [z(), z(), q(1, 2)]; + v.push(("negative/N2-every-level-out.case", "N2", s.negative(&["TRIVIAL_PHYSICAL_STATE"]))); + let mut s = Spec::base("at1-n3-zero-label"); + s.v[2] = [z(), z(), q(-1, 1)]; + v.push(("negative/N3-zero-label.case", "N3", s.negative(&["CONDITIONAL_UNDEFINED"]))); + let mut s = p2("at1-n4a-wrong-weight"); + s.w = q(1, 2); + v.push(("negative/N4a-wrong-weight.case", "N4", s.negative(&["POVM_NORMALIZATION_EXCEEDED", "PROBABILITY_SUM_EXCEEDED"]))); + let mut s = p2("at1-n4b-broken-clock-tau3"); + s.tau = q(1, 3); + v.push(("negative/N4b-broken-clock-tau3.case", "N4", s.negative(&["POVM_NORMALIZATION_EXCEEDED", "PROBABILITY_SUM_EXCEEDED"]))); + let mut s = p2("at1-n5-precision-demand"); + s.min_bk = "RIGOROUS".into(); + v.push(("negative/N5-precision-demand.case", "N5", s.negative(&["BOUND_KIND_INSUFFICIENT"]))); + let mut s = Spec::base("at1-n6-zero-projection"); + s.v[1] = [z(), z(), q(1, 2)]; + s.v[2] = rho(); + s.psi = [c(q(3, 1), z()), c(Q::one(), z())]; + v.push(("negative/N6-zero-projection.case", "N6", s.negative(&["TRIVIAL_PHYSICAL_STATE"]))); + v.into_iter().map(|(a, b, s)| (a.to_string(), b.to_string(), s)).collect() +} + +fn kat_lines() -> Vec { + kat().lines() +} + +/// Edits the worked example line by line, then recomputes both identities. +fn edit(f: impl FnOnce(&mut Vec)) -> Vec { + let mut l = kat_lines(); + f(&mut l); + crate::case::recompute_ids(&mut l); + join_lf(&l) +} +/// Same without recomputing identities (identity rows and version rows that do not touch the blocks). +fn edit_raw(f: impl FnOnce(&mut Vec)) -> Vec { + let mut l = kat_lines(); + f(&mut l); + join_lf(&l) +} +fn sub(l: &mut Vec, from: &str, to: &str) { + let i = l.iter().position(|x| x == from).unwrap_or_else(|| panic!("corpus edit: line `{}` not found", from)); + l[i] = to.to_string(); +} +fn sub_prefix(l: &mut Vec, prefix: &str, to: &str) { + let i = l.iter().position(|x| x.starts_with(prefix)).unwrap_or_else(|| panic!("corpus edit: prefix `{}` not found", prefix)); + l[i] = to.to_string(); +} +fn del(l: &mut Vec, line: &str) { + let i = l.iter().position(|x| x == line).unwrap_or_else(|| panic!("corpus edit: line `{}` not found", line)); + l.remove(i); +} +fn ins_after(l: &mut Vec, after: &str, new: &str) { + let i = l.iter().position(|x| x == after).unwrap_or_else(|| panic!("corpus edit: line `{}` not found", after)); + l.insert(i + 1, new.to_string()); +} +fn flip_hex(l: &mut Vec, key: &str) { + let i = l.iter().position(|x| x.starts_with(key)).unwrap(); + let mut b = l[i].clone().into_bytes(); + let p = key.len(); + b[p] = if b[p] == b'0' { b'1' } else { b'0' }; + l[i] = String::from_utf8(b).unwrap(); +} + +pub const V1: &str = "interaction_pauli 1 0/1,0/1,0/1"; +pub const V2: &str = "interaction_pauli 2 3/10,0/1,-1/10"; +pub const V3: &str = "interaction_pauli 3 0/1,0/1,0/1"; + +pub fn refusal_rows() -> Vec { + let mut v: Vec<(&str, &str, &str, Vec)> = Vec::new(); + let pe = "CASE_PARSE_ERROR"; + let nc = "CASE_NONCANONICAL"; + let uv = "CASE_UNSUPPORTED_VERSION"; + let ip = "CASE_INVALID_PARAMETER"; + let ir = "CASE_IRRATIONAL_SPECTRUM"; + let id = "CASE_ID_MISMATCH"; + // ---- AT1_SPEC 13.5 rows ---- + v.push(("R0a-line-removed", "R0", pe, edit(|l| del(l, "povm_weight 1/1")))); + let mut b = Vec::new(); + for (i, s) in kat_lines().iter().enumerate() { + b.extend_from_slice(s.as_bytes()); + if i == 6 { + b.push(b'\r'); + } + b.push(b'\n'); + } + v.push(("R0b-one-crlf-line", "R0", pe, b)); + v.push(("R1-noncanonical-tau", "R1", nc, edit(|l| sub(l, "povm_tau_turns 1/4", "povm_tau_turns 2/8")))); + v.push(("R2-header-v2", "R2", uv, edit_raw(|l| sub(l, "OMEGA-AT1-CASE v1", "OMEGA-AT1-CASE v2")))); + v.push(("R2b-domain-v2", "R2", uv, edit_raw(|l| sub(l, "domain omega.at1.case.v1", "domain omega.at1.case.v2")))); + v.push(("R2c-contract-v2", "R2", uv, edit_raw(|l| sub(l, "contract AT1_CASE_V1", "contract AT1_CASE_V2")))); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = (0..65).map(|i| Q::int(i)).collect(); + s.v = (0..65).map(|j| if j == 2 { rho() } else { [z(), z(), z()] }).collect(); + v.push(("R3-clock-dim-65", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = vec![q(-1, 2)]; + s.v = vec![[z(), z(), z()]]; + v.push(("R3b-clock-dim-1", "R3", ip, s.bytes())); + v.push(("R4-irrational-level", "R4", ir, edit(|l| sub(l, V2, "interaction_pauli 2 1/2,0/1,-1/10")))); + v.push(("R4b-irrational-h", "R4", ir, edit(|l| sub(l, "system_hamiltonian_pauli 0/1,0/1,0/1,1/2", "system_hamiltonian_pauli 0/1,1/1,0/1,1/1")))); + v.push(("R5-case-id-digit", "R5", id, edit_raw(|l| flip_hex(l, "case_id ")))); + v.push(("R5b-acceptance-id-digit", "R5", id, edit_raw(|l| flip_hex(l, "acceptance_id ")))); + v.push(("R6-fail-without-codes", "R6", ip, edit(|l| sub(l, "expected_outcome PASS", "expected_outcome FAIL")))); + v.push(("R6b-code-outside-set", "R6", ip, edit(|l| { + sub(l, "control_kind POSITIVE", "control_kind NEGATIVE"); + sub(l, "expected_outcome PASS", "expected_outcome FAIL"); + sub(l, "expected_failure_codes none", "expected_failure_codes ORACLE_UNAVAILABLE"); + }))); + v.push(("R7-coupling-count", "R7", pe, edit(|l| del(l, V3)))); + v.push(("R8-coupling-order", "R8", pe, edit(|l| { + let a = l.iter().position(|x| x == V1).unwrap(); + l.swap(a, a + 1); + }))); + v.push(("R9-interaction-none", "R9", pe, edit(|l| sub(l, "interaction CLOCK_DIAGONAL_PAULI", "interaction NONE")))); + v.push(("R10-at0-model-family", "R10", pe, edit(|l| sub(l, "model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG", "model_family PAGE_WOOTTERS_FINITE_IDEAL")))); + v.push(("R11-at0-constraint", "R11", pe, edit(|l| sub(l, "constraint SUM_HC_HS_V", "constraint SUM_HC_HS")))); + v.push(("R12-target-both", "R12", pe, edit(|l| sub(l, "prediction_target INTERACTING", "prediction_target BOTH")))); + v.push(("R12b-target-missing", "R12", pe, edit(|l| del(l, "prediction_target INTERACTING")))); + v.push(("R13-noncanonical-coupling", "R13", nc, edit(|l| sub(l, V2, "interaction_pauli 2 6/20,0/1,-1/10")))); + v.push(("R14-coupling-over-limit", "R14", ip, edit(|l| sub(l, V3, "interaction_pauli 3 0/1,0/1,1048577/1")))); + // ---- AT-0 manifest rows re-expressed on P2 (AT1_SPEC 13.5 second table) ---- + v.push(("R01-noncanonical-rational", "R1", nc, edit(|l| sub(l, "povm_weight 1/1", "povm_weight 2/2")))); + v.push(("R02-header-v2", "R2", uv, edit_raw(|l| sub(l, "OMEGA-AT1-CASE v1", "OMEGA-AT1-CASE v2")))); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = vec![q(-1, 2)]; + s.v = vec![[z(), z(), z()]]; + v.push(("R03-clock-dim-1", "R3", ip, s.bytes())); + v.push(("R04-irrational-spectrum", "R4", ir, edit(|l| sub(l, "system_hamiltonian_pauli 0/1,0/1,0/1,1/2", "system_hamiltonian_pauli 0/1,1/1,0/1,1/1")))); + v.push(("R05-wrong-case-id", "R5", id, edit_raw(|l| flip_hex(l, "case_id ")))); + let mut s = p2("at1-kat-rotated-level-n4"); + s.codes = vec!["TRIVIAL_PHYSICAL_STATE".into()]; + v.push(("R06-codes-with-pass", "R6", ip, s.bytes())); + let s = p2("at1-kat-rotated-level-n4").negative(&["PROBABILITY_SUM_EXCEEDED", "POVM_NORMALIZATION_EXCEEDED"]); + v.push(("R06b-codes-unsorted", "R6", ip, s.bytes())); + let s = p2("at1-kat-rotated-level-n4").negative(&["FOO_BAR"]); + v.push(("R06c-codes-unknown", "R6", ip, s.bytes())); + let s = p2("at1-kat-rotated-level-n4").negative(&[]); + v.push(("R06d-fail-without-codes", "R6", ip, s.bytes())); + let mut b = Vec::new(); + for s in kat_lines() { + b.extend_from_slice(s.as_bytes()); + b.extend_from_slice(b"\r\n"); + } + v.push(("R07-crlf", "R0", pe, b)); + v.push(("R08-tab", "R0", pe, edit(|l| sub(l, "clock_dim 4", "clock_dim\t4")))); + v.push(("R09-blank-line", "R0", pe, edit(|l| ins_after(l, "begin semantic", "")))); + v.push(("R10-trailing-space", "R0", pe, edit(|l| sub(l, "system_dim 2", "system_dim 2 ")))); + v.push(("R11-double-space", "R0", pe, edit(|l| sub(l, "system_dim 2", "system_dim 2")))); + v.push(("R12-missing-key", "R0", pe, edit(|l| del(l, "interaction CLOCK_DIAGONAL_PAULI")))); + v.push(("R13-unknown-key", "R0", pe, edit(|l| ins_after(l, "interaction CLOCK_DIAGONAL_PAULI", "foo bar")))); + v.push(("R14-duplicate-key", "R0", pe, edit(|l| ins_after(l, "interaction CLOCK_DIAGONAL_PAULI", "interaction CLOCK_DIAGONAL_PAULI")))); + v.push(("R15-out-of-order", "R0", pe, edit(|l| { + del(l, "interaction CLOCK_DIAGONAL_PAULI"); + ins_after(l, "constraint SUM_HC_HS_V", "interaction CLOCK_DIAGONAL_PAULI"); + }))); + v.push(("R16-float-text", "R0", pe, edit(|l| sub(l, "povm_tau_turns 1/4", "povm_tau_turns 0.25")))); + v.push(("R17-noncanonical-integer", "R1", nc, edit(|l| sub(l, "clock_dim 4", "clock_dim 04")))); + v.push(("R18-noncanonical-scaled", "R1", nc, edit(|l| sub(l, "tol_probability 1@12", "tol_probability 10@13")))); + v.push(("R19-label-uppercase", "R0", pe, edit(|l| { + sub(l, "clock_label 0 t0", "clock_label 0 T0"); + sub(l, "reference_clock_label t0", "reference_clock_label T0"); + }))); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = vec![q(-1, 2), q(-3, 2), q(1, 2), q(3, 2)]; + v.push(("R20-energies-not-increasing", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.psi = [c(z(), z()), c(z(), z())]; + v.push(("R21-psi-zero", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.tau = z(); + v.push(("R22-tau-zero", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.w = q(-1, 1); + v.push(("R23-weight-negative", "R3", ip, s.bytes())); + v.push(("R24-wrong-domain", "R2", uv, edit_raw(|l| sub(l, "domain omega.at1.case.v1", "domain omega.at1.case.v2")))); + v.push(("R25-wrong-contract", "R2", uv, edit_raw(|l| sub(l, "contract AT1_CASE_V1", "contract AT1_CASE_V2")))); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = (0..65).map(|i| Q::int(i)).collect(); + s.v = (0..65).map(|j| if j == 2 { rho() } else { [z(), z(), z()] }).collect(); + v.push(("R26-clock-dim-65", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = vec![q(-1048577, 1), q(-1, 2), q(1, 2), q(3, 2)]; + v.push(("R27-rational-over-limit", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.labels = vec!["t0".into(), "t1".into(), "t1".into(), "t3".into()]; + v.push(("R28-duplicate-label", "R3", ip, s.bytes())); + let mut s = p2("at1-kat-rotated-level-n4"); + s.ref_label = "t9".into(); + v.push(("R29-ref-label-missing", "R3", ip, s.bytes())); + v.push(("R30-negative-zero", "R1", nc, edit(|l| sub(l, "system_hamiltonian_pauli 0/1,0/1,0/1,1/2", "system_hamiltonian_pauli -0/1,0/1,0/1,1/2")))); + v.push(("R31-control-kind-bad", "R0", pe, edit(|l| sub(l, "control_kind POSITIVE", "control_kind MAYBE")))); + v.push(("R32-case-name-two-tokens", "R0", pe, edit(|l| sub(l, "case_name at1-kat-rotated-level-n4", "case_name at1 kat")))); + let mut b = kat().bytes(); + b.pop(); + v.push(("R33-missing-final-lf", "R0", pe, b)); + v.push(("R34-empty", "R0", pe, Vec::new())); + v.push(("R35-trailing-line", "R0", pe, edit_raw(|l| l.push("extra".into())))); + v.push(("R36-label-count-mismatch", "R0", pe, edit(|l| sub(l, "clock_label_count 4", "clock_label_count 5")))); + v.push(("R37-model-family-bad", "R0", pe, edit(|l| sub(l, "model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG", "model_family PAGE_WOOTTERS_INTERACTING")))); + v.push(("R38-acceptance-id-wrong", "R5", id, edit_raw(|l| flip_hex(l, "acceptance_id ")))); + v.push(("R39-huge-digits-tau", "R3", ip, edit(|l| sub(l, "povm_tau_turns 1/4", "povm_tau_turns 340282366920938463463374607431768211457/4")))); + // ---- charter section 8 readings d and e ---- + v.push(("X1-at0-header", "Rd", pe, edit_raw(|l| sub(l, "OMEGA-AT1-CASE v1", "OMEGA-AT0-CASE v1")))); + v.push(("X2-at0-domain", "Rd", uv, edit_raw(|l| sub(l, "domain omega.at1.case.v1", "domain omega.at0.case.v1")))); + v.push(("X3-coupling-index-01", "Re", nc, edit(|l| sub(l, V1, "interaction_pauli 01 0/1,0/1,0/1")))); + v.push(("X4-coupling-index-a", "Re", pe, edit(|l| sub(l, V1, "interaction_pauli a 0/1,0/1,0/1")))); + v.push(("X5-coupling-index-wrong", "Re", pe, edit(|l| sub(l, V1, "interaction_pauli 2 0/1,0/1,0/1")))); + v.push(("X6-clock-label-index-01", "Re", nc, edit(|l| sub_prefix(l, "clock_label 1 ", "clock_label 01 t1")))); + // review finding 5: `none` is the empty list, so clock_dim 0 with no energies is a range error + let mut s = p2("at1-kat-rotated-level-n4"); + s.e = Vec::new(); + s.v = Vec::new(); + v.push(("X7-clock-dim-0-none", "R3", ip, s.bytes())); + v.into_iter() + .map(|(n, cl, code, b)| Row { path: format!("refuse/{}.case", n), class: cl.into(), expect: format!("AT1_CASE_REFUSED {}", code), bytes: b }) + .collect() +} + +pub fn public_rows() -> Vec { + let mut v: Vec = valid_specs().iter().map(|(p, c, s)| ok(p, c, s)).collect(); + v.extend(refusal_rows()); + v +} + +/// Exact hand tables of AT1_SPEC section 13.2 (p, P(X+), P(Y+), P(Z+), ideal X+, Y+, Z+), +/// transcribed for the shadow self-test. Values are "n/d". +pub fn hand_tables() -> Vec<(&'static str, Vec<[&'static str; 7]>)> { + let p1 = vec![ + ["1/4", "1", "1/2", "1/2", "1", "1/2", "1/2"], + ["1/4", "1/2", "1", "1/2", "1/2", "1", "1/2"], + ["1/4", "0", "1/2", "1/2", "0", "1/2", "1/2"], + ["1/4", "1/2", "0", "1/2", "1/2", "0", "1/2"], + ]; + vec![ + ("positive/P1a-zero-coupling-interacting.case", p1.clone()), + ("positive/P1b-zero-coupling-ideal.case", p1.clone()), + ("positive/P1c-spectator-coupling-ideal.case", p1), + ("positive/P2-kat-rotated-level-n4.case", vec![ + ["5/28", "49/50", "1/2", "16/25", "1", "1/2", "1/2"], + ["1/4", "29/70", "13/14", "26/35", "1/2", "1", "1/2"], + ["9/28", "1/10", "1/2", "4/5", "0", "1/2", "1/2"], + ["1/4", "29/70", "1/14", "26/35", "1/2", "0", "1/2"], + ]), + ("positive/P3-every-level-coupled.case", vec![ + ["107/280", "98/107", "65/214", "65/214", "1", "1/2", "1/2"], + ["53/280", "37/53", "101/106", "61/106", "1/2", "1", "1/2"], + ["5/56", "8/25", "37/50", "9/10", "0", "1/2", "1/2"], + ["19/56", "37/95", "17/190", "29/38", "1/2", "0", "1/2"], + ]), + ("positive/P3b-degenerate-level.case", vec![ + ["41/80", "29/82", "40/41", "45/82", "1/2", "1", "1/2"], + ["19/80", "1/38", "10/19", "25/38", "1/2", "0", "1/2"], + ["1/80", "1/2", "0", "1/2", "1/2", "1", "1/2"], + ["19/80", "37/38", "10/19", "13/38", "1/2", "0", "1/2"], + ]), + ("positive/P4-complex-psi-ref-t1.case", vec![ + ["29/164", "277/290", "17/58", "73/145", "9/10", "1/5", "1/2"], + ["37/164", "197/370", "73/74", "113/185", "4/5", "9/10", "1/2"], + ["53/164", "37/530", "65/106", "193/265", "1/10", "4/5", "1/2"], + ["45/164", "13/50", "1/10", "17/25", "1/5", "1/10", "1/2"], + ]), + ("positive/P5-large-rationals.case", vec![ + ["524181/2096716", "274763624041/549527248074", "274004612845/549527248074", "524180/524181", "1", "1/2", "1/2"], + ["522731/2096716", "274761527333/548007134774", "274004612845/548007134774", "522730/522731", "1/2", "1", "1/2"], + ["524177/2096716", "274759430625/549523054658", "275520532729/549523054658", "524176/524177", "0", "1/2", "1/2"], + ["525627/2096716", "274761527333/551043167958", "275520532729/551043167958", "525626/525627", "1/2", "0", "1/2"], + ]), + ("positive/P6-near-miss-energies.case", vec![ + ["5/28", "49/50", "1/2", "16/25", "1", "1/2", "1/2"], + ["9/28", "1/10", "1/2", "4/5", "1/2", "1", "1/2"], + ["5/28", "49/50", "1/2", "16/25", "0", "1/2", "1/2"], + ["9/28", "1/10", "1/2", "4/5", "1/2", "0", "1/2"], + ]), + ] +} diff --git a/research/atemporal/at1/evaluator/src/dd.rs b/research/atemporal/at1/evaluator/src/dd.rs new file mode 100644 index 000000000..eff1fedd6 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/dd.rs @@ -0,0 +1,225 @@ +//! Double-double arithmetic (about 106 bits), deterministic on every IEEE-754 +//! platform: only +, -, *, / and fused multiply-add (f64::mul_add, which is +//! correctly rounded by definition). Used by the shadow model when a phase is +//! not a quarter turn (then exact Gaussian-rational arithmetic is impossible). + +use crate::big::Int; +use crate::rat::Q; + +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Dd { + pub hi: f64, + pub lo: f64, +} + +fn two_sum(a: f64, b: f64) -> (f64, f64) { + let s = a + b; + let bb = s - a; + (s, (a - (s - bb)) + (b - bb)) +} +fn quick_two_sum(a: f64, b: f64) -> (f64, f64) { + let s = a + b; + (s, b - (s - a)) +} +fn two_prod(a: f64, b: f64) -> (f64, f64) { + let p = a * b; + (p, a.mul_add(b, -p)) +} + +pub fn ldexp(mut x: f64, mut e: i32) -> f64 { + while e > 1000 { + x *= f64::from_bits(((1000 + 1023) as u64) << 52); + e -= 1000; + } + while e < -1000 { + x *= f64::from_bits(((-1000i32 + 1023) as u64) << 52); + e += 1000; + } + x * f64::from_bits(((e + 1023) as u64) << 52) +} + +pub const PI2: Dd = Dd { hi: 6.283185307179586232e+00, lo: 2.449293598294706414e-16 }; + +impl Dd { + pub fn new(hi: f64) -> Dd { + Dd { hi, lo: 0.0 } + } + pub fn zero() -> Dd { + Dd::new(0.0) + } + pub fn one() -> Dd { + Dd::new(1.0) + } + pub fn add(self, o: Dd) -> Dd { + let (s, e) = two_sum(self.hi, o.hi); + let (t, f) = two_sum(self.lo, o.lo); + let e = e + t; + let (s, e) = quick_two_sum(s, e); + let e = e + f; + let (hi, lo) = quick_two_sum(s, e); + Dd { hi, lo } + } + pub fn neg(self) -> Dd { + Dd { hi: -self.hi, lo: -self.lo } + } + pub fn sub(self, o: Dd) -> Dd { + self.add(o.neg()) + } + pub fn mul(self, o: Dd) -> Dd { + let (p, e) = two_prod(self.hi, o.hi); + let e = e + (self.hi * o.lo + self.lo * o.hi); + let (hi, lo) = quick_two_sum(p, e); + Dd { hi, lo } + } + pub fn mul_f(self, f: f64) -> Dd { + self.mul(Dd::new(f)) + } + pub fn div(self, o: Dd) -> Dd { + let q1 = self.hi / o.hi; + let r = self.sub(o.mul_f(q1)); + let q2 = r.hi / o.hi; + let r = r.sub(o.mul_f(q2)); + let q3 = r.hi / o.hi; + let (hi, lo) = quick_two_sum(q1, q2); + Dd { hi, lo }.add(Dd::new(q3)) + } + pub fn sqrt(self) -> Dd { + if self.hi <= 0.0 { + return Dd::zero(); + } + let x = 1.0 / self.hi.sqrt(); + let ax = self.hi * x; + let (p, e) = two_prod(ax, ax); + let diff = self.sub(Dd { hi: p, lo: e }); + Dd::new(ax).add(Dd::new(diff.hi * (x * 0.5))) + } + pub fn abs(self) -> Dd { + if self.hi < 0.0 || (self.hi == 0.0 && self.lo < 0.0) { + self.neg() + } else { + self + } + } + pub fn to_q(self) -> Q { + Q::from_f64_bits(self.hi.to_bits()).add(&Q::from_f64_bits(self.lo.to_bits())) + } + /// Conversion of an exact rational, relative error about 2^-110. + pub fn from_q(q: &Q) -> Dd { + if q.is_zero() { + return Dd::zero(); + } + let neg = q.n.is_neg(); + let n = q.n.abs(); + let d = &q.d; + let k: i64 = 120 + d.bits() as i64 - n.bits() as i64; + let big = if k >= 0 { n.shl(k as u32).divrem(d).0 } else { n.divrem(&d.shl((-k) as u32)).0 }; + let (top, sh) = big.top_bits(53); + let hi_int = Int::from_u64(top).shl(sh as u32); + let rest = big.sub(&hi_int); + let (rtop, rsh) = rest.top_bits(53); + let hi = ldexp(top as f64, sh - k as i32); + let lo = ldexp(rtop as f64, rsh - k as i32); + let r = Dd::new(hi).add(Dd::new(lo)); + if neg { + r.neg() + } else { + r + } + } + /// floor of hi part as an exact integer adjustment for turn reduction. + pub fn frac_turn(self) -> Dd { + let f = self.hi.floor(); + let r = self.sub(Dd::new(f)); + if r.hi < 0.0 { + r.add(Dd::one()) + } else if r.hi >= 1.0 { + r.sub(Dd::one()) + } else { + r + } + } +} + +/// (cos, sin) of 2*pi*x for x in [0, 1/4] by Taylor series in double-double. +fn cos_sin_quarter(x: Dd) -> (Dd, Dd) { + let t = PI2.mul(x); + let t2 = t.mul(t); + // sin + let mut term = t; + let mut s = t; + let mut n = 1.0; + for _ in 0..40 { + term = term.mul(t2).div(Dd::new((n + 1.0) * (n + 2.0))).neg(); + n += 2.0; + s = s.add(term); + if term.hi.abs() < 1e-36 { + break; + } + } + let mut term = Dd::one(); + let mut c = Dd::one(); + let mut n = 0.0; + for _ in 0..40 { + term = term.mul(t2).div(Dd::new((n + 1.0) * (n + 2.0))).neg(); + n += 2.0; + c = c.add(term); + if term.hi.abs() < 1e-36 { + break; + } + } + (c, s) +} + +/// (cos, sin) of 2*pi*turns for any turn count (reduced modulo 1 first). +pub fn cos_sin_turns(turns: Dd) -> (Dd, Dd) { + let f = turns.frac_turn(); + let q4 = (f.hi * 4.0).floor().max(0.0).min(3.0); + let r = f.sub(Dd::new(q4 * 0.25)); + let (c, s) = cos_sin_quarter(r); + match q4 as i32 { + 0 => (c, s), + 1 => (s.neg(), c), + 2 => (c.neg(), s.neg()), + _ => (s, c.neg()), + } +} + +/// Exact reduction of a rational turn count, then (cos, sin). +pub fn cos_sin_turns_q(turns: &Q) -> (Dd, Dd) { + let f = turns.mod1(); + let f4 = f.mul(&Q::int(4)); + if f4.is_int() { + let k = f4.n.low_u64(); + return match k { + 0 => (Dd::one(), Dd::zero()), + 1 => (Dd::zero(), Dd::one()), + 2 => (Dd::new(-1.0), Dd::zero()), + _ => (Dd::zero(), Dd::new(-1.0)), + }; + } + cos_sin_turns(Dd::from_q(&f)) +} + +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn dd_basics() { + let third = Dd::from_q(&Q::frac(1, 3)); + let back = third.mul_f(3.0).sub(Dd::one()); + assert!(back.hi.abs() < 1e-31); + let s2 = Dd::new(2.0).sqrt(); + assert!(s2.mul(s2).sub(Dd::new(2.0)).hi.abs() < 1e-30); + // cos(2 pi / 3) = -1/2, sin = sqrt(3)/2 + let (c, s) = cos_sin_turns_q(&Q::frac(1, 3)); + assert!(c.add(Dd::new(0.5)).hi.abs() < 1e-30); + let s3 = Dd::new(3.0).sqrt().mul_f(0.5); + assert!(s.sub(s3).hi.abs() < 1e-30); + let (c, s) = cos_sin_turns_q(&Q::frac(1, 8)); + assert!(c.sub(s).hi.abs() < 1e-30); + let (c, _) = cos_sin_turns_q(&Q::frac(-7, 3)); + assert!(c.add(Dd::new(0.5)).hi.abs() < 1e-30); + let big = Dd::from_q(&Q::frac(524181, 2096716)); + assert!(big.to_q().sub(&Q::frac(524181, 2096716)).abs().cmp(&Q::frac(1, 1i64 << 62)) == std::cmp::Ordering::Less); + } +} diff --git a/research/atemporal/at1/evaluator/src/hidden.rs b/research/atemporal/at1/evaluator/src/hidden.rs new file mode 100644 index 000000000..746b4977b --- /dev/null +++ b/research/atemporal/at1/evaluator/src/hidden.rs @@ -0,0 +1,346 @@ +//! Hidden-set generator (documented, deterministic, seeded) and the commitment +//! procedure of AT1_SPEC 12.3. The procedure is public; the 256-bit seed is +//! not, so the cases cannot be reproduced before the reveal. +//! +//! Stream: block i = SHA-256("omega.at1.agent4.hidden.v1" || 0x00 || seed || be64(i)). +//! 27 cases, family = index mod 9, from the AT1_SPEC 13.1 item 7 families: +//! F0 rotated level (INTERACTING, PASS) F1 rotated level, target IDEAL (N1) +//! F2 every level coupled (INTERACTING) F3 degenerate level + rotated level +//! F4 spectator couplings, target IDEAL F5 every level out (N2) +//! F6 swapped level v_j = -2h (N3) F7 psi_0 orthogonal to the kernel (N6) +//! F8 rotated level with half weight (N4a) +//! Axes come from Pythagorean quadruples, signs and component order drawn from +//! the stream; |h| = 1/2 always. Expected outcome and codes are the exact +//! verdict of a correct implementation (honest synthetic run, re-derived +//! exactly); a draw is rejected and redrawn unless the family's intended code +//! set results and the AT1_SPEC 8.3 margin rule holds. + +use crate::case::{validate_bytes, Case, Spec}; +use crate::model::{shadow, Mods}; +use crate::rat::{Cq, Q}; +use crate::sha256::{sha256, sha256_hex}; +use crate::synth::{engine_result, oracle_record, splice, EngineMut, OracleMut}; + +const DOMAIN: &[u8] = b"omega.at1.agent4.hidden.v1"; +pub const COUNT: usize = 27; + +struct Rng { + seed: Vec, + block: u64, + buf: Vec, +} +impl Rng { + fn u64(&mut self) -> u64 { + if self.buf.len() < 8 { + let mut m = DOMAIN.to_vec(); + m.push(0); + m.extend_from_slice(&self.seed); + m.extend_from_slice(&self.block.to_be_bytes()); + self.block += 1; + self.buf.extend_from_slice(&sha256(&m)); + } + let b: Vec = self.buf.drain(..8).collect(); + u64::from_be_bytes([b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]]) + } + /// Uniform in [0, n) by rejection. + fn below(&mut self, n: u64) -> u64 { + let lim = u64::MAX - u64::MAX % n; + loop { + let x = self.u64(); + if x < lim { + return x % n; + } + } + } + fn pick(&mut self, v: &[T]) -> T { + v[self.below(v.len() as u64) as usize].clone() + } +} + +const QUADS: [[i64; 4]; 11] = [[1, 2, 2, 3], [2, 3, 6, 7], [1, 4, 8, 9], [4, 4, 7, 9], [2, 6, 9, 11], [6, 6, 7, 11], [3, 4, 12, 13], [2, 5, 14, 15], [2, 10, 11, 15], [1, 12, 12, 17], [8, 9, 12, 17]]; + +/// A random rational unit axis (a, b, c)/d. +fn axis(g: &mut Rng) -> [Q; 3] { + let q = g.pick(&QUADS); + let perm = g.pick(&[[0, 1, 2], [0, 2, 1], [1, 0, 2], [1, 2, 0], [2, 0, 1], [2, 1, 0]]); + let mut out = [Q::zero(), Q::zero(), Q::zero()]; + for i in 0..3 { + let s = if g.below(2) == 0 { 1 } else { -1 }; + out[i] = Q::frac(s * q[perm[i]], q[3]); + } + out +} +fn scale(a: &[Q; 3], r: &Q) -> [Q; 3] { + [a[0].mul(r), a[1].mul(r), a[2].mul(r)] +} +fn sub3(a: &[Q; 3], b: &[Q; 3]) -> [Q; 3] { + [a[0].sub(&b[0]), a[1].sub(&b[1]), a[2].sub(&b[2])] +} +fn small_c(g: &mut Rng) -> Cq { + let d = g.pick(&[1i64, 1, 2, 3, 5]); + Cq::new(Q::frac(g.below(7) as i64 - 3, d), Q::frac(g.below(7) as i64 - 3, d)) +} + +/// The margin rule of AT1_SPEC 8.3 for a correct implementation of this case. +pub fn margin_ok(c: &Case) -> Result<(), String> { + let sh = shadow(c, &Mods::default(), false); + let tiny = Q::frac(1, 100_000_000_000_000_000); + let near0 = |x: &Q, exact: bool| if exact { x.is_zero() } else { x.abs().cmp(&tiny) != std::cmp::Ordering::Greater }; + let big = |x: &Q, tol: &Q| x.abs().cmp(&tol.mul(&Q::int(1000))) != std::cmp::Ordering::Less; + let tol_prob = Q::from_scaled(&c.tol_prob); + let tol_schro = Q::from_scaled(&c.tol_schro); + let tol_povm = Q::from_scaled(&c.tol_povm); + let pv = &sh.povm_residual; + if !(near0(&pv.q, pv.exact) || big(&pv.q, &tol_povm)) { + return Err(format!("povm_residual {} inside the margin", pv.q.to_f64())); + } + if sh.trivial { + return Ok(()); + } + let milli = Q::frac(1, 1000); + let mut sum = Q::zero(); + let mut sum_exact = true; + let wn = c.w.div(&Q::int(c.n as i64)); + for k in 0..c.m { + let p = &sh.p[k]; + sum = sum.add(&p.q); + sum_exact &= p.exact; + if !(near0(&p.q, p.exact) || p.q.cmp(&milli) != std::cmp::Ordering::Less) { + return Err(format!("p({}) = {} is neither 0 nor >= 1e-3", k, p.q.to_f64())); + } + let over = p.q.sub(&Q::one()); + if over.signum() > 0 && !big(&over, &tol_prob) { + return Err(format!("p({}) - 1 inside the margin", k)); + } + if c.target_ideal { + if let Some(pa) = &sh.pauli[k] { + for a in 0..3 { + for s in 0..2 { + let d = pa[a][s].q.sub(&sh.ideal[k][a][s].q); + if !(near0(&d, pa[a][s].exact && sh.ideal[k][a][s].exact) || big(&d, &tol_schro)) { + return Err(format!("ideal deviation at k={} inside the margin", k)); + } + } + } + let d = p.q.sub(&wn); + if !(near0(&d, p.exact) || big(&d, &tol_prob)) { + return Err(format!("marginal deviation from w/N at k={} inside the margin", k)); + } + } + } + } + let d = sum.sub(&Q::one()); + if !(near0(&d, sum_exact) || big(&d, &tol_prob)) { + return Err("sum of p(k) - 1 inside the margin".into()); + } + Ok(()) +} + +/// One draw of family f; None when the draw is not usable. +fn draw(g: &mut Rng, f: usize, name: &str) -> Option { + let mut s = Spec::base(name); + let half = Q::frac(1, 2); + let h = scale(&axis(g), &half); + let degen = f == 3; + // clock grid: gap 1 with tau 1/4, or gap 1/2 with tau 1/2 (degenerate family); M = 4 complete + let n = if degen { g.pick(&[3usize, 5]) } else { g.pick(&[2usize, 3, 4, 5, 6]) }; + let gap = if degen { Q::frac(1, 2) } else { Q::one() }; + let mid = Q::frac(n as i64 - 1, 2); + let mut e: Vec = (0..n).map(|j| Q::int(j as i64).sub(&mid).mul(&gap)).collect(); + // h0 puts two adjacent levels at -1/2 and +1/2 (odd N, gap 1: h0 = 1/2); an optional common shift delta keeps that + let mut h0 = if !degen && n % 2 == 1 { half.clone() } else { Q::zero() }; + if g.below(3) == 0 { + let delta = Q::frac(1 + g.below(97) as i64, 1009); + for x in e.iter_mut() { + *x = x.add(&delta); + } + h0 = h0.sub(&delta); + } + s.e = e.clone(); + s.h = [h0.clone(), h[0].clone(), h[1].clone(), h[2].clone()]; + s.v = vec![[Q::zero(), Q::zero(), Q::zero()]; n]; + s.tau = if degen { Q::frac(1, 2) } else { Q::frac(1, 4) }; + s.w = Q::frac(n as i64, 4); + s.psi = [small_c(g), small_c(g)]; + if s.psi[0].is_zero() && s.psi[1].is_zero() { + return None; + } + let r = g.below(4) as usize; + s.ref_label = format!("t{}", r); + let off: Vec = e.iter().map(|x| x.add(&h0)).collect(); + let matched: Vec = (0..n).filter(|&j| off[j].abs() == half).collect(); + let others: Vec = (0..n).filter(|&j| off[j].abs() != half).collect(); + if matched.is_empty() { + return None; + } + let rotate = |g: &mut Rng, j: usize| -> [Q; 3] { sub3(&scale(&axis(g), &off[j].abs()), &h) }; + match f { + 0 | 1 | 8 => { + let j = g.pick(&matched); + s.v[j] = rotate(g, j); + if f == 1 { + s.target_ideal = true; + } + if f == 8 { + s.w = Q::frac(n as i64, 8); + } + } + 2 => { + for j in 0..n { + if off[j].is_zero() { + return None; + } + s.v[j] = rotate(g, j); + } + } + 3 => { + let z = (0..n).find(|&j| off[j].is_zero())?; + s.v[z] = [h[0].neg(), h[1].neg(), h[2].neg()]; + let j = g.pick(&matched); + s.v[j] = rotate(g, j); + } + 4 => { + if others.is_empty() { + return None; + } + for &j in &others { + // norm |E_j + h0| + 1/2 never matches the level + s.v[j] = sub3(&scale(&axis(g), &off[j].abs().add(&half)), &h); + } + s.target_ideal = true; + } + 5 => { + for &j in &matched { + s.v[j] = sub3(&scale(&axis(g), &Q::one()), &h); + } + } + 6 => { + let j = *matched.iter().find(|&&j| off[j].signum() > 0)?; + s.v[j] = [h[0].mul(&Q::int(-2)), h[1].mul(&Q::int(-2)), h[2].mul(&Q::int(-2))]; + } + 7 => { + if matched.len() < 2 { + return None; + } + let keep = g.pick(&matched); + for &j in &matched { + if j != keep { + s.v[j] = sub3(&scale(&axis(g), &Q::one()), &h); + } + } + let nn = scale(&axis(g), &off[keep].abs()); + s.v[keep] = sub3(&nn, &h); + // kernel vector of the kept level and a psi_0 orthogonal to it + let sgn = if off[keep].signum() < 0 { 1 } else { -1 }; + let rr = off[keep].abs(); + let sr = if sgn > 0 { rr.clone() } else { rr.neg() }; + let (f0, f1) = if sr.add(&nn[2]).is_zero() { + (Cq::new(nn[0].clone(), nn[1].neg()), Cq::new(sr.sub(&nn[2]), Q::zero())) + } else { + (Cq::new(sr.add(&nn[2]), Q::zero()), Cq::new(nn[0].clone(), nn[1].clone())) + }; + s.psi = [f1.conj().scale(&Q::int(-1)), f0.conj()]; + } + _ => return None, + } + Some(s) +} + +fn intended(f: usize) -> Vec<&'static str> { + match f { + 1 => vec!["SCHRODINGER_DEVIATION_EXCEEDED"], + 5 | 7 => vec!["TRIVIAL_PHYSICAL_STATE"], + 6 => vec!["CONDITIONAL_UNDEFINED"], + 8 => vec!["POVM_NORMALIZATION_EXCEEDED", "PROBABILITY_SUM_EXCEEDED"], + _ => vec![], + } +} + +/// Builds case number i (deterministic in the seed). +fn build(g: &mut Rng, i: usize) -> (String, Vec) { + let f = i % 9; + let name = format!("at1-agent4-hidden-{:02}", i + 1); + for _attempt in 0..10_000 { + let s = match draw(g, f, &name) { + Some(s) => s, + None => continue, + }; + let c = match validate_bytes(&s.bytes()) { + Ok(c) => c, + Err(_) => continue, + }; + let r = splice(&engine_result(&c, &EngineMut::default(), "h"), &oracle_record(&c, &OracleMut::default(), "o")).unwrap(); + let codes: Vec<&str> = r.verdict.failure_codes.iter().map(|x| x.as_str()).collect(); + if codes != intended(f) { + continue; + } + let s2 = if codes.is_empty() { s } else { s.negative(&codes) }; + let c2 = match validate_bytes(&s2.bytes()) { + Ok(c) => c, + Err(_) => continue, + }; + if margin_ok(&c2).is_err() { + continue; + } + return (format!("H{:02}.case", i + 1), s2.bytes()); + } + panic!("hidden-gen: family {} produced no usable draw", f); +} + +fn parse_seed(hex: &str) -> Option> { + if hex.len() != 64 || !hex.bytes().all(|c| c.is_ascii_hexdigit()) { + return None; + } + (0..32).map(|i| u8::from_str_radix(&hex[2 * i..2 * i + 2], 16).ok()).collect() +} + +pub fn generate(seed_hex: &str, outdir: &str) -> i32 { + let seed = match parse_seed(seed_hex.trim()) { + Some(s) => s, + None => { + eprintln!("hidden-gen: the seed must be 64 hex digits (256 bits)"); + return 64; + } + }; + let mut g = Rng { seed, block: 0, buf: Vec::new() }; + let _ = std::fs::create_dir_all(outdir); + for i in 0..COUNT { + let (name, bytes) = build(&mut g, i); + if let Err(e) = std::fs::write(format!("{}/{}", outdir, name), &bytes) { + eprintln!("hidden-gen: {}", e); + return 73; + } + } + commit(outdir) +} + +/// Manifest `` per .case file, sorted bytewise by name, +/// LF-terminated; the commitment is SHA-256 of the manifest bytes (AT1_SPEC 12.3). +pub fn manifest(dir: &str) -> Result { + let mut names: Vec = std::fs::read_dir(dir) + .map_err(|e| e.to_string())? + .filter_map(|e| e.ok().map(|e| e.file_name().to_string_lossy().into_owned())) + .filter(|n| n.ends_with(".case")) + .collect(); + names.sort_by(|a, b| a.as_bytes().cmp(b.as_bytes())); + let mut m = String::new(); + for n in names { + let b = std::fs::read(format!("{}/{}", dir, n)).map_err(|e| e.to_string())?; + m.push_str(&format!("{} {}\n", sha256_hex(&b), n)); + } + Ok(m) +} + +pub fn commit(dir: &str) -> i32 { + match manifest(dir) { + Ok(m) => { + print!("{}", m); + println!("commitment {}", sha256_hex(m.as_bytes())); + 0 + } + Err(e) => { + eprintln!("hidden-commit: {}", e); + 66 + } + } +} diff --git a/research/atemporal/at1/evaluator/src/judge.rs b/research/atemporal/at1/evaluator/src/judge.rs new file mode 100644 index 000000000..a3c404476 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/judge.rs @@ -0,0 +1,248 @@ +//! Exact re-derivation of the AT1_RESULT_V1 section 4 checks and the section 5 +//! outcome, codes and expectation from the written values. Every comparison is +//! on exact rationals (a binary64 value and a scaled decimal are both exact). + +use crate::case::Case; +use crate::model::Status; +use crate::rat::Q; +use crate::result::{Ck, Kind, RVal, ResultFile, Six, Verdict}; +use std::cmp::Ordering; + +pub const CHECK_CODES: [&str; 12] = [ + "BOUND_KIND_INSUFFICIENT", + "NONFINITE_VALUE", + "TRIVIAL_PHYSICAL_STATE", + "CONSTRAINT_RESIDUAL_EXCEEDED", + "POVM_NORMALIZATION_EXCEEDED", + "PROBABILITY_SUM_EXCEEDED", + "PROBABILITY_OUT_OF_RANGE", + "PROBABILITY_SUM_EXCEEDED", + "CONDITIONAL_UNDEFINED", + "", // check 10: depends on prediction_target + "ORACLE_DISAGREEMENT", + "ORACLE_DISAGREEMENT", +]; + +/// Absolute form: PASS if |v|+b <= tol; FAIL if |v|-b > tol; else INDETERMINATE. +pub fn tri_abs(v: &Q, b: &Q, tol: &Q) -> Ck { + let a = v.abs(); + if a.add(b).cmp(tol) != Ordering::Greater { + Ck::Pass + } else if a.sub(b).cmp(tol) == Ordering::Greater { + Ck::Fail + } else { + Ck::Indet + } +} +/// Signed form (range limits): PASS if v+b <= tol; FAIL if v-b > tol; else INDETERMINATE. +pub fn tri_signed(v: &Q, b: &Q, tol: &Q) -> Ck { + if v.add(b).cmp(tol) != Ordering::Greater { + Ck::Pass + } else if v.sub(b).cmp(tol) == Ordering::Greater { + Ck::Fail + } else { + Ck::Indet + } +} +/// FAIL > INDETERMINATE > PASS; NOT_EVALUATED is neutral. +pub fn worst(a: Ck, b: Ck) -> Ck { + let r = |c: Ck| match c { + Ck::NotEval => 0, + Ck::Pass => 1, + Ck::Indet => 2, + Ck::Fail => 3, + }; + if r(a) >= r(b) { a } else { b } +} + +/// Value and bound of a written token, None for nonfinite or undefined. +fn qv(v: &RVal) -> Option<(Q, Q)> { + v.q().map(|q| (q, v.bq())) +} + +/// Status rule of section 3 applied to a written clock probability. +pub fn label_from(v: &RVal, tol_zero: &Q) -> Status { + match qv(v) { + None => Status::Undefined, + Some((p, b)) => crate::model::status_rule(&p, &b, tol_zero), + } +} + +fn dev_six(a: &Six, b: &Six, tol: &Q, st: &mut Ck) { + for ax in 0..3 { + for g in 0..2 { + if let (Some((x, bx)), Some((y, by))) = (qv(&a[ax][g]), qv(&b[ax][g])) { + *st = worst(*st, tri_abs(&x.sub(&y), &bx.add(&by), tol)); + } + } + } +} + +pub fn all_values(r: &ResultFile) -> Vec<&RVal> { + let mut v: Vec<&RVal> = vec![&r.constraint, &r.povm]; + for k in 0..r.case.m { + v.push(&r.clock[k]); + v.push(&r.ref_clock[k]); + for f in [&r.pauli[k], &r.ref_ideal[k], &r.ref_inter[k]] { + for ax in 0..3 { + for g in 0..2 { + v.push(&f[ax][g]); + } + } + } + } + v +} + +/// Re-derives the verdict block of a completed run. `nontrivial` is the exact +/// decision of check 3 (the caller supplies it: from the shadow when verifying, +/// from the engine's own claim when splicing as the runner). +pub fn rederive(r: &ResultFile, nontrivial: bool) -> Verdict { + let c: &Case = &r.case; + let tol_prob = Q::from_scaled(&c.tol_prob); + let tol_schro = Q::from_scaled(&c.tol_schro); + let one = Q::one(); + let mut ck = [Ck::NotEval; 12]; + ck[0] = if r.bound_kind >= c.min_bound_kind { Ck::Pass } else { Ck::Fail }; + ck[1] = if all_values(r).iter().any(|v| v.kind == Kind::Nonfinite) { Ck::Fail } else { Ck::Pass }; + ck[2] = if nontrivial { Ck::Pass } else { Ck::Fail }; + if let Some((v, b)) = qv(&r.povm) { + ck[4] = tri_abs(&v, &b, &Q::from_scaled(&c.tol_povm)); + } + if nontrivial { + if let Some((v, b)) = qv(&r.constraint) { + ck[3] = tri_abs(&v, &b, &Q::from_scaled(&c.tol_constraint)); + } + // 6: sum of every clock probability minus 1, summed bounds + let mut sum = Q::zero(); + let mut bs = Q::zero(); + let mut ok = true; + for k in 0..c.m { + match qv(&r.clock[k]) { + Some((v, b)) => { + sum = sum.add(&v); + bs = bs.add(&b); + } + None => ok = false, + } + } + if ok { + ck[5] = tri_abs(&sum.sub(&one), &bs, &tol_prob); + } + // 7: every engine probability, signed form, both limits (reference lines excluded) + let mut st = Ck::NotEval; + for k in 0..c.m { + let mut items: Vec<&RVal> = vec![&r.clock[k]]; + for ax in 0..3 { + for g in 0..2 { + items.push(&r.pauli[k][ax][g]); + } + } + for it in items { + if let Some((v, b)) = qv(it) { + st = worst(st, tri_signed(&v.neg(), &b, &tol_prob)); + st = worst(st, tri_signed(&v.sub(&one), &b, &tol_prob)); + } + } + } + ck[6] = st; + // 8: PLUS + MINUS - 1 per defined label and axis + let mut st = Ck::NotEval; + for k in 0..c.m { + if r.label[k] != Status::Defined { + continue; + } + for ax in 0..3 { + if let (Some((p, bp)), Some((q, bq))) = (qv(&r.pauli[k][ax][0]), qv(&r.pauli[k][ax][1])) { + st = worst(st, tri_abs(&p.add(&q).sub(&one), &bp.add(&bq), &tol_prob)); + } + } + } + ck[7] = st; + // 9: no label UNDEFINED + ck[8] = if r.label.iter().any(|s| *s == Status::Undefined) { Ck::Fail } else { Ck::Pass }; + // 10 and 11: labels DEFINED on both sides only + let wn = c.w.div(&Q::int(c.n as i64)); + let mut st10 = Ck::NotEval; + let mut st11 = Ck::NotEval; + for k in 0..c.m { + if r.label[k] != Status::Defined || r.ref_label[k] != Status::Defined { + continue; + } + let target = if c.target_ideal { &r.ref_ideal[k] } else { &r.ref_inter[k] }; + dev_six(&r.pauli[k], target, &tol_schro, &mut st10); + if let Some((p, bp)) = qv(&r.clock[k]) { + if c.target_ideal { + st10 = worst(st10, tri_abs(&p.sub(&wn), &bp, &tol_prob)); + } else if let Some((m, bm)) = qv(&r.ref_clock[k]) { + st10 = worst(st10, tri_abs(&p.sub(&m), &bp.add(&bm), &tol_prob)); + } + } + if c.target_ideal { + dev_six(&r.pauli[k], &r.ref_inter[k], &tol_schro, &mut st11); + if let (Some((p, bp)), Some((m, bm))) = (qv(&r.clock[k]), qv(&r.ref_clock[k])) { + st11 = worst(st11, tri_abs(&p.sub(&m), &bp.add(&bm), &tol_prob)); + } + } + } + ck[9] = st10; + ck[10] = if c.target_ideal { st11 } else { Ck::NotEval }; + // 12: label status agreement + let mut st = Ck::NotEval; + for k in 0..c.m { + let (a, b) = (r.label[k], r.ref_label[k]); + let one = if a == Status::Indeterminate || b == Status::Indeterminate { + Ck::Indet + } else if a != b { + Ck::Fail + } else { + Ck::Pass + }; + st = worst(st, one); + } + ck[11] = st; + } + let mut codes: Vec = Vec::new(); + let mut add = |s: &str| { + if !codes.iter().any(|x| x == s) { + codes.push(s.to_string()); + } + }; + for i in 0..12 { + if ck[i] == Ck::Fail { + if i == 9 { + add(if c.target_ideal { "SCHRODINGER_DEVIATION_EXCEEDED" } else { "INTERACTING_DEVIATION_EXCEEDED" }); + } else { + add(CHECK_CODES[i]); + } + } + if ck[i] == Ck::Indet { + add("PRECISION_INSUFFICIENT"); + } + } + if r.label.iter().any(|s| *s == Status::Indeterminate) { + add("PRECISION_INSUFFICIENT"); + } + codes.sort_by(|a, b| a.as_bytes().cmp(b.as_bytes())); + let outcome = if codes.is_empty() { "PASS" } else { "FAIL" }; + let exp_outcome = if c.expected_pass { "PASS" } else { "FAIL" }; + let met = outcome == exp_outcome && codes == c.expected_codes; + Verdict { + checks: ck, + outcome: outcome.into(), + failure_codes: codes, + error_code: "none".into(), + expectation: if met { "YES".into() } else { "NO".into() }, + } +} + +/// The ERROR / NOT_RUN verdict shape. +pub fn placeholder_verdict(outcome: &str, error_code: &str) -> Verdict { + Verdict { + checks: [Ck::NotEval; 12], + outcome: outcome.into(), + failure_codes: Vec::new(), + error_code: error_code.into(), + expectation: "NOT_APPLICABLE".into(), + } +} diff --git a/research/atemporal/at1/evaluator/src/main.rs b/research/atemporal/at1/evaluator/src/main.rs new file mode 100644 index 000000000..f433e5436 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/main.rs @@ -0,0 +1,243 @@ +//! at1-eval: the AT-1 Agent 4 adversarial evaluator (std-only Rust, no Cargo). +//! Build: rustc --edition 2021 -O src/main.rs -o build/at1-eval + +mod big; +mod case; +mod corpus; +mod dd; +mod hidden; +mod judge; +mod model; +mod mutants; +mod qualify; +mod rat; +mod result; +mod scan; +mod sha256; +mod synth; +mod text; +mod verify; + +use std::fs; +use std::process::exit; + +fn usage() -> ! { + eprintln!( + "usage: at1-eval ... + case [--why] validate an AT1_CASE_V1 file (refusal: one stderr line, exit 2) + shadow print the shadow model's values for a case + verify [--case F] [--oracle-record] verify a result (exit 0 PASS, 1 FAIL, 3 INCONCLUSIVE) + splice runner role: splice the four reference families + synth-engine [mutant] honest synthetic engine (or a named mutant) + synth-oracle [mutant] honest synthetic oracle record (or a named oracle mutant) + corpus-gen write the public corpus and MANIFEST.tsv + corpus-check check the corpus on disk is byte-identical to the generator + selftest KAT digests, hand tables, codec rows, honest controls + mutants build the mutant kill receipt + qualify --cases D --engine CMD --oracle CMD [--out D] [--limit N] run candidates on a corpus + hidden-gen generate the hidden set from a private seed + hidden-commit print the manifest commitment of a case directory + scan-clock ... instruction scan for counter reads and raw syscalls + sha256 ... plain SHA-256 of files" + ); + exit(64) +} + +fn read(p: &str) -> Vec { + match fs::read(p) { + Ok(b) => b, + Err(e) => { + eprintln!("at1-eval: cannot read {}: {}", p, e); + exit(66) + } + } +} +fn write(p: &str, b: &[u8]) { + if let Some(parent) = std::path::Path::new(p).parent() { + let _ = fs::create_dir_all(parent); + } + if let Err(e) = fs::write(p, b) { + eprintln!("at1-eval: cannot write {}: {}", p, e); + exit(73) + } +} + +pub fn print_report(rep: &verify::Report) { + for f in &rep.findings { + println!("{} {} {}", if f.sev == verify::Sev::Fail { "FAIL" } else { "INCONCLUSIVE" }, f.code, f.detail); + } +} + +fn main() { + let a: Vec = std::env::args().collect(); + if a.len() < 2 { + usage(); + } + let args: Vec<&str> = a[2..].iter().map(|s| s.as_str()).collect(); + match a[1].as_str() { + "case" => { + if args.is_empty() { + usage(); + } + match case::validate_bytes(&read(args[0])) { + Ok(c) => println!("AT1_CASE_OK {} {} {}", c.case_id, c.acceptance_id, c.file_sha256), + Err((code, why)) => { + eprintln!("AT1_CASE_REFUSED {}", code.code()); + if args.contains(&"--why") { + println!("{}", why); + } + exit(2) + } + } + } + "shadow" => { + if args.is_empty() { + usage(); + } + let c = match case::validate_bytes(&read(args[0])) { + Ok(c) => c, + Err((code, _)) => { + eprintln!("AT1_CASE_REFUSED {}", code.code()); + exit(2) + } + }; + let sh = model::shadow(&c, &model::Mods::default(), false); + println!("kernel_dim {} trivial {} interacting_exact {} ideal_exact {}", sh.kernel_dim, sh.trivial, sh.interacting_exact, sh.ideal_exact); + println!("povm_residual {} ({:.17e})", model::show(&sh.povm_residual), sh.povm_residual.q.to_f64()); + for k in 0..c.m { + let ide = &sh.ideal[k]; + let p = if sh.trivial { "undefined".to_string() } else { model::show(&sh.p[k]) }; + let pa = match sh.pauli.get(k).and_then(|x| x.as_ref()) { + Some(s) => format!("{} {} {}", model::show(&s[0][0]), model::show(&s[1][0]), model::show(&s[2][0])), + None => "undefined".into(), + }; + println!("k {} {} p {} status {} pauli+ {} ideal+ {} {} {}", k, c.labels[k], p, sh.status[k].text(), pa, model::show(&ide[0][0]), model::show(&ide[1][0]), model::show(&ide[2][0])); + } + } + "verify" => { + let mut case_file: Option> = None; + let mut role = verify::Role::Candidate; + let mut file: Option<&str> = None; + let mut i = 0; + while i < args.len() { + match args[i] { + "--case" => { + i += 1; + case_file = Some(read(args.get(i).copied().unwrap_or_else(|| usage()))); + } + "--oracle-record" => role = verify::Role::Oracle, + f => file = Some(f), + } + i += 1; + } + let rep = verify::verify(&read(file.unwrap_or_else(|| usage())), case_file.as_deref(), role); + print_report(&rep); + println!("AT1_VERIFY {} outcome {} codes {}", rep.status(), rep.derived_outcome, if rep.derived_codes.is_empty() { "none".into() } else { rep.derived_codes.join(",") }); + exit(match rep.status() { + "PASS" => 0, + "FAIL" => 1, + _ => 3, + }) + } + "splice" => { + if args.len() != 3 { + usage(); + } + let e = result::parse(&read(args[0])).unwrap_or_else(|m| { + eprintln!("at1-eval: engine result does not parse: {}", m); + exit(1) + }); + let o = result::parse(&read(args[1])).unwrap_or_else(|m| { + eprintln!("at1-eval: oracle record does not parse: {}", m); + exit(1) + }); + match synth::splice(&e, &o) { + Ok(r) => write(args[2], &r.bytes()), + Err(m) => { + eprintln!("at1-eval: splice refused: {}", m); + exit(1) + } + } + } + "synth-engine" | "synth-oracle" => { + if args.len() < 2 { + usage(); + } + let c = case::validate_bytes(&read(args[0])).unwrap_or_else(|(code, _)| { + eprintln!("AT1_CASE_REFUSED {}", code.code()); + exit(2) + }); + let name = args.get(2).copied().unwrap_or("honest"); + let r = if a[1] == "synth-engine" { + let em = mutants::engine_mut(name).unwrap_or_else(|| { + eprintln!("at1-eval: unknown engine mutant {}", name); + exit(64) + }); + synth::engine_result(&c, &em, &format!("at1-eval synth-engine {}", name)) + } else { + let om = mutants::oracle_mut(name).unwrap_or_else(|| { + eprintln!("at1-eval: unknown oracle mutant {}", name); + exit(64) + }); + synth::oracle_record(&c, &om, &format!("at1-eval synth-oracle {}", name)) + }; + write(args[1], &r.bytes()); + } + "corpus-gen" => { + if args.len() != 1 { + usage(); + } + let dir = args[0]; + let mut man = String::from("# path\tclass\texpected tool response (every parser must give it; refusals: one stderr line, exit 2)\n"); + for r in corpus::public_rows() { + write(&format!("{}/{}", dir, r.path), &r.bytes); + man.push_str(&format!("{}\t{}\t{}\n", r.path, r.class, r.expect)); + } + write(&format!("{}/MANIFEST.tsv", dir), man.as_bytes()); + println!("corpus: {} files written to {}", corpus::public_rows().len(), dir); + } + "corpus-check" => { + if args.len() != 1 { + usage(); + } + let mut bad = 0; + let rows = corpus::public_rows(); + for r in &rows { + let p = format!("{}/{}", args[0], r.path); + if fs::read(&p).ok().as_deref() != Some(r.bytes.as_slice()) { + println!("DIFFERS {}", r.path); + bad += 1; + } + } + println!("corpus-check: {} files, {} differ", rows.len(), bad); + exit(if bad == 0 { 0 } else { 1 }) + } + "selftest" => exit(qualify::selftest()), + "mutants" => { + if args.len() != 1 { + usage(); + } + exit(mutants::receipt(args[0])) + } + "qualify" => exit(qualify::qualify(&args)), + "hidden-gen" => { + if args.len() != 2 { + usage(); + } + exit(hidden::generate(args[0], args[1])) + } + "hidden-commit" => { + if args.len() != 1 { + usage(); + } + exit(hidden::commit(args[0])) + } + "scan-clock" => exit(scan::main(&args)), + "sha256" => { + for p in &args { + println!("{} {}", sha256::sha256_hex(&read(p)), p); + } + } + _ => usage(), + } +} diff --git a/research/atemporal/at1/evaluator/src/model.rs b/research/atemporal/at1/evaluator/src/model.rs new file mode 100644 index 000000000..335aebfa6 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/model.rs @@ -0,0 +1,517 @@ +//! Shadow model: the evaluator's own computation of the AT-1 physics from the +//! case text (AT1_CASE_V1 section 3, AT1_SPEC Theorems 1 to 5), written from the +//! contract and the spec only, never from the oracle's or the engine's code. +//! +//! Kernel pairs, degenerate levels, level vectors and the zero test are exact +//! (rational and Gaussian-rational). The conditional vector uses relative +//! phases (Corollary 3.2). When every phase is a quarter turn the whole +//! computation stays exact; otherwise it runs in double-double (dd.rs) with a +//! stated ESTIMATED bound. The ideal reference rotates the Bloch vector of psi_0 +//! about h by 2|h|(t_k - t_r) (AT1_SPEC Definition 5.2), exact when |h| is +//! rational and the angle is a quarter turn. + +use crate::big::Int; +use crate::case::Case; +use crate::dd::{cos_sin_turns, cos_sin_turns_q, Dd}; +use crate::rat::{Cq, Q}; + +/// Claimed absolute error of every inexact shadow value (double-double, ~1e-30 actual). +pub fn dd_bound() -> Q { + Q::new(Int::from_u64(1), Int::pow10(24)) +} + +#[derive(Clone, Debug)] +pub struct Val { + pub q: Q, + pub exact: bool, +} +impl Val { + pub fn exact(q: Q) -> Val { + Val { q, exact: true } + } + pub fn approx(d: Dd) -> Val { + Val { q: d.to_q(), exact: false } + } + pub fn bound(&self) -> Q { + if self.exact { Q::zero() } else { dd_bound() } + } + pub fn f64(&self) -> f64 { + Dd::from_q(&self.q).hi + } +} + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Status { + Defined, + Undefined, + Indeterminate, +} +impl Status { + pub fn text(self) -> &'static str { + match self { + Status::Defined => "DEFINED", + Status::Undefined => "UNDEFINED", + Status::Indeterminate => "INDETERMINATE", + } + } + pub fn parse(s: &str) -> Option { + match s { + "DEFINED" => Some(Status::Defined), + "UNDEFINED" => Some(Status::Undefined), + "INDETERMINATE" => Some(Status::Indeterminate), + _ => None, + } + } +} + +/// The contract's status rule: UNDEFINED if p + b <= tol; DEFINED if p - b > tol; else INDETERMINATE. +pub fn status_rule(p: &Q, b: &Q, tol: &Q) -> Status { + if p.add(b).cmp(tol) != std::cmp::Ordering::Greater { + Status::Undefined + } else if p.sub(b).cmp(tol) == std::cmp::Ordering::Greater { + Status::Defined + } else { + Status::Indeterminate + } +} + +/// Physics-level defects a mutant engine or oracle can carry (all false = honest). +#[derive(Clone, Copy, Debug, Default)] +pub struct Mods { + pub drop_v: bool, + pub flip_v: bool, + pub shift_level: bool, + pub phase_minus: bool, +} + +#[derive(Clone, Debug)] +pub struct Shadow { + pub kernel_dim: usize, + pub trivial: bool, + pub interacting_exact: bool, + pub p: Vec, + pub status: Vec, + /// [k][axis X,Y,Z][PLUS, MINUS]; None for a label that is not DEFINED + pub pauli: Vec>, + pub ideal: Vec<[[Val; 2]; 3]>, + pub ideal_exact: bool, + pub povm_residual: Val, +} + +trait F: Clone { + fn from_q(q: &Q) -> Self; + fn add(&self, o: &Self) -> Self; + fn sub(&self, o: &Self) -> Self; + fn mul(&self, o: &Self) -> Self; + fn div(&self, o: &Self) -> Self; + fn is_zero_exact(&self) -> bool; + /// (cos, sin) of 2 pi turns, or None when this field cannot represent it. + fn phase(turns: &Q) -> Option<(Self, Self)>; + fn val(&self) -> Val; +} + +impl F for Q { + fn from_q(q: &Q) -> Q { + q.clone() + } + fn add(&self, o: &Q) -> Q { + Q::add(self, o) + } + fn sub(&self, o: &Q) -> Q { + Q::sub(self, o) + } + fn mul(&self, o: &Q) -> Q { + Q::mul(self, o) + } + fn div(&self, o: &Q) -> Q { + Q::div(self, o) + } + fn is_zero_exact(&self) -> bool { + self.is_zero() + } + fn phase(turns: &Q) -> Option<(Q, Q)> { + let f4 = turns.mod1().mul(&Q::int(4)); + if !f4.is_int() { + return None; + } + Some(match f4.n.low_u64() { + 0 => (Q::one(), Q::zero()), + 1 => (Q::zero(), Q::one()), + 2 => (Q::int(-1), Q::zero()), + _ => (Q::zero(), Q::int(-1)), + }) + } + fn val(&self) -> Val { + Val::exact(self.clone()) + } +} + +impl F for Dd { + fn from_q(q: &Q) -> Dd { + Dd::from_q(q) + } + fn add(&self, o: &Dd) -> Dd { + Dd::add(*self, *o) + } + fn sub(&self, o: &Dd) -> Dd { + Dd::sub(*self, *o) + } + fn mul(&self, o: &Dd) -> Dd { + Dd::mul(*self, *o) + } + fn div(&self, o: &Dd) -> Dd { + Dd::div(*self, *o) + } + fn is_zero_exact(&self) -> bool { + self.hi == 0.0 && self.lo == 0.0 + } + fn phase(turns: &Q) -> Option<(Dd, Dd)> { + Some(cos_sin_turns_q(turns)) + } + fn val(&self) -> Val { + Val::approx(*self) + } +} + +#[derive(Clone)] +struct C { + re: T, + im: T, +} +impl C { + fn from_cq(z: &Cq) -> C { + C { re: T::from_q(&z.re), im: T::from_q(&z.im) } + } + fn add(&self, o: &C) -> C { + C { re: self.re.add(&o.re), im: self.im.add(&o.im) } + } + fn mul(&self, o: &C) -> C { + C { re: self.re.mul(&o.re).sub(&self.im.mul(&o.im)), im: self.re.mul(&o.im).add(&self.im.mul(&o.re)) } + } + fn norm2(&self) -> T { + self.re.mul(&self.re).add(&self.im.mul(&self.im)) + } +} + +/// Pauli outcome probabilities of the pure state chi (unnormalised), each computed directly. +fn pauli_of(c0: &C, c1: &C) -> [[T; 2]; 3] { + let n0 = c0.norm2(); + let n1 = c1.norm2(); + let nn = n0.add(&n1); + // conj(c0) c1 + let xr = c0.re.mul(&c1.re).add(&c0.im.mul(&c1.im)); + let xi = c0.re.mul(&c1.im).sub(&c0.im.mul(&c1.re)); + let half = T::from_q(&Q::frac(1, 2)); + let q = |a: &T| a.div(&nn); + [ + [half.add(&q(&xr)), half.sub(&q(&xr))], + [half.add(&q(&xi)), half.sub(&q(&xi))], + [q(&n0), q(&n1)], + ] +} + +fn val3(a: &[[T; 2]; 3]) -> [[Val; 2]; 3] { + [[a[0][0].val(), a[0][1].val()], [a[1][0].val(), a[1][1].val()], [a[2][0].val(), a[2][1].val()]] +} + +/// Level structure: per level, the exact level vector u_j (zero when the level is not in the kernel). +pub struct Levels { + pub kernel_dim: usize, + pub u: Vec<[Cq; 2]>, + pub s: Q, +} + +pub fn levels(c: &Case, m: &Mods) -> Levels { + let n = c.n; + let mut kernel_dim = 0; + let mut u = Vec::new(); + for j in 0..n { + let src = if m.shift_level { (j + n - 1) % n } else { j }; + let mut v = c.v[src].clone(); + if m.drop_v { + v = [Q::zero(), Q::zero(), Q::zero()]; + } + if m.flip_v { + v = [v[0].neg(), v[1].neg(), v[2].neg()]; + } + let nx = c.h[0].add(&v[0]); + let ny = c.h[1].add(&v[1]); + let nz = c.h[2].add(&v[2]); + let r2 = nx.mul(&nx).add(&ny.mul(&ny)).add(&nz.mul(&nz)); + let base = c.e[j].add(&c.h0); + let zero2 = [Cq::zero(), Cq::zero()]; + let r = match r2.sqrt_exact() { + Some(r) => r, + None => { + // irrational level norm (only reachable by a mutant): never matches a rational energy + u.push(zero2); + continue; + } + }; + if r.is_zero() { + if base.is_zero() { + kernel_dim += 2; + u.push(c.psi.clone()); + } else { + u.push(zero2); + } + continue; + } + let mut found = None; + for s in [1i64, -1] { + let sr = r.mul(&Q::int(s)); + if base.add(&sr).is_zero() { + found = Some(sr); + } + } + match found { + None => u.push(zero2), + Some(sr) => { + kernel_dim += 1; + // contract eigenvector (s|n| + n_z, n_x + i n_y), else (n_x - i n_y, s|n| - n_z) + let mut f = [Cq::real(sr.add(&nz)), Cq::new(nx.clone(), ny.clone())]; + if f[0].is_zero() && f[1].is_zero() { + f = [Cq::new(nx.clone(), ny.neg()), Cq::real(sr.sub(&nz))]; + } + let ff = f[0].norm2().add(&f[1].norm2()); + let ip = f[0].conj().mul(&c.psi[0]).add(&f[1].conj().mul(&c.psi[1])); + let coef = ip.scale(&Q::one().div(&ff)); + u.push([f[0].mul(&coef), f[1].mul(&coef)]); + } + } + } + let mut s = Q::zero(); + for uj in &u { + s = s.add(&uj[0].norm2()).add(&uj[1].norm2()); + } + Levels { kernel_dim, u, s } +} + +struct Inter { + p: Vec, + pauli: Vec>, + zero: Vec, +} + +fn interacting(c: &Case, lv: &Levels, m: &Mods) -> Option { + let a = lv.u.iter().position(|x| !(x[0].is_zero() && x[1].is_zero()))?; + let n_q = Q::int(c.n as i64); + let ns = T::from_q(&n_q.mul(&lv.s)); + let w = T::from_q(&c.w); + let mut out = Inter { p: Vec::new(), pauli: Vec::new(), zero: Vec::new() }; + for k in 0..c.m { + let dk = Q::int(k as i64 - c.ref_index as i64); + let mut chi0 = C { re: T::from_q(&Q::zero()), im: T::from_q(&Q::zero()) }; + let mut chi1 = chi0.clone(); + for (j, uj) in lv.u.iter().enumerate() { + if uj[0].is_zero() && uj[1].is_zero() { + continue; + } + let mut turns = c.e[j].sub(&c.e[a]).mul(&dk).mul(&c.tau); + if m.phase_minus { + turns = turns.neg(); + } + let (cs, sn) = T::phase(&turns)?; + let ph = C { re: cs, im: sn }; + chi0 = chi0.add(&ph.mul(&C::from_cq(&uj[0]))); + chi1 = chi1.add(&ph.mul(&C::from_cq(&uj[1]))); + } + let nn = chi0.norm2().add(&chi1.norm2()); + let p = w.mul(&nn).div(&ns); + out.zero.push(nn.is_zero_exact()); + out.p.push(p.val()); + if nn.is_zero_exact() { + out.pauli.push(None); + } else { + out.pauli.push(Some(val3(&pauli_of(&chi0, &chi1)))); + } + } + Some(out) +} + +fn bloch(psi: &[Cq; 2]) -> [Q; 3] { + let n = psi[0].norm2().add(&psi[1].norm2()); + let x = psi[0].conj().mul(&psi[1]); + let two = Q::int(2); + [x.re.mul(&two).div(&n), x.im.mul(&two).div(&n), psi[0].norm2().sub(&psi[1].norm2()).div(&n)] +} + +fn rotate(b: &[T; 3], nh: &[T; 3], cs: &T, sn: &T) -> [T; 3] { + let one = T::from_q(&Q::one()); + let dot = nh[0].mul(&b[0]).add(&nh[1].mul(&b[1])).add(&nh[2].mul(&b[2])); + let cross = [ + nh[1].mul(&b[2]).sub(&nh[2].mul(&b[1])), + nh[2].mul(&b[0]).sub(&nh[0].mul(&b[2])), + nh[0].mul(&b[1]).sub(&nh[1].mul(&b[0])), + ]; + let omc = one.sub(cs); + let mut r = b.clone(); + for i in 0..3 { + r[i] = b[i].mul(cs).add(&cross[i].mul(sn)).add(&nh[i].mul(&dot).mul(&omc)); + } + r +} + +fn probs_from_bloch(b: &[T; 3]) -> [[Val; 2]; 3] { + let half = T::from_q(&Q::frac(1, 2)); + let mut out: Vec<[Val; 2]> = Vec::new(); + for i in 0..3 { + let hb = b[i].mul(&half); + out.push([half.add(&hb).val(), half.sub(&hb).val()]); + } + [out[0].clone(), out[1].clone(), out[2].clone()] +} + +/// Ideal reference for every label: (values, all exact?). +fn ideal(c: &Case, drop_h: bool) -> (Vec<[[Val; 2]; 3]>, bool) { + let b = bloch(&c.psi); + let h2 = c.h[0].mul(&c.h[0]).add(&c.h[1].mul(&c.h[1])).add(&c.h[2].mul(&c.h[2])); + let mut out = Vec::new(); + let mut all_exact = true; + for k in 0..c.m { + if h2.is_zero() || drop_h { + out.push(probs_from_bloch::(&b)); + continue; + } + let dk = Q::int(k as i64 - c.ref_index as i64); + if let Some(hn) = h2.sqrt_exact() { + let turns = Q::int(2).mul(&hn).mul(&dk).mul(&c.tau); + let nh = [c.h[0].div(&hn), c.h[1].div(&hn), c.h[2].div(&hn)]; + if let Some((cs, sn)) = ::phase(&turns) { + out.push(probs_from_bloch::(&rotate::(&b, &nh, &cs, &sn))); + continue; + } + all_exact = false; + let (cs, sn) = cos_sin_turns_q(&turns); + let bd = [Dd::from_q(&b[0]), Dd::from_q(&b[1]), Dd::from_q(&b[2])]; + let nd = [Dd::from_q(&nh[0]), Dd::from_q(&nh[1]), Dd::from_q(&nh[2])]; + out.push(probs_from_bloch::
(&rotate::
(&bd, &nd, &cs, &sn))); + } else { + all_exact = false; + let hn = Dd::from_q(&h2).sqrt(); + let turns = hn.mul(Dd::from_q(&Q::int(2).mul(&dk).mul(&c.tau))); + let (cs, sn) = cos_sin_turns(turns); + let bd = [Dd::from_q(&b[0]), Dd::from_q(&b[1]), Dd::from_q(&b[2])]; + let nd = [Dd::from_q(&c.h[0]).div(hn), Dd::from_q(&c.h[1]).div(hn), Dd::from_q(&c.h[2]).div(hn)]; + out.push(probs_from_bloch::
(&rotate::
(&bd, &nd, &cs, &sn))); + } + } + (out, all_exact) +} + +/// || sum_k F_k - I ||_F (AT1_SPEC Theorem 2), exact when every gap sum is exact. +fn povm_residual(c: &Case) -> Val { + let n = c.n; + let mq = Q::int(c.m as i64); + let wn = c.w.div(&Q::int(n as i64)); + // diagonal: (w M / N - 1)^2 per level + let diag = wn.mul(&mq).sub(&Q::one()); + let mut exact_sum = diag.mul(&diag).mul(&Q::int(n as i64)); + let mut dd_extra = Dd::zero(); + let mut exact = true; + for j in 0..n { + for jp in (j + 1)..n { + let dtau = c.e[j].sub(&c.e[jp]).mul(&c.tau); + let s2: Option = if dtau.is_int() { + Some(mq.mul(&mq)) + } else if dtau.mul(&mq).is_int() { + Some(Q::zero()) + } else { + // direct sum of exp(-2 pi i D k tau), k = 0..M-1 + let mut ex = Some((Q::zero(), Q::zero())); + let mut re = Dd::zero(); + let mut im = Dd::zero(); + for k in 0..c.m { + let t = dtau.mul(&Q::int(k as i64)).neg(); + if let Some((a, b)) = &mut ex { + match ::phase(&t) { + Some((cs, sn)) => { + *a = a.add(&cs); + *b = b.add(&sn); + } + None => {} + } + } + if ::phase(&t).is_none() { + ex = None; + } + let (cs, sn) = cos_sin_turns_q(&t); + re = re.add(cs); + im = im.add(sn); + } + match ex { + Some((a, b)) => Some(a.mul(&a).add(&b.mul(&b))), + None => { + exact = false; + dd_extra = dd_extra.add(re.mul(re).add(im.mul(im)).mul(Dd::from_q(&wn.mul(&wn))).mul_f(2.0)); + None + } + } + }; + if let Some(s2) = s2 { + exact_sum = exact_sum.add(&s2.mul(&wn).mul(&wn).mul(&Q::int(2))); + } + } + } + if exact { + if let Some(r) = exact_sum.sqrt_exact() { + return Val::exact(r); + } + } + Val::approx(Dd::from_q(&exact_sum).add(dd_extra).sqrt()) +} + +pub fn shadow(c: &Case, m: &Mods, force_dd: bool) -> Shadow { + let lv = levels(c, m); + let trivial = lv.kernel_dim == 0 || lv.s.is_zero(); + let tolz = Q::from_scaled(&c.tol_zero); + let (ideal_v, ideal_exact) = ideal(c, false); + let povm = povm_residual(c); + let mut sh = Shadow { + kernel_dim: lv.kernel_dim, + trivial, + interacting_exact: true, + p: Vec::new(), + status: vec![Status::Undefined; c.m], + pauli: vec![None; c.m], + ideal: ideal_v, + ideal_exact, + povm_residual: povm, + }; + if trivial { + return sh; + } + let inter = if force_dd { None } else { interacting::(c, &lv, m) }; + let inter = match inter { + Some(i) => i, + None => { + sh.interacting_exact = false; + interacting::
(c, &lv, m).expect("double-double path always succeeds") + } + }; + for k in 0..c.m { + let pv = &inter.p[k]; + let st = if inter.zero[k] && pv.exact { Status::Undefined } else { status_rule(&pv.q, &pv.bound(), &tolz) }; + sh.status[k] = st; + if st == Status::Defined { + sh.pauli[k] = inter.pauli[k].clone(); + } + } + sh.p = inter.p; + sh +} + +/// Shadow for the ideal model of the same case (V dropped): used by mutants that write the ideal marginal. +pub fn ideal_marginal(c: &Case) -> Q { + c.w.div(&Q::int(c.n as i64)) +} + +/// Ideal reference values (Definition 5.2), optionally without H_S (oracle mutant). +pub fn ideal_values(c: &Case, drop_h: bool) -> Vec<[[Val; 2]; 3]> { + ideal(c, drop_h).0 +} + +/// Display form: exact rational, or a decimal marked `~` for a double-double value. +pub fn show(v: &Val) -> String { + if v.exact { v.q.text() } else { format!("~{:.17e}", v.q.to_f64()) } +} diff --git a/research/atemporal/at1/evaluator/src/mutants.rs b/research/atemporal/at1/evaluator/src/mutants.rs new file mode 100644 index 000000000..5d596ae19 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/mutants.rs @@ -0,0 +1,423 @@ +//! Mutant kill receipt. Every mutant is a deliberately broken engine, oracle or +//! result file. A cell is KILLED when the verifier raises the mutant's intended +//! finding and every other FAIL finding lies inside the mutant's explained set; +//! ACCIDENT when it is caught only by something else; SURVIVED when nothing +//! fires; BLIND when the mutant's written values equal the honest ones (then +//! the receipt states whether AT1_SPEC section 9.2 predicts that blindness). + +use crate::case::{validate_bytes, Case}; +use crate::corpus::valid_specs; +use crate::model::{shadow, Mods, Status}; +use crate::rat::Q; +use crate::result::{Ck, Kind, RVal, ResultFile}; +use crate::synth::{engine_result, oracle_record, splice, EngineMut, OracleMut}; +use crate::verify::{verify, Role, Sev}; + +pub fn engine_mut(name: &str) -> Option { + let mut e = EngineMut::default(); + match name { + "honest" => {} + "M1-drop-v" => e.physics.drop_v = true, + "M2-flip-v" => e.physics.flip_v = true, + "M3-wrong-level" => e.physics.shift_level = true, + "M4-phase-sign" => e.physics.phase_minus = true, + "M5-y-sign" => e.y_sign = true, + "M6-axis-swap" => e.axis_swap = true, + "M8-ideal-marginal" => e.ideal_marginal = true, + "M9-stale-label" => e.stale_label = true, + "M10-bound-none-nonzero" => e.bound_kind_none_nonzero = true, + _ => return None, + } + Some(e) +} + +pub fn oracle_mut(name: &str) -> Option { + let mut o = OracleMut::default(); + match name { + "honest" => {} + "O1-ideal-without-h" => o.ideal_drop_h = true, + "O2-oracle-drop-v" => o.physics = Mods { drop_v: true, ..Mods::default() }, + "O3-oracle-phase-sign" => o.physics = Mods { phase_minus: true, ..Mods::default() }, + _ => return None, + } + Some(o) +} + +const PHYSICS: [&str; 7] = ["M1-drop-v", "M2-flip-v", "M3-wrong-level", "M4-phase-sign", "M5-y-sign", "M6-axis-swap", "M8-ideal-marginal"]; +const ORACLE: [&str; 3] = ["O1-ideal-without-h", "O2-oracle-drop-v", "O3-oracle-phase-sign"]; + +/// AT1_SPEC 9.2 blindness for M1 to M4 on the section 13 positive cases (P-class +/// of the path). M5, M6 and M8 blindness follows from the honest values +/// (no label with P(Y+) != 1/2; P(X+) = P(Y+) on every label; p(k) = w/N). +fn spec_blind(m: &str, path: &str) -> Option { + let cls = if path.contains("P1a") || path.contains("P1b") { + "P1" + } else if path.contains("P1c") { + "P1c" + } else if path.contains("P6") || path.contains("N1f") { + "P6" + } else { + "other" + }; + match m { + "M1-drop-v" | "M2-flip-v" => Some(cls == "P1" || cls == "P1c"), + "M3-wrong-level" => Some(cls == "P1"), + "M4-phase-sign" => Some(cls == "P6"), + _ => None, + } +} + + +/// Flipping the sign of every clock phase (the M4 / O3 defect, which acts on the interacting +/// conditional states only; the ideal reference is a separate formula) is complex conjugation +/// of the conditional state when the case data are real (psi_0 real and no Y component in h or any v_j, so every +/// level vector is real). Conjugation keeps p(k), P(X) and P(Z) and maps P(Y+) to 1 - P(Y+), +/// so such a case is blind to a phase-sign mutant exactly when P(Y+) = 1/2 on every DEFINED +/// label (the AT1_SPEC 9.2 M4 reasoning: only a complex relative +/// phase is visible). N3 is such a case: chi_k = (1 + i^k)(1, 0) (AT1_SPEC 13.2). +fn conjugation_blind(c: &Case) -> bool { + let real = c.psi[0].im.is_zero() && c.psi[1].im.is_zero() && c.h[1].is_zero() && c.v.iter().all(|v| v[1].is_zero()); + if !real { + return false; + } + let sh = shadow(c, &Mods::default(), false); + let half = Q::frac(1, 2); + let y_half = |s: &[[crate::model::Val; 2]; 3]| s[1][0].q == half; + (0..c.m).all(|k| sh.pauli[k].as_ref().map_or(true, |p| y_half(p))) +} + +/// Predicted blindness of the oracle mutants, from AT1_SPEC 9.2 (no derivation from the +/// mutant's own output): O2 drops V, so it is blind exactly where M1 is (P1, P1c); O3 flips +/// the phase sign, so it is blind where M4 is (P6 and its IDEAL-target twin N1f) and on every +/// trivial kernel, where the trivial-kernel rule leaves all reference values undefined. +/// O1 (IDEAL reference without h) is predicted never blind; the receipt shows whether that holds. +fn oracle_predicted_blind(m: &str, path: &str, c: &Case) -> bool { + match m { + "O2-oracle-drop-v" => spec_blind("M1-drop-v", path) == Some(true), + "O3-oracle-phase-sign" => spec_blind("M4-phase-sign", path) == Some(true) || shadow(c, &Mods::default(), false).trivial || conjugation_blind(c), + _ => false, + } +} +fn honest_engine_derived_blind(m: &str, c: &Case) -> bool { + let sh = shadow(c, &Mods::default(), false); + if sh.trivial { + return true; + } + let half = Q::frac(1, 2); + let wn = c.w.div(&Q::int(c.n as i64)); + match m { + "M5-y-sign" => (0..c.m).all(|k| sh.pauli[k].as_ref().map_or(true, |p| p[1][0].q == half)), + "M6-axis-swap" => (0..c.m).all(|k| sh.pauli[k].as_ref().map_or(true, |p| p[0][0].q == p[1][0].q)), + "M8-ideal-marginal" => (0..c.m).all(|k| sh.p[k].q == wn), + _ => false, + } +} + +fn engine_values_equal(a: &ResultFile, b: &ResultFile) -> bool { + a.kernel_dim == b.kernel_dim && a.constraint == b.constraint && a.povm == b.povm && a.label == b.label && a.clock == b.clock && a.pauli == b.pauli && a.bound_kind == b.bound_kind +} +fn oracle_values_equal(a: &ResultFile, b: &ResultFile) -> bool { + a.ref_label == b.ref_label && a.ref_clock == b.ref_clock && a.ref_ideal == b.ref_ideal && a.ref_inter == b.ref_inter +} + +struct Cell { + mutant: String, + case: String, + runner_codes: String, + findings: Vec, + intended: String, + verdict: String, +} + +fn judge_cell(fails: &[String], flagged: &[String], intended: &[&str], allowed: &[&str]) -> &'static str { + let ok = |f: &String| intended.iter().any(|i| f == i) || allowed.iter().any(|a| if a.ends_with('*') { f.starts_with(&a[..a.len() - 1]) } else { f == a }); + let hit = fails.iter().chain(flagged.iter()).any(|f| intended.iter().any(|i| f == i)); + if fails.is_empty() && flagged.is_empty() { + "SURVIVED" + } else if hit && fails.iter().all(ok) && flagged.iter().all(ok) { + if fails.iter().any(|f| intended.iter().any(|i| f == i)) { "KILLED" } else { "FLAGGED" } + } else { + "ACCIDENT" + } +} + +fn codes_of(r: &ResultFile) -> String { + if r.verdict.failure_codes.is_empty() { "none".into() } else { r.verdict.failure_codes.join(",") } +} + +pub fn receipt(out: &str) -> i32 { + let mut cells: Vec = Vec::new(); + let specs = valid_specs(); + let cases: Vec<(String, Case, Vec)> = specs + .iter() + .map(|(p, _, s)| { + let b = s.bytes(); + (p.clone(), validate_bytes(&b).expect("public case valid"), b) + }) + .collect(); + let honest_o = |c: &Case| oracle_record(c, &OracleMut::default(), "at1-eval synth-oracle honest"); + let honest_e = |c: &Case| engine_result(c, &EngineMut::default(), "at1-eval synth-engine honest"); + // ---- physics mutants of the engine, on every positive case and the N1 family ---- + for (path, c, cb) in cases.iter().filter(|(p, _, _)| p.starts_with("positive/") || p.contains("/N1")) { + let o = honest_o(c); + let he = honest_e(c); + for m in PHYSICS { + let em = engine_mut(m).unwrap(); + let e = engine_result(c, &em, &format!("at1-eval synth-engine {}", m)); + let r = splice(&e, &o).expect("splice"); + let rep = verify(&r.bytes(), Some(cb), Role::Candidate); + let fails: Vec = rep.findings.iter().filter(|f| f.sev == Sev::Fail).map(|f| f.code.clone()).collect(); + let flagged: Vec = rep.findings.iter().filter(|f| f.sev != Sev::Fail).map(|f| f.code.clone()).collect(); + let code_ok = if c.target_ideal { + r.verdict.failure_codes.iter().any(|x| x == "ORACLE_DISAGREEMENT" || x == "TRIVIAL_PHYSICAL_STATE") + } else { + r.verdict.failure_codes.iter().any(|x| x == "INTERACTING_DEVIATION_EXCEEDED" || x == "TRIVIAL_PHYSICAL_STATE") + }; + let intended = if c.target_ideal { "EXPECTATION-NOT-MET via check 11 ORACLE_DISAGREEMENT (or check 3)" } else { "EXPECTATION-NOT-MET via check 10 INTERACTING_DEVIATION_EXCEEDED (or check 3)" }; + let trivial_claim = rep.codes().iter().any(|x| x == "E4-SHADOW-TRIVIAL"); + let mut allowed: Vec<&str> = vec!["E4-SHADOW-*"]; + if trivial_claim { + allowed.extend(["E4-CHECK-MISMATCH", "E4-OUTCOME-MISMATCH", "E4-CODES-MISMATCH", "E4-EXPECTATION-MISMATCH", "E4-UNDEFINED-DISCIPLINE"]); + } + let blind = engine_values_equal(&e, &he); + let expected_blind = spec_blind(m, path).unwrap_or_else(|| honest_engine_derived_blind(m, c)); + let verdict = if blind { + if expected_blind { "BLIND (predicted)".to_string() } else { "BLIND (NOT predicted)".to_string() } + } else { + let v = judge_cell(&fails, &flagged, &["E4-EXPECTATION-NOT-MET"], &allowed); + let v = if v == "KILLED" && !code_ok { "ACCIDENT" } else { v }; + // a kill where blindness was predicted means the mutant is not the one the spec describes + if expected_blind { format!("UNEXPECTED ({} although predicted blind)", v) } else { v.to_string() } + }; + cells.push(Cell { mutant: m.into(), case: path.clone(), runner_codes: codes_of(&r), findings: rep.codes(), intended: intended.into(), verdict }); + } + } + // ---- engine mutants with a single target case ---- + let find = |p: &str| cases.iter().find(|(x, _, _)| x.contains(p)).expect("case present"); + for (m, cpath, intended, allowed) in [ + ("M9-stale-label", "N3-zero-label", "E4-LABEL-RULE", vec!["E4-EXPECTATION-NOT-MET", "E4-SHADOW-*"]), + ("M10-bound-none-nonzero", "P2-kat", "E4-BOUND-NONE-NONZERO", vec!["E4-EXPECTATION-NOT-MET"]), + ] { + let (path, c, cb) = find(cpath); + let e = engine_result(c, &engine_mut(m).unwrap(), &format!("at1-eval synth-engine {}", m)); + let r = splice(&e, &honest_o(c)).unwrap(); + let rep = verify(&r.bytes(), Some(cb), Role::Candidate); + let fails: Vec = rep.findings.iter().filter(|f| f.sev == Sev::Fail).map(|f| f.code.clone()).collect(); + let flagged: Vec = rep.findings.iter().filter(|f| f.sev != Sev::Fail).map(|f| f.code.clone()).collect(); + let v = judge_cell(&fails, &flagged, &[intended], &allowed); + cells.push(Cell { mutant: m.into(), case: path.clone(), runner_codes: codes_of(&r), findings: rep.codes(), intended: intended.into(), verdict: v.into() }); + } + // ---- oracle mutants: the oracle record itself (gate G3 role) ---- + for (path, c, cb) in cases.iter() { + let ho = honest_o(c); + for m in ORACLE { + let o = oracle_record(c, &oracle_mut(m).unwrap(), &format!("at1-eval synth-oracle {}", m)); + let rep = verify(&o.bytes(), Some(cb), Role::Oracle); + let fails: Vec = rep.findings.iter().filter(|f| f.sev == Sev::Fail).map(|f| f.code.clone()).collect(); + let flagged: Vec = rep.findings.iter().filter(|f| f.sev != Sev::Fail).map(|f| f.code.clone()).collect(); + let (intended, allowed): (&[&str], Vec<&str>) = match m { + "O1-ideal-without-h" => (&["E4-ORACLE-IDEAL"], vec![]), + _ => (&["E4-ORACLE-INTERACTING", "E4-ORACLE-CLOCK", "E4-ORACLE-LABEL", "E4-ORACLE-TRIVIAL"], vec!["E4-SHADOW-*", "E4-ORACLE-*", "E4-CHECK-MISMATCH", "E4-OUTCOME-MISMATCH", "E4-CODES-MISMATCH", "E4-EXPECTATION-MISMATCH", "E4-UNDEFINED-DISCIPLINE", "E4-TRIVIAL-SHAPE"]), + }; + let blind = oracle_values_equal(&o, &ho); + let predicted = oracle_predicted_blind(m, path, c); + let verdict = match (blind, predicted) { + (true, true) => "BLIND (predicted)".to_string(), + (true, false) => "BLIND (NOT predicted)".to_string(), + (false, true) => format!("UNEXPECTED ({} although predicted blind)", judge_cell(&fails, &flagged, intended, &allowed)), + (false, false) => judge_cell(&fails, &flagged, intended, &allowed).to_string(), + }; + cells.push(Cell { mutant: m.into(), case: path.clone(), runner_codes: codes_of(&o), findings: rep.codes(), intended: intended.join("|"), verdict }); + } + } + // ---- result-file mutants on honest spliced results ---- + let honest_spliced = |p: &str| { + let (path, c, cb) = find(p); + (path.clone(), splice(&honest_e(c), &honest_o(c)).unwrap(), cb.clone()) + }; + let mut file_cells: Vec<(&str, &str, &str, Box Option>>)> = Vec::new(); + file_cells.push(("F1-wrong-evidence-digest", "P2-kat", "E4-EVIDENCE-DIGEST", Box::new(|r: &mut ResultFile| { + let mut b = r.evidence_digest.clone().into_bytes(); + b[0] = if b[0] == b'0' { b'1' } else { b'0' }; + r.evidence_digest = String::from_utf8(b).unwrap(); + Some(r.bytes()) + }))); + file_cells.push(("F2-wrong-verdict-id", "P2-kat", "E4-VERDICT-ID", Box::new(|r: &mut ResultFile| { + let mut b = r.verdict_id.clone().into_bytes(); + b[5] = if b[5] == b'0' { b'1' } else { b'0' }; + r.verdict_id = String::from_utf8(b).unwrap(); + r.evidence_digest = r.compute_evidence(); + Some(r.bytes()) + }))); + file_cells.push(("F3-dropped-line", "P2-kat", "E4-PARSE", Box::new(|r: &mut ResultFile| { + let mut l = r.lines(); + let i = l.iter().position(|x| x.starts_with("pauli 1 Y PLUS ")).unwrap(); + l.remove(i); + Some(crate::text::join_lf(&l)) + }))); + file_cells.push(("F4-outcome-lie", "N1-p2", "E4-OUTCOME-MISMATCH", Box::new(|r: &mut ResultFile| { + r.verdict.outcome = "PASS".into(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F5-codes-lie", "N4a", "E4-CODES-MISMATCH", Box::new(|r: &mut ResultFile| { + r.verdict.failure_codes.retain(|x| x != "PROBABILITY_SUM_EXCEEDED"); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F6-check-lie", "N1-p2", "E4-CHECK-MISMATCH", Box::new(|r: &mut ResultFile| { + r.verdict.checks[9] = Ck::Pass; + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F7-expectation-lie", "P2-kat", "E4-EXPECTATION-MISMATCH", Box::new(|r: &mut ResultFile| { + r.verdict.expectation = "NO".into(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F8-oracle-is-engine", "P2-kat", "E4-PROV-ORACLE-IS-ENGINE", Box::new(|r: &mut ResultFile| { + r.prov.oracle_sha256 = r.prov.engine_sha256.clone(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F10-time-order", "P2-kat", "E4-PROV-TIME-ORDER", Box::new(|r: &mut ResultFile| { + r.prov.run_started = "2026-10-09T00:00:01Z".into(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F11-case-sha", "P2-kat", "E4-CASE-SHA", Box::new(|r: &mut ResultFile| { + r.case_file_sha256 = crate::sha256::sha256_hex(b"not the case"); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F12-undefined-on-defined", "P2-kat", "E4-UNDEFINED-DISCIPLINE", Box::new(|r: &mut ResultFile| { + r.pauli[1][2][0] = RVal::undefined(); + let nt = !crate::verify::claims_trivial(r); + r.verdict = crate::judge::rederive(r, nt); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F13-trivial-shape", "N2-every", "E4-TRIVIAL-SHAPE", Box::new(|r: &mut ResultFile| { + r.povm = RVal::undefined(); + let nt = !crate::verify::claims_trivial(r); + r.verdict = crate::judge::rederive(r, nt); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F14-nonfinite-value", "P2-kat", "E4-EXPECTATION-NOT-MET", Box::new(|r: &mut ResultFile| { + r.pauli[0][0][0] = RVal { kind: Kind::Nonfinite, bound: r.pauli[0][0][0].bound.clone() }; + let nt = !crate::verify::claims_trivial(r); + r.verdict = crate::judge::rederive(r, nt); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F15-dirty-tree", "P2-kat", "E4-PROV-DIRTY-TREE", Box::new(|r: &mut ResultFile| { + r.prov.source_tree_clean = "NO".into(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F16-unknown-contract", "P2-kat", "E4-PROV-CONTRACT-UNKNOWN", Box::new(|r: &mut ResultFile| { + r.prov.contract_commit = "1111111111111111111111111111111111111111".into(); + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F17-wrong-kernel-dim", "P2-kat", "E4-SHADOW-KERNEL-DIM", Box::new(|r: &mut ResultFile| { + r.kernel_dim = 3; + r.seal(); + Some(r.bytes()) + }))); + file_cells.push(("F18-label-status-lie", "N3-zero", "E4-LABEL-RULE", Box::new(|r: &mut ResultFile| { + // label 2 (p = 0) claimed DEFINED with label 1's Pauli values + r.label[2] = Status::Defined; + r.pauli[2] = r.pauli[1].clone(); + let nt = !crate::verify::claims_trivial(r); + r.verdict = crate::judge::rederive(r, nt); + r.seal(); + Some(r.bytes()) + }))); + // F19/F20 (review finding 1): every reference_ideal value forged to 1/2 behind a bound of 1, + // on a case where no check reads reference_ideal (INTERACTING target) and on a trivial kernel + for (name, cp) in [("F19-wide-bound-reference-ideal", "P2-kat"), ("F20-wide-bound-reference-ideal-trivial", "N2-every")] { + file_cells.push((name, cp, "E4-ORACLE-IDEAL", Box::new(|r: &mut ResultFile| { + let wide = crate::rat::parse_scaled("1@0").expect("bound literal").0; + for k in 0..r.ref_ideal.len() { + for a in 0..3 { + for g in 0..2 { + r.ref_ideal[k][a][g] = crate::result::RVal::of(0.5, &wide); + } + } + } + r.seal(); + Some(r.bytes()) + }))); + } + for (m, cp, intended, f) in file_cells.iter() { + let (path, mut r, cb) = honest_spliced(cp); + let b = f(&mut r).unwrap(); + let rep = verify(&b, Some(&cb), Role::Candidate); + let fails: Vec = rep.findings.iter().filter(|f| f.sev == Sev::Fail).map(|f| f.code.clone()).collect(); + let flagged: Vec = rep.findings.iter().filter(|f| f.sev != Sev::Fail).map(|f| f.code.clone()).collect(); + let allowed: Vec<&str> = match *m { + "F12-undefined-on-defined" | "F18-label-status-lie" => vec!["E4-EXPECTATION-NOT-MET", "E4-SHADOW-LABEL"], + _ => vec![], + }; + let v = judge_cell(&fails, &flagged, &[intended], &allowed); + let rc = crate::result::parse(&b).map(|x| codes_of(&x)).unwrap_or_else(|_| "unparsed".into()); + cells.push(Cell { mutant: m.to_string(), case: path, runner_codes: rc, findings: rep.codes(), intended: intended.to_string(), verdict: v.into() }); + } + // F9: an oracle record handed in as a candidate result + { + let (path, c, cb) = find("P2-kat"); + let o = honest_o(c); + let rep = verify(&o.bytes(), Some(cb), Role::Candidate); + let fails: Vec = rep.findings.iter().filter(|f| f.sev == Sev::Fail).map(|f| f.code.clone()).collect(); + let flagged: Vec = rep.findings.iter().filter(|f| f.sev != Sev::Fail).map(|f| f.code.clone()).collect(); + let v = judge_cell(&fails, &flagged, &["E4-PROV-ORACLE-RECORD"], &[]); + cells.push(Cell { mutant: "F9-oracle-record-as-candidate".into(), case: path.clone(), runner_codes: codes_of(&o), findings: rep.codes(), intended: "E4-PROV-ORACLE-RECORD".into(), verdict: v.into() }); + } + // ---- honest controls: every valid public case must verify PASS with no finding ---- + let mut honest_bad = 0; + for (path, c, cb) in cases.iter() { + let r = splice(&honest_e(c), &honest_o(c)).unwrap(); + let rep = verify(&r.bytes(), Some(cb), Role::Candidate); + let ro = verify(&honest_o(c).bytes(), Some(cb), Role::Oracle); + let v = if rep.status() == "PASS" && ro.status() == "PASS" { "PASS" } else { honest_bad += 1; "FAIL" }; + let mut f = rep.codes(); + f.extend(ro.codes().into_iter().map(|x| format!("oracle:{}", x))); + cells.push(Cell { mutant: "honest".into(), case: path.clone(), runner_codes: codes_of(&r), findings: f, intended: "no finding".into(), verdict: v.into() }); + } + // ---- write ---- + let mut s = String::from("# AT-1 Agent 4 mutant kill receipt (generated by `at1-eval mutants`; deterministic)\n# mutant\tcase\trunner_failure_codes\tverifier_findings\tintended\tverdict\n"); + let mut bad = honest_bad; + let mut tally: std::collections::BTreeMap = Default::default(); + for c in &cells { + s.push_str(&format!("{}\t{}\t{}\t{}\t{}\t{}\n", c.mutant, c.case, c.runner_codes, if c.findings.is_empty() { "none".into() } else { c.findings.join(",") }, c.intended, c.verdict)); + let t = tally.entry(c.mutant.clone()).or_default(); + if c.mutant == "honest" { + continue; + } + if c.verdict.starts_with("KILLED") || c.verdict.starts_with("FLAGGED") { + t.0 += 1; + } else if c.verdict == "BLIND (predicted)" { + t.1 += 1; + } else { + t.2 += 1; + bad += 1; + } + t.3 += 1; + } + s.push_str("# summary: mutant\tkilled_or_flagged\tblind_explained\tunexpected\tcells\n"); + for (m, t) in &tally { + if m == "honest" { + continue; + } + s.push_str(&format!("# {}\t{}\t{}\t{}\t{}\n", m, t.0, t.1, t.2, t.3)); + } + s.push_str(&format!("# honest controls failing: {}\n# MUTANT_RECEIPT: {}\n", honest_bad, if bad == 0 { "PASS" } else { "FAIL" })); + if let Some(parent) = std::path::Path::new(out).parent() { + let _ = std::fs::create_dir_all(parent); + } + std::fs::write(out, s.as_bytes()).expect("write receipt"); + println!("MUTANT_RECEIPT: {} ({} cells, {} unexpected) -> {}", if bad == 0 { "PASS" } else { "FAIL" }, cells.len(), bad, out); + if bad == 0 { 0 } else { 1 } +} diff --git a/research/atemporal/at1/evaluator/src/qualify.rs b/research/atemporal/at1/evaluator/src/qualify.rs new file mode 100644 index 000000000..6e63a2da3 --- /dev/null +++ b/research/atemporal/at1/evaluator/src/qualify.rs @@ -0,0 +1,574 @@ +//! `selftest` (the evaluator's own tests at run time) and `qualify` (run a +//! candidate engine and the oracle on a corpus, splice, verify, and print the +//! per-case table and gate verdicts of AT1 charter section 6). + +use crate::case::{case_bytes_from_body, validate_bytes, BoundKind, Case}; +use crate::corpus::{hand_tables, kat, public_rows, valid_specs}; +use crate::judge::rederive; +use crate::model::{shadow, Mods, Status}; +use crate::rat::{parse_rat, Q}; +use crate::result::{parse, Ck, Kind, RVal, ResultFile}; +use crate::synth::{engine_result, oracle_record, splice, EngineMut, OracleMut}; +use crate::verify::{case_status, verify, Role, Sev}; +use std::fs; +use std::process::Command; + +pub const KAT_FILE_SHA: &str = "76e282fecf21025c9dd675378244e90ff192822a4c49d6cb812c9fe84b3f9ba4"; +pub const KAT_CASE_ID: &str = "890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1"; +pub const KAT_ACC_ID: &str = "d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f"; + +fn hq(s: &str) -> Q { + if s.contains('/') { + parse_rat(s).expect("hand table rational").0 + } else { + Q::int(s.parse::().expect("hand table integer")) + } +} + +struct T { + n: usize, + bad: usize, +} +impl T { + fn ok(&mut self, cond: bool, what: &str) { + self.n += 1; + if !cond { + self.bad += 1; + println!("SELFTEST FAIL: {}", what); + } + } +} + +fn case_of(path_part: &str) -> (String, Case, Vec) { + let (p, _, s) = valid_specs().into_iter().find(|(p, _, _)| p.contains(path_part)).expect("case"); + let b = s.bytes(); + (p, validate_bytes(&b).expect("valid"), b) +} +fn honest(c: &Case) -> ResultFile { + splice(&engine_result(c, &EngineMut::default(), "at1-eval synth-engine honest"), &oracle_record(c, &OracleMut::default(), "at1-eval synth-oracle honest")).unwrap() +} +fn rejudge(r: &mut ResultFile) { + let nt = !crate::verify::claims_trivial(r); + r.verdict = rederive(r, nt); + r.seal(); +} +fn rv(x: f64, b: &str) -> RVal { + RVal::of(x, &crate::rat::parse_scaled(b).unwrap().0) +} + +/// Each check of section 4 fires on a crafted input, with the exact code. +fn check_firing(t: &mut T) { + let (_, p2, _) = case_of("P2-kat"); + let base = honest(&p2); + t.ok(base.verdict.outcome == "PASS" && base.verdict.checks[10] == Ck::NotEval, "honest P2 is PASS with check 11 NOT_EVALUATED"); + let fire = |t: &mut T, r: &ResultFile, i: usize, want: Ck, code: &str, what: &str| { + t.ok(r.verdict.checks[i] == want && (code.is_empty() || r.verdict.failure_codes.iter().any(|x| x == code)), &format!("check {} {} -> {} {} (got {} {:?})", i + 1, what, want.text(), code, r.verdict.checks[i].text(), r.verdict.failure_codes)); + }; + let mut r = base.clone(); + r.bound_kind = BoundKind::None; + rejudge(&mut r); + fire(t, &r, 0, Ck::Fail, "BOUND_KIND_INSUFFICIENT", "bound_kind NONE vs min ESTIMATED"); + let mut r = base.clone(); + r.pauli[0][0][0] = RVal { kind: Kind::Nonfinite, bound: r.pauli[0][0][0].bound.clone() }; + rejudge(&mut r); + fire(t, &r, 1, Ck::Fail, "NONFINITE_VALUE", "a nonfinite pauli value"); + let (_, n2, _) = case_of("N2-every"); + let r = honest(&n2); + fire(t, &r, 2, Ck::Fail, "TRIVIAL_PHYSICAL_STATE", "N2 trivial kernel"); + t.ok([3, 5, 6, 7, 8, 9, 10, 11].iter().all(|&i| r.verdict.checks[i] == Ck::NotEval) && r.verdict.checks[4] == Ck::Pass, "trivial-kernel rule: 4, 6..12 NOT_EVALUATED, 5 evaluated"); + let mut r = base.clone(); + r.constraint = rv(1e-6, "1@15"); + rejudge(&mut r); + fire(t, &r, 3, Ck::Fail, "CONSTRAINT_RESIDUAL_EXCEEDED", "constraint residual 1e-6"); + let (_, n4a, _) = case_of("N4a"); + let r = honest(&n4a); + fire(t, &r, 4, Ck::Fail, "POVM_NORMALIZATION_EXCEEDED", "N4a povm"); + fire(t, &r, 5, Ck::Fail, "PROBABILITY_SUM_EXCEEDED", "N4a sum"); + let mut r = base.clone(); + r.pauli[1][2][0] = rv(1.25, "1@15"); + r.pauli[1][2][1] = rv(-0.25, "1@15"); + rejudge(&mut r); + fire(t, &r, 6, Ck::Fail, "PROBABILITY_OUT_OF_RANGE", "P(Z+) 1.25 and P(Z-) -0.25"); + t.ok(r.verdict.checks[7] == Ck::Pass, "pair sum still 1 so check 8 PASS"); + let mut r = base.clone(); + r.pauli[2][0][0] = rv(0.2, "1@15"); + rejudge(&mut r); + fire(t, &r, 7, Ck::Fail, "PROBABILITY_SUM_EXCEEDED", "P(X+)+P(X-) != 1"); + let (_, n3, _) = case_of("N3-zero"); + let r = honest(&n3); + fire(t, &r, 8, Ck::Fail, "CONDITIONAL_UNDEFINED", "N3 zero label"); + t.ok(r.verdict.failure_codes == vec!["CONDITIONAL_UNDEFINED".to_string()], "N3 exact code set"); + let (_, n1, _) = case_of("N1-p2"); + let r = honest(&n1); + fire(t, &r, 9, Ck::Fail, "SCHRODINGER_DEVIATION_EXCEEDED", "N1 target IDEAL"); + t.ok(r.verdict.checks[10] == Ck::Pass && r.verdict.checks[11] == Ck::Pass, "N1: check 11 and 12 PASS for a correct engine"); + let e = engine_result(&p2, &crate::mutants::engine_mut("M1-drop-v").unwrap(), "m1"); + let r = splice(&e, &oracle_record(&p2, &OracleMut::default(), "o")).unwrap(); + fire(t, &r, 9, Ck::Fail, "INTERACTING_DEVIATION_EXCEEDED", "drop-V engine, target INTERACTING"); + let e = engine_result(&n1.clone(), &crate::mutants::engine_mut("M1-drop-v").unwrap(), "m1"); + let r = splice(&e, &oracle_record(&n1, &OracleMut::default(), "o")).unwrap(); + fire(t, &r, 10, Ck::Fail, "ORACLE_DISAGREEMENT", "drop-V engine, target IDEAL"); + t.ok(r.verdict.checks[9] == Ck::Pass, "drop-V engine passes check 10 under IDEAL (AT1_SPEC 9.2 M1)"); + let mut r = base.clone(); + r.ref_label[3] = Status::Undefined; + r.ref_clock[3] = rv(0.0, "0@0"); + r.ref_inter[3] = r.pauli[0].clone().map(|a| a.map(|_| RVal::undefined())); + rejudge(&mut r); + fire(t, &r, 11, Ck::Fail, "ORACLE_DISAGREEMENT", "engine DEFINED, oracle UNDEFINED"); + let mut r = base.clone(); + r.ref_clock[3] = rv(1e-9, "1@15"); + r.ref_label[3] = Status::Indeterminate; + r.ref_inter[3] = r.pauli[0].clone().map(|a| a.map(|_| RVal::undefined())); + rejudge(&mut r); + fire(t, &r, 11, Ck::Indet, "PRECISION_INSUFFICIENT", "oracle label INDETERMINATE"); + let mut r = base.clone(); + r.clock[0] = RVal { kind: r.clock[0].kind.clone(), bound: crate::rat::parse_scaled("2@12").unwrap().0 }; + rejudge(&mut r); + fire(t, &r, 5, Ck::Indet, "PRECISION_INSUFFICIENT", "sum bound straddles the tolerance"); + t.ok(r.verdict.outcome == "FAIL" && r.verdict.expectation == "NO", "PRECISION_INSUFFICIENT makes the outcome FAIL and expectation NO"); + // absolute and signed forms on exact boundaries + let tol = Q::frac(1, 10); + t.ok(crate::judge::tri_abs(&Q::frac(-1, 20), &Q::frac(1, 20), &tol) == Ck::Pass, "absolute form: |v|+b == tol is PASS"); + t.ok(crate::judge::tri_abs(&Q::frac(3, 20), &Q::frac(1, 20), &tol) == Ck::Indet, "absolute form: |v|-b == tol is INDETERMINATE"); + t.ok(crate::judge::tri_signed(&Q::frac(-1, 2), &Q::zero(), &tol) == Ck::Pass, "signed form: negative v is PASS"); +} + +pub fn selftest() -> i32 { + let mut t = T { n: 0, bad: 0 }; + // 1. worked example digests + let kb = kat().bytes(); + match validate_bytes(&kb) { + Ok(c) => { + t.ok(c.file_sha256 == KAT_FILE_SHA, "KAT case_file_sha256"); + t.ok(c.case_id == KAT_CASE_ID, "KAT case_id"); + t.ok(c.acceptance_id == KAT_ACC_ID, "KAT acceptance_id"); + } + Err(e) => t.ok(false, &format!("KAT refused {:?}", e)), + } + // 2. codec on every public row, and canonical round trip of valid cases + for r in public_rows() { + let got = match validate_bytes(&r.bytes) { + Ok(c) => { + t.ok(case_bytes_from_body(&c.body_lines) == r.bytes, &format!("{} rebuilds byte-identically", r.path)); + "AT1_CASE_OK".to_string() + } + Err((code, _)) => format!("AT1_CASE_REFUSED {}", code.code()), + }; + t.ok(got == r.expect, &format!("{}: codec gives {}, manifest {}", r.path, got, r.expect)); + } + // 3. shadow against the AT1_SPEC 13.2 hand tables (exact) + for (path, table) in hand_tables() { + let (_, c, _) = case_of(path); + let sh = shadow(&c, &Mods::default(), false); + t.ok(sh.interacting_exact && sh.ideal_exact, &format!("{} is computed exactly", path)); + for (k, row) in table.iter().enumerate() { + let pa = sh.pauli[k].as_ref(); + t.ok(sh.p[k].q == hq(row[0]), &format!("{} p({}) = {} (shadow {})", path, k, row[0], sh.p[k].q.text())); + for a in 0..3 { + t.ok(pa.map_or(false, |p| p[a][0].q == hq(row[1 + a])), &format!("{} k={} axis {} = {}", path, k, a, row[1 + a])); + t.ok(sh.ideal[k][a][0].q == hq(row[4 + a]), &format!("{} k={} ideal axis {} = {}", path, k, a, row[4 + a])); + } + } + } + let kd = |p: &str| shadow(&case_of(p).1, &Mods::default(), false); + t.ok(kd("P3-every").kernel_dim == 3 && kd("P3b").kernel_dim == 4 && kd("P2-kat").kernel_dim == 2 && kd("P6").kernel_dim == 2, "kernel dimensions 3, 4, 2, 2 (P3, P3b, P2, P6)"); + let n2 = kd("N2-every"); + t.ok(n2.kernel_dim == 0 && n2.trivial, "N2: dimension 0"); + let n6 = kd("N6-zero"); + t.ok(n6.kernel_dim == 1 && n6.trivial, "N6: dimension 1, Psi = 0 exactly"); + for (k, x) in ["4/5", "1/2", "1/5", "1/2"].iter().enumerate() { + t.ok(n6.ideal[k][0][0].q == hq(x) && n6.ideal[k][2][0].q == hq("9/10"), &format!("N6 reference_ideal k={}", k)); + } + let n3 = kd("N3-zero"); + t.ok(["1/2", "1/4", "0", "1/4"].iter().enumerate().all(|(k, x)| n3.p[k].q == hq(x)) && n3.status[2] == Status::Undefined, "N3 marginal 1/2, 1/4, 0, 1/4 with label 2 UNDEFINED"); + let n4a = kd("N4a"); + t.ok(["5/56", "1/8", "9/56", "1/8"].iter().enumerate().all(|(k, x)| n4a.p[k].q == hq(x)) && n4a.povm_residual.q == Q::one(), "N4a marginal and povm_residual 1"); + let n4b = kd("N4b"); + let r42 = (42.0f64).sqrt() / 4.0; + t.ok(["5/28", "2/7", "2/7", "5/28"].iter().enumerate().all(|(k, x)| (n4b.p[k].q.sub(&hq(x))).abs().cmp(&Q::frac(1, 1_000_000_000_000)) == std::cmp::Ordering::Less) && (n4b.povm_residual.q.to_f64() - r42).abs() < 1e-15, "N4b marginal 5/28, 2/7, 2/7, 5/28 and povm sqrt(42)/4"); + let y1 = 0.5 + 3.0 * (3.0f64).sqrt() / 16.0; + let near = |a: &Q, b: &Q| a.sub(b).abs().cmp(&Q::frac(1, 1_000_000_000_000_000_000)) == std::cmp::Ordering::Less; + t.ok(n4b.pauli[1].as_ref().map_or(false, |p| near(&p[0][0].q, &hq("19/80")) && (p[1][0].q.to_f64() - y1).abs() < 1e-15 && near(&p[2][0].q, &hq("31/40"))), "N4b k=1 Pauli 19/80, 1/2 + 3 sqrt(3)/16, 31/40"); + // 4. AT1_SPEC 13.3 deviation maxima + for (p, dp_max, dpp_max) in [("P2-kat", "3/10", "1/14"), ("P3-every", "2/5", "9/56"), ("P3b", "1", "21/80"), ("P4-complex-psi-ref-t1", "99/370", "3/41"), ("P5", "274763624033/549527248074", "362/524179"), ("P6", "49/50", "1/14"), ("P1a", "0", "0"), ("P1c", "0", "0")] { + let (_, c, _) = case_of(p); + let sh = shadow(&c, &Mods::default(), false); + let wn = c.w.div(&Q::int(c.n as i64)); + let mut mdp = Q::zero(); + let mut mp = Q::zero(); + for k in 0..c.m { + if let Some(pa) = &sh.pauli[k] { + for a in 0..3 { + for g in 0..2 { + let d = pa[a][g].q.sub(&sh.ideal[k][a][g].q).abs(); + if d.cmp(&mdp) == std::cmp::Ordering::Greater { + mdp = d; + } + } + } + } + let d = sh.p[k].q.sub(&wn).abs(); + if d.cmp(&mp) == std::cmp::Ordering::Greater { + mp = d; + } + } + t.ok(mdp == hq(dp_max) && mp == hq(dpp_max), &format!("13.3 {}: max|dP| {} (got {}), max|dp| {} (got {})", p, dp_max, mdp.text(), dpp_max, mp.text())); + } + // 5. every honest synthetic run verifies PASS and meets its expectation; parser round trip + for (path, _, s) in valid_specs() { + let b = s.bytes(); + let c = validate_bytes(&b).unwrap(); + let r = honest(&c); + let rb = r.bytes(); + t.ok(parse(&rb).map(|x| x.bytes() == rb).unwrap_or(false), &format!("{} result parse/emit round trip", path)); + let rep = verify(&rb, Some(&b), Role::Candidate); + t.ok(rep.status() == "PASS", &format!("{} honest synthetic run verifies PASS ({:?})", path, rep.codes())); + t.ok(r.verdict.expectation == "YES", &format!("{} honest run meets its expectation (codes {:?})", path, r.verdict.failure_codes)); + let ro = verify(&oracle_record(&c, &OracleMut::default(), "o").bytes(), Some(&b), Role::Oracle); + t.ok(ro.status() == "PASS", &format!("{} honest oracle record verifies PASS ({:?})", path, ro.codes())); + } + // 6. the margin rule of AT1_SPEC 8.3 holds on every public valid case + for (path, _, s) in valid_specs() { + let c = validate_bytes(&s.bytes()).unwrap(); + let m = crate::hidden::margin_ok(&c); + t.ok(m.is_ok(), &format!("{} margin rule: {:?}", path, m.err())); + } + // 7. checks firing on crafted inputs + check_firing(&mut t); + // 8. a result with a refused embedded case, and an ERROR placeholder, are handled + let (_, p2, p2b) = case_of("P2-kat"); + let mut r = honest(&p2); + r.verdict = crate::judge::placeholder_verdict("ERROR", "INTERNAL_ERROR"); + r.kernel_dim = 0; + r.constraint = RVal::undefined(); + r.povm = RVal::undefined(); + for k in 0..p2.m { + r.label[k] = Status::Undefined; + r.ref_label[k] = Status::Undefined; + r.clock[k] = RVal::undefined(); + r.ref_clock[k] = RVal::undefined(); + for a in 0..3 { + for g in 0..2 { + r.pauli[k][a][g] = RVal::undefined(); + r.ref_ideal[k][a][g] = RVal::undefined(); + r.ref_inter[k][a][g] = RVal::undefined(); + } + } + } + r.seal(); + let rep = verify(&r.bytes(), Some(&p2b), Role::Candidate); + t.ok(rep.codes() == vec!["E4-RUN-NOT-COMPLETED".to_string()], &format!("well-formed ERROR result gives only E4-RUN-NOT-COMPLETED ({:?})", rep.codes())); + let rep = verify(b"OMEGA-AT1-RESULT v1\n", None, Role::Candidate); + t.ok(rep.codes() == vec!["E4-PARSE".to_string()], "truncated result gives E4-PARSE"); + println!("SELFTEST: {} ({} assertions, {} failed)", if t.bad == 0 { "PASS" } else { "FAIL" }, t.n, t.bad); + if t.bad == 0 { 0 } else { 1 } +} + +// ---------------------------------------------------------------- qualify + +fn sq(p: &str) -> String { + format!("'{}'", p.replace('\'', "'\\''")) +} + +struct Run { + status: Option, + stderr: String, +} + +fn run_tool(tmpl: &str, case: &str, out: &str) -> Run { + run_tool_env(tmpl, case, out, &[]) +} + +/// Runs a command template through `sh -c`; `envs` are set on the shell process itself, so +/// they reach every command of the template (`cd dir && ./engine ...` included). +fn run_tool_env(tmpl: &str, case: &str, out: &str, envs: &[(&str, &str)]) -> Run { + let mut cmd = tmpl.replace("{case}", &sq(case)); + let capture = !tmpl.contains("{out}"); + cmd = cmd.replace("{out}", &sq(out)); + if capture { + cmd = format!("{} > {}", cmd, sq(out)); + } + match Command::new("sh").arg("-c").arg(&cmd).envs(envs.iter().copied()).output() { + Ok(o) => Run { status: o.status.code(), stderr: String::from_utf8_lossy(&o.stderr).into_owned() }, + Err(e) => Run { status: None, stderr: format!("cannot start sh: {}", e) }, + } +} + +fn refusal_ok(r: &Run, expect: &str) -> Result<(), String> { + let want = format!("{}\n", expect); + if r.status == Some(2) && r.stderr == want { + Ok(()) + } else { + Err(format!("exit {:?} stderr {:?} (want exit 2 and one line `{}`)", r.status, r.stderr.trim_end(), expect)) + } +} + +pub fn qualify(args: &[&str]) -> i32 { + let mut cases = "cases".to_string(); + let mut engine = String::new(); + let mut oracle = String::new(); + let mut out = "build/qualify".to_string(); + let mut limit = usize::MAX; + let mut i = 0; + while i < args.len() { + let v = args.get(i + 1).map(|s| s.to_string()).unwrap_or_default(); ``` The diff is longer than this page shows; the raw diff has all of it.