src/Pure/Isar/proof_context.ML
changeset 23922 707639e9497d
parent 23361 df3d21caad2c
child 24012 e48e1b4557c8
equal deleted inserted replaced
23921:947152add153 23922:707639e9497d
   453 
   453 
   454 (* dummy patterns *)
   454 (* dummy patterns *)
   455 
   455 
   456 val prepare_dummies =
   456 val prepare_dummies =
   457   let val next = ref 1 in
   457   let val next = ref 1 in
   458     fn t =>
   458     fn t => CRITICAL (fn () =>
   459       let val (i, u) = Term.replace_dummy_patterns (! next, t)
   459       let val (i, u) = Term.replace_dummy_patterns (! next, t)
   460       in next := i; u end
   460       in next := i; u end)
   461   end;
   461   end;
   462 
   462 
   463 fun reject_dummies t = Term.no_dummy_patterns t
   463 fun reject_dummies t = Term.no_dummy_patterns t
   464   handle TERM _ => error "Illegal dummy pattern(s) in term";
   464   handle TERM _ => error "Illegal dummy pattern(s) in term";
   465 
   465