Pantograph/examples
Leni Aniva 04e40b6dfa
doc: Update all examples to 0.2.23
2024-12-11 17:14:44 -08:00
..
Example chore: Update Pantograph and Lean version to 4.12 2024-10-07 20:15:07 -07:00
README.md fix: `sorry` extraction from sketch 2024-10-03 01:32:43 -07:00
aesop.py example: Calling aesop 2024-05-17 20:53:34 -07:00
all.ipynb doc: Add comprehensive documentation 2024-10-20 19:22:35 -07:00
sketch.py doc: Update all examples to 0.2.23 2024-12-11 17:14:44 -08: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/sketch.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/!

  • aesop.py: Example of how to use the aesop tactic
  • data.py: Example of loading training data
  • sketch.py: Example of loading a sketch