A program-learning system that tests reusable code by how it helps correct mistakes.
Programs describe how objects move, block each other and change color. After a contradicting observation, the learner repairs its program and checks it against earlier evidence. The experiment asks which reusable fragments improve learning under a fixed budget.
Results · Reproduce · Design · Citation
- Learn source programs. Fit programs to observed transitions in source worlds.
- Mine reusable fragments. Extract typed candidate functions from those learned programs. Definitions and arguments have a cost.
- Replay learning. Predict before revealing each answer, then measure the mistakes and work needed to recover. Repair-aware selection R carries search state through corrections; generic prefix selection G rebuilds its hypothesis from each observed prefix.
- Freeze the library. Test it on new worlds, charging construction, selection, loading and target learning to the total budget.
R and G share the candidate pool, observations, grammar and target engine. R must beat G to establish value specific to correction. Compression and terminal-fit selectors provide additional controls.
Includes typed enumeration, independent SMT synthesis, incremental repair, library mining and resource-accounted checkpoints. The code, matched controls and failure records are available to reuse and inspect.
The first pilot found:
| Observation | Recorded result |
|---|---|
| Reusable fragments | No candidate passed the core cost test in any of the 4 completed source cells |
| Source-rule identification | 14 of 16 programs fitting their 3 observations disagreed on finite diagnostic inputs |
| Larger pilot execution | 24 of 32 deployment slots ran; 8 failed during source generation |
The native patterns saved tokens, but adding definitions and arguments increased the typed core cost. Sparse examples also admitted programs that behaved differently elsewhere. Each source witness was checked on 64 diagnostic inputs; these are finite checks, not population estimates.
The R/G hypothesis remains untested. The next experiment needs identifiable source rules and an informative shared candidate pool. Full findings, scope and evidence.
From a clone, with Python 3.12 or newer:
python3 scripts/verify_public_results.pyThis recomputes the diagnostic counts from retained receipts and regenerates all four recorded report outputs byte for byte. It uses only the standard library; no model download, GPU or original laptop paths are needed.
For the learner and reference checks, use Python 3.12–3.13 and uv:
uv sync --locked
uv run --locked ehe check --suite semanticsSetup, tests and replay boundaries.
By Artem Legotin. AGPL-3.0-only software; CC BY 4.0 writing and original result compilations. Licensing · Upstream notices. Cite CITATION.cff and record the commit used. Development used AI assistance; README editing used write-like-me.