src/Pure/context.ML
changeset 19815 4820c3d52548
parent 19678 d1a15431de34
child 20297 a9a917b356af
equal deleted inserted replaced
19814:faa698d46686 19815:4820c3d52548
   516 fun data_of_proof (Proof (_, data)) = data;
   516 fun data_of_proof (Proof (_, data)) = data;
   517 fun map_prf f (Proof (thy_ref, data)) = Proof (thy_ref, f data);
   517 fun map_prf f (Proof (thy_ref, data)) = Proof (thy_ref, f data);
   518 
   518 
   519 fun transfer_proof thy' (prf as Proof (thy_ref, data)) =
   519 fun transfer_proof thy' (prf as Proof (thy_ref, data)) =
   520   if not (subthy (deref thy_ref, thy')) then
   520   if not (subthy (deref thy_ref, thy')) then
   521     error "transfer proof context: no a super theory"
   521     error "transfer proof context: not a super theory"
   522   else Proof (self_ref thy', data);
   522   else Proof (self_ref thy', data);
   523 
   523 
   524 
   524 
   525 (* proof data kinds *)
   525 (* proof data kinds *)
   526 
   526