src/HOLCF/IOA/ex/TrivEx.thy
changeset 40774 0437dbc127b3
parent 40773 6c12f5e24e34
child 40775 ed7a4eadb2f6
     1.1 --- a/src/HOLCF/IOA/ex/TrivEx.thy	Sat Nov 27 14:34:54 2010 -0800
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,72 +0,0 @@
     1.4 -(*  Title:      HOLCF/IOA/TrivEx.thy
     1.5 -    Author:     Olaf Müller
     1.6 -*)
     1.7 -
     1.8 -header {* Trivial Abstraction Example *}
     1.9 -
    1.10 -theory TrivEx
    1.11 -imports Abstraction
    1.12 -begin
    1.13 -
    1.14 -datatype action = INC
    1.15 -
    1.16 -definition
    1.17 -  C_asig :: "action signature" where
    1.18 -  "C_asig = ({},{INC},{})"
    1.19 -definition
    1.20 -  C_trans :: "(action, nat)transition set" where
    1.21 -  "C_trans =
    1.22 -   {tr. let s = fst(tr);
    1.23 -            t = snd(snd(tr))
    1.24 -        in case fst(snd(tr))
    1.25 -        of
    1.26 -        INC       => t = Suc(s)}"
    1.27 -definition
    1.28 -  C_ioa :: "(action, nat)ioa" where
    1.29 -  "C_ioa = (C_asig, {0}, C_trans,{},{})"
    1.30 -
    1.31 -definition
    1.32 -  A_asig :: "action signature" where
    1.33 -  "A_asig = ({},{INC},{})"
    1.34 -definition
    1.35 -  A_trans :: "(action, bool)transition set" where
    1.36 -  "A_trans =
    1.37 -   {tr. let s = fst(tr);
    1.38 -            t = snd(snd(tr))
    1.39 -        in case fst(snd(tr))
    1.40 -        of
    1.41 -        INC       => t = True}"
    1.42 -definition
    1.43 -  A_ioa :: "(action, bool)ioa" where
    1.44 -  "A_ioa = (A_asig, {False}, A_trans,{},{})"
    1.45 -
    1.46 -definition
    1.47 -  h_abs :: "nat => bool" where
    1.48 -  "h_abs n = (n~=0)"
    1.49 -
    1.50 -axiomatization where
    1.51 -  MC_result: "validIOA A_ioa (<>[] <%(b,a,c). b>)"
    1.52 -
    1.53 -lemma h_abs_is_abstraction:
    1.54 -  "is_abstraction h_abs C_ioa A_ioa"
    1.55 -apply (unfold is_abstraction_def)
    1.56 -apply (rule conjI)
    1.57 -txt {* start states *}
    1.58 -apply (simp (no_asm) add: h_abs_def starts_of_def C_ioa_def A_ioa_def)
    1.59 -txt {* step case *}
    1.60 -apply (rule allI)+
    1.61 -apply (rule imp_conj_lemma)
    1.62 -apply (simp (no_asm) add: trans_of_def C_ioa_def A_ioa_def C_trans_def A_trans_def)
    1.63 -apply (induct_tac "a")
    1.64 -apply (simp add: h_abs_def)
    1.65 -done
    1.66 -
    1.67 -lemma TrivEx_abstraction: "validIOA C_ioa (<>[] <%(n,a,m). n~=0>)"
    1.68 -apply (rule AbsRuleT1)
    1.69 -apply (rule h_abs_is_abstraction)
    1.70 -apply (rule MC_result)
    1.71 -apply abstraction
    1.72 -apply (simp add: h_abs_def)
    1.73 -done
    1.74 -
    1.75 -end