aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
GitHub aien-dev/aien-architecture-mv#73 (code only)
Apply it
git checkout -b patch-75b9ab7b51e96dba 74f666b6e4045f0dc5a61b0dec340d0eeba2a32a curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/75b9ab7b51e96dba.patch | git am
Provenance
github-import 1
aien-dev/aien-architecture-mv
73
3acc44153380c743b754631c0b0a198845fe2eb2
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":73,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/73","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:08Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/docs/plans/discovery/CEXP2_ABSTRACTION_EXPERIMENT.md b/docs/plans/discovery/CEXP2_ABSTRACTION_EXPERIMENT.md new file mode 100644 index 0000000..44c83b8 --- /dev/null +++ b/docs/plans/discovery/CEXP2_ABSTRACTION_EXPERIMENT.md @@ -0,0 +1,171 @@ +# CEXP-2: Abstraction Learning versus Program Reuse + +**NOT A MASTER PLAN.** This is a finite experiment specification for the discovery workstream. `CURRENT_EXECUTION_PLAN.md` owns cross-project sequencing and `doctrine/ROADMAP.md` owns milestone status. Nothing in this document is a milestone, and nothing in it is implemented. + +**Spec version:** v1.0, written 2026-09-30. Status: FROZEN AS TEXT, BLOCKED (see section 11). Once a run's preregistration manifest is committed, the values in this document are binding for that run; any change is a new spec version and a new run. + +**Parent document:** The Turing Discovery Gap Conjecture, Revision 6, 2026-09-30 (cited below as "Rev 6"). Rev 6 Appendix D freezes CEXP-1, the Claim C experiment. CEXP-2 extends CEXP-1 and reuses its accounting without change. Current facts about the apparatus are in `DISCOVERY_CURRENT_STATE.md` in this folder. + +--- + +## 1. Question + +Does a learner that extracts parameterized components from its admitted programs earn more net Turings on unseen tasks than a learner that reuses whole programs, under the same total budget, with every extraction, verification, storage and search cost charged? + +CEXP-1 compares a library learner against an empty-library learner. That separates retention from no retention. It does not separate abstraction from caching or from whole-program recall, because its admission rule admits whole solutions and its generator shares components by construction. CEXP-2 adds the missing controls. Its headline comparison is **abstraction learning against program reuse**. + +## 2. Accounting (inherited from Rev 6, not redefined) + +- **Unit.** One Turing is one bit of net held-out description-length gain: T(M;B,D,X) = [L(B) + L(D|B,X)] − [L(M) + L(D|M,X)]. +- **Decoder rule.** Anything available to the decoder beyond the input locations X is part of the model and is charged in L(M). A library entry, a cache entry or a component used by a task's model is written into that model and paid for in that task's L(M). +- **Efficient coding.** Encoding and decoding run in time polynomial in model and data size. A submission outside that bound, or one that does not decode losslessly, earns zero (Rev 6 Appendix A). +- **Gain density.** Every total is reported with its gain density, Turings per evaluated bit. +- **Two accounts.** Description costs are bits and enter the Turing account. Operating costs (search, extraction, verification, library and cache maintenance) are computation, counted in candidate evaluations, and enter the budget account. No conversion between the two accounts is used. + +## 3. Apparatus + +CEXP-2 runs on the apparatus CEXP-1 runs on, with the same frozen values. From Rev 6 Appendix D: + +| Item | Frozen value (inherited from CEXP-1) | +|---|---| +| Apparatus | AIEN stochastic-law apparatus in its EXP-002 configuration (Rev 6 names it "Stochastic Law Discovery") | +| Measurement profile | the Turing profile the CEXP-1 run binds (see section 11 for the version question) | +| Coder | the profile's reference coder | +| Quantizer Q | 256 uniform bins over [-5, 5], out-of-range values clipped to edge bins | +| Baseline | uniform over quantization bins, 8 bits per observation | +| Model cost convention | 32 bits per fitted real parameter, 8 bits per small integer hyperparameter selected on context data | +| Context per task | 8 trajectories of 400 observations | +| Sealed evaluation per task | 4 trajectories of 400 observations, one-step-ahead, steps 1 to 399: 1,596 scored observations | +| Budget unit | one candidate evaluation = one candidate scored against the task's context data | +| Budget per task per arm | 20,000 candidate evaluations | +| Bootstrap | percentile bootstrap over sequences, 10,000 resamples, 95 percent interval | + +**Program description code.** Library programs and components are structured objects, so the profile must define a prefix-free description code for them (Rev 6 Appendix A). The same code is used by all four arms. It is fixed in the preregistration manifest before the first sequence runs. If the bound profile has no admissible program code, CEXP-2 is blocked (section 11). + +**Budget charging schedule.** Every operation an arm performs is charged against the same per-task budget, in evaluation-equivalent units: + +| Operation | Charge | +|---|---| +| scoring one candidate against the current task's context data (search, library-derived and cache-derived candidates) | 1 evaluation | +| re-scoring one rewritten program on one probe set during verification (section 6, step 3) | 1 evaluation | +| cache read, cache write | measured rate, below | +| one repeated-structure alignment attempt between two programs (section 6, step 1) | measured rate, below | +| constructing one parameterized component from an aligned subprogram (section 6, step 2) | measured rate, below | +| admission check of one program or component (reading a settled sealed score and writing the library) | measured rate, below | + +A **measured rate** is the operation's mean primitive step count divided by the mean primitive step count of one candidate evaluation, both measured on development seeds before the preregistration manifest is committed, rounded up to the next 1/1000 of an evaluation. The rates are written into the manifest and never re-measured during the run. A cheap operation, such as a cache read, is therefore charged a small fraction of an evaluation, not a whole one. + +## 4. Arms + +Four arms run the same task sequences, paired by seed, with identical per-task budgets. All four use the same single-task discovery procedure and hyperparameters; they differ only in what they carry from one task to the next and in the between-task work that carried state needs. + +| Arm | Carries across tasks | Charged in bits (Turing account) | Charged in the budget account | +|---|---|---|---| +| **R: Reset** | nothing | nothing carried | nothing carried | +| **A: Answer cache** | input-output results only: earlier tasks' context observations and the predictive distributions the arm produced for them, keyed by the full quantized context window | each distinct cache entry a task's model consults | cache reads and writes, and each scoring of a cache-derived candidate | +| **P: Program reuse** | whole programs admitted under Claim C's admission rule, each callable only as a frozen whole program | each distinct library program a task's model references | admission checks and each scoring of a library-derived candidate | +| **E: Abstraction learning** | admitted whole programs plus admitted parameterized components (section 6) | each distinct program and component a task's model references | as P, plus alignment, construction and verification | + +**Charging rule for carried entries (all arms).** Under the decoder rule, each distinct carried entry that a task's model uses is written into that model once and charged once, at its length under the program code. Each use of an entry inside the model pays only the program code's pointer cost. Parameters bound to a component for the current task are charged at the profile's parameter cost (32 bits per fitted real parameter). + +**What only arm E may do.** Arm P may call a library program only as a frozen whole program: it may not lift constants out of it, splice its internals or refit parts of it. Lifting constants into parameters, and binding those parameters to a new task by the shared enumerator, is arm E's distinguishing operation. + +**Arm P and CEXP-1.** Arm P copies CEXP-1's library learner in three respects: the admission rule (after each task, a program that earned positive net Turings on that task's sealed evaluation, with its description length charged, is admitted), the decoder charging, and the single-task procedure given the same library. A departure from any of these three voids the CEXP-2 claim. Arm P is not a replication of CEXP-1: its sequence includes a family switch that CEXP-1 does not have. + +**Arm A is a control, not a contender.** Every task draws a fresh law and fresh sealed trajectories. A cache hit requires exact equality of the full quantized context window; nearest-neighbour lookup and refitting on cached pairs are forbidden. Arm A is predicted to track arm R and to fall below it by whatever cache charges it pays. A leak audit is triggered if the cache hit rate exceeds the collision bound preregistered from development seeds, or if the paired A minus R interval lies entirely above zero; the run's claims are held until the audit closes. + +## 5. Timeline of one task, and the Appendix D between-task exception + +Rev 6 Appendix B forbids any selection or update after the freeze. Claim C's admission rule, frozen in Appendix D, uses each task's sealed score. CEXP-2 reconciles the two in the same way for all arms: + +1. **Search.** The arm searches within task t's budget, keeping back the between-task reserve declared for it in the manifest. +2. **Emit and freeze.** When the search budget is spent, the arm emits exactly one model for task t. That model is scored once on task t's sealed evaluation and is never changed afterwards. +3. **Between-task work.** After the score is settled, the arm may spend what remains of task t's budget, and nothing more, on admission, extraction and verification. This work edits only the library or cache carried into task t+1. It never edits, reselects or rescores task t's model. + +Step 3 is the **Appendix D between-task exception**: post-score work that only edits carried state, paid from the task's own budget. Budget left unspent at the start of task t+1 is lost. A larger reserve means less search on task t; that loss is part of the cost being measured. + +## 6. Abstraction extraction procedure (arm E only) + +Extraction is a procedure that can fail at every step. It runs in step 3 of section 5, after tasks 1 to 11. It does not run after task 12 (section 7). + +1. **Find repeated structure.** Search the admitted programs for a subprogram that occurs, up to renaming of constants, in at least 2 admitted programs from different tasks. Each alignment attempt is charged at its measured rate. +2. **Propose a component.** Replace the differing constants of that subprogram with parameters. The result is a parameterized component with a description length under the program code. +3. **Verify behavior preservation.** Rewrite each original program to call the component. For each original program, draw a probe set of 8 trajectories of 400 observations by running the original program as a simulator, with a seed derived from that task's seed. The rewrite passes only if its predictive distributions are bit-identical, under the frozen coder, to the original's on every probe observation. No earlier task's context or sealed data is carried or used. Passing on probes is a test, not a proof of equivalence. +4. **Hold provisionally.** A verified component enters the library as provisional. It is available to task t+1 and is charged like any library entry whenever a model uses it. +5. **Admit or discard.** After task t+1's sealed score is settled, the component is admitted only if task t+1's frozen model referenced it and earned positive net Turings with the component charged. Otherwise it is discarded. Discarding refunds nothing. + +Failure is recorded at each step: no repeated structure found, verification failed, budget exhausted mid-extraction, provisional component unused, or used but not net-positive. The per-sequence counts of each failure kind are reported. + +DreamCoder (Rev 6 reference 4, Ellis et al. 2021) is the precedent for library learning by extracting reusable components from solved programs. CEXP-2 differs in that every component is paid for in bits under the decoder rule and every extraction step is paid for in the same budget the search uses. + +**Pre-run check on components.** Every component in the generator pools has one declared syntactic form under the program code. Before the manifest is committed, a development-seed run shows whether extraction recovers the pool components from programs that contain them; the recovery rate is recorded in the manifest. A low rate is a finding, not a reason to change the procedure after the freeze. + +## 7. Task sequence and blocks + +One sequence is 24 tasks in four blocks. Each task follows the per-task layout of section 3. + +| Block | Tasks | Library and cache | Generator | +|---|---|---|---| +| **S: Shared structure** | 1 to 8 | open | family F1: laws composed from pool C1 using composition patterns from the set P_S | +| **W: Family switch** | 9 to 12 | open | family F2: laws from pool C2, which shares exactly half of its components with C1, using patterns from the set P_W | +| **Freeze** | after task 12's sealed score and the admission decisions it settles, before task 13 begins | library and cache frozen for arms A, P, E | none | +| **N: Final block, unseen** | 13 to 24, order shuffled by sealed seed | frozen | 4 tasks of each kind below | + +**Task 12.** After task 12 is scored, whole programs are admitted and components proposed after task 11 are admitted or discarded. No extraction runs after task 12, because its components could never be tested before the freeze. + +Final block task kinds: + +- **N-fam (familiar compositions):** fresh-parameter redraws of patterns that block S actually emitted. The 4 patterns are drawn uniformly with replacement from the patterns realized in block S, by sealed seed. +- **N-unf (unfamiliar compositions):** compositions of C1 components using patterns from the set P_unf, which is disjoint from P_S and P_W. +- **N-ctl (unrelated-family control):** laws from family F3, whose pool C3 shares no component with C1 or C2. + +P_S, P_W and P_unf are committed in the manifest before any sealed draw, so the unseen patterns are fixed before any task is seen. + +**Why these numbers.** Blocks S and W together match CEXP-1's 12-task sequence in task count only. The switch at task 9 leaves 8 tasks for a library to form and 4 to show recovery. A half-shared C2 makes the switch informative in both directions: shared components can transfer, whole programs mostly cannot. Four tasks per final kind keeps the final block at 12 tasks. + +## 8. Predictions and falsifiers per block + +One rule applies everywhere: an interval entirely above zero supports the prediction, an interval entirely below zero falsifies it, and an interval containing zero is **inconclusive**. + +| Block | Statistic (paired E minus P total) | Predicted | Falsified only if | +|---|---|---|---| +| S, tasks 5 to 8 | E minus P over tasks 5 to 8 | at or above zero late in the block (E pays extraction early) | interval entirely below zero | +| W | E minus P over tasks 9 to 12 | above zero: half the components transfer, whole F1 programs rarely fit F2 | interval entirely below zero | +| N-fam | E minus P over the 4 N-fam tasks | near zero: both arms hold the patterns | no falsifier; E above P here with no N-unf gain means recall, not abstraction | +| N-unf | E minus P over the 4 N-unf tasks | above zero | interval entirely below zero | +| N-ctl | each library arm minus R over the 4 N-ctl tasks | near zero | not a falsifier: a library arm entirely below R means search cost harms unrelated tasks (reported); entirely above R triggers the leak audit | + +## 9. Criterion and analysis + +- **Replication.** 30 paired sequences, all four arms on identical seeds and identical task draws. The number matches CEXP-1's replication count; the bootstrap and interval rules are also CEXP-1's. +- **Joint primary criterion.** Two paired quantities per sequence, all carried costs charged in every task's L(M): + - D_final = (arm E total net Turings over the 12 final-block tasks) minus (the same for arm P); + - D_unf = (arm E total net Turings over the 4 N-unf tasks) minus (the same for arm P). + For each, the mean across the 30 sequences with a 95 percent percentile bootstrap interval over sequences (10,000 resamples). + - **Supported:** both intervals lie entirely above zero. + - **Falsified:** the D_unf interval lies entirely below zero. + - **Not supported, inconclusive:** every other outcome, including a D_final interval above zero with a D_unf interval containing zero (a recall-only gain). Inconclusive is never reported as support. +- **Mandatory secondary quantities** (reported with intervals, never used to rescue the primary): whole-sequence totals (24 tasks, construction costs included) for E minus P; the block statistics of section 8; P minus A (does program reuse beat plain caching); P minus R; A minus R and the cache hit rate (leak check); gain density for every arm and block; extraction failure counts (section 6); budget spent on between-task work as a fraction of each task's budget. +- **Full distribution.** The 30 paired values of D_final and D_unf are reported in full alongside the means. + +## 10. Preregistration and deviations + +- Before any sealed data exist, a preregistration manifest is committed holding: this spec version, the bound profile id and its digest, the program description code and its pointer cost, the measured-rate charging schedule, each arm's between-task reserve, the generator families F1, F2, F3, the pools C1, C2, C3, the pattern sets P_S, P_W, P_unf and the N-fam fill rule, the component recovery rate and the cache collision bound from development seeds, the discovery procedure and its hyperparameters, the seed derivation rule, and the analysis method above. +- Evaluator-only details (pools, patterns, seeds) follow the commit-then-reveal rule used for the Brownian calibration program (`docs/brownian-calibration-explainer.md`): the SHA-256 of the private manifest is published before any sealed data exist, and the manifest is published after the run. +- Sealed data are generated only after the manifest commit, from seeds no one can compute before it. +- Any deviation from this spec or the manifest after the first sequence runs voids the run's claim to test the abstraction hypothesis. The run and its failure stay in the record. A corrected run is a new spec version with fresh sealed data. + +**Run validity.** The EXP-001 void rule applies, with one counter for the whole run. A sequence is void only for an infrastructure failure before any sealed score of that sequence exists, and is retried with identical inputs. The third void in the run closes the run as inconclusive for infrastructure reasons; it is not retried. Every void is published. A failure after any sealed score exists is a result, not a void. + +**What is identical across arms.** The single-task discovery procedure, its hyperparameters, the base candidate enumeration order (before any carried candidates are added), the learner's random seed within each task, the task draws, and the sealed trajectories. A pre-run check runs arm E with an empty library and zero reserve on one development sequence and compares its outputs bit for bit with arm R. + +## 11. Gates and blockers + +CEXP-2 may not start until all of the following hold: + +1. **EXP-001 PASS.** Met in successor form: EXP-001 failed and is preserved; its successor EXP-001R passed (see `DISCOVERY_CURRENT_STATE.md`). +2. **CEXP-1 run complete,** with its receipt published, whatever its result. CEXP-1 has not been run. +3. **An admissible program description code** in the bound profile. Turing-profile-v1.1 in omega admits table models only and states that no program is admissible. CEXP-1 and CEXP-2 both need a successor profile, or a companion profile, that admits programs and components and charges them under the decoder rule. +4. **Apparatus identity settled.** Rev 6 Appendix D names "turing-profile v1.0" and lists quantizer and parameter-cost values that do not appear in omega's Turing-profile-v1.0 or v1.1 files. The CEXP-1 preregistration must name the actual profile file and digest; CEXP-2 binds the same one. + +**No result from CEXP-2 is a Physics Zero claim.** CEXP-2 measures learner behavior on synthetic stochastic-law tasks. It says nothing about discovering physical law, and no Physics Zero document may cite it as evidence of discovery. diff --git a/docs/plans/discovery/DEXP1_DISCOVERABILITY_MAP.md b/docs/plans/discovery/DEXP1_DISCOVERABILITY_MAP.md new file mode 100644 index 0000000..9cbacb7 --- /dev/null +++ b/docs/plans/discovery/DEXP1_DISCOVERABILITY_MAP.md @@ -0,0 +1,170 @@ +# DEXP-1: Discoverability Map + +**NOT A MASTER PLAN.** This is a finite experiment specification for the discovery workstream. `CURRENT_EXECUTION_PLAN.md` owns cross-project sequencing and `doctrine/ROADMAP.md` owns milestone status. Nothing in this document is a milestone, and nothing in it is implemented. + +**Spec version:** v1.0, written 2026-09-30. Status: FROZEN AS TEXT, BLOCKED (see section 9). Once a run's preregistration manifest is committed, the values in this document are binding for that run; any change is a new spec version and a new run. + +**Parent document:** The Turing Discovery Gap Conjecture, Revision 6, 2026-09-30 (cited below as "Rev 6"). Rev 6 proves Claim A: hard worlds exist if one-way functions exist. It gives no positive conditions under which a world is discoverable. DEXP-1 measures those conditions on synthetic worlds. Section 7 states two conjectures, D1 and D2, that the measurements are meant to inform; neither is proved. Current facts are in `DISCOVERY_CURRENT_STATE.md` in this folder. + +--- + +## 1. Question + +On synthetic worlds generated by short programs from one declared, bounded program family, when does discovery succeed and when does it fail, as a function of shared structure, composition depth, observation noise, active queries and compute? + +The output is a **map**, not a single verdict: success rate and net Turings for each combination of factor levels, plus the frontier where success gives way to failure. + +## 2. Accounting (inherited from Rev 6, not redefined) + +- **Unit.** T(M;B,D,X) = [L(B) + L(D|B,X)] − [L(M) + L(D|M,X)], in bits, prefix-free codes, lossless decoding (Rev 6 Appendix A). +- **Decoder rule.** Anything the decoder uses beyond the input locations X is charged in L(M), including any library the learner carries. +- **Efficient coding.** Encoding and decoding run in polynomial time; otherwise the submission scores zero. +- **Gain density.** Turings per evaluated bit is reported with every total. +- **Two accounts.** Bits in the Turing account; candidate evaluations in the budget account; no conversion. +- **Available gain and success** (Rev 6 Appendix B, step 6). The available gain of a task is the frozen evaluation score of the generating program itself, with its declared noise model, under the same profile and baseline. A learner succeeds on a task if its frozen model scores at least **10 percent** of the available gain, the fraction Rev 6 proposes. +- **Eligibility.** A task is **eligible** only if its available gain is strictly positive. An ineligible task counts as a non-success in success rates, is excluded from the gain-ratio average, and is counted and reported per cell. A task enters the D2 comparison of section 7.6 only if its available gain is at least g_min = 82 Turings, which is 1 percent of the 8,192-bit baseline cost of its 1,024 evaluation outcomes. + +## 3. Worlds + +Each task is one learning problem in the form of Rev 6 Appendix B: + +| Item | Frozen value for v1.0 | +|---|---| +| Size parameter | n = 32 | +| Input space X | 2^16 input locations, uniform input distribution | +| Hidden world | one program drawn from the declared family F (section 7.1) by sealed seed, plus additive noise of declared standard deviation sigma before quantization | +| Output range | every clean (noise-free) output of a drawn program on X lies in [-5, 5]; the generator rejects and redraws any program that violates this, and the rejection count is reported | +| Quantizer | 256 uniform bins over [-5, 5], bin width 10/256 = 0.0390625, out-of-range noisy values clipped to edge bins (the CEXP-1 value) | +| Baseline | uniform over quantization bins, 8 bits per outcome (the CEXP-1 value) | +| Discovery observations | 1,024 outcomes per task in total, split between passive draws and adaptive queries by factor Q | +| Freeze | the learner emits one model and is frozen when its observation and compute budgets are spent (Rev 6 Appendix B, step 4) | +| Evaluation | m = n^2 = 1,024 fresh, pairwise distinct input locations never revealed during discovery, drawn after the freeze | + +**Edge bins.** The fraction of sealed outcomes that fall in the two edge bins is reported per cell. A cell whose edge-bin rate exceeds 5 percent is flagged and left out of the frontier (section 6), because clipping there can mask depth and noise effects. + +**Why these numbers.** n = 32 makes m = n^2 = 1,024 evaluated outcomes, matching Rev 6's evaluation rule, and makes the discovery observation count equal to the evaluation count. A 2^16 domain is 32 times the number of revealed plus evaluated locations, so fresh distinct evaluation inputs are always available and exhaustive memorization of the domain is outside the observation budget. + +## 4. Factors and levels + +| Factor | Symbol | Levels (frozen for v1.0) | Meaning | +|---|---|---|---| +| Shared structure | H | 0, 1/3, 2/3, 1 | fraction of each task's component slots filled from a pool shared across the tasks of a sequence; the rest come from a pool private to that task | +| Composition depth | K | 1, 2, 3, 4 | nesting depth of component applications in the hidden program; a depth-K program has exactly s(K) = 3K component slots, so H times s(K) is always a whole number | +| Observation noise | sigma | 0, 0.0390625, 0.25, 1.0 | standard deviation of additive Gaussian noise, in output units, before quantization; the second level is exactly one bin width | +| Active query share | Q | 0, 256, 512 | how many of the 1,024 discovery observations are adaptive queries chosen by the learner; the rest are passive draws | +| Compute budget | C | 2,000; 20,000; 200,000 | candidate evaluations per task; 20,000 is the CEXP-1 value | + +The total observation count is the same at every Q level, so a Q effect measures the value of choosing observations, not of having more of them. **Query choice is charged to C:** every scoring of a candidate that the query policy performs to choose the next query costs one candidate evaluation, the same unit as search. A Q level therefore cannot buy uncharged computation. + +**H changes overlap only.** The generator draws shared and private components from pools with the same distribution, so the distribution of a single task's law is the same at every H level. H changes only how much tasks in a sequence overlap. The preregistration manifest records a development-seed check of this (matching single-task statistics across H levels). + +## 5. Design + +A full factorial over all five factors is 576 cells. v1.0 declares a fraction: + +- **Core grid:** full factorial over H x K x sigma (64 cells), at Q = 0 and C = 20,000. +- **Query and compute sweep:** the 8 corner cells of the core grid (H in {0, 1}, K in {1, 4}, sigma in {0, 1.0}), each run at all 9 combinations of Q x C. One of the 9 (Q = 0, C = 20,000) is already in the core grid, so the sweep adds 64 cells. +- **Total:** 128 cells. + +**Why this fraction.** The three structural factors (H, K, sigma) define the world and are the map's main axes, so they get every combination. Q and C are resources a learner spends; their effect is expected to be largest at the extremes of difficulty, so they are swept where the core factors are most and least favourable. Interactions of Q and C with intermediate core levels are not estimated in v1.0 and are not claimed. + +**Sequences and learners.** Each cell is run as sequences of 8 tasks drawn from the cell's world settings. Learners run every sequence of a cell, paired by seed, with identical single-task discovery procedure and hyperparameters: + +- **Reset:** carries nothing across tasks. +- **Reuse:** copies Claim C's admission rule (positive net Turings on the task's sealed evaluation, description length charged) and its decoder charging. It is not CEXP-1's implementation: CEXP-1 scores one-step trajectory prediction, DEXP-1 scores a frozen predictor on fresh inputs. CEXP-1 having been run is a gate (section 9), not an identity of implementations. +- **Enumerator:** the learner of Conjecture D2 (section 7.4), no library. It runs only on the 8 corner cells at Q = 0, at all three C levels, so that the counterexample rule of section 7.6 has a learner whose premises can be checked. + +Tasks 1 to 4 build the Reuse library. After task 4's sealed score and the admissions it settles, the library is **frozen**; tasks 5 to 8 are the scored tasks of the map and admit nothing. Admission after tasks 1 to 4 uses the Appendix D between-task exception: the scored model of each task is emitted when its budgets are spent and never changed; post-score admission spends only what remains of that task's budget and edits only the library carried into the next task. + +**Replication:** 20 sequences per cell per learner, 80 scored tasks per cell per learner. With 80 scored tasks, a 95 percent interval on a success proportion has half-width at most about 0.11 before allowing for correlation within a sequence. Intervals are computed by bootstrap over sequences, which accounts for that correlation. + +**Pilot fallback.** After the preregistration manifest states the compute allocation and before any sealed data exist, one development-seed sequence is run at each of the 9 Q x C combinations of the cell H = 0, K = 4, sigma = 1.0, for every learner, to measure cost. If the measured cost of the full design exceeds the declared allocation, replication is 10 sequences per cell; otherwise 20. The chosen number is recorded before sealed data are generated. Levels and cells never change. + +## 6. Outcomes and analysis + +Per cell, per learner, over the scored tasks: + +- **Success rate:** fraction of scored tasks reaching at least 10 percent of the available gain (ineligible tasks count as non-success), with a 95 percent percentile bootstrap interval over sequences (10,000 resamples). +- **Net Turings:** mean and full distribution, with gain density. +- **Fraction of available gain achieved:** mean of (task score / available gain) over eligible tasks, with interval; the ineligible count is reported beside it. +- **Reuse benefit:** Reuse minus Reset, paired by sequence, for success rate and net Turings, with intervals. +- **Budget used to first success:** where the learner records it, the candidate evaluations spent before its final model first appeared. + +Reported as a map: + +- Three two-way tables over the core grid (H x K, K x sigma, H x sigma), each averaged over the third factor, for Reset and for Reuse separately. +- One Q x C table at each of the 8 corner cells, for each learner separately. +- **Core frontier:** for each core cell (H, K, sigma), whether the Reset success-rate interval at C = 20,000 lies entirely above 0.5, entirely below 0.5, or contains it. The (K, sigma) summary is the same classification at H = 0. +- **Corner frontier:** for each corner cell, each Q level and each learner (Reset, Reuse) separately, the smallest C level at which the success-rate interval lies entirely above 0.5, or "none". +- Cells flagged for edge-bin rate (section 3) are reported but left out of both frontiers. + +**Declared expectations** (directions only, written before the run so that surprises are visible): success falls as K and sigma rise; success rises with C and with Q; the Reuse benefit rises with H and is near zero at H = 0. A reversal of any of these is reported prominently. None of these directions is a hypothesis the run is said to confirm; DEXP-1 is a measurement, and its map is the result. + +## 7. Conjectures D1 and D2 + +This section states two conjectures and their proof obligations. **Nothing here is proved.** + +### 7.1 Definitions + +- **Primitive set I.** A finite, declared set of primitives over fixed-point values: arithmetic, comparison, conditional, and composition of components. I contains no bitwise mixing, hashing or keyed primitive. +- **Bounded family F(I, l, s).** All programs over I of at most l symbols, run with an execution limit of s steps; a program that exceeds s steps outputs a declared default value. +- **Lengths.** l\* and every exponent below count **symbols** from I. The bit length of a program under the profile's program description code is recorded separately and enters only the Turing account. +- **Behavioral class.** Two programs are in the same class if they give the same output on every input in X. Recovering the generating program is not required; any program in its class is as good (Rev 6: any effective predictor counts). +- **N_F.** The number of behavioral classes in F. +- **Input separation.** delta(F, mu) = the minimum, over every pair of distinct classes, of the probability under the input distribution mu that the two classes give different outputs. +- **Channel separation.** h_min = the minimum, over every pair of distinct output values a and b that some program in F can produce, of the squared Hellinger distance between the quantized noisy outcome distributions at a and at b. +- **l\*.** The symbol length of the shortest program in the hidden world's behavioral class. + +### 7.2 Scope + +Claim A shows that worlds generated by keyed pseudorandom functions resist every efficient learner. The bounded family is chosen so that a positive bound is possible at all: its primitive set excludes keyed mixing, and the bound below is exponential in l\*. It gives efficient discovery only when l\* is at most logarithmic in the compute budget. A Claim A world needs a key of length n, so l\* grows with n and the bound does not apply. The conjectures do not contradict Claim A; they mark the region where Claim A's barrier is absent. + +### 7.3 Conjecture D1: observations distinguish members + +If delta(F, mu) > 0 and h_min > 0, then for every eta in (0, 1) there is a universal constant c such that + +m_0 = ceiling( c * (ln N_F + ln(1/eta)) / (delta(F, mu) * h_min) ) + +passive observations suffice for the maximum-likelihood behavioral class to equal the hidden class with probability at least 1 − eta. In the noiseless case (sigma = 0) the expected form is m_0 = ceiling( (ln N_F + ln(1/eta)) / delta(F, mu) ). + +*Proof obligation:* a proof with an explicit c; for the noiseless case the expected route is a union bound over classes in the style of Valiant (Rev 6 reference 15), and for the noisy case a likelihood-ratio concentration bound. A counterexample family is equally acceptable as an outcome. + +### 7.4 Conjecture D2: search bound + +The learner does not know l\*. The **Enumerator** therefore runs as follows: it enumerates F in nondecreasing symbol length, scores each candidate once on the observations (one candidate evaluation each), stops when the external compute cap C is spent or F is exhausted, and emits the candidate with the smallest two-part code length L(M) + L(observations | M) among the candidates enumerated so far. + +Define B(l\*) = |I| + |I|^2 + ... + |I|^(l\*), the number of candidate evaluations needed to enumerate every program up to length l\*. B(l\*) is the enumeration cost of reaching the hidden class. It is not a stopping certificate: the Enumerator does not know when it has reached the class. + +**Conjecture D2.** Under the conditions of D1, with at least m_0 observations, available gain at least g_min, and C at least B(l\*), the Enumerator emits a model in the hidden class with probability at least 1 − eta, and succeeds at the 10 percent fraction with probability at least 1 − eta − eta', where eta' bounds the probability that the sealed evaluation draw, rather than the choice of model, causes the failure. Each candidate evaluation costs at most m_0 * s execution steps in the operating account. + +*Proof obligation:* show that, once the hidden class has been enumerated, no other enumerated class has a smaller two-part code length except with probability eta, and bound eta' from the evaluation size m = n^2. + +### 7.5 Follow-on question: do learned abstractions improve the bound? + +Give the learner a frozen library Lambda of k components with total description length L(Lambda), charged under the decoder rule. Programs are now written over I plus Lambda, the hidden class has shortest symbol length l\*\_Lambda, and the enumeration cost becomes B\_Lambda = (|I| + k) + ... + (|I| + k)^(l\*\_Lambda). + +**Question:** under which shared-structure conditions is B\_Lambda much smaller than B(l\*), while the learner's net Turings, after paying L(Lambda) in every task's model, still reach the success threshold? This is the bound-level form of the question CEXP-2 measures. + +### 7.6 How DEXP-1 bears on D1 and D2 + +For every cell, the generator records |I|, the symbol length and bit length of the generating program (the symbol length is an upper bound on l\*), N_F where it is computable, and the empirical delta on the evaluation inputs. For each scored task the evaluator also records whether the emitted model is in the hidden class (by comparing outputs on all of X). + +A cell is a **counterexample candidate** to D2 only if every premise is checked: the learner is the Enumerator; the manifest fixes eta and a value of c, and the resulting m_0 is at or below the observations used; every counted task has available gain at least g_min; C is at least B at the generating program's symbol length; and the interval for the **class-identification rate** (not the 10 percent gain rate) lies entirely below 1 − eta. A counterexample candidate is handed to the proof effort. A failure of Reset or Reuse, whose search is not the Enumerator, shows a gap between a practical search and the bound, not a counterexample. Experiments cannot prove D1 or D2; they can expose weaknesses in their formulation, as Rev 6 says of Claims A and B. + +## 8. Preregistration and deviations + +- A preregistration manifest is committed before any sealed data exist. It holds this spec version, the bound profile id and digest, the program description code, the primitive set I, l and s for each K level, the component pools and the sharing rule for H with its single-task distribution check, the noise model, the query interface and its charging, the discovery procedure and its hyperparameters, the Enumerator's tie-break order, eta and c, the seed derivation rule, the compute allocation for the pilot fallback, and the analysis above. +- Evaluator-only details follow the commit-then-reveal rule of the Brownian calibration program (`docs/brownian-calibration-explainer.md`): fingerprint first, contents after the run. +- The EXP-001 void rule applies, with one counter for the whole run: void only for an infrastructure failure before any sealed score of that sequence, retried with identical inputs; the third void closes the run as inconclusive for infrastructure reasons; every void is published. +- Any deviation after the first sealed sequence voids the run's claim to be DEXP-1 v1.0. The run stays in the record. + +## 9. Gates and blockers + +DEXP-1 may not start until all of the following hold: + +1. **EXP-001 PASS.** Met in successor form: EXP-001 failed and is preserved; EXP-001R passed. +2. **CEXP-1 run complete,** with its receipt published. CEXP-1 has not been run. DEXP-1's Reuse learner copies Claim C's admission rule, which CEXP-1 measures first. +3. **An admissible program description code** in the bound profile. Turing-profile-v1.1 admits table models only. +4. **A generator for the bounded program family F.** No such generator exists in any repository checked on 2026-09-30. + +**No result from DEXP-1 is a Physics Zero claim.** DEXP-1 maps discovery on synthetic program worlds. It says nothing about physical law. diff --git a/docs/plans/discovery/DISCOVERY_CURRENT_STATE.md b/docs/plans/discovery/DISCOVERY_CURRENT_STATE.md new file mode 100644 index 0000000..86b495f --- /dev/null +++ b/docs/plans/discovery/DISCOVERY_CURRENT_STATE.md @@ -0,0 +1,47 @@ +# Discovery Experiments - Current State + +**NOT A MASTER PLAN.** This is a finite workstream document for the discovery experiments that test Claim C of The Turing Discovery Gap Conjecture, Revision 6, 2026-09-30. `CURRENT_EXECUTION_PLAN.md` still owns cross-project sequencing, and `doctrine/ROADMAP.md` still owns milestone status. Nothing in this document is a milestone. + +**Written:** 2026-09-30. Code and evidence facts were read from these commits on that date. Implementation and evidence truth beats planning claims: where a plan or paper and the code disagree, the code and receipts win, and the disagreement is listed in section 2. + +| Repository | Commit | +|---|---| +| omega | `main` `529ebfa` (live) | +| aien-architecture | `main` `74f666b` (live) | + +--- + +## 1. What exists versus what is planned + +| Item | State | Evidence | +|---|---|---| +| Rev 6 Claim A (hard worlds exist if one-way functions exist) | PROVED in the paper | The Turing Discovery Gap Conjecture, Revision 6, 2026-09-30, Appendix C | +| Rev 6 Claim B (unconditional separation) | OPEN conjecture | same paper | +| Rev 6 Claim C (program reuse helps) | HYPOTHESIS, not tested | same paper | +| CEXP-1 (Claim C experiment: library learner versus empty library) | FROZEN AS TEXT in Rev 6 Appendix D; NOT RUN | no file, branch or receipt named CEXP in omega or aien-architecture | +| EXP-001 (compression bridge, first attempt) | FAIL, preserved | omega `calibration/experiments/EXP-001/final_receipt.json` | +| EXP-001R (compression bridge, successor) | PASS (omega #99) | omega `calibration/experiments/EXP-001R/final_receipt.json`; independent scorer 312 values, 0 mismatches | +| Turing-profile-v1.1 | FROZEN; the profile EXP-001R passed under | omega `calibration/profiles/Turing-profile-v1.1.toml` and `.sha256` | +| EXP-002 apparatus (Brownian calibration program, protocol sections EXP-002A to 002D) | see discrepancy 3: two sources on `main` disagree | omega `docs/turing/protocols/turing-instrument-calibration-validation-protocol-v1-0.tex`; aien-architecture `docs/brownian-calibration-explainer.md` | +| Program description code for program-valued models | DOES NOT EXIST | Turing-profile-v1.1 `candidate_encoding_rules`: table models only, no program admissible | +| CEXP-2 (abstraction learning versus program reuse) | PLANNED, spec v1.0 frozen as text, BLOCKED | `CEXP2_ABSTRACTION_EXPERIMENT.md` | +| DEXP-1 (discoverability map) and Conjectures D1, D2 | PLANNED, spec v1.0 frozen as text, BLOCKED; D1 and D2 NOT PROVED | `DEXP1_DISCOVERABILITY_MAP.md` | +| Generator for a bounded program family (needed by DEXP-1) | DOES NOT EXIST | none found | + +## 2. Discrepancies found + +1. **Profile version in Rev 6 Appendix D.** Rev 6 binds CEXP-1 to "turing-profile v1.0". In omega, Turing-profile-v1.0 was the profile of the failed EXP-001, and Turing-profile-v1.1 is the profile EXP-001R passed under. The CEXP-1 preregistration must name the actual profile file and digest. CEXP-2 and DEXP-1 bind whatever CEXP-1 binds. +2. **Apparatus values in Rev 6 Appendix D.** Rev 6 lists a 256-bin quantizer over [-5, 5], an 8-bit uniform baseline and 32 bits per fitted real parameter. Neither Turing-profile-v1.0 nor v1.1 contains these values: both score search-event outcomes of the crumbline control learner with 9 symbols, an order-1 table baseline, and table models only. The Rev 6 values may belong to the private Brownian profile, which binds Turing-profile-v1.1 as a companion; that profile is not public and was not read. Until a public profile carries these values, CEXP-1, CEXP-2 and DEXP-1 reuse them as planning values only. +3. **EXP-002 status.** omega `docs/turing/TURING_SCIENTIFIC_QUALIFICATION_STATE.md` at `529ebfa` says EXP-002A to 002D are NOT STARTED, protocol text only. aien-architecture `docs/brownian-calibration-explainer.md` (status date 2026-09-30, merged in #67) reports EXP-002A PASS under a successor profile, EXP-002B PASS, EXP-002C PASS, and EXP-002D INCOMPLETE. Both are on `main`. This document does not resolve the conflict; the owner of the omega qualification state should reconcile it. +4. **Name of the apparatus.** Rev 6 calls the apparatus "EXP-002 Stochastic Law Discovery". omega's protocol has no section by that name; its EXP-002 sections are "EXP-002A: Randomness Without Invented Structure", "EXP-002B: Occam Transition", "EXP-002C: Mechanism Discrimination" and "EXP-002D: Unification". The specs here use Rev 6's umbrella phrase only when quoting Rev 6. + +## 3. Gates for every experiment in this folder + +| Gate | State on 2026-09-30 | +|---|---| +| EXP-001 PASS | MET in successor form (EXP-001R PASS, omega #99); EXP-001 FAIL kept in the record | +| CEXP-1 run complete, receipt published | NOT MET (not run) | +| Admissible program description code in the bound profile | NOT MET | +| Apparatus identity settled (discrepancies 1 and 2) | NOT MET | + +No result from any experiment in this folder is a Physics Zero claim. diff --git a/docs/plans/discovery/README.md b/docs/plans/discovery/README.md new file mode 100644 index 0000000..e235ba6 --- /dev/null +++ b/docs/plans/discovery/README.md @@ -0,0 +1,7 @@ +# Discovery experiment specifications + +**NOT A MASTER PLAN.** `CURRENT_EXECUTION_PLAN.md` owns sequencing and `doctrine/ROADMAP.md` owns milestone status. + +- `DISCOVERY_CURRENT_STATE.md`: what exists versus what is planned, discrepancies, and gates. +- `CEXP2_ABSTRACTION_EXPERIMENT.md`: frozen spec v1.0, abstraction learning versus program reuse. +- `DEXP1_DISCOVERABILITY_MAP.md`: frozen spec v1.0, discoverability map and Conjectures D1 and D2 (not proved).