The study’s conclusions are only as good as two small programs: the searcher that proposes and the verifier that judges. This section walks the executed source of both. For the searcher the page includes the exact bytes each named run executed, read from that run’s recorded candidate commit, not the file lying on disk (a registered track restores the mutable surface after every run, so the disk copy names no run). The verifier is outside the mutable surface and is shown as the declared verifier with its pinned hash.
search.py is the study’s whole mutable surface and holds both arms, selected by the track. The four listings below are the same file included at four runs. Their provenance lines print the run id, evaluation kind, track, commit and sha256; the four hashes are identical, because the surface was never edited between runs. That identity is itself the point: the classical arm and the LLM arm ran on the same bytes, and the sealed runs ran the code the development runs ran.
Classical arm, development cell (E0001) and sealed cell (E0005).
LLM arm, development cell (E0004) and sealed cell (E0006).
The matched budget is only as real as its counter. Every candidate, whatever produced it, goes through _is_golomb, which spends one evaluation before it looks at the input, and a 2001st call raises. A missing entry still spends one, so malformed LLM output is not free.
def _is_golomb(marks: Any, n: int, budget: Budget) -> Verdict:
"""The searcher's private checker. Each call is one evaluation of the budget."""
budget.spend()
if marks is None:
return Verdict(False, "missing", None, None, 0, ())
The counter lives in the mutable file, so the verifier cannot audit it; it only enforces that each pair spent exactly the budget. The independent record of the LLM arm’s spend is the call ledger.
The classical arm never searches in the space of lengths blindly. It aims one length below its best valid ruler, cuts empty cells out of the best ruler to get there, and then anneals interior marks to drive the number of repeated differences to zero. The acceptance rule is the Metropolis one (ref:kirkpatrick1983), with the energy being the count of repeated differences:
if (
state_verdict is None
or verdict.repeats <= state_verdict.repeats
or rng.random() < math.exp((state_verdict.repeats - verdict.repeats) / temperature)
):
state, state_verdict = candidate, verdict
temperature = max(SA_T_MIN, temperature * SA_COOLING)
The verdict returned by the checker carries the conflicted mark indices, and the move operator biases toward moving a mark that takes part in a repeated difference. That is the whole algorithm. It is deliberately simple, and the study’s zero for it is a statement about this annealer at 2000 evaluations. At the method-gate toy orders the same code reached the tabulated length in most trials, which is why its zero at orders 8 to 13 reads as hardness growth, not a bug.
The model never writes a program and the searcher never executes a model string. The prompt asks for JSON data only, the reply is parsed by a deliberately strict rule, and anything not already a valid ruler is simply an invalid evaluation:
def _parse_batch(text: str, batch: int) -> tuple[list[Any], bool]:
"""Exactly `batch` entries (None = missing) and whether the reply was one JSON list.
The outermost [...] span is read as JSON (this strips code fences and any prose
around it). A reply cut off mid-list falls back to every complete inner list.
Nothing is repaired: an entry that is not already a valid ruler is an invalid
evaluation, and a missing entry still spends its evaluation.
"""
This rule is why a fifth to three in ten of replies counted as unparsed (section 5), and why the findings recount the sealed lane from the ledger with an independent checker that reads every bracketed list generously. The strict and generous readings agree on every development best length and on every sealed zero, so the headline counts do not depend on the extraction rule.
The feedback loop is the second design choice. Each request carries the checker’s verdicts on the previous batch and the best valid length so far, and nothing else: no optimum, no table, no mention of OEIS, no lane name. One template serves both lanes, so what the model is shown does not depend on the lane.
if previous is not None:
lines += ["", "The verifier's verdicts on your previous batch:"]
lines += [f"{i}. {_show(entry)}: {_describe(verdict)}"
for i, (entry, verdict) in enumerate(previous, start=1)]
lines.append(f"Best valid length so far: {best_length}." if best_length is not None
else "No valid ruler so far.")
The tabulated optima are loaded by search.py for book-keeping only (the provisional count and the index of the first match). They enter no stopping rule, move, message or request. The DATA gate read every use to confirm it.
main() prints a provisional optima_matched and the artifact path under solution:. The notary then runs the declared verifier on that artifact and decides on its number. In every measured run the searcher’s report equals the verifier’s. Keep that pattern: print a provisional number for the human, and let a separate script that shares no code with the searcher decide.
verify.py is the declared verifier of both tracks. It is not in entrypoint.mutable (the checker is never the searcher), it imports nothing from search.py, and it was hashed at the METHOD gate with sha256 63a60221be1a0b66c36095c804d08799df889156c7299c1129df16f2c0bc903c, the value the data card records and the file at build matches. It is shown bare, as the current file, because a file outside the mutable surface has only one version.
What to steal from it:
ORACLE dictionary holds the lanes, trials, budget, batch size and OEIS lengths, and pinned_instance() refuses an instance.json that disagrees. A file the searcher can write is not an oracle.expected_lane() maps KLEIN_EVALUATION_KIND to the lane and rejects an artifact that declares another one; a missing kind is rejected outright, so running the script by hand scores nothing.golomb_length builds the set of all pairwise differences with exact integers, a separate implementation from the searcher’s owner-dictionary scan. Two independent implementations disagreeing is a bug alarm; one implementation shared by both is not a check.s = 1 mean “equal to” and never “beat”.ConnectionResetError that the retry loop did not catch, so E0003 crashed after hundreds of paid calls. Lesson: every response read is a place for a transport error; cache every response so a rerun does not pay twice.