Theory GeneratedCode
chapter ‹Code extraction for interpreters and compilers›
theory GeneratedCode
imports HaltingProblems_K_H
Abacus_Hoare
"HOL-Library.Code_Binary_Nat"
begin
fun
dummy_cellId :: "cell ⇒ cell"
where
"dummy_cellId Oc = Oc" |
"dummy_cellId Bk = Bk"
fun
dummy_abc_inst_Id :: " abc_inst ⇒ bool"
where
"dummy_abc_inst_Id (Inc n) = True" |
"dummy_abc_inst_Id (Dec n s) = True" |
"dummy_abc_inst_Id (Goto n) = True"
fun tape_of_nat_imp :: "nat ⇒ cell list"
where
"tape_of_nat_imp n = <n>"
fun tape_of_nat_list_imp :: "nat list ⇒ cell list"
where
"tape_of_nat_list_imp ns = <ns>"
export_code dummy_cellId
step steps
is_final
mk_composable0 shift adjust seq_tm
tape_of_nat_list_imp tape_of_nat_imp
tm_semi_id_eq0 tm_semi_id_gt0
tm_onestroke
tm_copy_begin_orig tm_copy_loop_orig tm_copy_end_new
tm_weak_copy
tm_skip_first_arg tm_erase_right_then_dblBk_left
tm_check_for_one_arg
tm_strong_copy
dummy_abc_inst_Id
abc_step_l abc_steps_l
abc_lm_v abc_lm_s abc_fetch
abc_final abc_notfinal abc_out_of_prog
layout_of start_of
tinc tdec tgoto ci tpairs_of
tm_of tms_of
mopup_n_tm app_mopup
tm_to_nat_list tm_to_nat
nat_list_to_tm nat_to_tm
num_of_nat num_of_integer
list_encode list_decode prod_encode prod_decode
triangle
in Haskell file "HaskellCode/"
end