src/HOL/Tools/metis_tools.ML
changeset 25724 31e7bd574eb9
parent 25713 1c45623e0edf
child 25761 466e714de2fc
equal deleted inserted replaced
25723:80c06e4d4db6 25724:31e7bd574eb9
   555                     else foldl (add_thm false ctxt) lmap (thEQ @ thS @ thC @ thB @ thK @ thI)
   555                     else foldl (add_thm false ctxt) lmap (thEQ @ thS @ thC @ thB @ thK @ thI)
   556     in
   556     in
   557         add_type_thm (type_ext thy (map prop_of (cls @ ths))) lmap'
   557         add_type_thm (type_ext thy (map prop_of (cls @ ths))) lmap'
   558     end;
   558     end;
   559 
   559 
   560   fun refute cls = NAMED_CRITICAL "metis" (fn () =>
   560   fun refute cls =
   561       Metis.Resolution.loop (Metis.Resolution.new Metis.Resolution.default cls));
   561       Metis.Resolution.loop (Metis.Resolution.new Metis.Resolution.default cls);
   562 
   562 
   563   fun is_false t = t aconv (HOLogic.mk_Trueprop HOLogic.false_const);
   563   fun is_false t = t aconv (HOLogic.mk_Trueprop HOLogic.false_const);
   564 
   564 
   565   fun common_thm ths1 ths2 = exists (member Thm.eq_thm ths1) (map Meson.make_meta_clause ths2);
   565   fun common_thm ths1 ths2 = exists (member Thm.eq_thm ths1) (map Meson.make_meta_clause ths2);
   566 
   566