equal
deleted
inserted
replaced
380 let |
380 let |
381 val eqs_t = mk_equations consts |
381 val eqs_t = mk_equations consts |
382 val eqs = map (fn eq => Goal.prove lthy argnames [] eq |
382 val eqs = map (fn eq => Goal.prove lthy argnames [] eq |
383 (fn {context = ctxt, ...} => ALLGOALS (Skip_Proof.cheat_tac ctxt))) eqs_t |
383 (fn {context = ctxt, ...} => ALLGOALS (Skip_Proof.cheat_tac ctxt))) eqs_t |
384 in |
384 in |
385 fold (fn (name, eq) => Local_Theory.note |
385 lthy |
386 ((Binding.qualify true prfx |
386 |> fold_map (fn (name, eq) => Local_Theory.note |
387 (Binding.qualify true name (Binding.name "simps")), |
387 (((Binding.qualify true prfx o Binding.qualify true name) (Binding.name "simps"), []), [eq])) |
388 [Code.add_default_eqn_attrib Code.Equation]), [eq]) #> snd) |
388 (names ~~ eqs) |
389 (names ~~ eqs) lthy |
389 |-> (fn notes => Code.declare_default_eqns (map (rpair true) (maps snd notes))) |
390 end) |
390 end) |
391 |
391 |
392 |
392 |
393 (** ensuring sort constraints **) |
393 (** ensuring sort constraints **) |
394 |
394 |