Robo Lean
Robotic manipulation in Lean 4 and Mathlib, starting from Murray, Li, and Sastry's textbook
Robo Lean is a Lean 4 library with pinned Mathlib, starting from the mathematical core of Murray, Li, and Sastry’s A Mathematical Introduction to Robotic Manipulation (MLS). The roadmap, coverage ledger, and geometry conventions define the scope and assumptions.
The library covers rigid transforms and the rotation exponential, rotation representations, twists and exponential coordinates, adjoints, brackets, and velocities, screws, wrenches and reciprocity, manipulator kinematics, open-chain dynamics, stability and control, grasping, rolling contact, constrained and hand dynamics, nonholonomic systems, Lie groups and invariant forms, and design certificates.
A pick-and-place task on the three-link elbow arm of MLS Examples 3.2 and 4.3 (printed pp. 89–91 and 172–175) is stated and proved as one theorem: along every timed run of the sampled loop, the links keep a Euclidean distance of at least 9/100 m from every obstacle at every instant (a clearance of 3/100 m for capsules of radius 3/50 m), every admitted move finishes at its goal on time with the tool within a stated distance of the goal’s tool position, and the supervisor never faults. The scene, the cells, the loop, the supervisor and the policy are design statements, not printed in MLS; the theorems concern the ideal rigid-body model and the sampled loop, do not assert that a closed-loop solution exists, and say nothing about a physical arm.
For the library as of commit c5b7cc2 (2026-11-06), on Lean 4.35.0 with Mathlib v4.35.0, lake build of the 481 modules imported by RoboLean.lean succeeds, and a whole-library axiom audit of those modules reports 13017 constants, each depending on at most propext, Classical.choice, and Quot.sound, with no other axiom, no axiom declaration, and no opaque stand-in. The ledger counts 596 selected MLS obligations, 580 of them Verified in full. These are selected source obligations, not independent theorem counts or a whole-book percentage.
- Code: sdamera95/robo-lean