Cookies disclaimer

I agree Our site saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing our website without changing the browser settings you grant us permission to store that information on your device.

Homework 12.2

Homework 12.2

Resources

Download Files

Definitions File

theory Defs
  imports "HOL-IMP.Compiler"
begin

end

Template File

theory Submission
  imports Defs
begin

definition cnv_to_abs :: "instr list \<Rightarrow> instr list" where
  "cnv_to_abs P = undefined"

abbreviation 
  exec_abs :: "instr list \<Rightarrow> config \<Rightarrow> config \<Rightarrow> bool" ("(_/ \<turnstile>\<^sub>a (_ \<rightarrow>*/ _))" 50)
where
  "exec_abs P _ _ \<equiv> False"

theorem cnv_to_abs_correct: "cnv_to_abs P \<turnstile>\<^sub>a c \<rightarrow>* c' \<longleftrightarrow> P \<turnstile> c \<rightarrow>* c'"
  sorry

definition cnv_to_rel :: "instr list \<Rightarrow> instr list" where
  "cnv_to_rel P = undefined"

theorem cnv_to_rel_correct:
  "P \<turnstile>\<^sub>a c \<rightarrow>* c' \<longleftrightarrow> cnv_to_rel P \<turnstile> c \<rightarrow>* c'"
  sorry

end

Check File

theory Check
  imports Submission
begin

theorem cnv_to_abs_correct: "cnv_to_abs P \<turnstile>\<^sub>a c \<rightarrow>* c' \<longleftrightarrow> P \<turnstile> c \<rightarrow>* c'"
  by (rule Submission.cnv_to_abs_correct)

theorem cnv_to_rel_correct: "P \<turnstile>\<^sub>a c \<rightarrow>* c' \<longleftrightarrow> cnv_to_rel P \<turnstile> c \<rightarrow>* c'"
  by (rule Submission.cnv_to_rel_correct)

end

Terms and Conditions