thys/Spec.thy
changeset 295 c6ec5f369037
parent 293 1a4e5b94293b
child 311 8b8db9558ecf
equal deleted inserted replaced
294:c1de75d20aa4 295:c6ec5f369037
   161 | "ders (c # s) r = ders s (der c r)"
   161 | "ders (c # s) r = ders s (der c r)"
   162 
   162 
   163 
   163 
   164 lemma nullable_correctness:
   164 lemma nullable_correctness:
   165   shows "nullable r  \<longleftrightarrow> [] \<in> (L r)"
   165   shows "nullable r  \<longleftrightarrow> [] \<in> (L r)"
   166   apply(induct r)
       
   167 by (induct r) (auto simp add: Sequ_def) 
   166 by (induct r) (auto simp add: Sequ_def) 
   168 
   167 
   169 lemma der_correctness:
   168 lemma der_correctness:
   170   shows "L (der c r) = Der c (L r)"
   169   shows "L (der c r) = Der c (L r)"
   171 by (induct r) (simp_all add: nullable_correctness)
   170 by (induct r) (simp_all add: nullable_correctness)