Pantograph/README.md

29 lines
527 B
Markdown
Raw Normal View History

2023-05-09 22:51:19 -07:00
# Pantograph
An interaction system for Lean 4.
## Installation
Install `elan` and `lean4`. Then, execute
``` sh
lake build
```
2023-05-12 01:08:36 -07:00
In order to use `mathlib`, its binary must also be built
``` sh
lake build std
lake build mathlib
```
2023-05-09 22:51:19 -07:00
## Usage
2023-05-12 01:08:36 -07:00
The binary must be run inside a `lake env` environment.
```
$ lake env build/bin/Pantograph
2023-05-09 22:51:19 -07:00
{"cmd": "create", "payload": {"imports": ["Mathlib.Analysis.Seminorm"]}}
2023-05-12 01:08:36 -07:00
{"cmd": "catalog", "payload": {"id": 0}}
2023-05-09 22:51:19 -07:00
```
2023-05-12 01:08:36 -07:00
There is temporarily a limit of 500 symbols to prevent stack overflow.
2023-05-09 22:51:19 -07:00