Native link between Wolfram Language and Lean 4
Contributed by: Nik Murzin
LeanLink is a high-performance native bridge between the Wolfram Language and the Lean 4 theorem prover. It enables interoperability, allowing users to import entire Lean projects like Mathlib directly into a native Wolfram environment. Utilizing a fast binary serialization backend, the package lets you seamlessly visualize proof dependencies as native graphs, transpile mathematical proofs into validated Lean code, and compile formal Lean types into executable Wolfram functions.
Installation Instructions
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Wolfram/LeanLink"]
To load the code after installation, evaluate this code:
Needs["Wolfram`LeanLink`"]
Examples
Basic Examples (3)
Load an example lean environment:
Query its properties:
Inspect Lean terms:
Scope (3)
Load mathlib environment:
Create Lean state for interactive proving:
Apply tactic:
Disclosures
- Wolfram Language built-in symbols
- Local system interactions
-
Learn More »
Compatibility
Wolfram Language Version 14.0
External Links
Version History
- 1.0.2
– 01 April 2026
- 1.0.1
– 31 March 2026
- 1.0.0
– 31 March 2026
MIT License
Paclet Source
See Also