src/Pure/Proof/extraction.ML
changeset 24707 dfeb98f84e93
parent 24624 b8383b1bbae3
child 24712 64ed05609568
equal deleted inserted replaced
24706:c58547ff329b 24707:dfeb98f84e93
   211 );
   211 );
   212 
   212 
   213 fun read_condeq thy =
   213 fun read_condeq thy =
   214   let val thy' = add_syntax thy
   214   let val thy' = add_syntax thy
   215   in fn s =>
   215   in fn s =>
   216     let val t = Logic.varify (Sign.read_prop thy' s)
   216     let val t = Logic.varify (Syntax.read_prop_global thy' s)
   217     in (map Logic.dest_equals (Logic.strip_imp_prems t),
   217     in (map Logic.dest_equals (Logic.strip_imp_prems t),
   218       Logic.dest_equals (Logic.strip_imp_concl t))
   218       Logic.dest_equals (Logic.strip_imp_concl t))
   219     end handle TERM _ => error ("Not a (conditional) meta equality:\n" ^ s)
   219     end handle TERM _ => error ("Not a (conditional) meta equality:\n" ^ s)
   220   end;
   220   end;
   221 
   221