# Cross-domain stress experiment — RRLS Geometry Lab 0.9

The run processed **31,588,403 scalar values in 30 streams**. Three provisional predictors passed their initial validation and then failed on later coordinates. Exact context conflicts appeared in actual photograph and text data. The existing frozen cubic hypothesis stayed at version 1, with the same program hash and error policy.

These are findings about specified coordinate models and a finite corpus. They do not establish a universal law, show that random data is fully predictable, or train neural-network weights.

![Computed findings](results/cross-domain-findings.png)

## What was fed to the engine

| Corpus | Scalar values actually processed |
|---|---:|
| Twelve generated or OS-random streams, 2,097,152 values each | 25,165,824 |
| Downloaded books and bundled observed/example datasets | 6,422,579 |
| Total | 31,588,403 |

The generated streams were uniform noise, Gaussian noise, seeded random bytes, saved OS-random bytes, a constant, a ramp, a period-seven sequence, a sine, a changing-frequency chirp, a logistic recurrence, a cubic trend, and a forced oscillator. OS-random bytes are an operating-system random-control sample, not a measurement of physical randomness.

The observed corpus contains four Project Gutenberg files (War and Peace, Pride and Prejudice, Alice in Wonderland, and German Faust), six RGB channel rasters from two photographs, handwritten digit images, a terrain raster, four EEG example channels, and iris/wine feature tables. Book headers and licenses remain intact. Text coordinates are UTF-8 **bytes**, not semantic language representations. Photograph and terrain predictions never cross raster-row boundaries; digit rows never cross image boundaries. Table tasks use the first three measured attributes to predict the fourth, keeping records separate. The EEG and terrain are bundled examples; their collection provenance was not independently verified.

Snapshots and full attribution are in `corpus/`; texts have URLs and SHA-256 hashes in `corpus/download-manifest.json`. The OS byte sample is saved. Generated floating-point arrays have checksums, seeds/formulas, topology, and scaling recorded in each stream's result. A different numerical library/platform can change the last bits; the included checksums identify the tested realization.

Primary dataset documentation: [Gutenberg Alice](https://www.gutenberg.org/ebooks/11), [Gutenberg War and Peace](https://www.gutenberg.org/ebooks/2600), [Gutenberg Faust](https://www.gutenberg.org/ebooks/2229), [scikit-learn sample images](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_sample_images.html), [scikit-learn digits](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_digits.html), [toy dataset descriptions](https://scikit-learn.org/stable/datasets/toy_dataset.html), and [Matplotlib EEG example](https://matplotlib.org/stable/gallery/specialty_plots/mri_with_eeg.html).

## The frozen hypothesis and the discovery hypotheses are different tests

The retained geometric hypothesis is the fitted floating-point representation of

\[
F(x,y,z)=(x+z^3,y,z).
\]

Its original coefficients were preserved, including rounding-sized lower-order terms. Fresh lag-coordinate triples were supplied as inputs; a separately coded cubic formula supplied its reference outputs. **30,943,751 in-scope triples passed**, with maximum coordinate error `7.1054e-15` against the fixed `1e-8` tolerance. Another **591,762 triples** from the forced oscillator were outside its original `[-2,2]^3` box and were counted separately without clipping or expanding the scope.

That is a large implementation/generalization check of an already-specified synthetic relationship. It is not evidence that books, photographs, or EEG follow a cubic physical law. The complete frozen ledger hash is unchanged by the bulk audit. Program hash remains `53b82dbcf8c596374d9e888839f89425a4f118f43e6f140aed27e4499dd27f96` and policy hash remains `fb408b251ab608410126d4ff3bec79bf631b3a5a3c3e7322838bde3b258e26e5`.

The independent discovery question was instead:

\[
s_t = f(s_{t-3},s_{t-2},s_{t-1})?
\]

Here the target is the actual next stored sample, never an output manufactured by the fitted predictor. The scan included **31,535,513 target pairs**, of which **31,521,117** were after fitting. These overlapping windows are not statistically independent experiments. Counting three coordinates per row would not triple the amount of source information.

The preregistered files are `results/cross-domain-contract.json` and its amendment. They set a `1e-8` absolute tolerance in explicitly recorded normalized units. Fit the first 512 targets, choose the lowest-degree training-fitting candidate from affine, quadratic, and cubic polynomial families, then check 256 selection and 256 fresh-prefix targets without refitting. Short sources use 60/20/20 splits. Scan all remaining targets. Minimum-norm fits on deficient-rank designs are labeled underdetermined; they do not identify a unique ambient-space law. Validation is temporal/spatial separation, not an independence guarantee.

## Which equations survived, and which broke?

| Source | Result of the fixed coordinate predictor |
|---|---|
| Constant | Affine predictor survived; trivial, low-information control |
| Ramp | Affine predictor survived every tested target |
| Period seven | Quadratic predictor survived; this fits a finite repeated orbit, not a unique global law |
| Sine | Affine predictor survived every tested target; delay coordinates lie in a lower-dimensional subspace |
| Logistic recurrence | Quadratic predictor survived every one-step target |
| Chirp | Initially passed; first later error above tolerance at source index **18,226** |
| Cubic trend | Initially passed; first later error above tolerance at source index **19,822** |
| Forced oscillator | Initially passed; first impulse-related failure at source index **1,048,576**, error **0.2** |
| Four random controls | No strict training fit in the bounded dictionary |
| All 18 observed/example streams | No strict training fit in this lag/feature dictionary at the fixed tolerance |

Indices are zero-based. Failures and unchanged programs are retained in `results/stream-ledgers/`. All three later-failed ledgers block governed prediction. An additional search with the existing single-family learner and saved feature bank remained unresolved; none was activated as an automatic revision. See `results/corpus-counterexample-checks.json`.

The fixed affine baseline can still be statistically useful when an exact rule fails. On the terrain example, future mean absolute error fell from `0.00125881` for repeating the previous value to `0.00072913` for the fitted affine predictor, approximately a 42% reduction. This is one dataset/split and scale, not a universal improvement. In all four random controls, its error was slightly worse than the training-mean baseline. Several photograph channels also did worse than repeating the previous pixel. Baseline errors in different domain units should not be ranked against one another. The mechanically reported last-coordinate baseline in feature tables compares different measured attributes and has no physical persistence interpretation.

## A real data obstruction: the same input has two outputs

In the China photograph's red channel:

| Previous three byte intensities | Next byte | Target position, zero-based |
|---|---:|---|
| `(174,174,174)` | 174 | row 0, column 3 |
| `(174,174,174)` | 173 | row 0, column 8 |

The input is exactly the same. The normalized output gap is `1/127.5`, far larger than twice the fixed tolerance. Therefore **no deterministic function of those three intensities can satisfy both observations under that rule**. This conclusion is stronger than a failed polynomial search, but applies only to those input coordinates. It does not prove that images are random or that geometry is inconsistent.

Longer byte contexts were also checked at fixed lengths 1, 3, and 8, scanning at most 200,000 contexts per stream. Repeated eight-byte contexts still had conflicting following bytes in every tested book and photograph channel. No eight-byte collisions were found in the scanned random controls; sparse collisions are not evidence of predictability. Full evidence counts and the first actual examples are retained. Counts are contradictions against each context's first occurrence, not counts of unique contradictory functions.

`results/photograph-context-conflict.json` contains the actual two observations. Automatic deterministic revision is blocked. More measured context or a probabilistic prediction task would require a separately specified model and validation rule. Adding an arbitrary row ID could memorize the file but would not demonstrate generalization.

## A useful controlled extension with an observed force

The synthetic oscillator was generated with independently recorded impulses at index 0, half the stream, and three quarters of the stream. After the first later impulse contradicted the three-lag model, the fitted extension was approximately

\[
s_t = 1.99510200050656\,s_{t-1}-s_{t-2}+u_t,
\]

where `u_t` is that already-recorded force. Its extra third-lag coefficient and intercept were rounding-sized. The training design had full rank. The force was created before outcomes, not guessed from residuals.

The new program was committed before testing it on a 257-sample window around the second later impulse, whose force had a different sign and amplitude. These were recorded targets withheld from fitting this extension, not newly collected experiments after commitment; the earlier three-input scan had also encountered them. The extension procedure and split were declared before any results. Held-out maximum error was `2.78e-15`. Replaying **all 2,097,149 available target pairs** produced zero violations, maximum error `5.72e-15`.

This is a **separate four-input candidate**. The old three-input schema and its contradicted ledger were not overwritten. This demonstrates a justified measured-coordinate extension in a controlled experiment, not autonomous discovery of an unknown physical force or an automatic change to the original cubic hypothesis.

## One-step accuracy is not long-horizon prediction

The logistic fit predicted all measured one-step transitions within tolerance. When fed its own predicted values recursively, its error exceeded `1e-8` at step **24** and `0.1` at step **49**; maximum discrepancy over 4,096 steps was about `0.987`.

The same test on the sine fit remained within `2.72e-11` over 4,096 steps. This illustrates sensitivity to finite-precision/model errors in these tested recursions. It is not a counterexample to the one-step test or a proof of a globally unique dynamical law. The force-free early oscillator rollout also passed; that window did not include a later impulse.

## Geometric reduction found in observed digits

Fit an affine hull to the first **1,078** 8-by-8 digit images. The 64 pixel coordinates had rank **61**, with three constant training pixels at flattened indices 0, 32, and 39. All **719** held-out images satisfied the same reconstruction constraint; maximum error was `3.55e-14` against `1e-8`.

That saves three varying coordinates per image after learning a fixed representation. It does not imply that every possible handwritten digit lies in that same affine space, nor that 61 is a minimal nonlinear dimension. The fitted basis and origin are in `results/digits-affine-hull.json`.

## Two software problems fixed without changing the geometric equation

1. **SVD allocation:** `affine_hull_encode` requested a full square left-singular-vector matrix even though it needed only a thin factorization. On 1,048,576 three-coordinate points, the unused full matrix alone would require **8 TiB**; the thin U matrix needs **24 MiB**. The old huge allocation was not attempted. The fixed helper completed the test in about 0.59 seconds and reconstructed the rank-two cloud within `8.89e-15`. These are allocation estimates for U and one-machine runtime, not total process-memory measurements.
2. **Exact output serialization:** the retained original RRLS sometimes converts exact fractions through a floating-point decimal formatter. For example, exact `1/10` could be exported as `0.100000000000000006`. A private adapter now exports exact rational strings; its search families, fitting, and acceptance rules are unchanged. The original 0.6 source remains intact. The geometry CLI's parameter schedules and geometry-vocabulary add-on use the adapter.

The original RRLS search was run on **324 fixed windows**, each with 64 supplied values and eight external future targets; it was not run exhaustively on 31 million windows. Before the serialization fix, 25 windows passed internal validation but only 12 forecasts were exactly preserved externally. Replaying the identical windows through the lossless adapter gave **25/324 exact future successes**, with every internal selection decision unchanged. Those successes were 12 constant windows, 12 periodic windows, and one ramp window. Float-derived decimal input does not guarantee an exact rational recurrence; this adapter fixes output precision without changing the recorded input interpretation.

The SVD runtime change was checked by a narrow source-AST comparison plus full/thin reconstruction checks, logged in `results/svd-compatibility.json`. The only accepted runtime-source change was `full_matrices=True` to `False` in the affine-hull helper. The old runtime text is retained in `compatibility/v08_rrls_transforms.py.txt`. The compatible ledger records the runtime migration while preserving the program, policy, and version.

## Reproduce or inspect

The main scan took about **20.76 seconds** on this machine after data preparation, including bounded original-RRLS windows and the million-point SVD test. Downloads, code construction, inspection, and follow-up checks are excluded. Numerical performance varies by machine. Large input volume does not imply exhaustive equation search: the candidate dictionary, fitting prefix, and RRLS window budget are deliberately finite.

```text
python -m pip install -r requirements-stress-lock.txt
python check_stream_audit.py
python stress_cross_domain.py --output-dir results/replay-01
python check_exact_bridge.py
python check_corpus_counterexamples.py
python reality_cli.py status results/reality-ledger-compatible.json
```

Use a new output directory for each bulk replay; existing governed stream ledgers are never overwritten. A replay reuses the saved real-data/OS snapshots and regenerates mathematical streams from recorded formulas and seeds. The bridge/counterexample check scripts inspect the included original run. `make_stress_figure.py` regenerates its computed PNG/PDF figure. Broad dependency requirements are also provided, but the saved frozen ledger intentionally rejects a different NumPy runtime until explicitly reviewed.

Main artifacts: `results/cross-domain-results.json`, `results/exact-bridge-replay.json`, `results/corpus-counterexample-checks.json`, the source snapshots, and the committed per-stream programs. The complete manifest records SHA-256 hashes of packaged files. The Windows desktop interface was not exercised in this environment; this release's new experiment is a Python command-line workflow.

The experiment leaves three contradicted hypotheses unresolved in their original coordinates, preserves the photograph conflict, and retains the useful separately scoped force candidate. It does not loosen tolerance or invent a dimension to declare every result successful.
