Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tactic to skip proof checking during development. [PR 5/? f…
…or memcpy] (leanprover#167) Surrounding a tactic with `skip_proof` will skip running the tactic and close the goal with `skipProofAx`. We only skip proofs `skip_proof.skip` is set to `true`, and we emit a warning to remind the user that proofs are being skipped. This is to be used, during development, with expensive tactics such as `omega`, `bv_omega`, `bv_decide`, `simp_mem`. This allows one to run `have expensive_hyp : ... := by omega`, check that this can be proven, and to then replace this with `have expensive_hyp : ... := by skip_proof omega`, which will skip the use of `omega`, and instead of `skipProoxAx`, ensuring Lean stays interactive. This makes `skip_proof p` morally different from a `sorry`: - It still retains the proof `p`. This signals the intent of a completed proof that has been skipped for performance. - It uses a different axiom (`skipProofAx` instead of `sorryAx`). This allows `#print axioms in thm` to distinguish between skipped proofs and genuine `sorry`s. --------- Co-authored-by: Shilpi Goel <shigoel@gmail.com>
- Loading branch information