Pantograph/examples
Brando Miranda 89a3f5a97d removed confusing file 2024-09-30 10:57:23 -07:00
..
Example refactor: Update the experiment repo Lean version, use new load_sorry API 2024-09-13 18:18:53 -07:00
lean4_dsp removed confusing file 2024-09-30 10:57:23 -07:00
README.md doc: Update jupyter notebook 2024-09-09 19:28:35 -07:00
aesop.py example: Calling aesop 2024-05-17 20:53:34 -07:00
all.ipynb doc: Update jupyter notebook 2024-09-09 19:28:35 -07:00
data.py fix: Versioning in the examples, tactic invocation 2024-09-09 19:04:56 -07:00

README.md

Examples

For a quick introduction of the API, fire up Jupyter and open all.ipynb. (Did you remember to poetry install?)

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! Moreover, the version of the Lean used in the example folder (including dependencies in lakefile.lean and lean-toolchain) must match exactly with the version in src/!