Pantograph/examples
Leni Aniva 695374a3e4
feat: Example Jupyter notebook
2024-07-01 12:18:00 -07:00
..
Example feat: Compilation unit extraction 2024-05-31 17:09:12 -07:00
README.md feat: Example Jupyter notebook 2024-07-01 12:18:00 -07:00
aesop.py example: Calling aesop 2024-05-17 20:53:34 -07:00
all.ipynb feat: Example Jupyter notebook 2024-07-01 12:18:00 -07:00
data.py feat: Compilation unit extraction 2024-05-31 17:09:12 -07:00

README.md

Examples

For a quick introduction of the API, fire up Jupyter and open all.ipynb.

poetry run jupyter notebook

This example showcases how to bind library dependencies and execute the Aesop tactic in Lean. First build the example project:

pushd Example
lake build
popd

This would generate compiled .olean files. Then run one of the examples from the project root:

poetry run examples/aesop.py
poetry run examples/data.py

Warning: If you make modifications to any Lean files, you must re-run lake build!