Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9b6cbfe
FHC-01: prove horizon gap, robust net obstruction and scale frontier …
patrickdugan Nov 13, 2026
aa18d74
FHC-01: add exact-rational Gaussian, packing, distortion and net witn…
patrickdugan Nov 13, 2026
48fa756
FHC-01: add randomized exact moment checks and finite metric witness …
patrickdugan Nov 13, 2026
857b8e3
FHC-01: exact shift-register observability rank frontier at increasin…
patrickdugan Nov 13, 2026
a7328a6
FHC-01: test exact temporal observability ranks and first-revealed modes
patrickdugan Nov 13, 2026
6b5df98
FHC-01: prove exact recurrent observability rank lower bound and satu…
patrickdugan Nov 13, 2026
c050445
FHC-01: add research track entry point
patrickdugan Nov 13, 2026
519f9db
FHC-01: freeze a future-observation metric and compactification front…
patrickdugan Nov 13, 2026
819f594
FHC-01: add independent exact finite-control workflow
patrickdugan Nov 13, 2026
0eccabc
FHC-01: link narrowly scoped MathCan Lean kernel companion
patrickdugan Nov 13, 2026
0b1b2e6
FHC-01B: exact RC-01 primitive looper, semantic quotient and Walsh fu…
patrickdugan Nov 13, 2026
f6a5f2e
FHC-01B: fit PCA and run calibrated held-out distortion experiment on…
patrickdugan Nov 13, 2026
81de1e1
FHC-01B: certify full-space quotient and 63-D simplex; test held-out …
patrickdugan Nov 13, 2026
4455d77
FHC-01B: CI exact RC-01 future geometry and frozen numpy PCA/random h…
patrickdugan Nov 13, 2026
6c4f2fe
FHC-01B: derive 6-bit predictive vs 63-D metric rank and intervention…
patrickdugan Nov 13, 2026
e02ff59
FHC-01B: print PCA/Gaussian heldout distortion and pair witnesses to …
patrickdugan Nov 13, 2026
9db764a
FHC-01B: exact regular-simplex PCA heldout invisibility regression
patrickdugan Nov 13, 2026
a21cda4
FHC-01B: prove PCA loses all disjoint heldout vertices of a regular s…
patrickdugan Nov 13, 2026
edad021
FHC-01B: record held-out PCA collapse, random projection distortion a…
patrickdugan Nov 13, 2026
0c03816
FHC-01C: register trained RRC25 hidden-state future-logit geometry pilot
patrickdugan Nov 13, 2026
bf1833d
FHC-01C: source-locked trained RRC25 GRU future-logit geometry experi…
patrickdugan Nov 13, 2026
a960bfc
FHC-01C: trained RRC25 GRU state parity, provenance and deterministic…
patrickdugan Nov 13, 2026
a12cc95
FHC-01C: CI source-locked trained RRC25 recurrent geometry evaluation
patrickdugan Nov 13, 2026
a58f955
FHC-01C: record trained GRU future-logit geometry and 12D PCA comparison
patrickdugan Nov 13, 2026
2bffc8a
FHC-01: index executed synthetic and source-locked trained RRC25 geom…
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
68 changes: 68 additions & 0 deletions .github/workflows/fhc-01.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: FHC-01 finite horizon and metric obstruction controls
permissions:
contents: read
on:
push:
paths:
- 'research/finite_horizon_gap_v1/**'
- '.github/workflows/fhc-01.yml'
pull_request:
paths:
- 'research/finite_horizon_gap_v1/**'
- '.github/workflows/fhc-01.yml'
workflow_dispatch:
jobs:
finite-geometry:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Exact rational moment, packing, net and observability tests
run: python -m unittest discover -s research/finite_horizon_gap_v1 -p 'test_reference.py' -v
- name: Emit finite control receipt
run: python research/finite_horizon_gap_v1/reference.py --check --out /tmp/fhc01_control.json
- uses: actions/upload-artifact@v4
with:
name: fhc01-finite-controls
path: /tmp/fhc01_control.json
future-observation-benchmark:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install fixed numeric dependency
run: python -m pip install numpy==2.1.3
- name: Full-space GF2 and heldout future metric regression
run: python -m unittest discover -s research/finite_horizon_gap_v1 -p 'test_horizon_geometry.py' -v
- name: Measure frozen future-metric frontier
run: python research/finite_horizon_gap_v1/bench_future_metric.py --seed 940198 --horizons 1 2 4 6 8 16 32 63 --widths 2 4 6 8 16 32 --out /tmp/fhc01b_heldout.json
- name: Upload source-locked finite pilot receipt
uses: actions/upload-artifact@v4
with:
name: fhc01b-heldout-future-metric
path: /tmp/fhc01b_heldout.json
trained-rrc25-future-geometry:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install fixed numeric dependency
run: python -m pip install numpy==2.1.3
- name: Verify original RRC25 checkpoint and native zero-continuation adapter
run: python -m unittest discover -s research/finite_horizon_gap_v1 -p 'test_rrc25_future.py' -v
- name: Measure frozen trained RRC25 future-logit frontier
run: python research/finite_horizon_gap_v1/bench_rrc25_future.py --seed 940199 --horizons 1 2 4 8 16 --widths 2 4 8 12 16 --out /tmp/fhc01c_trained_rrc25.json
- name: Upload source-locked RRC25 geometry receipt
uses: actions/upload-artifact@v4
with:
name: fhc01c-trained-rrc25-geometry
path: /tmp/fhc01c_trained_rrc25.json
46 changes: 46 additions & 0 deletions research/finite_horizon_gap_v1/PROTOCOL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# FHC-01 experimental protocol

Status: prospective; no trained model experiment is claimed here.

## Target

Measure minimum empirical encoder dimension at distortion D as the
future observation horizon T and semantic state-cover resolution change.
Define Phi_T(h)=(w_1 G(F(h)),...,w_T G(F^T(h))) with explicit bounded
observable G, recurrent map F, nonzero weights and declared task input.

The metric d_T(h,k)=||Phi_T(h)-Phi_T(k)||_2 may be a pseudometric.
When the infinite future limit is used, require square-summable weights.
Raw hidden-state Euclidean geometry already lives in a fixed dimension;
the #098 compact doubling obstruction is relevant only after the
future-observation geometry is independently shown to have those properties.

## Frozen variables

Store checkpoint/tokenizer SHA-256 and full-state accounting, including
external clock, prompts, caches and recurrence. Freeze random seeds,
independent prompt families, intervention grammar and future metric.
Hold out complete prompt/trajectory families before fitting embeddings.

Sweep T=1,2,4,8,16 and supported widths d=2,4,8,16,32,64.
Prespecify D=1.5 and D=2.0. Compare dimension-matched PCA, Gaussian
projection, SAE and nonlinear encoders at the same parameter budget,
precision, fitted sample count and compute. Record any lookup table
and stateful encoder side memory in the RC-01 resource ledger.

## Interpretation

On each finite held-out set, report pairwise semantic distances,
encoded distances, a single calibration-only global scale,
worst-case multiplicative distortion and every violating pair.
A random finite sample supplies an empirical statistic. Uniform
guarantees require a proved epsilon-net or explicit covering certificate.
Any one violation certifies failure of that particular candidate.

The reversible shift-register control gives exact linear rank
min(T,m). Confirm it before neural trials. Use a non-doubling equilateral
finite packing control to check the volume obstruction. No experiment
can claim recreation of #098 without reproducing its compact witness.

A future prospective model-level finding requires new frozen training
seeds and a decision rule published before inspecting outcomes.
77 changes: 77 additions & 0 deletions research/finite_horizon_gap_v1/PROTOCOL_RRC25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# FHC-01C: trained RRC-25 future-observation geometry

**Registration:** 2026-11-13, before evaluating this FHC-01C code.
**Evidence status:** exploratory retrospective frozen-model pilot.
**Original model:** RRC-25 recurrent GRU template ranker, 1,000 trained
parameters, source-locked JSON state dictionary in
research/rrc_compactification/results/rrc25_recurrent.json.
The existing bench25.checkpoints() gate validates model kind,
architecture, source hashes and training-step count.

## Construction

Build the RRC-25 case roster with the original generator, selecting
train_per=1, dev_per=12, test_per=8. Only the dev cases supply
the new geometry calibration; only the named six test families
signed/sparse/product/rational/squared/late_source enter test
metrics. The original model's training process precedes this study.

Each case supplies two public demonstrations and a known public
header. Call compound25.features(case, header) to get the same
9x8 feature sequence used by the source model. Run the source
portable GRU recurrence exactly, with zero initial hidden state.
Verify the final 16 logits against model25.logits on every case.

The represented recurrent state is the final hidden vector h9,
dimension 12, after processing all nine input rows. Freeze a
specific intervention: every later input vector is identically
zero, and no public query features are re-injected. For
T in {1,2,4,8,16}, repeatedly apply the trained GRU transition
to h9 with that zero input and concatenate the 16 logit outputs.

This future-logit metric is distinct from the native task's
suffix-class accuracy; it is a controlled extrapolation of a
learned recurrent state under an intentionally artificial
continuation. The experiment does not infer a physical or
natural-language semantic metric from these logits.

## Comparators and scoring

- Native hidden 12-dimensional code, paired with its exact
recurrent continuation decoder. It is dynamically sufficient
for this continuation, subject to floating numerical precision.
- Full future trace, dimension 16T, exact metric identity.
- PCA of future traces fitted only on dev cases.
- Fixed-seed Gaussian projection of future traces, independent
of test features.
- Widths d={2,4,8,12,16}, restricted to d<=16T and
d<=number of usable PCA components as appropriate.

Use a median positive calibration-pair ratio to fit the global
scale per representation. Record all test-pair distortion ratios,
source-near-zero exclusions, calibration D=1.5 and D=2.0
violation counts and worst replayable case-ID pair.
Also report each held-out family separately. The primary unit is
one source-generator case, not a pair of cases.

Retain model JSON SHA256, source hashes from bench25,
the exact feature roster identifier hash, independent source
file hashes, fitting seed, number of parameters, native hidden
width and number of oracle future steps consumed to construct
PCA/projected representations. Projection matrices are charged
as 16*T*d coefficients; PCA mean vectors are extra.

The native hidden state's 12 float32 coordinates do not count
as 12 **bits**. Its state description is at least 384 bits
under an fp32 storage model, separate from approximately 1,000
trained weights and the decoder program.

The absolute size of geometric distortion on one generated
case set does not establish a global Lipschitz or bi-Lipschitz
bound. A code that passes tested pair distances need not pass
the source distribution's support. The #098 theorem applies
to an infinite-dimensional compact doubling witness, which
the native twelve-dimensional GRU does not instantiate.

Results will be added after CI passes. This protocol does not
modify source checkpoints, RRC-25 scoring or its stored receipts.
54 changes: 54 additions & 0 deletions research/finite_horizon_gap_v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# FHC-01: finite-horizon compactification gap

Research started 2026-11-13. Sources: OpenAI Math [#094](https://github.com/openai/math/blob/main/lean/docs/094.md) and [#098](https://github.com/openai/math/blob/main/lean/docs/098.md).

## Main theorem

Conditional on the two published source results, a compact doubling Hilbert subset has N-point dense prefixes whose distortion-D embedding dimension must diverge with N, while l4 admits the upper bound exp(C_D sqrt(log N)).

[THEORY.md](THEORY.md) supplies the Gaussian transfer, finite obstruction compactness, robust epsilon-net obstruction, additive coarse embedding and exact linear shift-register observability rank min(T,m).

## Repeatable finite controls

Python 3.10+ and standard library:

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

The finite controls check Gaussian fourth moments, equilateral packing, distortion-transfer tolerance epsilon=delta/6, doubling cover arithmetic, rational finite l2->l4 maps and shift observability ranks.

The source papers' compact doubling witness is not reproduced by these finite checks, and no trained neural checkpoint is tested.

[PROTOCOL.md](PROTOCOL.md) defines the future-observation metric experiment, owned separately from RC-01, IC-01, IRC-02 and SUD-01.

The independently kernel-checked discrete bridge is in [MathCan PR #31](https://github.com/patrickdugan/MathCan/pull/31). It covers the integer one-sixth clearance and full-prefix recovery lemmas only.


## Executed extensions: RC-01B and trained RRC-25

[FHC-01B results](RESULTS_B.md) derive and measure the gap between
exact semantic binary memory and the Euclidean dimension required
for preserving full future-observation distances. The six-bit
primitive looper needs just six predictive bits at horizon 63,
while its exact 64-state future-trace isometry requires 63 real
coordinates. A 48/16 calibration/heldout PCA split has the
full-regular-simplex unseen-state collapse proved by FHC-8.
The frozen CI pilot includes PCA, Gaussian projection and exact
binary quotient comparisons with held-out pair witnesses.

[FHC-01C results](RESULTS_C.md) evaluate the existing source-locked
1,000-parameter RRC-25 trained recurrent GRU checkpoint. The
benchmark [protocol](PROTOCOL_RRC25.md) defines a fixed zero-input
recurrent continuation and measures the geometry of future logits.
At horizon 16 the native hidden-state 12-coordinate norm exhibits
39.528 worst-pair distortion on the frozen held-out cases, versus
1.230 for a 12-coordinate PCA of future-logit traces fitted on
separate dev cases. The latter has a significant future-computation
and projection-description cost, which is charged in the receipt.

All results retain distinct evidence labels: exact finite theorem,
synthetic recurrent pilot, and trained-model retrospective geometry.
They are not a construction of the #098 compact doubling counterexample.
The companion [MathCan Lean PR #31](https://github.com/patrickdugan/MathCan/pull/31)
checks the discrete one-sixth tolerance lemma, full-horizon prefix
recovery and an explicit six-bit observable-mask orbit.
105 changes: 105 additions & 0 deletions research/finite_horizon_gap_v1/RESULTS_B.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# FHC-01B: executed future-observation geometry pilot

Date: 2026-11-13. This is a **FROZEN_SYNTHETIC_RECURRENT_PILOT** using
the existing RC-01 affine GF(2) recurrence. It is a measured
finite-state/PCA experiment, not a trained neural checkpoint run.

## Reproduction

Source CLI: bench_future_metric.py. Exact primitive recurrence:
horizon_geometry.py, which directly imports the RC-01 Affine,
row_times_matrix, row_basis and coordinates implementations.
Random seed 940198, NumPy 2.1.3, 48 calibration states, 16
independent held-out state IDs, 120 possible held-out pairs.
All 64 six-bit states have a source-generated future trace.

At every T the finite future metric is the Euclidean distance
between T Boolean observations of the primitive six-bit looper.
Scale is fitted as inverse median positive pairwise code/source
ratio on calibration pairs only. The primary D=2.0 violation count
uses that frozen scale and the interval [1/sqrt(D),sqrt(D)].
The separately reported optimal D is the ratio of the largest to
the smallest nonzero held-out distance ratio. A collapsed pair
gives infinite optimal D (recorded as null in the JSON receipt).

Reproduce on Python 3.12 with NumPy 2.1.3:

python -m unittest discover -s research/finite_horizon_gap_v1 -p test_horizon_geometry.py -v
python research/finite_horizon_gap_v1/bench_future_metric.py --seed 940198 --horizons 1 2 4 6 8 16 32 63 --widths 2 4 6 8 16 32 --out /tmp/fhc01b_heldout.json

The JSON receipt is uploaded as a GitHub Actions artifact. The
original printed run can be inspected at
https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43405190674 .
Program source SHA-256 at that run:
3245bd638b4da90da06b46b13c79a905ff18dbdd9f395b203cfff63b2b01a5f0 .

## Exact finite rank frontier

| Horizon T | Minimal predictive binary bits | Exact isometric Euclidean dimension |
|---:|---:|---:|
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 4 | 4 | 4 |
| 6 | 6 | 6 |
| 8 | 6 | 8 |
| 16 | 6 | 16 |
| 32 | 6 | 32 |
| 63 | 6 | 63 |

The binary rank counts every possible exact semantic code, including
nonlinear ones, if the code holds a fixed B-bit word. The real
dimension is a lower bound for *exact Euclidean isometry* on all 64
source states. Its proof uses the 63 pairwise orthogonal nontrivial
Walsh characters. At T=63, all distinct source points have squared
Euclidean distance exactly 32 in future-trace space.

## Held-out geometry at T=63

| Encoder | Code dimension | Optimal held-out distortion D | Violating pairs at fixed calibrated D=2 |
|---|---:|---:|---:|
| Exact predictive quotient | 6 binary bits | 2.449 | 13/120 |
| PCA trained on 48 states | 6 real coordinates | infinity | 120/120 |
| Gaussian random projection | 6 real coordinates | 5.081 | 30/120 |
| PCA trained on 48 states | 32 real coordinates | infinity | 120/120 |
| Gaussian random projection | 32 real coordinates | 1.972 | 3/120 |
| Full future trace | 63 real coordinates | 1.000 | 0/120 |

PCA returns identical codes for all 16 unseen states, within floating
point error, for every tested dimension d=2,4,6,8,16,32. FHC-8 proves
this collapse for *any positive-variance PCA component fitted on any
proper subset of regular simplex vertices*.

Gaussian-32's optimal D=1.972 is a descriptive held-out rescaling
statistic. With the scale frozen on calibration data, three of the
120 distinct held-out pairs fail the D=2 condition. Both quantities
are retained because reselecting the scale on test pairs would
leak information.

At horizon T=32, the quotient has optimal distortion 2.291, versus
1.954 for Gaussian-16 and 2.116 for Gaussian-32. Both Gaussian-16
and Gaussian-32 still have calibrated D=2 failures (9 and 1,
respectively). PCA-32 is the full metric dimension there and
reproduces pairwise distances exactly.

## Geometric interpretation

The source recurrence is invertible and every length-63 trace
contains all six source bits. Predictive-memory sufficiency is a
lossless *finite-state decoder* contract. PCA projects a future
feature space and is fitted on a disjoint subset of states; its
failure is a generalization property of that fitted subspace.
Random projections preserve distances approximately by a
different mechanism.

The candidate bit encoder requires a basis description and a
future-bit decoder table. PCA and Gaussian projections require T
oracle observations per state to assemble their input feature
vectors, plus matrix parameters and a calibration scale. The JSON
resource ledger records these costs explicitly. A cheap encoder
from a native neural hidden state has not been established.

None of the finite geometry results constructs the OpenAI #098
compact doubling witness; an N-point equilateral family has
doubling constant at least N. Source #094 concerns existential
finite-set embeddings and does not promise that sample-trained
PCA will generalize.
Loading
Loading