LEAP uses Lean 4 to check robot actions before the robot moves

A paper listed on Hugging Face introduces LEAP (Lean-as-Policy), an approach to robot control that changes the order in which an action is produced and judged. The authors start from the observation that a manipulation task such as picking up a mug admits many valid actions: the mug can be grasped by its handle or its rim and lifted along countless paths. Yet, they say, vision-language-action models, Code-as-Policies and human teleoperation each generate a single action whose validity is found only by running it on the robot. Their position is the reverse: define all valid actions first, then choose one.
In LEAP, a language-model agent writes the feasible set of a task as a Lean 4 action family built over a shared library of physical laws. The family keeps goal, physics and embodiment constraints separate from user preferences. An objective then selects one member of the set, and that member is checked against the same specification before the robot moves. The check uses exact interval arithmetic and, optionally, the Lean kernel. The authors state its limit directly: it covers only what the family states. In their framing, Lean thus serves as a unified representation of actions.
The authors implement the approach in a system called LEAP-Harness. It takes observations and an instruction, writes the feasible actions in Lean, and then samples verified joint commands. They say they validate its effectiveness on RoboDojo, RoboCasa365 and LIBERO-Pro.
Key facts
- LEAP (Lean-as-Policy) has a language-model agent write a task's feasible set as a Lean 4 action family over a shared library of physical laws
- The family separates goal, physics and embodiment constraints from user preferences
- An objective picks one action, which is checked before the robot moves using exact interval arithmetic and, optionally, the Lean kernel
- The check covers only what the action family states
- The LEAP-Harness implementation samples verified joint commands; the authors say they validate it on RoboDojo, RoboCasa365 and LIBERO-Pro
Why it matters
The authors' complaint is about timing. In their account, vision-language-action models, Code-as-Policies and human teleoperation all produce one action, and its validity comes to light only when the robot runs it. LEAP moves a check ahead of execution: the set of acceptable actions is written down first, one is selected, and it is tested against that written specification. The approach also treats a task as having many valid solutions, as in the mug example, where both the grip and the lifting path are open choices.
Who it affects
The work is aimed at the problem of robot manipulation, so it is most relevant to people building or studying control systems for such tasks, including those who rely on vision-language-action models, Code-as-Policies or teleoperation. It also concerns anyone interested in Lean 4 as a way to express and check what a physical system is allowed to do.
How to use it
The design described has a clear sequence. From observations and an instruction, an agent writes the feasible actions as a Lean 4 action family, drawing on a shared library of physical laws. Goal, physics and embodiment constraints are kept apart from user preferences. An objective selects an action, the action is checked against the specification, and LEAP-Harness samples verified joint commands. Verification through the Lean kernel is optional. No code, data or model release is mentioned, and the language model used as the agent is not named.
How solid is it
This account rests on the paper's abstract. The authors say they validate LEAP-Harness on RoboDojo, RoboCasa365 and LIBERO-Pro, but no numerical results are given: no success rates, no comparison figures against baselines, no number of tasks or trials. The abstract also does not say whether that validation was in simulation or on physical robots, and it does not say LEAP-Harness outperforms the methods it criticizes. For now the effectiveness claim is the authors' own, without figures to weigh it by.
Risks and caveats
A passed check is only as broad as the specification behind it. The authors say the check covers only what the action family states, so a constraint left out of the family is not tested. A language-model agent writes that family, which makes the quality of what it writes central to what verification is worth. The abstract does not claim that actions are guaranteed safe or correct in the real world. No latency, compute cost or verification time is given.
“We argue for the opposite order: first define all valid actions, then choose one.”
— The paper's authors, in the abstract