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 2_1

This is the task corresponding to homework 2 Bonus exercise 1.

Resources

Download Files

Definitions File

theory Defs
  imports Main
begin


consts denc :: "int \<Rightarrow> int list \<Rightarrow> int list"

consts ddec :: "int \<Rightarrow> int list \<Rightarrow> int list"


end

Template File

theory Submission
  imports Defs
begin

fun denc :: "int \<Rightarrow> int list \<Rightarrow> int list"  where
  "denc _ = undefined"

fun ddec :: "int \<Rightarrow> int list \<Rightarrow> int list"  where
  "ddec _ = undefined"

theorem denc_enc_id: "ddec 0 (denc 0 l) = l"
  sorry

end

Check File

theory Check
  imports Submission
begin

theorem denc_enc_id: "ddec 0 (denc 0 l) = l"
  by (rule Submission.denc_enc_id)

end

Terms and Conditions