src/Pure/Isar/specification.ML
changeset 32662 2faf1148c062
parent 32661 f4d179d91af2
child 32786 f1ac4b515af9
equal deleted inserted replaced
32661:f4d179d91af2 32662:2faf1148c062
   207     val ((lhs, (_, th)), lthy2) = lthy
   207     val ((lhs, (_, th)), lthy2) = lthy
   208       |> LocalTheory.define Thm.definitionK
   208       |> LocalTheory.define Thm.definitionK
   209         (var, ((Binding.suffix_name "_raw" name, []), rhs));
   209         (var, ((Binding.suffix_name "_raw" name, []), rhs));
   210     val ((def_name, [th']), lthy3) = lthy2
   210     val ((def_name, [th']), lthy3) = lthy2
   211       |> LocalTheory.note Thm.definitionK
   211       |> LocalTheory.note Thm.definitionK
   212         ((name, Predicate_Compile_Preproc_Const_Defs.add :: Code.add_default_eqn_attrib :: atts),
   212         ((name, Predicate_Compile_Preproc_Const_Defs.add_attrib :: Code.add_default_eqn_attrib :: atts),
   213           [prove lthy2 th]);
   213           [prove lthy2 th]);
   214 
   214 
   215     val lhs' = Morphism.term (LocalTheory.target_morphism lthy3) lhs;
   215     val lhs' = Morphism.term (LocalTheory.target_morphism lthy3) lhs;
   216     val _ =
   216     val _ =
   217       if not do_print then ()
   217       if not do_print then ()