aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPierre Courtieu2020-05-14 14:46:56 +0200
committerThéo Zimmermann2020-05-16 15:43:14 +0200
commit888aaeb0a948352cf56f1f6d8023a051e90583a0 (patch)
tree6a74e6caefdcb4545d0d978454c7b1d635215bd9 /plugins
parentebaaa7371c3a3548ccec1836621726f6d829858a (diff)
Fix #11761: Functional Induction throws unrecoverable error.
Error happened only when writing: functional induction f x y z. instead of functional induction (f x y z). Now the former is equivalent to the former: implicits must be omitted. Hence small source of incompatibility, but a more homogeneous behaviour.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/funind/g_indfun.mlg15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/funind/g_indfun.mlg b/plugins/funind/g_indfun.mlg
index 68e1087b74..a1094e39a4 100644
--- a/plugins/funind/g_indfun.mlg
+++ b/plugins/funind/g_indfun.mlg
@@ -18,6 +18,7 @@ open Indfun_common
open Indfun
open Stdarg
open Tacarg
+open Extraargs
open Tactypes
open Pcoq.Prim
open Pcoq.Constr
@@ -96,14 +97,12 @@ let functional_induction b c x pat =
}
TACTIC EXTEND newfunind
-| ["functional" "induction" ne_constr_list(cl) fun_ind_using(princl) with_names(pat)] ->
- {
- let c = match cl with
- | [] -> assert false
- | [c] -> c
- | c::cl -> EConstr.applist(c,cl)
- in
- Extratactics.onSomeWithHoles (fun x -> functional_induction true c x pat) princl }
+| ["functional" "induction" lconstr(c) fun_ind_using(princl) with_names(pat)] ->
+ {
+ (Extratactics.onSomeWithHoles
+ (fun x -> functional_induction true c x pat) princl)
+ }
+
END
(***** debug only ***)
TACTIC EXTEND snewfunind