October 2026

Programs and Abstractions for Reasoning

AbstractComputer science already has most of the recipes reliable agents need. We look at program synthesis, small languages stacked and compiled down, process calculi and planning that adapts, and argue that agents should construct the methods each problem needs, test them, and keep the ones that work.

We spent decades building software that was precise: algorithms with known bounds, recipes proven and reused a million times over. Everything we reliably know was earned the same way. Look at the world, work out what causes what, state a theory precise enough to be wrong, test it, and keep what survives.

We think most of the recipes and algorithms already exist. What is missing is taste: constructing and choosing the right one for each problem, and deciding what to optimize. Cortex is built on that belief, with language models where meaning is the question and the rest of computer science for everything else.

Programs, written for the problem

François Chollet defines the intelligence of a system as "a measure of its skill-acquisition efficiency," and asks that we "stop thinking of “agents” as monolithic black boxes."[1] He reads his own benchmark, ARC, as "a program synthesis benchmark." A program can be read, run again, and handed to someone else. A language model proposes programs well; running them is the computer's job. So the unit of work we want is a small program written for the task, in a bounded language shaped to the domain. Jon Bentley called these little languages.[2] Restricting what a language can say makes its programs easier to analyse. Systems such as DreamCoder go further and grow a library of abstractions from solved problems, so that later problems are solved faster.[3] Nobody should have to rediscover what the last problem already settled.

Workflows that change while they run

Which steps are needed depends on what earlier steps find, and new conversations, tools and obligations appear at run time. A flowchart draws the paths in advance, and the global states of interacting parts multiply combinatorially as parts are added. Process calculi describe the same behavior by composing small processes with algebraic laws. Hoare's CSP gives communicating sequential processes;[4] Milner's π-calculus adds mobility, so the structure of communication can change as the process runs.[5] Our bet is that dynamic agent work is better stated as composed processes than as drawn graphs.

Plan, then execute, then replan

Some planning belongs up front. Writing the whole plan first saves tokens and lets independent steps run in parallel.[6] Recursive Language Models plan in code: the model writes a program that breaks the input into parts and calls itself on each, runs it, reads the result and plans again.[7] Other planning cannot know upfront and has to wait for what the world says. Decomposing a step further only when it fails beat a fixed plan by 25 points on a crafting task.[8]

Layers, compiled down

Halide separates an image-processing algorithm from its schedule, the choices of how it runs on a machine. The same algorithm can then be tuned for each machine without being rewritten.[9] MLIR generalizes the idea to whole compilers: a program is lowered through a stack of dialects, each a small language translated into the one below.[10] We want agents built the same way. Bounded languages layered one on another and compiled down step by step, with the language model writing the top layer, the one about meaning. The spec of what has to be established stays fixed. Which model, solver, search or retrieval computes it is optimized underneath. Abstractions are not dead at all; they are the oldest recipe for reliability we have.

Accuracy comes from specialization, and we think the move to it is inevitable. A fully general intelligence is not something you can depend on to be accurate. The method should be specialized to the task; the machinery that builds methods can be shared. On ARC-AGI-3 the same model scored 62.7% with one harness and 99.9% with another.[11] Our own result is in Cortex on τ³-bench. The diagnosis is in Hallucinating intelligence, and the thesis in Reasoning as a systems problem.

References

  1. François Chollet, "On the Measure of Intelligence," arXiv:1911.01547, 2019, §II.2.1, §II.2.3 and §III.1.4. ↩

  2. Jon Bentley, "Programming Pearls: Little Languages," Communications of the ACM 29(8), 1986. ↩

  3. Kevin Ellis et al., "DreamCoder: Bootstrapping Inductive Program Synthesis with Wake-Sleep Library Learning," PLDI 2021. ↩

  4. C. A. R. Hoare, "Communicating Sequential Processes," Communications of the ACM 21(8), 1978. ↩

  5. Robin Milner, Joachim Parrow and David Walker, "A Calculus of Mobile Processes, I and II," Information and Computation 100(1), 1992; Robin Milner, Communicating and Mobile Systems: the π-Calculus, Cambridge University Press, 1999. ↩

  6. Binfeng Xu et al., "ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models," arXiv:2305.18323, 2023. ↩

  7. Alex L. Zhang, Tim Kraska and Omar Khattab, "Recursive Language Models," arXiv:2512.24601, 2025. ↩

  8. Archiki Prasad et al., "ADaPT: As-Needed Decomposition and Planning with Language Models," Findings of NAACL 2024, §3 and §5, arXiv:2311.05772. ↩

  9. Jonathan Ragan-Kelley, Connelly Barnes, Andrew Adams, Sylvain Paris, Frédo Durand and Saman Amarasinghe, "Halide: A Language and Compiler for Optimizing Parallelism, Locality, and Recomputation in Image Processing Pipelines," PLDI 2013. ↩

  10. Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen, Andy Davis, Jacques Pienaar, River Riddle, Tatiana Shpeisman, Nicolas Vasilache and Oleksandr Zinenko, "MLIR: Scaling Compiler Infrastructure for Domain Specific Computation," CGO 2021. ↩

  11. ARC Prize Foundation, ARC-AGI-3 leaderboard and "GPT-6 Astra" results post, September 2026, arcprize.org/blog/astra. Both runs used ARC Prize's own harnesses, Standard and Provider Adapter. ↩

Next noteCortex on τ³-bench