2026 · research · to be published
Robot simulation: SAT/SMT checks and fixes for AI planning

A language model writes a motion plan for a robot. A solver checks every moment of the path before the robot moves.
The robot lives in a simulator: a bounded arena seen from above, with obstacles, goals and a task written in plain English. The model answers with a list of forward and turn commands. Z3 then decides whether the path touches an obstacle, leaves the arena, breaks a speed limit or misses a goal. When a plan fails, the point of first contact goes back to the model as the reason. This is the robot study of my thesis. Its paper is under review, so its results stay off this site until it is published.
In this made-up run the new plan passes: no move touches an obstacle or leaves the arena, and the goal is reached. ✓ A plan that failed again would go round again.
A message sequence between a language model, a schema check, a simulator and a solver. The model writes a plan of forward and turn commands; the plan is checked against a fixed schema, replayed in the simulator, and checked by the solver along every segment. The solver rejects a plan that touches an obstacle and sends the reason back, the model writes a new plan, and in this made-up run that one passes. It shows the method only, and no result. It plays by itself and repeats. Press Space, or press on it, to pause or play; the arrow keys step it by hand.
How this works
This is the order of the checks described on this page, drawn as messages between the parts.
It is a simplified picture of the method, and the run in it is made up. It shows no plan from the study and no result of it.
Demo1 of 5
The simplest kind of scenario: an arena, one wall and one goal. The model is given the map and the task as JSON and answers with forward and turn commands. This is its plan, replayed.
The task names the goals in the order to reach them: red, then green, then blue. The only way through is the gap between two walls.
The same robot in a map with many obstacles. The way to the red goal runs along corridors with little room to spare.
Four goals in a fixed order across the same map. Every move is a straight line, which is what lets the solver check the whole path and not sampled points.
Here the task is to visit every goal once, in any order. Which model wrote each plan, how long it took and how it scored are left out: the paper is under review.
The robot study of my honors thesis. A paper is under review; it is to be published.
A language model can turn an instruction into a motion plan in seconds. The plan reads well whether or not it drives through a wall. Replaying it in a simulator finds most mistakes, but a replay looks at the path one step at a time, and a corner clipped between two steps can be missed.
- A scenario is a robot, a bounded arena with obstacles and goals, and a task written in plain English. It is handed to the model as JSON.
- The model answers with a plan: a list of forward and turn commands that has to fit a fixed JSON schema. A plan that does not fit is rejected before anything runs.
- The simulator replays the plan, so a person can watch what the robot would do.
- Z3 checks the same plan exactly. Every move is a straight segment, so each question to the solver is linear arithmetic over the whole segment and not over sampled points. It checks for collisions with the robot’s body, for leaving the arena, for speed limits, and for whether the goals are reached the way the task asks.
- A plan that fails goes back to the model with the reason, either in general terms or as the exact point of first contact. The new plan is checked again.
A team project. Two collaborators wrote the simulator and the verifier. I ran the language models through the scenarios, ran the check-and-repair experiments and did the analysis.
The robot is a model in a flat arena, and there is no physical robot. The paper is under review, so this page gives no result: the replays show plans running in the simulator, without the names of the models that wrote them, their times or their scores.






