use right set of variables for recursive check
authorblanchet
Sat, 26 Apr 2014 06:43:06 +0200
changeset 56737 e4f363e16bdc
parent 56736 0f5cf342961c
child 56738 13b0fc4ece42
child 56743 81370dfadb1d
use right set of variables for recursive check
src/HOL/Tools/BNF/bnf_lfp_size.ML
--- a/src/HOL/Tools/BNF/bnf_lfp_size.ML	Sat Apr 26 00:20:53 2014 +0200
+++ b/src/HOL/Tools/BNF/bnf_lfp_size.ML	Sat Apr 26 06:43:06 2014 +0200
@@ -126,7 +126,7 @@
       | mk_size_of_typ (T as Type (s, Ts)) =
         if is_pair_C s Ts then
           pair (snd_const T)
-        else if exists (exists_subtype_in As) Ts then
+        else if exists (exists_subtype_in (As @ Cs)) Ts then
           (case Symtab.lookup data s of
             SOME (size_name, (_, size_o_maps as _ :: _)) =>
             let