From 74db2b0098893a5912d7480a259ad91664a86120 Mon Sep 17 00:00:00 2001 From: barras Date: Fri, 12 Mar 2010 15:30:51 +0000 Subject: fixed confusion between number of cstr arguments and number of pattern variables (which include let-ins in cstr type) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12864 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tactics/rewrite.ml4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tactics') diff --git a/tactics/rewrite.ml4 b/tactics/rewrite.ml4 index b7246ad3e..95b34b8d9 100644 --- a/tactics/rewrite.ml4 +++ b/tactics/rewrite.ml4 @@ -773,7 +773,7 @@ let subterm all flags (s : strategy) : strategy = | Some (Some r) -> Some (Some (make_leibniz_proof (fun x -> mkCase (ci, p, x, brs)) ty r)) | x -> - if array_for_all ((=) 0) ci.ci_cstr_nargs then + if array_for_all ((=) 0) ci.ci_cstr_ndecls then let cstr = Some (mkApp (Lazy.force coq_eq, [| ty |])) in let found, brs' = Array.fold_left (fun (found, acc) br -> if found <> None then (found, fun x -> br :: acc x) -- cgit v1.2.3