reverted to join_bodies/join_proofs based on fold_body_thms to regain performance (escpecially of HOL-Proofs) -- see also aa9c1e9ef2ce and 4e2abb045eac;
structure ROOT =
struct
structure Codegen =
struct
fun lookup ((k, v) :: xs) l =
(if ((k : string) = l) then SOME v else lookup xs l)
| lookup [] l = NONE;
end; (*struct Codegen*)
end; (*struct ROOT*)