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.
theory Defs imports Main begin fun rev :: "'a list => 'a list" where "rev [] = []" | "rev (x # xs) = rev xs @ [x]" end
theory Submission imports Defs begin lemma rev_append: "rev (xs @ ys) = rev ys @ rev xs" sorry lemma doublerev: "rev (rev xs) = xs" sorry end
theory Check imports Submission begin lemma "rev (rev xs) = xs" by (rule Submission.doublerev) end
theory Defs imports Main begin fun rev :: "'a list => 'a list" where "rev [] = []" | "rev (x # xs) = rev xs @ [x]" end
theory Submission imports Defs begin lemma rev_append: "rev (xs @ ys) = rev ys @ rev xs" sorry lemma doublerev: "rev (rev xs) = xs" sorry end
theory Check imports Submission begin lemma "rev (rev xs) = xs" by (rule Submission.doublerev) end
theory Defs imports Main begin fun rev :: "'a list => 'a list" where "rev [] = []" | "rev (x # xs) = rev xs @ [x]" end
theory Submission imports Defs begin lemma rev_append: "rev (xs @ ys) = rev ys @ rev xs" sorry lemma doublerev: "rev (rev xs) = xs" sorry end
theory Check imports Submission begin lemma "rev (rev xs) = xs" by (rule Submission.doublerev) end