A prototype implementation of the subtasks algorithm in Lean for solving simple equalities.
This code uses Lean 3.4.2 but should still work on newer versions of Lean 3.
- Install Lean. This best way is probably to install elan by running the script
curl https://raw.githubusercontent.com/Kha/elan/master/elan-init.sh -sSf | sh
- It is recommended that you view the examples files within the supported editors:
- VSCode with the Lean extension.
- Emacs with lean-mode.
- In the terminal,
cd
to the root directory forlean-subtask
and runleanpkg build
. This will pull and verify mathlib and will take about 20 mins on the first run, but after that the proofs for mathlib are saved. - Open any file from the examples folder and inspect Lean Messages to see the
equate
tactic in action