/lean-subtask

Subtasks algorithm for Lean

Primary LanguageLeanMIT LicenseMIT

Human-oriented Term Rewriting.

A prototype implementation of the subtasks algorithm in Lean for solving simple equalities.

Build & Run

This code uses Lean 3.4.2 but should still work on newer versions of Lean 3.

  1. 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
  2. It is recommended that you view the examples files within the supported editors:
  3. In the terminal, cd to the root directory for lean-subtask and run leanpkg 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.
  4. Open any file from the examples folder and inspect Lean Messages to see the equate tactic in action