TL;DR
Current robot AI models—whether end-to-end neural networks or code-writing agents—usually guess a single physical trajectory, meaning you only find out if it’s a bad idea after the robot drops your mug. LEAP (Lean-as-Policy) flips this script: a language model first defines the entire mathematical set of physically valid actions using the Lean 4 proof assistant, and a mechanical verifier checks a chosen path against physics and uncertainty before a single motor turns. It brings the rigor of formal software verification directly into the messy, physical world of robotics.
What Problem Does This Paper Address?
Imagine asking a robot to pick up a coffee mug. There is no single "correct" motion; you can pinch the handle, grasp the rim, or hug the side, lifting it along countless paths.
Yet today’s dominant robot control paradigms—like Vision-Language-Action (VLA) models (which map camera pixels directly to motor commands) and Code-as-Policies (where an LLM writes Python scripts calling robot APIs)—commit to generating one specific trajectory right out of the gate. Because these systems never explicitly state what makes an action valid, they have no built-in way to check their work. In a novel scene, the physical robot itself becomes the test environment. Furthermore, if two actions both work, there’s no clean way to rank them because subjective preferences (like "move smoothly" or "stay clear of the laptop") are tangled up with basic physics and task goals.
Methods
Inspired by formal mathematics—where LLMs propose creative proofs and a rigid kernel like Lean 4 mechanically rejects the wrong ones—the authors introduce LEAP, instantiated in a five-module pipeline called LEAP-Harness:
- Perception (Intervals, Not Points): Off-the-shelf vision models (SAM 3 and Depth Anything 3) segment objects and estimate 3D geometry. Crucially, uncertain physical quantities (like a mug's exact position or mass) are recorded as intervals ("beliefs", $\Theta$) rather than single point guesses.
- Lean Formalizer: This is the only module using a language model. Instead of outputting joint angles, the LLM agent writes a short Lean 4 specification defining an "action family" ($\mathcal{F}$) over a shared library of physical laws (kinematics, friction, Newton-Euler dynamics) with type-checked physical units. Constraints are split into Goal, Physics, and Embodiment, keeping user preferences separate.
- Solver: Lean compiles the specification into exact integer-arithmetic constraints. An offline numerical solver searches this space to maximize a separate preference objective $J$ (e.g., shortest path or highest probability of success).
- Verifier: Using exact interval arithmetic (and optionally a formal Lean kernel theorem), the verifier checks that the candidate action—plus a tolerance ball around it for execution slop—satisfies every constraint across every possible scene allowed by the perception intervals.
- Executor: Verified joint commands are sent to the robot. If no valid plan is found, the verifier tells the LLM exact which physical law or belief failed so it can gather another camera view or revise its formulation.
Datasets
LEAP is evaluated zero-shot (no training on benchmark demonstrations) across three simulation suites and one real-world dataset:
- LIBERO-PRO: Perturbs standard LIBERO manipulation tasks so policies relying on memorized object locations fail.
- RoboDojo-Sim: 42 bimanual (two-armed) tasks spanning generalization, precision, long-horizon planning, memory, and open-vocabulary skills.
- RoboCasa365: 50 mobile-manipulation kitchen tasks (both seen and unseen composite tasks).
- AgiBot: A dataset of recorded real-robot episodes. The authors build a rule-based converter that turns AgiBot episodes into typed Lean targets to check data quality and pave the way for training future models to write Lean specs.
Key Insights and Ideas
- Physics adapts automatically via beliefs: In a real-robot test picking up a glass cup, pouring water into the cup simply doubles the mass interval in the belief state. Without changing the task code, the verifier automatically rejects a rim-pinch grasp (flagging negative bounds on friction and torque laws) and certifies a side grasp—while a direct LLM policy dunked its gripper jaws straight into the water.
- Universal action judge: Because the Lean family represents all valid ways to do a task, it acts like a task-specific simulator that can audit trajectories from any source—human teleoperation, a VLA, or a Python script—before execution.
- Catching corrupt datasets: When checking recorded human demonstrations from the AgiBot dataset against generated Lean targets, LEAP flagged 58 "failed" recordings. Upon inspection, the demonstrations themselves succeeded on video, but the recorded data had sensor spikes (e.g., a wrist jumping 20 cm in one frame) or annotation offsets.
Key Results
- LIBERO-PRO: Using Claude Opus 5.5, acting directly via end-effector targets succeeded 48.0% of the time (and 0.0% on the multi-step LIBERO-10 suite). Writing Lean specifications instead boosted success to 61.5% open-loop and 95.0% with a single replan.
- RoboDojo-Sim: LEAP achieved 73.8% overall success, beating the top zero-shot baseline (Q0-Preview at 68.87%) and top coding agent (COAP at 70.24%).
- RoboCasa365: Reached 90.1% overall success, outperforming VLA models like $\pi_{0.5}$ (16.9%) and agent baselines like HexaShell (85.6%).
- Real Robot & Trajectory Judging: On tabletop ball-and-bowl tasks, LEAP completed 13/15 rollouts vs. 5/15 for a direct end-effector agent (GPT-6 Astra). When asked to judge 30 pre-recorded human trajectories before running them, LEAP scored 30/30 accuracy compared to GPT-6 Astra's 2/30.
Limitations and Future Work
- A proof is only as good as its premises: A Lean certificate guarantees an action satisfies the stated mathematical laws at checked points. It cannot guarantee that the real world lies inside perception's interval beliefs, that the robot controller tracks commands perfectly, or that rigid-body contact models capture messy real-world physics.
- Fixed law library: Tasks can only be expressed using physical laws already coded into the Lean library, and adding or modifying laws requires recompiling the checker.
- Future directions: Using their rule-based pipeline that converts raw robot datasets into Lean specifications, the authors aim to train smaller, specialized models to write Lean action families directly, as well as use LEAP to filter bad training data and supervise learned VLA policies.
Summary updated