This PR implements the following `grind` improvements: 1. `set_option` can now be used to set `grind` configuration options in the interactive mode. 2. Fixes a bug in the repeated theorem instantiation detection. 3. Adds the macro `use [...]` as a shorthand for `instantiate only [...]`.
12 lines
380 B
Text
12 lines
380 B
Text
opaque f : Nat → Nat
|
|
opaque g : Nat → Nat
|
|
theorem fax : f (x + 1) = g (f x) := sorry
|
|
|
|
/--
|
|
error: `instantiate` tactic failed to instantiate new facts, use `show_patterns` to see active theorems and their patterns.
|
|
-/
|
|
#guard_msgs in
|
|
example : f (x + 5) = a := by
|
|
grind =>
|
|
use [fax]; use [fax]; use [fax]; use [fax]; use [fax];
|
|
use [fax] -- Should fail - no new facts
|