diff -r 34d01e9a772e -r 7d9c0ed02b56 Valid_prop.thy --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Valid_prop.thy Fri May 03 08:20:21 2013 +0100 @@ -0,0 +1,33 @@ +theory Valid_prop +imports Main Flask Flask_type My_list_prefix +begin + +context flask begin + +lemma vd_cons'[rule_format]: "valid s' \ e # s = s' \ valid s" +by (erule valid.induct, auto) + +lemma vd_cons: "valid (e # s) \ valid s" +by (simp only:vd_cons') + +lemma vd_appd: " valid (\' @ \) \ valid \" +apply (induct \') +by (auto simp:vd_cons) + +lemma vd_preceq: "\\' \ \; valid \\ \ valid \'" +apply (erule no_juniorE) +by (simp only:vd_appd) + +lemma vd_prec: "\\' \ \; valid \\ \ valid \'" +apply (drule is_ancestor_no_junior) +by (simp only:vd_preceq) + +lemma vt_grant_os: "valid (e # \) \ os_grant \ e" +by (erule valid.cases, simp+) + +lemma vt_grant: "valid (e # \) \ grant \ e" +by (erule valid.cases, simp+) + +end + +end \ No newline at end of file