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.

Big-Step Semantics

This is the task corresponding to exercise 2. Big-Step Semantics.


Download Files

Definitions File

theory Defs
  imports "HOL-IMP.Big_Step"

declare [[names_short]]
declare assign_simp[simp]

consts sim_if :: "vname \<Rightarrow> bexp \<Rightarrow> com \<Rightarrow> com"


Template File

theory Submission
  imports Defs

definition sim_if :: "vname \<Rightarrow> bexp \<Rightarrow> com \<Rightarrow> com" where
  "sim_if _ = undefined"

theorem sim_if_sound:
  assumes step: "(IF b THEN SKIP ELSE c, s) \<Rightarrow> t"
      and zero: "s x = 0" "t x = 0"
    shows "(sim_if x b c, s) \<Rightarrow> t"


Check File

theory Check
  imports Submission

lemma "\<lbrakk>(IF b THEN SKIP ELSE c, s) \<Rightarrow> t; s x = 0; t x = 0\<rbrakk> \<Longrightarrow> (sim_if x b c, s) \<Rightarrow> t"
  by (rule Submission.sim_if_sound)


Terms and Conditions