src/Pure/Isar/find_theorems.ML
changeset 17756 d4a35f82fbb4
parent 17755 b0cd55afead1
child 17789 ccba4e900023
equal deleted inserted replaced
17755:b0cd55afead1 17756:d4a35f82fbb4
   216   | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat
   216   | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat
   217   | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat;
   217   | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat;
   218 
   218 
   219 fun opt_not x = if isSome x then NONE else SOME (0, 0);
   219 fun opt_not x = if isSome x then NONE else SOME (0, 0);
   220 
   220 
   221 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y)
   221 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y : int)
   222  |  opt_add _ _ = NONE;
   222  |  opt_add _ _ = NONE;
   223 
   223 
   224 in
   224 in
   225 
   225 
   226 fun filter_criterion ctxt opt_goal (b, c) =
   226 fun filter_criterion ctxt opt_goal (b, c) =