src/HOL/Tools/TFL/post.ML
changeset 24707 dfeb98f84e93
parent 24075 366d4d234814
child 26478 9d1029ce0e13
equal deleted inserted replaced
24706:c58547ff329b 24707:dfeb98f84e93
   243           if strict then derive_init_eqs thy rules eqs
   243           if strict then derive_init_eqs thy rules eqs
   244           else rules
   244           else rules
   245   in (thy, {rules = rules', induct = induct, tcs = tcs}) end;
   245   in (thy, {rules = rules', induct = induct, tcs = tcs}) end;
   246 
   246 
   247 fun define strict thy cs ss congs wfs fid R seqs =
   247 fun define strict thy cs ss congs wfs fid R seqs =
   248   define_i strict thy cs ss congs wfs fid (Sign.read_term thy R) (map (Sign.read_term thy) seqs)
   248   define_i strict thy cs ss congs wfs fid
       
   249       (Syntax.read_term_global thy R) (map (Syntax.read_term_global thy) seqs)
   249     handle U.ERR {mesg,...} => error mesg;
   250     handle U.ERR {mesg,...} => error mesg;
   250 
   251 
   251 
   252 
   252 (*---------------------------------------------------------------------------
   253 (*---------------------------------------------------------------------------
   253  *
   254  *
   270        with assumptions remaining to discharge*)
   271        with assumptions remaining to discharge*)
   271      standard (induction RS (rules RS conjI)))
   272      standard (induction RS (rules RS conjI)))
   272  end
   273  end
   273 
   274 
   274 fun defer thy congs fid seqs =
   275 fun defer thy congs fid seqs =
   275   defer_i thy congs fid (map (Sign.read_term thy) seqs)
   276   defer_i thy congs fid (map (Syntax.read_term_global thy) seqs)
   276     handle U.ERR {mesg,...} => error mesg;
   277     handle U.ERR {mesg,...} => error mesg;
   277 end;
   278 end;
   278 
   279 
   279 end;
   280 end;