diff --git a/.github/workflows/authorized-exact-gym.yml b/.github/workflows/authorized-exact-gym.yml new file mode 100644 index 000000000..613b74b8d --- /dev/null +++ b/.github/workflows/authorized-exact-gym.yml @@ -0,0 +1,30 @@ +name: AEG-01 exact authorized development gym +on: + push: + paths: + - 'research/authorized_exact_gym/**' + - 'research/nor60_authorized_interpreter/optimized_execution.py' + - 'research/nor45_authorized_program/independent_execution_verifier.py' + - '.github/workflows/authorized-exact-gym.yml' + pull_request: + paths: + - 'research/authorized_exact_gym/**' + - 'research/nor60_authorized_interpreter/optimized_execution.py' + - 'research/nor45_authorized_program/independent_execution_verifier.py' + - '.github/workflows/authorized-exact-gym.yml' +permissions: + contents: read +jobs: + development-boundaries: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2 + - name: Check exact answers, authentication, referee isolation and retained evidence + run: | + python -m unittest research.authorized_exact_gym.test_gym -v + python -O -m unittest research.authorized_exact_gym.test_gym -v diff --git a/.github/workflows/nor60-archived-audit.yml b/.github/workflows/nor60-archived-audit.yml new file mode 100644 index 000000000..c31adf884 --- /dev/null +++ b/.github/workflows/nor60-archived-audit.yml @@ -0,0 +1,41 @@ +name: NOR-60 permanent original evidence and capstone audit + +on: + push: + paths: + - 'research/nor*/**' + - 'research/rrc_compactification/**' + - 'papers/authorized-exact-computation/**' + - '.github/workflows/nor60-archived-audit.yml' + pull_request: + paths: + - 'research/nor*/**' + - 'research/rrc_compactification/**' + - 'papers/authorized-exact-computation/**' + - '.github/workflows/nor60-archived-audit.yml' + workflow_dispatch: + +permissions: + contents: read + +jobs: + original-evidence-and-capstone: + runs-on: ubuntu-24.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install pinned audit dependencies + run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2 + - name: Exercise eight source-free archive integrity controls + run: | + python -m unittest research.nor60_authorized_interpreter.test_archive_audit -v + python -O -m unittest research.nor60_authorized_interpreter.test_archive_audit -v + - name: Replay the original archive without timing or evidence writes + run: python research/nor60_authorized_interpreter/original_archive_audit.py + - name: Verify the capstone evidence ledger + run: python research/nor_line_capstone/audit_evidence.py diff --git a/.github/workflows/nor60-authorized-interpreter.yml b/.github/workflows/nor60-authorized-interpreter.yml new file mode 100644 index 000000000..1ed855387 --- /dev/null +++ b/.github/workflows/nor60-authorized-interpreter.yml @@ -0,0 +1,102 @@ +name: NOR-60 first frozen signed exact interpreter experiment + +on: + push: + branches: + - research/nor60-capstone-20261118 + paths: + - 'research/nor60_authorized_interpreter/**' + - 'research/nor45_authorized_program/independent_execution_verifier.py' + - '.github/workflows/nor60-authorized-interpreter.yml' + pull_request: + paths: + - 'research/nor60_authorized_interpreter/**' + - 'research/nor45_authorized_program/independent_execution_verifier.py' + - '.github/workflows/nor60-authorized-interpreter.yml' + +permissions: + contents: read + +concurrency: + group: nor60-first-${{ github.ref }} + cancel-in-progress: false + +jobs: + source_free_security: + runs-on: ubuntu-24.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2 + - name: Check frozen registration when first-run marker is present + run: | + if test -f research/nor60_authorized_interpreter/REGISTRATION_SHA.txt; then + git merge-base --is-ancestor "$(cat research/nor60_authorized_interpreter/REGISTRATION_SHA.txt)" HEAD + fi + test -s research/nor60_authorized_interpreter/REGISTRATION.md + - name: Source-free exact and signed regression checks + run: | + python -m unittest research.nor60_authorized_interpreter.test_optimized_execution research.nor60_authorized_interpreter.test_cohort_integrity research.nor60_authorized_interpreter.test_reporting research.nor59_authorized_merkle.test_authorized_root research.nor45_authorized_program.test_program_authority research.nor44_session_protocol.test_session_protocol research.nor58_static_merkle.test_template -v + python -O -m unittest research.nor60_authorized_interpreter.test_optimized_execution research.nor60_authorized_interpreter.test_cohort_integrity research.nor60_authorized_interpreter.test_reporting -v + python research/nor59_authorized_merkle/original_archive_audit.py + + freeze_first_public_sources: + if: github.event_name == 'push' && contains(github.event.head_commit.message, 'NOR60-FIRST-CPU') && github.run_attempt == '1' + needs: source_free_security + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Verify prospective registration and freeze the first public inputs + run: | + test "$GITHUB_RUN_ATTEMPT" = 1 + git merge-base --is-ancestor "$(cat research/nor60_authorized_interpreter/REGISTRATION_SHA.txt)" HEAD + test ! -e research/nor60_authorized_interpreter/results/nor60_first_original_hosted.zip + python -u research/nor60_authorized_interpreter/cohort.py --public-only-out /tmp/nor60_first_original_60_public_only.json + - uses: actions/upload-artifact@v4 + with: + name: nor60_first_original_60_public_only + path: /tmp/nor60_first_original_60_public_only.json + retention-days: 90 + if-no-files-found: error + + first_four_arm_cpu: + needs: freeze_first_public_sources + runs-on: ubuntu-24.04 + timeout-minutes: 20 + env: + PYTHONHASHSEED: '0' + OMP_NUM_THREADS: '1' + OPENBLAS_NUM_THREADS: '1' + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2 + - uses: actions/download-artifact@v4 + with: + name: nor60_first_original_60_public_only + path: /tmp/nor60 + - name: Record the first five-repeat complete signed experiment + run: | + test "$GITHUB_RUN_ATTEMPT" = 1 + python -u research/nor60_authorized_interpreter/benchmark_cpu.py --public-file /tmp/nor60/nor60_first_original_60_public_only.json --repeats 5 --out /tmp/nor60/nor60_first_original_cpu.json --journal /tmp/nor60/nor60_first_original_progress.jsonl + - name: Retain first result or interruption evidence + if: always() + uses: actions/upload-artifact@v4 + with: + name: nor60_first_original_cpu_and_evidence + path: /tmp/nor60/* + retention-days: 90 + if-no-files-found: error diff --git a/README.md b/README.md index 05f4ea02c..448440250 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ **CGC-01 protected causal compactification (November 18, 2026):** [Task-conditioned safe causal dimension, finite-radius nonlinear bounds, exact recurrent quotient and precision-bit obstructions](research/causal_gauge_compactification/README.md). [Mathematical derivations](research/causal_gauge_compactification/THEORY.md) and 18 deterministic numerical/exact-rational tests connect BPD's source-binding controls with the NOR, LSV, SMC, SCM and recurrent-circuit compactification tracks. Source-only theory; no newly trained model result. +**NOR execution research capstone (November 18, 2026):** [Paper](papers/authorized-exact-computation/paper.md) and [audited first NOR60 result](research/nor60_authorized_interpreter/RESULTS.md). The registered 60-source signed-verifier workload passed all five gates with a combined time ratio of 0.563961. [AEG-01](research/authorized_exact_gym/README.md) provides public CPU training and development tasks with an independent exact grader. + **NOR-12:** [Task-supervised basin-conditioned residual readout](research/nor12_task_readout/README.md) fits four 16×14 matched residual rankers over the frozen 1,000-parameter RRC-25 GRU using only exact degree-192 public demo verification labels. The first heldout run yielded 44/72 future-correct for the basin residual vs. 42/72 original, with both gains arising from a single aliased late-source feature tensor. Four independent seed-separated 72-case confirmations yielded 167/288 vs. 160/288, matched by the random-feature control, with unadjusted case-level paired p≈0.21. An ablation of the basin feature left the first split's 44/72 result unchanged. [NOR-12B hosted independent results](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43709095616) passed, and [NOR-12C frozen receipt audit](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43709504979) is green. The original GRU is unchanged, and basin-specific task gains remain unestablished. **NOR-10:** [Constructive one-bit terminal metric for two source-certified GRU attractors](research/nor01_numerical_orbit_sketch/NOR10.md) uses a single shared rational inter-center distance and one runtime basin-label bit to represent all late 24-step states of the signed and squared source streams. Exact integer-square-root quantization and source-locked nonlinear contraction yield an all-pair late-tail error <=1.096e-11 after 64 retained blocks, while a zero-bit shared code must incur >5.0209 cross-basin error. This one-dimensional terminal representation requires the two previously certified source labels and is separate from unseen-input basin classification and native task performance. [NOR-10 CI](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43704307173) passed. diff --git a/papers/authorized-exact-computation/README.md b/papers/authorized-exact-computation/README.md new file mode 100644 index 000000000..68738a425 --- /dev/null +++ b/papers/authorized-exact-computation/README.md @@ -0,0 +1,22 @@ +# Exact Computation Under Signed Program Authority + +The [manuscript](paper.md) consolidates the NOR exact-computation research line. It contains the original engineering outcomes, algebraic derivations, an explicit assurance contract, and a reusable evaluation design. The [evidence ledger](../../research/nor_line_capstone/evidence_ledger.json) preserves each study's comparator and first verdict. + +The bibliography uses primary sources for authenticated trees, Ed25519, component-cost reasoning, and systems benchmarking. [references.bib](references.bib) supplies the verified publication metadata. + +A PDF can be built from this directory with Pandoc and a complete XeLaTeX installation: + +```bash +pandoc paper.md --citeproc --lua-filter=table_layout.lua \ + --include-in-header=layout.tex --pdf-engine=xelatex \ + -V geometry:margin=0.85in -V fontsize=10pt -o paper.pdf +``` + +The figures and their plotted values are committed under `figures/`. With +Matplotlib and NumPy installed, `python build_figures.py` rebuilds both figures +directly from the byte-pinned first NOR60 archive. The builder checks the ZIP's +SHA-256 before reading any measurements. + +Historical evidence remains pinned to its original source commit; final +experiment and gym artifacts carry their own receipts. The PDF was rendered +and inspected page by page for the capstone release. diff --git a/papers/authorized-exact-computation/build_figures.py b/papers/authorized-exact-computation/build_figures.py new file mode 100644 index 000000000..387eda492 --- /dev/null +++ b/papers/authorized-exact-computation/build_figures.py @@ -0,0 +1,89 @@ +"""Render paper figures from the byte-pinned original NOR60 artifact.""" +import csv +import hashlib +import json +from pathlib import Path +from zipfile import ZipFile +import matplotlib +matplotlib.use("Agg") +import matplotlib.pyplot as plt +import numpy as np + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[1] +ARCHIVE = ROOT / "research/nor60_authorized_interpreter/results/nor60_first_original_hosted.zip" +EXPECTED = "c92e2c4e3bfcfd8e1371d1504c89d6812ac263ef270fc9d62e89d335f23da53c" +if hashlib.sha256(ARCHIVE.read_bytes()).hexdigest() != EXPECTED: + raise ValueError("first NOR60 archive differs from observed evidence") +with ZipFile(ARCHIVE) as archive: + data = json.loads(archive.read("nor60_first_original_cpu.json")) + +OUT = HERE / "figures" +OUT.mkdir(exist_ok=True) +plt.rcParams.update({"font.family": "DejaVu Sans", "font.size": 10, + "axes.spines.top": False, "axes.spines.right": False, + "axes.titleweight": "bold", "svg.hashsalt": "NOR60-first-evidence"}) +arms = data["arms"] +labels = ["A Original interpreter + original root", + "B Original interpreter + static root", + "C Optimized interpreter + original root", + "D Optimized interpreter + static root"] +ratios = [data["overall"]["source_median_ratio_of_sums_to_original"][a] for a in arms] +colors = ["#87929f", "#657d98", "#2e8791", "#124c60"] +fig, ax = plt.subplots(figsize=(9, 3.9), constrained_layout=True) +y = np.arange(4) +ax.barh(y, ratios, color=colors, height=.52) +for i, arm in enumerate(arms[1:], start=1): + low, high = data["secondary_ten_block_bootstrap"]["descriptive_intervals"][arm]["descriptive_95pct_ten_block_interval"] + ax.errorbar(ratios[i], i, xerr=[[ratios[i]-low], [high-ratios[i]]], + fmt="none", ecolor="#172331", elinewidth=1.5, capsize=4) +for i, value in enumerate(ratios): + ax.text(1.12, i, f"{value:.6f}", va="center", ha="right", fontsize=10, color="#172331") +ax.set_yticks(y, labels) +ax.invert_yaxis() +ax.set_xlim(0, 1.16) +ax.axvline(1, color="#68717a", lw=1, ls=(0, (4, 3))) +ax.set_xlabel("Sum of source median verifier times / original baseline") +ax.set_title("NOR-60: complete signed verification on 60 sources", loc="left", pad=15) +ax.grid(axis="x", color="#e6e9ed", lw=.7) +ax.set_axisbelow(True) +fig.savefig(OUT / "nor60_four_arms.png", dpi=210) +fig.savefig(OUT / "nor60_four_arms.svg", metadata={"Date": None}) +plt.close(fig) + +fig, ax = plt.subplots(figsize=(8.5, 3.7), constrained_layout=True) +rows = data["source_records"] +for j, stride in enumerate((1, 4, 8)): + group = [r for r in rows if r["source_stride"] == stride] + values = [r["combined_over_original"] for r in group] + offsets = np.linspace(-.22, .22, len(group)) + for offset, value, row in zip(offsets, values, group): + color = "#b56d32" if row["program_profile"] == 4 else "#1d6a7d" + marker = "D" if row["program_profile"] == 4 else "o" + ax.scatter(j + offset, value, color=color, marker=marker, s=32, alpha=.86, + edgecolor="white", linewidth=.35, zorder=3) + median = float(np.median(values)) + ax.plot([j-.29, j+.29], [median, median], color="#172331", lw=2.1, zorder=4) +ax.axhline(1, color="#68717a", lw=1, ls=(0, (4, 3))) +ax.set_xticks(range(3), ["Dense (s = 1)", "Support stride 4", "Support stride 8"]) +ax.set_ylim(0, 1.2) +ax.set_ylabel("Combined / original source median") +ax.set_title("The improvement depends on the source and program", loc="left", pad=13) +ax.grid(axis="y", color="#e6e9ed", lw=.7) +ax.scatter([], [], color="#1d6a7d", s=32, label="Profiles P0–P3") +ax.scatter([], [], color="#b56d32", marker="D", s=32, label="P4: three reciprocal uses") +ax.plot([], [], color="#172331", lw=2.1, label="Within-stride median") +ax.legend(loc="upper right", frameon=True, facecolor="white", framealpha=1, + edgecolor="none", fontsize=8.7) +fig.savefig(OUT / "nor60_source_ratios.png", dpi=210) +fig.savefig(OUT / "nor60_source_ratios.svg", metadata={"Date": None}) +plt.close(fig) + +with (OUT / "nor60_plotted_values.csv").open("w", newline="") as stream: + writer = csv.writer(stream) + writer.writerow(["source_sha256", "degree", "stride", "profile", "replicate", *arms]) + for row in rows: + writer.writerow([row["source_sha256"], row["observed_degree"], row["source_stride"], + row["program_profile"], row["replicate"], + *[row["arm_medians_ms"][a] for a in arms]]) +print("Rendered two figures from the original 60-source archive.") diff --git a/papers/authorized-exact-computation/figures/nor60_four_arms.png b/papers/authorized-exact-computation/figures/nor60_four_arms.png new file mode 100644 index 000000000..be4b43dff Binary files /dev/null and b/papers/authorized-exact-computation/figures/nor60_four_arms.png differ diff --git a/papers/authorized-exact-computation/figures/nor60_four_arms.svg b/papers/authorized-exact-computation/figures/nor60_four_arms.svg new file mode 100644 index 000000000..4632da8d6 --- /dev/null +++ b/papers/authorized-exact-computation/figures/nor60_four_arms.svg @@ -0,0 +1,2021 @@ + + + + + + + + image/svg+xml + + + Matplotlib v3.10.8, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/papers/authorized-exact-computation/figures/nor60_plotted_values.csv b/papers/authorized-exact-computation/figures/nor60_plotted_values.csv new file mode 100644 index 000000000..d64d6d3b3 --- /dev/null +++ b/papers/authorized-exact-computation/figures/nor60_plotted_values.csv @@ -0,0 +1,61 @@ +source_sha256,degree,stride,profile,replicate,original_interpreter_full_root,original_interpreter_warm_root,optimized_interpreter_full_root,optimized_interpreter_warm_root +3728dbaf01d4ae5df2b5bc8d1a4aaba7c545293b89631b9ff2fdd748350d6ccd,512,1,0,0,29.122048,26.671273,28.767717,28.703652 +7742776de77c2b00d601a07bf343a6dc0ae5e4d6185cf4b5693c91f21659577c,512,1,0,1,20.506923,20.997442,21.263568,21.449514 +2423e1bde1b3a920d7d159e8b835c2d618ad317958f69f900d77681c2f945760,512,1,1,0,70.218646,76.160161,72.340247,74.331434 +aa4d4be46fd6f7682676b51095976815f553da100feaf4de33d5aa4051060de6,512,1,1,1,67.859004,68.804237,66.478623,64.396221 +5c7eb5710e54c7855e0484e37db5ebbd5cea09a4dd4efd162b4b0ba27440fa22,512,1,2,0,117.424416,113.458711,118.962248,125.236542 +b45b07b0e981ad113c5bf1f4a6bbe3a7403c3a066388a09a28213df427bf5f6b,512,1,2,1,125.377308,114.392466,108.941759,113.24396 +72f3ea05e0ab9ddb67645b1b9bca4610d196bfb73b24b508b38699792a5369d4,512,1,3,0,33.878719,31.994214,33.704155,36.419112 +9aaadbbea5703b3ed96c871996a63fc0b0e42429878a79d7251054bc2e3941fb,512,1,3,1,23.465815,24.135409,18.734851,25.253362 +04aa653742add2a1863b36a64ea30f15a4db6741d6db54d06759b757c3f402c6,512,1,4,0,210.455614,204.475821,82.756622,78.350536 +6aa87f8eb91dd0bda4fd6ed8fbaff21e75f0fdd1e98138501402f41ab7bb0f4f,512,1,4,1,198.531187,192.735569,79.953422,75.99043 +a9b5573f137f1f7ba94d94c29fd57dd92e645d0275c01ecc19ffd634c62d817b,512,4,0,0,12.682626,14.300427,4.036942,3.126205 +b5a22401b6ef9928091565539ee6ac300366603c568a24f2ad8c85f361c8207f,512,4,0,1,14.354277,13.695067,3.571904,3.105394 +ae592b5304fe592afb21bddddfdfce3a9073c8bc8ec542fad4c12c6589ecb8ae,512,4,1,0,19.156998,15.850854,4.866108,4.250864 +f1eb649cc099e3e2451862fa606461ad919455547be77b42c4afe03bc81eda70,512,4,1,1,15.299956,15.980513,4.558826,3.710082 +297e1011ede38ba1a5e80b4a982e57d72f745a1a597f90f3321165909913858e,512,4,2,0,18.015185,18.997435,6.139561,5.15376 +12ada1312a42343d5fd64142bca5b9bfc49f7b0b17f0f1fa41e31a2e089ae54a,512,4,2,1,21.736741,18.99468,5.681775,5.212478 +acb569e3def2deba333615781c3a5dfd0fd7bf4d6849ff508df21cc0552fb344,512,4,3,0,13.744741,14.591148,4.085129,4.542859 +b92c918cdb6d1b182990f7374e538ffa11e8908a2a3dc5453f5faa9ea19845d2,512,4,3,1,14.034128,15.248689,3.922314,3.504182 +03faf53b7b40375f58c0c3eb32aadd6007ad42e5714fd76470a56a183d7c482b,512,4,4,0,42.642241,44.892158,5.351908,3.931617 +20abc40be6179c87e57e3056b3fa86a9d351d30043946df08d1ab84c28c39688,512,4,4,1,39.95127,46.167841,6.592249,4.916362 +4ea978e04f4c646d0af3103dffbeda328f86dde40d53e3915e7c01909a614b77,512,8,0,0,13.882373,12.243488,4.097392,2.332426 +b06647d86b2c69f0947af9c85cd59ff6dc664ba84e3a4b5e8ef3dabcbf8c1805,512,8,0,1,13.665872,12.83952,2.77272,2.306548 +4458dc18315ef48f2306c089e2b5c538e1842f0efa3132cca4fd23212526b918,512,8,1,0,16.020369,12.918749,4.357437,2.578534 +a253ee975a9da8314e686c1414e07eacf66a408626b26bfc92cf8eb256743251,512,8,1,1,16.915585,12.760631,3.753774,3.414781 +cff8df9788de9c715dd2565e35214b65e6644cd379911786ff76b39ebefe8ec9,512,8,2,0,14.405939,13.190888,3.966844,2.246479 +3cacaf9ef9cee10d5f80c4fff284900f2b4ee7f0204a44c4747ddb1ce9214e03,512,8,2,1,12.939932,11.732237,3.242292,2.54268 +527aaf056e37f9954f16861acc417d3cd7cf9f046ba3df56e1d4643521aaee7d,512,8,3,0,11.903243,11.064434,3.120619,2.507668 +49ab52cb58e122dab1b59dbdb7ba5f49fb56b40753f7ba071da3deaf09b88a34,512,8,3,1,12.84246,11.252285,3.065566,1.992313 +bb1712d84c02119d50f1f5f3faa4d2e81851328f2a177d6159ce99efdc5994e9,512,8,4,0,36.216516,31.181547,3.419858,2.333767 +cc1ac73a503976017a71ade93061dff4f2a86d38597ccdce1cca522a52abe6b3,512,8,4,1,29.265028,32.872492,3.33461,2.074566 +ba9d980de62877d9def0ae89d02eb1e9e2168ff3b8fb56a9b689d81d07fd462d,1024,1,0,0,116.616923,120.281983,129.799543,119.053947 +a25af977f3fa262110b59ac627484b49856d167aa64be630582a566bd7dd5012,1024,1,0,1,133.29512,129.819991,130.291092,137.640708 +d436404b664c27c45abc394ab912feb1d34a969e5cb0962185ddb20f34ed62a9,1024,1,1,0,445.285509,437.294792,412.069025,412.226671 +7b9e29b72b7805a115a1f0baf37100eb7ebe9512771d9f6057e54bf6f2d86503,1024,1,1,1,455.297972,432.293568,416.03633,424.464006 +54a12fcafcf99b9ee95b6627db6f67f0c6551d2c87522bc3feee4d07319ac2c5,1024,1,2,0,772.384714,760.506337,796.248985,786.021289 +e95d80f75d552c2d61ce0ffa2405193dedb191bc883975af199ff77f0b8b7bff,1024,1,2,1,766.082762,740.365587,773.838191,752.366304 +98f50a4fe033dc10c1575a0f6efa466b84d56797172554b46c89cc7a1308a158,1024,1,3,0,145.668969,165.458926,135.482687,142.158159 +cd6bee36dbefb4bae1b371dcb5f32c159fae1c40bc27573b46d4dc0b1c305cd1,1024,1,3,1,121.517715,123.42215,130.544036,122.618268 +2830d7f664ebcef7daca86bc38afef34473de29f2ae48db8c18423c39b5e3056,1024,1,4,0,1213.400311,1209.118049,439.972695,438.655885 +0e399764a8791fe98d2dc6e4aa5e73956360d025e224ffaa6a3e6d94d9102b05,1024,1,4,1,1225.532374,1225.034146,441.33217,439.34857 +1bc64b654c67523ebe9c5ef3ac672be9296c2f038296c9e3047b1429a815d814,1024,4,0,0,54.560872,51.355973,10.188525,8.578987 +c36900e5c69fb28d01a3538fbbe0ee44326a83075156de5a21f739c355c1437a,1024,4,0,1,50.793689,50.753258,10.189546,7.999697 +bb52a2b2f470ded57c2284dbc33a245bec0053f7f5083b52c62917aac6112d40,1024,4,1,0,69.614224,66.992967,15.214306,13.76014 +29debf1ebcd75972c65128db31d7a6c44d46bc9734a84322b7254e0f29ef39f7,1024,4,1,1,70.038171,65.718242,15.72336,13.063564 +b472aaeb630fa6bd09ad91a5b0ec525c19eb966b767f7300cd0d024dab37f251,1024,4,2,0,83.601016,84.346706,21.453648,20.338252 +bd1ed4eea130b574a02906060675dc7662c91c1485ce4b6fb7ee4c6382f576d0,1024,4,2,1,88.508783,85.504975,22.367881,20.755554 +6fa277b2b1162c39ad3026df2c344958c4af79b38f209b9704b5829bab6650f8,1024,4,3,0,52.4766,51.567396,10.783849,8.984236 +5adb52994925bf1b7ef9d8d7f852a7de9688c3f61c5762d670888d2b4025c28b,1024,4,3,1,50.293341,49.79343,9.343827,7.785416 +eb68ff073cda445ffc9b666d51f19da6d900183087b81cd286bf8cc16567280d,1024,4,4,0,196.517008,195.935074,16.702381,16.57952 +3bde076cc02f6f5e7fe9cc0843bc84ae434aaf7ed5b4e2a38147d2288888930d,1024,4,4,1,175.533961,182.168767,16.495189,15.409298 +9f64b2f32c2da7c96ae85c349fbbbd75e953d6a9dc03f013ae2974b00a681974,1024,8,0,0,60.162016,49.34049,8.121219,5.054312 +eac67ef3fa898f4d35336ee305eb80d0afb321c3cd004536e9b8968083cefb82,1024,8,0,1,49.293229,48.294529,5.841825,4.166229 +a294e98c41837b9aafc05db0c068f92d1465ce3c839e0ebfc2bdcb37a055fe77,1024,8,1,0,58.712023,44.437615,10.015616,4.788894 +3cca64f4391aa077b23c715d4b1099a072abc61b5346043b0d7ffdfbac27ca47,1024,8,1,1,55.463709,56.257191,8.226838,5.737739 +87b2db552b2528c333701aae93dea49d82bf364918bf46b42abfb607b4b487b5,1024,8,2,0,59.969427,60.233944,9.482775,6.668197 +92e0b5e3c39d4342e89ada912af5dd828aea1de8c68b2f90767affe470dc3a46,1024,8,2,1,59.945943,58.714773,8.745949,7.813007 +a9a8d1996ad78be104a55e354446105f19f03abdb0bc9966f5a2c485702f5566,1024,8,3,0,49.350451,43.313968,7.277061,5.025369 +5c063d1cebd2163b1fbaddf2b9c1ab73c1e301d8342e6521f9a7c5ec9524264a,1024,8,3,1,43.378975,43.88115,6.00469,3.909613 +bee1ac8f062b3c71757c3368d1e106f8a606165c1e48f5c938901c903bc19cc2,1024,8,4,0,138.642342,133.058254,8.910325,7.09636 +28495e480f7291db95f562d7f66db04e8dc9e780e9695f4b7e14fa3a4c26c7c0,1024,8,4,1,137.986217,146.324328,8.878692,6.002617 diff --git a/papers/authorized-exact-computation/figures/nor60_source_ratios.png b/papers/authorized-exact-computation/figures/nor60_source_ratios.png new file mode 100644 index 000000000..d861a5c27 Binary files /dev/null and b/papers/authorized-exact-computation/figures/nor60_source_ratios.png differ diff --git a/papers/authorized-exact-computation/figures/nor60_source_ratios.svg b/papers/authorized-exact-computation/figures/nor60_source_ratios.svg new file mode 100644 index 000000000..8d9dc2b5e --- /dev/null +++ b/papers/authorized-exact-computation/figures/nor60_source_ratios.svg @@ -0,0 +1,2044 @@ + + + + + + + + image/svg+xml + + + Matplotlib v3.10.8, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/papers/authorized-exact-computation/layout.tex b/papers/authorized-exact-computation/layout.tex new file mode 100644 index 000000000..f8aeca473 --- /dev/null +++ b/papers/authorized-exact-computation/layout.tex @@ -0,0 +1,6 @@ +\clubpenalty=10000 +\widowpenalty=10000 +\displaywidowpenalty=10000 +\setlength{\emergencystretch}{2em} +\definecolor{paperlink}{HTML}{1E536B} +\AtBeginDocument{\hypersetup{colorlinks=true,linkcolor=paperlink,urlcolor=paperlink,citecolor=paperlink}} diff --git a/papers/authorized-exact-computation/paper.md b/papers/authorized-exact-computation/paper.md new file mode 100644 index 000000000..c35db8276 --- /dev/null +++ b/papers/authorized-exact-computation/paper.md @@ -0,0 +1,406 @@ +--- +title: "Exact Computation Under Signed Program Authority" +subtitle: "A study of support compression, verification cost, and preserved experimental evidence" +author: "MoralityLabAI research series" +date: "18 November 2026" +bibliography: references.bib +link-citations: true +--- + +## Abstract + +The Numerical Orbit Research series began with compact representations of recurrent trajectories and reached a practical question: what can an evaluator establish when a proposed continuation, an authorized program, and an external target differ? This paper consolidates the resulting exact-computation studies. An independent verifier executes a signed integer-series program and checks its complete Merkle commitment under separately pinned authority and provider keys. The experiments retain original source records, timing samples, registered decisions, and failed runs. A transparent execution trace first cost 3.28 times direct computation on a historical panel. Later studies identified redundant reciprocal evaluation, coefficient packing, and known-zero hashing as separate costs. Exact support compression passed its registered engineering criteria, while several routing and serialization changes missed theirs. In NOR-59, caching index-specific zero and padding hashes reduced the sparse root-only median ratio to 0.309528; the complete signed workload ratio was 0.991555, with a descriptive interval spanning one. The final NOR-60 factorial experiment reduced the complete matched workload ratio to 0.563961, with all 60 outputs and roots preserved and all five registered gates passed. Its descriptive ten-block interval was [0.369656, 0.797668]. We give finite algebraic arguments for the optimizations, state the narrower scope of the existing Lean results, and derive a reusable evaluation protocol from the failures. The evidence supports computational fidelity for the declared synthetic program grammar. Semantic correctness still requires a justified program authority, and operational security depends on key custody and durable session state. + +## 1. Research question and lineage + +A compact representation preserves a chosen observable. Its usefulness for another task depends on the information that survives the representation and on the costs needed to recover the target. The NOR line made this dependency concrete through a sequence of finite experiments. Early work studied a small trained GRU under a declared zero-input intervention. Exact rational interval arguments certified distinct attracting states and source-conditioned entry into their neighborhoods. Source-family prediction remained a separate empirical question: the NOR-08 audit found that several nominally different examples shared the same model-visible input. The resulting effective sample count and a majority baseline changed the interpretation of the classification result [NOR08]. + +Later experiments examined proposed formal-series continuations. NOR-15C enumerated 43,680 fixed four-candidate orders on a finite cohort where distinct full demonstrations shared one neural feature tensor. Its hindsight optimum was a bound for that restricted finite policy class. NOR-16 then used more public information and charged the resulting exact computations. Its four-check consensus criterion failed, and 140 of 192 late-source observations admitted distinct programs with identical public observations and different query outputs [NOR15C], [NOR16]. These constructions exposed the target information that an evaluator would need to resolve. + +NOR-42 supplied paired clean and hidden program worlds with identical public observations. The hidden world adds a late term whose first nonzero coefficient occurs after the observed prefix. A source-public predictor must issue the same answer in both worlds. An independently supplied target witness permits direct tests of their disagreement. The subsequent protocol studies introduced authenticated roots, verifier-owned challenge positions, signed proposal commitments, and finally a separate authority for the executable program [NOR42], [NOR43], [NOR44], [NOR45]. + +The present paper concerns the cost and meaning of that final check. Once a program has been authorized, can exact structural properties reduce the work needed to verify its output while preserving all source and session bindings? The engineering sequence also provides a case study in retaining unfavorable evidence. A speed target can fail despite correct outputs; a reporting exception can leave a first run unscorable. Both outcomes constrain the final account. + +The historical evidence through NOR-59 is pinned to repository commit [`714a7f5e1203`](https://github.com/MoralityLabAI/Compactification-Theory/commit/714a7f5e1203289ef053dfa5becaa3537d1b946b). The accompanying evidence ledger identifies each report, original archive, and its first verdict. Comparisons in this paper use matched arms within the relevant experiment. Differences between machines, source panels, and timed boundaries prevent chaining the ratios into a single cumulative speedup. + +## 2. Exact model and assurance contract + +### 2.1 Finite integer-series programs + +Let + +$$ +F(x)=\sum_{i=0}^{m-1} f_i x^i\quad\text{in }\mathbb Z[x]/(x^m),\qquad f_0=1. +$$ + +The interpreter implements identity $I(F)=F$, sign substitution $N(F)=F(-x)$, reciprocal $R(F)=F^{-1}\bmod x^m$, and index dilation $S(F)=F(x^2)\bmod x^m$. The reciprocal coefficients satisfy + +$$ +r_0=1,\qquad r_n=-\sum_{k=1}^{n}f_k r_{n-k},\quad 1\leq n