equal
deleted
inserted
replaced
78 ||> (snd o note_theorem ((qualify "cases", []), [cases])) |
78 ||> (snd o note_theorem ((qualify "cases", []), [cases])) |
79 ||> fold_option (snd oo curry note_theorem (qualify "domintros", [])) domintros |
79 ||> fold_option (snd oo curry note_theorem (qualify "domintros", [])) domintros |
80 |
80 |
81 val cdata = FundefCtxData { add_simps=addsmps, psimps=psimps', |
81 val cdata = FundefCtxData { add_simps=addsmps, psimps=psimps', |
82 pinducts=snd pinducts', termination=termination', fs=fs, R=R, defname=defname } |
82 pinducts=snd pinducts', termination=termination', fs=fs, R=R, defname=defname } |
|
83 val _ = Specification.print_consts lthy (K false) (map fst fixes) |
83 in |
84 in |
84 lthy |
85 lthy |
85 |> LocalTheory.declaration (fn phi => add_fundef_data (morph_fundef_data phi cdata)) |
86 |> LocalTheory.declaration (add_fundef_data o morph_fundef_data cdata) |
86 end (* FIXME: Add cases for induct and cases thm *) |
87 end (* FIXME: Add cases for induct and cases thm *) |
87 |
88 |
88 |
89 |
89 fun gen_add_fundef prep fixspec eqnss config flags lthy = |
90 fun gen_add_fundef prep fixspec eqnss config flags lthy = |
90 let |
91 let |