# HG changeset patch # User wenzelm # Date 1467653999 -7200 # Node ID edd53ec6f2aa7410ace25f4462018fe75ccef42b # Parent 3c7c9f726cc323f518497b995d4c217397772269 tuned; diff -r 3c7c9f726cc3 -r edd53ec6f2aa src/Pure/Isar/interpretation.ML --- a/src/Pure/Isar/interpretation.ML Mon Jul 04 19:08:54 2016 +0200 +++ b/src/Pure/Isar/interpretation.ML Mon Jul 04 19:39:59 2016 +0200 @@ -160,22 +160,21 @@ fun gen_interpret prep_interpretation expression raw_eqns state = let val _ = Proof.assert_forward_or_chain state; - val ctxt = Proof.context_of state; fun lift_after_qed after_qed witss eqns = Proof.map_context (after_qed witss eqns) #> Proof.reset_facts; fun setup_proof after_qed propss eqns goal_ctxt = Element.witness_local_proof_eqs (lift_after_qed after_qed) "interpret" propss eqns goal_ctxt state; in - generic_interpretation prep_interpretation setup_proof - Attrib.local_notes (Context.proof_map ooo Locale.add_registration) expression raw_eqns ctxt + Proof.context_of state + |> generic_interpretation prep_interpretation setup_proof + Attrib.local_notes (Context.proof_map ooo Locale.add_registration) expression raw_eqns end; in -fun interpret expression = gen_interpret cert_interpretation expression; - -fun interpret_cmd raw_expression = gen_interpret read_interpretation raw_expression; +val interpret = gen_interpret cert_interpretation; +val interpret_cmd = gen_interpret read_interpretation; end;