https://github.com/gebner/lean4-mathlib-import
https://github.com/gebner/lean4-mathlib-import
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gebner/lean4-mathlib-import
- Owner: gebner
- Created: 2020-02-05T22:04:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T17:50:47.000Z (over 6 years ago)
- Last Synced: 2025-02-16T10:44:38.300Z (over 1 year ago)
- Language: Lean
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Import mathlib into Lean 4
This tool takes the text export of
[mathlib](https://github.com/leanprover-community/mathlib) and creates an olean
file that you can import with [Lean 4](https://github.com/leanprover/lean4).
Notation, etc., is not supported. All theorems are imported as axioms. Some
names are adapted to the new convention, some aren't. **This code is not
intended for production.**
You can build the `Mathlib.olean` as follows (make sure you have enough RAM):
```
make
make emacs # install the lean4 emacs package yourself!
```
(If you're on NixOS, you might need to run everything inside `nix-shell ~/lean4`.)
After that, you can import mathlib and play with it in Lean 4:
```lean
import Import.Mathlib
#check (deriv : (real → real) → (real → real))
```