equal
deleted
inserted
replaced
389 |> prep_statement attrib prep_stmt elems raw_concl; |
389 |> prep_statement attrib prep_stmt elems raw_concl; |
390 val atts = more_atts @ map attrib raw_atts; |
390 val atts = more_atts @ map attrib raw_atts; |
391 |
391 |
392 fun after_qed' results goal_ctxt' = |
392 fun after_qed' results goal_ctxt' = |
393 let |
393 let |
394 val results' = burrow (map Goal.norm_result o Proof_Context.export goal_ctxt' lthy) results; |
394 val results' = |
|
395 burrow (map (Goal.norm_result lthy) o Proof_Context.export goal_ctxt' lthy) results; |
395 val (res, lthy') = |
396 val (res, lthy') = |
396 if forall (Attrib.is_empty_binding o fst) stmt then (map (pair "") results', lthy) |
397 if forall (Attrib.is_empty_binding o fst) stmt then (map (pair "") results', lthy) |
397 else |
398 else |
398 Local_Theory.notes_kind kind |
399 Local_Theory.notes_kind kind |
399 (map2 (fn (b, _) => fn ths => (b, [(ths, [])])) stmt results') lthy; |
400 (map2 (fn (b, _) => fn ths => (b, [(ths, [])])) stmt results') lthy; |