interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / research / atemporal / at1 / oracle / README.md

157 lines · 10504 bytes Raw Blame History Source

AT-1 reference oracle (Rust, standard library only)

Independent reference for the AT-1 interacting Page-Wootters qualification. Given an AT1_CASE_V1 file it validates the case in contract order, decides the kernel of H_total = H_C (x) I + I (x) H_S + V exactly level by level, computes every written quantity by two routes (a literal matrix route and the closed form; they share only the exact level decisions and eigenvectors of src/at1/model.rs, the exact phase reduction cis_turns, the compensated sum and the Pauli bound formula), judges the twelve checks in exact arithmetic and writes one AT1_RESULT_V1 oracle record. A PASS here means conformance with the frozen contracts and AT1_SPEC; it says nothing about physics. Reproducing the hand tables is a calibration result, not a discovery.

Owner: Agent 2 (AT1_CHARTER.md section 7, aien-dev/omega#371). Everything lives in this directory. Nothing here is the candidate engine and nothing here is used by it; no source is imported from research/atemporal/at0/ (two leaf files, sha256.rs and complex.rs, were copied from the AT-0 oracle as a starting point, as charter section 4 allows).

Contracts and readings this code follows

What the record contains

Layout

build.sh            exact rustc invocation (build | test | lib), POSIX sh
isolation.sh        symbol-isolation gate for the compute crate (source rule + nm -u + mutant)
src/main.rs         the only file that touches files, git, the process table or the wall clock
src/tests.rs        the test suite
src/at1/mod.rs      compute crate root; SPEC_COMMIT
src/at1/big.rs      arbitrary-precision naturals, integers, rationals, Gaussian rationals
src/at1/sha256.rs   SHA-256 (case_id, acceptance_id, verdict_id, evidence_digest, case_file_sha256)
src/at1/complex.rs  complex numbers and dense complex matrices
src/at1/case.rs     AT1_CASE_V1 parser and validator in contract order; case builder
src/at1/model.rs    exact level decisions, kernel pairs, u_j, S; exact phase reduction
src/at1/matrix.rs   literal matrix route (the record's own values)
src/at1/closed.rs   closed form (Theorem 3) and Bloch rotation (the reference families)
src/at1/result.rs   values block, values parser, exact judge, verdict block, record writer
src/at1/fixtures.rs AT1_SPEC section 13 cases with their exact hand tables
fixtures/           <name>.case, <name>.values, CALIBRATION.md (generated, deterministic)
NUMERICAL_ERROR.md  accounting, stated bounds, measured errors, limits

Build and run (no network, no Cargo, no crates)

./build.sh build          # target/at1-oracle
./build.sh test           # target/at1-oracle-test, runs the suite
./isolation.sh            # isolation gate, prints ISOLATION PASS
./target/at1-oracle emit <case-file> [-o <out-file>]
./target/at1-oracle check <case-file>       # prints case_id, acceptance_id, case_file_sha256
./target/at1-oracle fixtures fixtures       # regenerates fixtures/ byte for byte

The build is one command:

rustc --edition 2021 -C opt-level=2 -C codegen-units=1 -C debuginfo=0 -C panic=abort -D warnings \
      --crate-name at1_oracle src/main.rs -o target/at1-oracle

The test build uses the same flags without -C panic=abort, plus --test. build.sh records in the binary rustc -V, the host triple and the flag string (the source of build_cc and build_flags), and the source state at build time: git rev-parse HEAD and whether git status --porcelain -- . was empty in this directory (the source of source_commit, oracle_commit and source_tree_clean). A binary built without build.sh falls back to the checkout it runs from, one built by build.sh outside a git checkout writes all-zero commits, and both always write source_tree_clean NO. host is the host name, then sw_vers product name and version when present (macOS), then uname -srm, so a replication record names the machine and the OS. Every digest is computed in Rust; no script calls sha256sum or shasum. No Makefile and no toolchain pin file are shipped, so rustup never tries to download anything.

MacBook (macOS arm64, rustc 1.97.1): the same three commands. isolation.sh accepts the leading underscore BSD nm puts on C symbols, and the host name falls back to uname -n when /etc/hostname is missing. No script needs GNU make, sha256sum or shasum. Verified here with rustc 1.97.1 and 1.98.1 on aarch64-unknown-linux-gnu: both build with -D warnings, both pass the suite, and their fixtures are byte-identical. It has not been run on macOS by this agent.

Results (rustc 1.98.1, aarch64-unknown-linux-gnu)

Declared limits