diff options
| -rw-r--r-- | test-suite/success/ImplicitTactic.v8 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/success/ImplicitTactic.v8 b/test-suite/success/ImplicitTactic.v8 new file mode 100644 index 0000000000..ccdc0be343 --- /dev/null +++ b/test-suite/success/ImplicitTactic.v8 @@ -0,0 +1,15 @@ +(* A Wiedijk-Cruz-Filipe style tactic for solving implicit arguments *) + +(* Declare a term expression with a hole *) +Parameter quo : nat -> forall n:nat, n<>0 -> nat. +Notation "x / y" := (quo x y _) : nat_scope. + +(* Declare the tactic for resolving implicit arguments still + unresolved after type-checking; it must complete the subgoal to + succeed *) +Declare Implicit Tactic assumption. + +Goal forall n d, d<>0 -> { q:nat & { r:nat | d * q + r = n }}. +intros. +(* Here, assumption is used to solve the implicit argument of quo *) +exists (n / d). |
