{"slug": "leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs", "title": "LEAP: Lean 4 Action Families Verify Robot Moves Before the Arm Runs", "summary": "Researchers at NTU S-Lab released LEAP, a system that writes every feasible robot manipulation action as a Lean 4 specification, selects one action, and verifies it with exact interval arithmetic before the arm moves, reporting 95.0% success on LIBERO-PRO with one replan versus 61.5% open loop. On real-robot tabletop tasks, LEAP completed 13 of 15 rollouts against 5 of 15 for GPT-6 Astra, and the team published the LEAP-Harness code alongside arXiv paper 2611.36564. The approach inverts standard vision-language-action pipelines, which emit a single trajectory and only discover invalidity on hardware, by shrinking the feasible set when beliefs change, such as restricting a full mug to side grasps.", "body_md": "**LEAP defines every valid way to manipulate an object in Lean 4, picks one action, and verifies it before the robot moves**—instead of emitting a single trajectory and discovering failure on hardware. Researchers at **[NTU S-Lab](https://lean-as-policy.github.io/?ref=explainx)** report **95.0% success on LIBERO-PRO with one replan**, strong **real-robot tabletop** completion rates versus **GPT-6 Astra**, and open **[LEAP-Harness](https://github.com/WeichenFan/LEAP?ref=explainx)** code in [arXiv 2611.36564](https://arxiv.org/abs/2611.36564?ref=explainx).\n\nPicking up a mug admits **many grasps and paths**. **Vision-language-action (VLA)** models, **Code-as-Policies**, and teleoperators usually output **one** command. Validity shows up only **after** the arm tries it. LEAP reverses the order: **state the feasible set**, **optimize**, **prove or refute**, **then act**.\n\n## Quick reference\n\n| Item | Detail | \n|---|---|\n| **Paper** | [arXiv 2611.36564](https://arxiv.org/abs/2611.36564?ref=explainx) | \n| **Project** | [lean-as-policy.github.io](https://lean-as-policy.github.io/?ref=explainx) | \n| **Code** | [github.com/WeichenFan/LEAP](https://github.com/WeichenFan/LEAP?ref=explainx) | \n| **Lean** | Version 4.19.0 law library | \n| **LIBERO-PRO** | 61.5% open loop, **95.0%** one replan | \n| **Real robot** | 13/15 rollouts vs 5/15 for GPT-6 Astra (tabletop) | \n| **Default VLM** | Claude Opus 5.5 in benchmark tables | \n\n## The three-step LEAP loop\n\nThe teaser figure on the project site breaks LEAP into:\n\n1. **Write** the feasible set**F** in Lean—**goal** ,**physics** , and**embodiment** rows separated from user preferences.\n2. **Select** one action that minimizes objective**J** among all actions in**F** .\n3. **Check** the chosen action against the same constraints using**exact interval arithmetic** and, optionally, the**Lean kernel** , then execute once admitted.\n\nLEAP-Harness modules for Lean-as-Policy verifiable robot control\n*Image: [NTU S-Lab (LEAP)](https://lean-as-policy.github.io/?ref=explainx)*\n\n**LEAP-Harness** implements five modules: **perception** (Depth Anything 3 and SAM 3 by default), **Lean formalizer**, **solver**, **verifier**, and **executor**. If no plan is admitted, the agent **observes more** or **revises** the family—the dashed recovery loop in the diagram.\n\nPerception stays **deliberately dumb**: it stores masks and depth in an immutable **sensor packet**. The **agent** queries geometry through tools; it does not receive a pre-digested scene graph from a monolithic vision tower.\n\n## Mug grasps: why feasible sets matter\n\nThe project’s **cup figure** shows one task with **changing beliefs**: an **empty mug** allows **rim, handle, and side** grasps in ℱ, while a **full mug** may leave only a **side grasp** because physics rows rule out risky rim lifts. VLAs that always aim for the handle do not **encode** that distinction; LEAP **shrinks the feasible set** when mass beliefs change.\n\nThat is the pedagogical core for builders: **policies can be small**, but **specifications must be explicit** if you want **explainable rejection** instead of **mysterious stalls**.\n\n## LIBERO-PRO benchmark numbers\n\n**LIBERO-PRO** perturbs LIBERO suites so memorized layouts fail, per Zhou et al. as cited in the LEAP paper. The paper evaluates **four swap suites** (Object, Spatial, Goal, LIBERO-10), **10 tasks each**, **seeds 0–4**, **50 instances per suite**, scoring with the benchmark harness.\n\n| Method (Claude Opus 5.5) | Success rate | \n|---|---|\n| Direct end-effector targets | 48.0% | \n| PyRUA-Lean + fine-tuned π₀.₅ | 87.0% | \n| **LEAP open loop** | **61.5%** | \n| **LEAP + one replan** | **95.0%** | \n\nDirect acting hits **0% on LIBERO-10** in Table 2, while LEAP with one replan reaches **84.0%** on that column. **Goal** suites jump from **45.5%** to **100.0%** with replanning because multi-step tasks require **every goal row** satisfied before execution.\n\n**One replan** fixes **67 of 77** open-loop failures in the paper’s accounting—cheap compared to full hierarchical retraining.\n\nBeyond LIBERO-PRO, the paper’s closing evaluation reports **73.8% success on RoboDojo-Sim** and **90.1% on RoboCasa365** with LEAP-Harness under the same **Claude Opus 5.5** agent setup in Section 4. The [project page](https://lean-as-policy.github.io/?ref=explainx) mirrors those headline numbers and documents the **five-step** observe→formalize→solve→verify→execute demos readers can replay in the browser before cloning **[LEAP on GitHub](https://github.com/WeichenFan/LEAP?ref=explainx)**.\n\n## Real-robot tabletop and teleop judging\n\nThree **ball-into-bowl-onto-plate** tasks share one tabletop layout. **LEAP** completes **13/15** rollouts; **GPT-6 Astra** completes **5/15**, failing baseball lifts and golf-ball grasps per trajectory figures.\n\nMore striking for safety teams: on **human teleoperation traces**, LEAP **correctly judges all 30** trajectories before execution while **GPT-6 Astra judges two**. LEAP becomes a **lint layer** for **any** policy output—not only its own sampler.\n\nQualitative clips on a **TianJi Marvin humanoid** extend the same law library to **dual-arm** tasks (lid hold plus insert, dual-place objectives) with **per-step checks**.\n\nRobotic gripper approaching an object, representing verified manipulation before motion\n\n## RoboDojo and dataset-to-Lean targets\n\nTable 3 compares **RoboDojo-Sim** success rates against public leaderboard entries (not rerun by the authors). LEAP reports **zero-shot** construction without RoboDojo demonstrations in that row—read the paper for per-task SR cells.\n\nSection 5.4 explains **AgiBot episode → Lean target** conversion: manifests fix channel meaning, unfinished sub-tasks become **typed goals**, and recorded actions are **checked**, never copied into targets. Corrupt episodes (e.g., **20.4 cm wrist jump** with static camera) get **rejected**—a pattern RL dataset curators can steal for **non-Lean** pipelines too.\n\n## How LEAP fits next to Code-as-Policies and VLAs\n\n| Pattern | When validity is known | \n|---|---|\n| **VLA / teleop** | After motion | \n| **Code-as-Policies** | Often after partial execution | \n| **LEAP** | Before motion, on the same Lean family | \n\nIf you already use **formal methods** in software CI, LEAP is the **manipulation analogue**: **families** are types, **verifier** is test, **executor** is deploy.\n\nPair this with [embodied criteria exposure](https://explainx.ai/blog/embodied-ai-criteria-exposure-benchmark-gaming-pku-2026) when benchmarking: LEAP optimizes for **constraint satisfaction**, not **predicate hacking** against a naive reward.\n\n## Perception stack and why it stays shallow\n\nLEAP’s perception module runs **Depth Anything 3 (Small)** and **SAM 3**, then freezes outputs in a **sensor packet** with flags for **metric depth**, **relative depth**, or **unknown extrinsics alignment**. Nothing in perception **names objects** or **decides grasps**. The formalizer agent must call **observe** tools to fit planes, compare views, or measure rim circles.\n\nThat split keeps **verification scope** honest: the Lean family states only what perception can support. If depth is relative, physics rows widen uncertainty intervals instead of pretending millimeter certainty. Builders auditing safety cases should appreciate that **explicit uncertainty** propagates to **rejection**, not silent clamping.\n\n## Solver, verifier, and executor division\n\nAfter the agent writes a candidate **action family**, the **solver** picks a member optimizing **J** (time, energy, joint limit margin—objective details appear in Section 3). The **verifier** re-checks against **embodiment**, **physics**, and **goal** rows using compiled constraints. The **executor** sends **joint commands** only when admission succeeds.\n\nThe dashed **recovery loop** in LEAP-Harness is load-bearing. When verification fails, the agent may **gather observations** or **revise the family** (for example, tighter beliefs about mug fill level). That is how **one replan** rescues most open-loop LIBERO-PRO failures without a full hierarchical policy.\n\n## PyRUA-Lean and direct EEF baselines in context\n\nTable 2 includes **PyRUA-Lean**, which writes Python over primitives and relies on a **pi policy fine-tuned on LIBERO**. It reaches **87.0%**—strong, but below **LEAP at 95.0% with one replan** while carrying **learned** components. LEAP’s open-loop **61.5%** already beats **48.0% direct end-effector targets** from the same **Claude Opus 5.5** backbone, showing that **representation** matters before counting replans.\n\n**Code-Only-as-Policy (COAP)**, cited in related work, runs **offline libraries without a model in the loop on RoboDojo**. LEAP shares the programs-first ethos but keeps the **LLM author** for families while **eliminating the model at execution** once constraints compile.\n\n## Formal methods culture meets manipulation\n\nLean appears in coding agents for **proof obligations** and in math benchmarks like [Left to Solve](https://explainx.ai/blog/left-to-solve-ai-agents-open-math-lean-erdos-november-2026). LEAP exports that pattern to **continuous control** via **interval arithmetic** over joint limits and contact constraints. It checks **what the family states**, which is narrower than a full physics simulator but still catches **impossible grasps**.\n\n## Safety, teleoperation, and dataset linting\n\nThe **30/30 teleop judgment** experiment matters for data teams. Facilities that let humans **take over** arms still need **lint on recorded traces** before replay in imitation datasets. LEAP’s checker rejected the **corrupt AgiBot episode** where the wrist jumped **20.4 cm** with a static camera—exactly the silent bad data that poisons **VLA fine-tunes**.\n\n## When LEAP is worth the integration cost\n\n| Signal | Lean families likely pay off | \n|---|---|\n| High **cost of collision** | Verify before power-on | \n| **Multi-step** goals with order constraints | Goal rows encode sequencing | \n| **Dataset curation** from teleop | Pre-filter corrupt traces | \n| **Regulatory** trace requests | Store admitted families | \n\n| Signal | Simpler VLA may suffice | \n|---|---|\n| Low-stakes pick-place in clutter | Engineering cost dominates | \n| Extremely **fast** cycle times | Replan latency hurts throughput | \n| No staff fluent in **spec writing** | Family authoring stalls | \n\n## Try LEAP responsibly\n\n1. Start in **LIBERO-PRO** sim with**[GitHub LEAP](https://github.com/WeichenFan/LEAP?ref=explainx)** adapters before binding to your arm SDK.\n2. Keep **Lean law versions** pinned; the paper uses**4.19.0** without external math libs.\n3. Budget **replan loops** in latency planning—95% success assumes**one** revision, not zero overhead.\n4. Log **rejected plans** for operators; the value is**explainable no** , not only higher SR.\n5. Teams learning **agent orchestration** can study LEAP alongside[formal Lean math agents](https://explainx.ai/blog/left-to-solve-ai-agents-open-math-lean-erdos-november-2026) — same prover, different actuators.\n\n## Limits\n\nThe paper is careful about scope: LEAP verifies **families the agent wrote**, not the full physics of the world. That is still useful when failures are expensive, but it is not a certificate for every edge case your cell can encounter. The authors position LEAP as a **lint and certification layer** any policy can run against—not only trajectories the Lean formalizer sampled itself in simulation.\n\n- **Claude Opus 5.5** tables do not automatically transfer to every open VLM formalizer.\n- **95% LIBERO-PRO** still leaves**failure modes** on unseen perturbations; sim success is not field certification.\n- **Lean authoring** cost is real; LEAP-Harness helps but does not eliminate**domain engineering** .\n- Comparing to **GPT-6 Astra** on**15 rollouts** is illustrative, not a fleet benchmark.", "url": "https://wpnews.pro/news/leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs", "canonical_source": "https://explainx.ai/blog/leap-lean-as-policy-verifiable-robot-control-ntu-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-30 00:00:00+00:00", "updated_at": "2026-11-30 08:45:13.464301+00:00", "lang": "en", "topics": ["robotics", "ai-research", "ai-agents", "ai-tools", "artificial-intelligence"], "entities": ["NTU S-Lab", "LEAP", "LEAP-Harness", "Lean 4", "LIBERO-PRO", "GPT-6 Astra", "Claude Opus 5.5", "Depth Anything 3"], "also_reported_by": [], "takeaway": "LEAP reaches 95.0% on LIBERO-PRO with one replan versus 61.5% open loop, and one replan fixes 67 of 77 open-loop failures, by verifying each action against Lean 4 constraints before execution.", "recommendation": {"advice": "Encode the feasible action set as explicit constraints and verify the chosen action before execution; LEAP's one replan lifted LIBERO-PRO success from 61.5% to 95.0% and fixed 67 of 77 open-loop failures.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs", "markdown": "https://wpnews.pro/news/leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs.md", "text": "https://wpnews.pro/news/leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs.txt", "jsonld": "https://wpnews.pro/news/leap-lean-4-action-families-verify-robot-moves-before-the-arm-runs.jsonld"}}