HomeComputer ScienceProgram Synthesis Search Tree

Program Synthesis Search Tree

Watch beam search explore a DSL program grammar: tune beam width, branching factor, spec strictness and a counterexample repair loop to see which candidate programs survive verification.

Computer Science3DAdvanced60 FPS
ai-topic-12 ↗ Open standalone

Program synthesis with LLMs over a domain-specific language turns code generation into a search problem: candidate programs are built one grammar production at a time, a verifier scores each one against an executable spec, and only the best survive to the next round. This simulator makes that beam search visible as a growing 3D tree — each layer is a depth of the grammar, each node a candidate program, and node color shows whether the verifier passed it, kept it in the beam, or pruned it. Tune beam width, branching factor, spec strictness and the counterexample repair loop to see how each one trades search cost against the odds of finding a verified program.

⚙ Under the hood

Watch beam search explore a DSL program grammar: tune beam width, branching factor, spec strictness and a counterexample repair loop to see which candidate programs survive verification.

program synthesisDSLbeam searchverifierLLMcomputer sciencealgorithms

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)