src/Pure/Isar/find_theorems.ML
changeset 19502 369cde91963d
parent 19482 9f11af8f7ef9
child 22340 275802767bf3
equal deleted inserted replaced
19501:9afa7183dfc2 19502:369cde91963d
   202   | filter_crit ctxt (SOME goal) Elim = filter_elim ctxt goal
   202   | filter_crit ctxt (SOME goal) Elim = filter_elim ctxt goal
   203   | filter_crit ctxt (SOME goal) Dest = filter_dest ctxt goal
   203   | filter_crit ctxt (SOME goal) Dest = filter_dest ctxt goal
   204   | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat
   204   | filter_crit ctxt _ (Simp pat) = filter_simp ctxt pat
   205   | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat;
   205   | filter_crit ctxt _ (Pattern pat) = filter_pattern ctxt pat;
   206 
   206 
   207 fun opt_not x = if isSome x then NONE else SOME (0, 0);
   207 fun opt_not x = if is_some x then NONE else SOME (0, 0);
   208 
   208 
   209 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y : int)
   209 fun opt_add (SOME (a, x)) (SOME (b, y)) = SOME (Int.max (a, b), x + y : int)
   210  |  opt_add _ _ = NONE;
   210  |  opt_add _ _ = NONE;
   211 
   211 
   212 in
   212 in