Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
84313fb
DMB-01: exact deletion laws, bounded-state monitor and Gaussian cap/e…
patrickdugan Nov 13, 2026
831724d
DMB-01: exhaustive exact deletion deck, state-memory and spherical ca…
patrickdugan Nov 13, 2026
81ef877
DMB-01: add compressible structured-source countercontrol to uniform …
patrickdugan Nov 13, 2026
929eeec
DMB-01: verify one-bit structured trace monitor avoids uniform-source…
patrickdugan Nov 13, 2026
fcd3852
DMB-01: prove deletion-memory wedge, hard-pair trace bound and Gaussi…
patrickdugan Nov 13, 2026
04532b4
DMB-01: document mathematical campaign and future semantic-monitor ex…
patrickdugan Nov 13, 2026
0627881
DMB-01: document mathematical campaign and future semantic-monitor ex…
patrickdugan Nov 13, 2026
85b4abb
DMB-01: run exact finite deletion-and-memory tests with saved receipts
patrickdugan Nov 13, 2026
36a32ab
DMB-01: generalize terminal memory ceiling to empirical finite source…
patrickdugan Nov 13, 2026
cc9baca
DMB-01: add exact bounded monitor over declared structured binary sou…
patrickdugan Nov 13, 2026
fa9fd38
DMB-01: prove sharp finite-prior monitor memory capacity ceiling
patrickdugan Nov 13, 2026
67f6e8c
DMB-01B: preregister trained RRC25 ranked-output deletion channel and…
patrickdugan Nov 13, 2026
36e030c
DMB-01B: source-lock RRC25 trained rankings and measure exact deletio…
patrickdugan Nov 13, 2026
1bdc8e5
DMB-01B: verify trained ranker provenance, future-label isolation and…
patrickdugan Nov 13, 2026
0018c43
DMB-01B: add independent trained RRC25 ranking-monitor CI job and rec…
patrickdugan Nov 13, 2026
d917148
DMB-01: add protected-first-evidence finite-state monitor with exact law
patrickdugan Nov 13, 2026
609a58a
DMB-01: certify guarded monitor exact law and monotone information re…
patrickdugan Nov 13, 2026
ec73a1c
DMB-01B: compare rolling and protected-evidence monitors on trained R…
patrickdugan Nov 13, 2026
f27b986
DMB-01: derive protected-evidence monitor monotonicity and exact reco…
patrickdugan Nov 13, 2026
0e859cc
DMB-01: index trained RRC25 structured-prior monitor pilot and guarde…
patrickdugan Nov 13, 2026
36a736a
DMB-01: omit zero-mass monitor states for guarded-control exact chain…
patrickdugan Nov 13, 2026
665e652
DMB-01: canonicalize explicit guarded-control Markov chain by positiv…
patrickdugan Nov 13, 2026
81b49a2
DMB-01: record trained ranker deletion frontier and exact finite sour…
patrickdugan Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/dmb-01.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: DMB-01 finite deletion and memory barrier audit
permissions:
contents: read
on:
push:
paths:
- 'research/deletion_memory_barrier_v1/**'
- '.github/workflows/dmb-01.yml'
pull_request:
paths:
- 'research/deletion_memory_barrier_v1/**'
- '.github/workflows/dmb-01.yml'
workflow_dispatch:
jobs:
exact-finite-channel:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Exact masks, deck equivalence, streaming state, cap and thinning tests
run: python -m unittest discover -s research/deletion_memory_barrier_v1 -p 'test_reference.py' -v
- name: Issue complete exact finite receipt
run: python research/deletion_memory_barrier_v1/reference.py --check --out /tmp/dmb01_exact.json
- name: Upload independent finite receipt
uses: actions/upload-artifact@v4
with:
name: dmb01-exact-control
path: /tmp/dmb01_exact.json
trained-rrc25-trace-monitor:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Verify frozen RRC25 ranking-source and structured finite prior
run: python -m unittest discover -s research/deletion_memory_barrier_v1 -p 'test_rrc25_deletion.py' -v
- name: Execute source-locked exact deletion-memory frontier
run: python research/deletion_memory_barrier_v1/bench_rrc25_deletion.py --test-per 6 --deletions 1/2 4/5 --counts 0 1 2 3 --bits 2 4 6 --out /tmp/dmb01b_rrc25_monitor.json
- name: Upload trained ranker diagnostic
uses: actions/upload-artifact@v4
with:
name: dmb01b-rrc25-ranking-monitor
path: /tmp/dmb01b_rrc25_monitor.json
29 changes: 29 additions & 0 deletions research/deletion_memory_barrier_v1/PROTOCOL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# DMB-01: prospective semantic trace monitor protocol

The executable mathematical phase uses an explicitly uniform n-bit source and iid independent deletion traces. This protocol governs later neural and proof-trace experiments.

## Inputs and observability contract

Freeze each source identifier, generator revision, original event encoding, deletion probability q, retention mask distribution, and the exact output alignment metadata exposed to the monitor. The default deletion observer sees trace words and their lengths, with retained positions hidden.

Track the monitor's B persistent bits, public clock, stopping time, cached raw traces, metadata from tools, static model/code parameters and any prompt-specific decoder lookup tables. A terminal decoder may read only the resources registered in the run. A model that can reread old prompts or inspect a complete server transcript has a broader interface.

## Benchmark axes

Use n={8,16,32,64} for controlled synthetic words, q={0.2,0.5,0.8}, m={1,2,4,8,16,32}, B={1,2,4,8,16,32,64} where each budget is feasible. For proof-event streams retain the native source distribution; estimate its support entropy and word correlations separately. Include uniform independent words, short-deck collision pairs, parity-constrained words, repeated words, and real source traces.

Use the full-trace MAP estimator only on small n/m where exact enumeration is possible, with a fixed approximation budget if generalized. Compare finite-state rolling hashes, source-trained classifiers with charged code/weights, terminal recurrent memory and a full raw-trace observer. Equalize compute and total stored bits separately. Record every decodable source and every indistinguishable hard pair.

## Falsification and statistics

For a fixed uniform source and declared terminal state, average recovery above the DMB-1 cardinality ceiling is a bookkeeping or implementation error. For a declared worst-case hard pair, success on both sources must respect the TV coupling ceiling. If a model appears to exceed either, audit raw-trace access, stopping time and model-side caches.

Only finite certified state spaces and exhaustively enumerated trace laws support exact claims. Sampled recovery rates require confidence intervals clustered by independent source word, with held-out generator families. Success of a structured source does not test the uniform-source ceiling.

Neural experiments should preserve original checkpoints and frozen source hashes. Real proof traces may contain structured redundancy; uniform-source conclusions require independent justification. Side channels, oracle verification, retrieval, and dynamic querying each need separate resource entries.

## Future trained model target

LoopedTransformers SEM-ECHO and compactification circuit oracles can emit per-loop symbolic labels. Freeze a semantic event alphabet and sample fresh problems. Apply deletion after event extraction while preserving the original input and checkpoint, then score exact trace reconstruction and continuation decisions. Report the ability to predict the right answer without reconstructing the deleted trace as a separate endpoint.

No trained model results are claimed by the initial DMB-01 branch.
74 changes: 74 additions & 0 deletions research/deletion_memory_barrier_v1/PROTOCOL_RRC25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# DMB-01B: frozen trained RRC-25 ranking-trace monitor

**Registration date:** 2026-11-13, before the DMB-01B model run.
**Status:** retrospective diagnostic on existing weights and constructed
deletion observations; no new model training.

## Model and source

Source code and committed JSON checkpoint from
research/rrc_compactification:
RRC-25's 1,000-parameter recurrent GRU template ranker.
Use the original bench25.checkpoints() validation of source SHA256,
training-step count, model type, shape and weight-file digest.

Generate the original deterministic RRC-25 source roster with
train_per=1, dev_per=1 and test_per=6. Restrict the study to the
six original test families (signed, sparse, product, rational,
squared, late_source). At inference scan public candidate headers
using compound25.possible_headers. Choose the first valid header
deterministically, independent of true hidden program suffix.

For each case compute model25.logits(case,header,checkpoint), sort
sixteen logits descending (tie-break by class ID), and take the two
top-ranked 4-bit class IDs. Concatenate these IDs into one 8-bit
word. The word encodes a **trained model's ranker output**, not
its neural hidden state or a claimed chain-of-thought transcript.

The study treats the resulting multiset of 36 output words as a
finite empirical prior. Repeated words carry their multiplicity.
No source ground-truth future enters the ranker input; mutation
of case.future must leave the ranking unchanged.

## Monitoring intervention

For each word, independently delete each bit with q=1/2 or q=4/5.
The monitor sees only retained word bits in their original order
with the resulting output length. Position masks remain hidden.
Run m in {0,1,2,3} independent deletion traces.

Compare fixed deterministic monitor updates with B in {2,4,6}
bits, using the exact transition modulo 2^B defined in
reference.update_state. The monitor is not trained; the ideal
terminal decoder is a Bayes MAP lookup derived from the declared
finite prior. Charge its static lookup separately from the B
mutable bits.

Primary analytic control: DMB-8 top-2^B prior mass ceiling.
Secondary oracle: unrestricted full one-trace Bayes success from
the exact deletion laws. Also record the prior's Shannon entropy,
distinct word count, weighted source label counts, and all
exact rational finite-state reconstruction probabilities.

The original checkpoint has weights learned on other cases.
The prior and decoder table are defined retrospectively by
the selected source-generated ranker outputs. This is a finite
in-sample population diagnostic with no claim about deployment
generalization.

## Reproducibility

Run the trained checkpoint gate and exact monitor calculations:

python research/deletion_memory_barrier_v1/bench_rrc25_deletion.py --out /tmp/dmb01b_ranker.json

No CUDA, torch, network requests or optimizer required. The
portable RRC-25 inference uses the source's existing Python model
and original JSON checkpoint. The report includes all original
case identifiers, class-pair words, source hashes and monitor
success fractions.

Interpretation distinguishes source support entropy from the
eight-bit literal word length. No claim about the source #122
asymptotic pair or the #140 Gaussian observation experiment
follows from this small trained-ranker diagnostic.
57 changes: 57 additions & 0 deletions research/deletion_memory_barrier_v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# DMB-01: deletion–memory barrier

Research campaign launched November 13, 2026.

Source results: [OpenAI Math #122](https://github.com/openai/math/blob/main/lean/docs/122.md), worst-case deletion trace reconstruction lower bounds, and [OpenAI Math #140](https://github.com/openai/math/blob/main/lean/docs/140.md), streaming Gaussian memory–precision lower bounds.

[Mathematical proofs](THEORY.md) | [Exact reference](reference.py) | [Tests](test_reference.py) | [Experimental protocol](PROTOCOL.md)

## New deductions

DMB-1: a B-bit terminal monitor without leaked time index cannot exactly recover a uniform n-bit source with average success exceeding 2^(B-n), irrespective of trace count.

DMB-2/DMB-3: matching short-deletion decks bound one-trace total variation and hence bound exact recovery from m iid traces, even with unrestricted memory. Witness: 0110 versus 1001, identical subsequence decks through length 2, one-trace TV=17/625 under deletion q=4/5, which forces at least 15 traces for success >=2/3 on both words.

DMB-4: a two-resource information ceiling I(X;state,stop index|independent randomness) <= min(B+log2(m+1), m*n*(1-q)). Finite-alphabet Fano supplies the approximate-recovery corollary.

DMB-5/DMB-6: an elementary spherical-cap precision floor and a conditional extension of source #140 to independently erased Gaussian observation opportunities. The sample bound requires at least 5/6 success before truncation and charges additional counters. Its numerical constant is inherited symbolically from #140.

DMB-7: a two-word structured prior can be recovered by a one-bit monitor, demonstrating why prior entropy must be declared.

## Reproduce

From repository root, with Python 3.10+ and only the standard library:

python -m unittest discover -s research/deletion_memory_barrier_v1 -p 'test_*.py' -v
python research/deletion_memory_barrier_v1/reference.py --check --out /tmp/dmb01.json

All tests are exact finite controls and elementary analytic checks. No trained neural checkpoint is run; no asymptotic hard pairs or original OpenAI source proofs are reproduced.

The research owner is Compactification Theory, with applications to RC-01, LoopedTransformers, RefutationBench and StegoBench. The source #122/#140 manuscripts are research claims under community review.


## Executed learned-ranker diagnostic

[Registered RRC-25 study](PROTOCOL_RRC25.md) |
[Executable source-locked analysis](bench_rrc25_deletion.py)

The existing trained RRC-25 GRU supplies an eight-bit diagnostic
stream from its two top-ranked candidate IDs. The test distribution
has 36 source-generator cases across six families; the original
checkpoint and training source hashes are verified before any
output is computed. This is an observed ranker-output code,
not recovered hidden chain of thought.

The finite prior over output words is used explicitly in DMB-8's
top-K prior-mass ceiling. Exact Fraction deletion laws and terminal
MAP decoding compare a 2/4/6-bit rolling-hash monitor with a
protected-first-nonempty-evidence monitor under deletion rates
1/2 and 4/5 and independent trace counts 0..3.

DMB-9 proves that the protected monitor's success is
\(q^{nm}\pi_\star+(1-q^{nm})A_g\), hence nondecreasing
with more traces. The rolling monitor may forget earlier
information. All decoding tables and their nominal
description size remain separate from mutable monitor bits.
The study is a retrospective finite-prior diagnostic and does
not estimate reconstruction of natural-language reasoning.
116 changes: 116 additions & 0 deletions research/deletion_memory_barrier_v1/RESULTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# DMB-01 results: deletion channels and protected monitorability

Date: 2026-11-13. Distinct evidence stages:
- **Exact finite mathematical controls:** standard-library Fraction tests.
- **Trained-model output diagnostic:** original source-locked RRC-25 GRU
produces ranked candidate IDs; the monitor is a deterministic
finite-state rule with an optimal terminal MAP decoder for the
selected empirical source prior.
- **Source-level open research:** OpenAI Math #122 and #140 claims are
imported by their stated scopes, without reproducing their proofs.

## Source pair

OpenAI [#122](https://github.com/openai/math/blob/main/lean/docs/122.md)
supplies a claimed worst-case deletion-trace sample lower bound.
OpenAI [#140](https://github.com/openai/math/blob/main/lean/docs/140.md)
supplies a claimed Gaussian streaming memory–precision lower bound.

The new theory note proves elementary consequences for terminal-state
capacity, finite deletion-deck pairs, data processing, spherical
precision and erasure-transferred Gaussian sampling. Its use of the
asymptotic #122 and #140 results is explicitly conditional.

## Exact deletion-deck witness

The strings 0110 and 1001 have the same subsequence multiset for
lengths 0,1,2. Their length-3 multisets are disjoint, and their
length-4 full traces differ. At deletion q=4/5,

TV(P_0110, P_1001) = 17/625 = 0.0272.

An estimator attaining two-thirds exact recovery on *each* source
requires at least 15 independent traces by the m-fold coupling
bound. This is a necessary condition, not a decoder achieving it.

MathCan [PR #32](https://github.com/patrickdugan/MathCan/pull/32)
has Lean 4 / Init checks for the exact short-deck equality,
length-three disjointness and terminal decoder collision.

## Source-locked trained RRC-25 diagnostic

Use the existing original recurrent RRC-25 checkpoint with SHA-256

54f225f2a61c52fee5a740576eaab3bcbc5280a595fc1ac1ac115ec8ac26c41b

The source's bench25.checkpoints gate verifies original training
hashes, model shape, and 1,000 trained parameters. Its public
feature/header pipeline supplies two top-ranked suffix class IDs,
encoded as eight bits. The original suffix truth and future labels
are never used to construct the ranked outputs.

The selected finite cohort contains 36 source-generated test cases
from six families. It has 19 distinct ranker-output words, Shannon
entropy 3.647462909576375 bits, and maximum prior source probability
11/36 (30.56%). Each source word has literal length eight.
Thus the uniform eight-bit source ceiling is inapplicable to this
structured empirical distribution.

At any number of trace observations, the DMB-8 state-count
ceiling is 20/36 (55.56%) for B=2, 33/36 (91.67%)
for B=4, and 100% for B=6. These are upper bounds over
*all* monitors with the stated mutable bit capacity for the
empirical source prior, given no external source-dependent side
channel. The demonstrated monitor falls below these bounds.

### Empirical exact-rational recovery rates

The monitor sees iid deletion traces of the fixed eight-bit ranking
word and stores only its B-bit state. The ideal final MAP decoder
is evaluated by exact Fraction arithmetic over the finite prior.
Its source-dependent lookup table is a separately charged
static decoder resource.

| Deletion q | 6-bit monitor | m=0 | m=1 | m=3 |
|---|---|---:|---:|---:|
| 1/2 | Overwriting rolling hash | 30.56% | 38.29% | 30.56% |
| 1/2 | Protected first nonempty trace | 30.56% | 36.18% | 36.20% |
| 4/5 | Overwriting rolling hash | 30.56% | 31.36% | 30.56% |
| 4/5 | Protected first nonempty trace | 30.56% | 31.32% | 31.47% |

The unlimited-message decoder using one complete deletion trace
achieves 42.55% at q=1/2 and 31.39% at q=4/5, evaluated exactly.
The protected monitor's three-trace score at q=4/5 can exceed
the full one-trace decoder score because it uses three independent
attempts to collect nonempty evidence.

DMB-9 supplies the formula

P_guarded(m) = q^(n*m) * pi_max + (1-q^(n*m)) * A_g

under a fixed source prior, with A_g the Bayes success from
a nonempty retained trace's protected hash. It is monotone
and converges to A_g, while the rolling hash is permitted to
overwrite useful earlier information. Exact Markov-chain
enumeration and an independent closed-form implementation are
compared in the finite tests.

## Run instructions and provenance

From the root of Compactification Theory:

python -m unittest discover -s research/deletion_memory_barrier_v1 -p 'test_reference.py' -v
python research/deletion_memory_barrier_v1/reference.py --check --out /tmp/dmb01_control.json
python -m unittest discover -s research/deletion_memory_barrier_v1 -p 'test_rrc25_deletion.py' -v
python research/deletion_memory_barrier_v1/bench_rrc25_deletion.py --test-per 6 --deletions 1/2 4/5 --counts 0 1 2 3 --bits 2 4 6 --out /tmp/dmb01b_ranker.json

The dedicated workflow stores a finite source-hash receipt and a
trained ranker diagnostic JSON artifact. The source generator and
checkpoint remain unchanged. No network call or CUDA resource is used.

The trained RRC-25 word is an encoded pair of *ranked candidate IDs*.
It is neither a natural-language transcript nor an observation of
internal neural hidden-state computations. No claim about general
monitorability or reconstructing arbitrary proof traces follows
without a frozen, separately defined source distribution and
native hidden-state observations.
Loading
Loading