equal
deleted
inserted
replaced
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 |