# RRLS Research Studio v0.27 — audited extension 2

The 20 September 2026 current-source conformance repair restores strict integer
validation, bound-carrying collision certificates, and the independently
reconstructed verifier promised by the existing audit report. The reproduced
pre-repair failures and exact scope are in
`RRLS_v27_CURRENT_SOURCE_CORRECTION.md`.

This update repairs collision-certificate verification, negative collision search
bounds, and cancellation in small damped-ravel calculations. It adds exact
polynomial trajectory recovery within a supplied dimension, prime field, and
degree bound. These assumptions are part of the result.

Fresh audit results:

| Check | Result |
|---|---:|
| Exhaustive integer collision cases | 16,250 passed |
| Generated rational collision cases | 600 passed |
| Capture worlds against a separate tick implementation | 200 passed |
| Archived analytic ravel rows replayed | 500 matched |
| Generated polynomial trajectories | 480 recovered exactly |
| Legacy self-tests / new regression tests | 5 / 10 passed |

Run from this directory with Python 3.10 or later:

~~~text
python run_v27_audit.py
python -m unittest test_v27_audit -v
~~~

The audit uses the Python standard library. Existing GUI requirements remain in
the original installation files; the Windows GUI was not exercised in this audit.

Start with [the audit report](audit_results/RRLS_v27_AUDIT_AND_GENERATOR_CONTRACT.md).
Full inputs, results, provenance, and language contracts are in audit_results/.
The polynomial API is in rrls_polynomial_tomography.py.

The historical v0.27 claims below are retained as source history. Their aggregate
collision/capture counts and timing are not fresh reruns. In particular, this
release implements integer-tick point capture; it does not enforce continuous
non-crossing of finite-radius fibers.

---

# Preserved v0.27.1 repair

The recurrence learner, Theory of Reality revision, and its tests from the intervening update are included. The audit runner now executes both regression suites (20 tests total) and the five legacy self-tests. The earlier source audit documents that repair; the independent certificate verifier in the new audit supersedes its solver-reuse checker.

# RRLS Research Studio v0.27.1

This repair release is documented in RRLS_v27_SOURCE_AUDIT.md. It fixes weak-damping cancellation, signed-start scheduling, collision-result verification, and the separating-contact impulse convention. It adds rrls_generator_guard.py for exact identification and future jumps inside a declared bounded-order linear-recurrence class.

Run the original compact checks with "python rrls_v27_selftest.py", the new ten-group audit with "python test_v27_hardening.py", and the generator example with "python rrls_generator_guard.py". The original GUI remains compatible; no new Windows executable is included.

Benchmark counts below are the original v0.27 record. The audit's fresh counts and assumptions are separate. The capture automaton tests integer-tick point coincidences; it does not enforce continuous finite-radius strand nonpenetration.

## Dimensional Future Compiler

v0.27 compiles structured future generators instead of replaying every tick.

New layers:
- exact D-dimensional modular next-collision solving via linear congruences + generalized CRT;
- exact rational perfectly-inelastic capture with event-driven jumps;
- exact finite-field observability and information-rank bounds;
- direct tesseract/hypercube Gray-code random access;
- analytic 3D curvature/torsion + damped contact-propagation toy mechanics;
- Dimensional Future Language DSL.

Headline checks:
- 1,080/1,080 integer pair-collision differentials;
- 500/500 rational pair-collision differentials;
- 500/500 arbitrary-after-tick differentials;
- 400/400 event-capture vs tick-oracle worlds;
- 100/100 independent helix curvature/torsion checks;
- 500/500 high-precision ravel-equation checks;
- a constructed D=16 collision at a 97-digit future tick was solved directly.

Important negative results:
- exact random recurrence became rarer as independent dimensions were added;
- the assumed capture rule did not guarantee complete ravel under the tested damped toy law;
- arbitrary D-dimensional position+velocity needs enough independent measurement rank: at least 2D scalar measurements in the exact unconstrained linear model.

No P=NP proof and no physical/medical prediction claim is made.

Read `RRLS_v27_DIMENSIONAL_FUTURE_REPORT.md`.

---

# RRLS Research Studio v0.26

## Exactness Firewall & Semantic-Future Audit

v0.26 attacks RRLS itself.

Key corrections:
- SAT/#SAT core confirmed arbitrary-integer exact; 301-digit counts tested.
- real export bug found: integer+UNKNOWN pandas columns can promote to float64.
- canonical proof artifacts now use tagged exact JSON.
- SHA-256 is no longer accepted as mathematical relation identity.
- normalized collision signatures now have exact rational form.
- v0.24 dynamics are explicitly labeled float/quantized rather than exact.
- malformed CNF coordinate systems are rejected.
- v0.25 "future modes" are corrected to syntactic future modes, an upper bound.

Major finite result:
- one n=40 snapshot: 26,404 live states -> 10,302 residual syntaxes -> only **2 exact semantic futures**.
- a fixed algebraic + width<=8 router classified all 10,302 on that snapshot.

No P=NP proof is claimed.

Read `RRLS_v26_EXACTNESS_SEMANTIC_AUDIT_REPORT.md`.

---

# RRLS Research Studio v0.25

## Synchronized Collision Algebra

v0.25 turns the collision/synchronization hair model into exact SAT/#SAT languages:

- clause falsification states collide as partial coordinates;
- incompatible collisions annihilate;
- identical collisions synchronize;
- coordinates with no future interaction are summed out;
- sparse frontier keeps only nonzero collective trajectories;
- different histories synchronize when their exact residual future CNF is identical.

Differential gates: **1064/1064 exact method/formula checks**.

Headline same-formula n=40 comparison:
- collision-coordinate: state-cap UNKNOWN
- projected-collision: state-cap UNKNOWN
- sparse frontier: exact UNSAT at 130,336 peak modes
- future-residual synchronization: exact UNSAT at 26,616 peak modes

Bounded-window control: n=5000 solved exactly with frontier width 5 and only 28 peak live states.

The phase-transition sparse frontier still shows empirical exponential growth; the
P=NP proof gate remains CLOSED.

Read `RRLS_v25_SYNCHRONIZED_COLLISION_REPORT.md`.

---

# RRLS Research Studio v0.24

## Universal-Cycle Tomography & Resonant Collision Engine

v0.24 implements the string/fiber thought experiment as two explicit test systems:

- synthetic one-cycle system identification (anchor, coupling depth, orientation, reversible inward/outward force);
- exact finite relational tomography with higher-order collisions and same-speed temporal resonance.

Headline finite results:
- universal multi-axis cycle strongly outperformed a one-tone scalar probe in the synthetic identification model;
- inward force increased collision density in the tested finite-resolution toy geometry;
- 32 fixed response histograms distinguished all 72 exact stretched defect relations in the finite corpus;
- a compact collision+same-speed resonance summary also distinguished all 72 at 32 phases;
- the proof gate stays CLOSED because exact defect responses currently require feasible-state enumeration.

Read `RRLS_v24_UNIVERSAL_CYCLE_REPORT.md`.

No claim is made that physical reality obeys this toy model, and no P=NP proof is claimed.

---

# RRLS Research Studio v0.23

## Stretch → Fixate → Twist

v0.23 directly tests the proposed geometry:

- stretch loops into a tree + exact closure defects;
- choose an anchor;
- twist defect coordinates reversibly;
- measure whether tension localizes;
- snap back through the exact inverse map.

Headline:
- XOR defect languages canonically twist into coordinate subcubes.
- One 13-defect XOR case went ANF 68→4 and sampled BDD 39→2.
- Positive 1-in-3 cannot become distance-only under any reversible twist for the tested
  instances because of an exact shell-cardinality obstruction.
- Re-anchoring/twisting still reduces non-affine ANF complexity by up to ~88% on tested
  small cases.
- The remaining wall is compact exact phase.

Read `RRLS_v23_STRETCH_TWIST_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.22

## Elastic Unfolding / Holonomy

v0.22 formalizes the stretch-and-snap idea:

- cut factor-graph loops until the visible object is a tree;
- retain one exact closure-defect coordinate per cut;
- solve the tree;
- compile the defect language;
- snap back only when the zero-defect state is feasible.

The exact unfolding equivalence passed 128/128 finite differential checks.

Read `RRLS_v22_ELASTIC_UNFOLDING_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.20

## Structural × Algebraic Router

v0.20 adds exact low-width bucket elimination and maps SAT instances on two independent
tractability axes:

- local/global algebraic canonicalization;
- structural separator width.

Headline:
- low-width 3-SAT: exact structural solve;
- wide XOR: exact GF(2) solve;
- wide pigeonhole: exact matching/cardinality solve;
- phase-transition random 3-SAT: wide + uncompiled, remains UNKNOWN.

Read `RRLS_v20_STRUCTURAL_ALGEBRA_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.19

## Adaptive Feature Algebra

v0.19 demonstrates that a hard fixed monomial basis can be bypassed by a tiny,
automatically recognized structured basis:

PHP 5->4:
- v0.18 degree-7 monomial space: 137,980 coordinates, 1.5M-row cap
- v0.19 synthesized assignment/cardinality algebra: 9 features, exact UNSAT

It also routes four connected regions through Horn, SCC/2-SAT, GF(2), and
matching/cardinality algebras in one exact zero-branch run.

Generic phase-transition 3-SAT remains UNKNOWN.

Read `RRLS_v19_ADAPTIVE_FEATURE_ALGEBRA_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.18

## Algebraic Rank Wall

v0.18 implements an exact Boolean Nullstellensatz/Macaulay rank hierarchy.

Headline:
- exact full-degree correctness against brute force: 30/30 tested CNFs;
- XOR-CNF examples remain degree 3;
- random UNSAT 3-SAT reaches degree 4–5 in the tested range;
- raw pigeonhole rises from degree 3 to 5, with the 20-variable case exhausting a
  1.5M-row degree-7 cap;
- invertible affine GF(2) rotation **provably cannot lower** Nullstellensatz degree;
- tested nonlinear single-Toffoli rotations did not lower the selected hard cases.

Read `RRLS_v18_ALGEBRAIC_RANK_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.17

## Fiber Occupancy Wall

v0.17 proves a crucial negative/positive distinction:

- any Boolean relation can be lifted into a clean reversible output coordinate;
- that does **not** solve SAT;
- the hard quantity is the nonemptiness of the solution fiber.

The next valid breakthrough must discover a polynomially computable global
fiber invariant, not merely a shorter equation or a prettier coordinate system.

Read `RRLS_v17_FIBER_OCCUPANCY_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.16

## Extension Synthesis Wall

The recursive-vocabulary idea has now been mapped to the extension-rule machinery of
strong propositional proof systems.

The missing link is no longer "give relations names." It is:

**discover the right extension variables / mathematical coordinate system in polynomial time.**

Read `RRLS_v16_EXTENSION_SYNTHESIS_REPORT.md`.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.15

## Knowledge-Compilation Wall

v0.15's central result is that **compression alone is not the missing link**.

The target is now a dynamic representation path in which:
- representations remain polynomial-size,
- transformations remain polynomial-time,
- conjunction/projection remain polynomial-time,
- and the final decision query remains polynomial-time.

Run the existing P≟NP and Algebraic Wall labs, and inspect:
- `rrls_boundary_profiler.py`
- `rrls_compilation_path.py`
- `RRLS_v15_KNOWLEDGE_COMPILATION_REPORT.md`

No P=NP proof is claimed.

---

# RRLS Research Studio v0.14

## Missing-link release

v0.14 changes the main research target from "find another SAT shortcut" to
**compile higher-order boundary compatibility relations without exponential growth**.

Run:

- `launch_pnp_lab.bat` for the v0.13 exact SAT proof gate (if present)
- `launch_wall_lab.bat` for the new algebraic projection-wall diagnostic
- `py rrls_wall_cli.py --test parity-gadget`
- `py rrls_wall_cli.py --test ternary-exhaustion`

Read `RRLS_v14_MISSING_LINK_REPORT.md` first.

No P=NP proof is claimed.

---

# RRLS Research Studio v0.13

## P≟NP Proof Lab

Run `launch_pnp_lab.bat` or open the P≟NP card from `launch_windows.bat`.

v0.13 does **not** claim P=NP. It turns the claim into explicit machine-auditable proof
obligations and records every general-CNF residual where the current relation language
still requires branching.

Headline experiment:
- pigeonhole p=9 before ALLDIFF: 5,659 search nodes;
- after compiling ALLDIFF to matching: 1 node / 0 branches;
- XOR-SAT with 1,000 variables: 1 GF(2) dispatch / 0 branches;
- general 3-SAT: branch cores remain, therefore proof gate remains closed.

See `RRLS_v13_PNP_RESEARCH_REPORT.md`.

---

# RRLS Research Studio v0.12

## Start here

On Windows, unzip the package and double-click:

`launch_windows.bat`

This now opens the **RRLS Research Studio v0.12 hub**. The stale `v0.7` title visible
in older packages was a packaging/UI version-string bug and is fixed.

The hub launches:

1. Number Pattern Studio v0.12
2. Universal Corpus Lab v0.12
3. Common Crawl Lab v0.12
4. Exact Operator Market v0.12

To compile all Windows executables, run:

`build_all_windows.bat`

For only the unified hub executable, run:

`build_windows.bat`

## v0.12 headline result

On held-out uncontrolled real data:

- best single residual coder: **2.51871x**
- per-block residual-coder market: **2.61486x**
- reversible RRLS relation + coder market: **2.62587x**
- genuine transform gain beyond coder selection: **+0.421%**
- all tested `.rrls12` round trips: **bit-exact**

See `RRLS_v12_RESEARCH_REPORT.md` for the decomposition and caveats.

---

# RRLS Studio v0.10

**Relational Rotation / Lift / Collapse Solver — persistent vocabulary edition**

RRLS Studio is an experimental finite-pattern discovery engine. It searches low-dimensional relationships first, validates candidate laws against held-out coordinates, collapses exact relations, and only escalates to more expensive relation families when cheaper structures fail.

v0.7 adds a persistent **recursive relation vocabulary**. Validated reductions are stored as reusable primitives, generalized into schemas, merged across operator families, and recompressed into recurring macros. The learned vocabulary is also an active solver: stored relations are tried on future inputs, but they must still pass the same held-out validation before RRLS accepts them.

## Windows quick start

### Run from Python

1. Install Python 3.11+ from python.org and enable **Add Python to PATH**.
2. Unzip the RRLS Studio folder.
3. Double-click `launch_windows.bat`.

The runtime uses Python's standard library and Tkinter. No third-party runtime package is required.

### Compile a standalone EXE

1. Install Python 3.11+.
2. Double-click `build_windows.bat`.
3. PyInstaller is installed as a build dependency and produces:

`dist\RRLS_Studio_v07.exe`

The resulting EXE can be launched without manually starting Python.

## Input

Paste or load a finite sequence containing integers, decimals, scientific notation, or exact fractions. Examples:

- `1, 2, 3, 4`
- `0.1 0.2 0.3`
- `1e3, 2e3, 3e3`
- `1/3, 2/3, 1`

Whitespace, commas, semicolons, pipes, and newlines are accepted separators.

## Current relation vocabulary

The base detector vocabulary includes:

- constants
- arithmetic progressions
- geometric progressions
- periodic sequences
- exact finite-difference polynomials
- affine recurrences
- exact rational linear recurrences
- whole-integer XOR / GF(2) recurrences
- modular affine / LCG sequences
- interleaved lower-dimensional subsequences

## Persistent recursive vocabulary

The default library is stored at:

`%USERPROFILE%\.rrls_studio\vocabulary.json`

It has four levels.

### 1. Primitive relation templates

A validated relation is stored without coordinates that are merely initial conditions. For example, a Fibonacci-like relation is stored as its coefficients `[1, 1]`, not as the original starting values. A future sequence with different initial coordinates can therefore reuse the same law.

### 2. Parameterized schemas

Different exact relations are grouped into schemas such as:

- `linear_recurrence(order=2)`
- `xor_recurrence(order=13,taps=3)`
- `periodic(period=4)`
- `interleaved(stride=2)`

### 3. Cross-operator meta-families

RRLS runs compression over its own vocabulary. Arithmetic, geometric, affine, constant, and order-1 linear recurrence relations can all collapse into a higher-level rational recurrence family. XOR recurrence and modular recurrence live in different algebraic domains but use the same recurrence concept.

This means the program can discover that several apparently different operator vocabularies are specializations of a smaller meta-vocabulary.

### 4. Composition macros

Nested derivations are tokenized and recurrent token groups are mined as macros. Interleaved models are recursively stored with their child relation templates, so a macro such as:

`INTERLEAVE( arithmetic(step=2), geometric(ratio=2) )`

can be replayed on a new sequence with different starting values.

The **Vocabulary** tab lets you inspect, recompress, export, or reset the library.

## Validation rules

A stored relation is never accepted merely because it was seen before. RRLS fits or replays a relation on the training prefix and requires exact prediction of the hidden suffix before labeling it **validated**.

If RRLS cannot find a compact validated law, it reports:

`unresolved in current model vocabulary`

This does not claim the sequence is fundamentally random. It means the currently available transforms and operators did not expose a compact validated representation.

Only validated relations are admitted to the persistent reusable vocabulary by default. This prevents failed fits from contaminating future searches.

## Adaptive search

RRLS keeps two separate forms of memory:

- `operator_stats.json` learns which expensive search operators tend to pay off.
- `vocabulary.json` stores actual validated relation templates and compressed relation families.

The engine therefore learns both **which search move to try** and **which previously discovered mathematical relation to test immediately**.

## Measured v0.7 vocabulary benchmark

The included `benchmark_v07_vocabulary.py` uses fresh initial states so replay cannot succeed by memorizing the original sequence.

Measured in the provided container:

- Stored order-13 XOR relation, 8,000 values, new initial state:
  - cold rediscovery: ~0.352 s
  - vocabulary replay: ~0.039 s
  - speedup: **~9.10x**
  - both methods held-out validated exactly

- Cross-vocabulary composition macro: arithmetic lane + geometric lane, new starting values:
  - cold rediscovery: ~0.0055 s
  - macro replay: ~0.0023 s
  - speedup: **~2.39x**
  - holdout validation exact

- Example trained library after the benchmark:
  - 31 primitive templates
  - 21 schemas
  - 13 meta-families
  - 4 cross-operator merges
  - 3 learned composition macros

Timing is hardware- and data-dependent. These are benchmark measurements, not universal speedup guarantees.

## Important engine optimization found during v0.7 development

The previous affine detector could repeatedly verify long candidate sequences inside a nested search. v0.7 reduces the exact affine test to **O(N)**: two transitions with distinct predecessor values uniquely determine the candidate affine relation, after which one linear verification pass is sufficient.

## CLI

Example:

```bat
py rrls_cli.py --sequence "1,1,2,3,5,8,13,21,34,55,89,144" --mode adaptive --forecast 8
```

Use a custom vocabulary file:

```bat
py rrls_cli.py --file pattern.txt --vocab my_relations.json --mode adaptive
```

Analyze without modifying vocabulary:

```bat
py rrls_cli.py --file pattern.txt --no-vocab-learn
```

## Reproduce tests

```bat
py self_test.py
py benchmark_v07_vocabulary.py
```

`self_test.py` specifically verifies that a learned recurrence can solve a new sequence with different initial values via vocabulary replay.

## Scope and limitation

RRLS can search, validate, reuse, and recompress relations inside its current model vocabulary. It does **not** prove that a discovered model is the unique metaphysical cause of finite data, nor can it guarantee the globally shortest possible program for arbitrary input. A finite sequence can admit multiple exact continuations. Held-out validation and minimum-description ranking reduce overfitting but do not eliminate that fundamental ambiguity.

The development target is therefore precise: continuously expand the relation/transform vocabulary while making exact validated relations progressively cheaper to recover and compose.


## v0.8 Universal Corpus Lab

`launch_universal_lab.bat` opens the new domain-agnostic corpus compiler.

It accepts arbitrary files and treats their contents as integer-coordinate streams.
For common image formats, installing Pillow enables additional grayscale pixel,
horizontal-XOR and vertical-XOR coordinate views. The compiler learns recursive
phrase vocabulary without being told what a word, image, DNA motif, or source-code
token is.

The included controlled benchmark contains 11.00 MiB across 42 domains:
synthetic English/German/Spanish/French/Dutch text, literal bit encodings of language,
source/data syntax, DNA-like strings, binary numerical families, procedural image
families in several coordinate views, and an OS-entropy control.

Measured on the benchmark:
- recursive depth 1: ~3.34x token reduction;
- best tested recursive MDL proxy: 2.058x total compression at depth 5 including a
  dictionary-storage proxy;
- human-language byte streams: 3.56x held-out payload compression at depth 5;
- the same language represented literally as 0/1 coordinates: 7.99x;
- source/data syntax: 6.04x;
- structured image views combined: 2.93x;
- high-entropy control: 0.71x, correctly indicating that the learned vocabulary is
  more expensive than raw representation in that coordinate view.

The image families selected different cheapest coordinate views, which is why v0.8
retains view/basis search rather than assuming one representation is universally best.

The structural meta-vocabulary recompiles learned phrases by relationship rather than
literal byte identity. Current automatically measured classes include RUN/CONSTANT,
PERIOD/2/3/4, XOR/CONST-DELTA, AFFINE/CONST-DELTA-MOD256, BINARY/MIXED-RUNS,
BINARY/HIGH-ALTERNATION, and repetitive low/mid-alphabet structures.

These are empirical compressor primitives, not claims that these generated corpora
capture all natural language, vision, biology, or physical structure.


## 22.01 MiB scaling run

A second independently generated corpus doubled the experiment to 22.01 MiB / 5,653 streams.
The best MDL proxy again occurred at recursive depth 5: 4.850x token reduction and
2.142x total compression versus raw bits including the dictionary-storage proxy.
The stable depth matters more than the absolute compression number: the controller
did not benefit from endlessly adding higher vocabulary layers.


## v0.9 Common Crawl

`launch_commoncrawl_lab.bat` opens the disk-backed Common Crawl sampler/compiler.

The lab defaults to `CC-MAIN-2026-34`, can detect the newest crawl at runtime, samples
random WET shards by seed, and splits training/testing by hostname rather than page.

The corpus is stored in SQLite, so multi-gigabyte samples do not need to fit in RAM.
Use the Probe / Go ham / Monster presets as starting points, but remember storage and
network usage are real. Downloads are intentionally sequential.

See `RRLS_v09_COMMONCRAWL_REPORT.md` for methodology and benchmark details.

## v0.10 Research Gates

v0.10 changes the goal from "make a recursive grammar" to "prove that a learned relation survives adversarial validation".

New gates:

- exact content-digest deduplication;
- deterministic hash-shuffled vocabulary training;
- per-host document caps;
- host-disjoint train/test;
- held-out-only MDL cost;
- zlib/LZMA sanity baselines;
- frozen compiler application to a second corpus with zero learning;
- host and exact-document overlap reporting;
- resumable cached WET downloads;
- operator-market support, including RAW as a valid winner.

For Common Crawl, use `launch_commoncrawl_lab.bat`. For a true cross-crawl test, train/export a compiler on one crawl and run:

```
py rrls_crosscrawl_eval.py compiler_august.json RRLS_July.sqlite --train-db RRLS_August.sqlite --out crosscrawl_report.json
```

See `RRLS_v10_RESEARCH_REPORT.md` for the measured negative and positive results. In particular, the current recursive phrase model does **not** beat ordinary compression on uncontrolled data. That is intentional to report: the research target is transferable relational structure, not a disguised claim that LZW-like vocabulary is already a universal solver.
