diff options
author | Samuel Mimram <smimram@debian.org> | 2006-04-28 14:59:16 +0000 |
---|---|---|
committer | Samuel Mimram <smimram@debian.org> | 2006-04-28 14:59:16 +0000 |
commit | 3ef7797ef6fc605dfafb32523261fe1b023aeecb (patch) | |
tree | ad89c6bb57ceee608fcba2bb3435b74e0f57919e /test-suite/success/ImplicitTactic.v | |
parent | 018ee3b0c2be79eb81b1f65c3f3fa142d24129c8 (diff) |
Imported Upstream version 8.0pl3+8.1alphaupstream/8.0pl3+8.1alpha
Diffstat (limited to 'test-suite/success/ImplicitTactic.v')
-rw-r--r-- | test-suite/success/ImplicitTactic.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/success/ImplicitTactic.v b/test-suite/success/ImplicitTactic.v new file mode 100644 index 00000000..d8fa3043 --- /dev/null +++ b/test-suite/success/ImplicitTactic.v @@ -0,0 +1,16 @@ +(* 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). + |