is Lean's community mathematics library. LeanLink imports any built Mathlib module and lets you read theorem statements, dissect their binder structure, and inspect the typeclass machinery behind them - all from the Wolfram Language. Every example below is guarded so the page still builds where Mathlib is absent.
Prerequisites: Building Mathlib
Install
elan
(the Lean version manager), then create a project with Mathlib as a dependency and build the modules used here:
(* Terminal: curl https://elan.lean-lang.org/install.sh | sh mkdir -p ~/src/mathlib4 && cd ~/src/mathlib4 lake init MathlibTest math lake exe cache get lake build Mathlib.Algebra.Group.Basic lake build Mathlib.Logic.Basic *)
Point a variable at the checkout and record whether it is built: