src/HOLCF/IOA/meta_theory/TLS.ML
author mueller
Thu, 26 Nov 1998 16:37:56 +0100
changeset 5976 44290b71a85f
parent 5677 4feffde494cf
child 6161 bc2a76ce1ea3
permissions -rw-r--r--
tuning to assimiliate it with PhD;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     1
(*  Title:      HOLCF/IOA/meta_theory/TLS.ML
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     2
    ID:         $Id$
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     3
    Author:     Olaf M"uller
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     4
    Copyright   1997  TU Muenchen
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     5
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     6
Temporal Logic of Steps -- tailored for I/O automata
5976
44290b71a85f tuning to assimiliate it with PhD;
mueller
parents: 5677
diff changeset
     7
*)    
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     8
4815
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
     9
(* global changes to simpset() and claset(), repeated from Traces.ML *)
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
    10
Delsimps (ex_simps @ all_simps);
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
    11
Delsimps [split_paired_Ex];
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
    12
Addsimps [Let_def];
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
    13
claset_ref() := claset() delSWrapper "split_all_tac";
b8a32ef742d9 removed split_all_tac from claset() globally within IOA
oheimb
parents: 4577
diff changeset
    14
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    15
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    16
(* ---------------------------------------------------------------- *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    17
(*                                 ex2seqC                          *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    18
(* ---------------------------------------------------------------- *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    19
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    20
Goal "ex2seqC  = (LAM ex. (%s. case ex of \
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    21
\      nil =>  (s,None,s)>>nil   \
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    22
\    | x##xs => (flift1 (%pr. \
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    23
\                (s,Some (fst pr), snd pr)>> (ex2seqC`xs) (snd pr))  \
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    24
\                `x)  \
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    25
\      ))";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    26
by (rtac trans 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    27
by (rtac fix_eq2 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    28
by (rtac ex2seqC_def 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    29
by (rtac beta_cfun 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    30
by (simp_tac (simpset() addsimps [flift1_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    31
qed"ex2seqC_unfold";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    32
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    33
Goal "(ex2seqC `UU) s=UU";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    34
by (stac ex2seqC_unfold 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    35
by (Simp_tac 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    36
qed"ex2seqC_UU";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    37
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    38
Goal "(ex2seqC `nil) s = (s,None,s)>>nil";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    39
by (stac ex2seqC_unfold 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    40
by (Simp_tac 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    41
qed"ex2seqC_nil";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    42
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    43
Goal "(ex2seqC `((a,t)>>xs)) s = \
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    44
\          (s,Some a,t)>> ((ex2seqC`xs) t)";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    45
by (rtac trans 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    46
by (stac ex2seqC_unfold 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    47
by (asm_full_simp_tac (simpset() addsimps [Cons_def,flift1_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    48
by (asm_full_simp_tac (simpset() addsimps [Cons_def,flift1_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    49
qed"ex2seqC_cons";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    50
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    51
Addsimps [ex2seqC_UU,ex2seqC_nil,ex2seqC_cons];
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    52
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    53
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    54
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    55
Addsimps [mkfin_UU,mkfin_nil,mkfin_cons];
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    56
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    57
Goal "ex2seq (s, UU) = (s,None,s)>>nil";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    58
by (simp_tac (simpset() addsimps [ex2seq_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    59
qed"ex2seq_UU";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    60
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    61
Goal "ex2seq (s, nil) = (s,None,s)>>nil";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    62
by (simp_tac (simpset() addsimps [ex2seq_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    63
qed"ex2seq_nil";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    64
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    65
Goal "ex2seq (s, (a,t)>>ex) = (s,Some a,t) >> ex2seq (t, ex)";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    66
by (simp_tac (simpset() addsimps [ex2seq_def]) 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    67
qed"ex2seq_cons";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    68
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    69
Delsimps [ex2seqC_UU,ex2seqC_nil,ex2seqC_cons]; 
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    70
Addsimps [ex2seq_UU,ex2seq_nil, ex2seq_cons];  
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    71
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    72
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    73
Goal "ex2seq exec ~= UU & ex2seq exec ~= nil";
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    74
by (pair_tac "exec" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    75
by (Seq_case_simp_tac "y" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    76
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    77
qed"ex2seq_nUUnnil";
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    78
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    79
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    80
(* ----------------------------------------------------------- *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    81
(*           Interface TL -- TLS                               *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    82
(* ---------------------------------------------------------- *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    83
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    84
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    85
(* uses the fact that in executions states overlap, which is lost in 
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    86
   after the translation via ex2seq !! *)
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    87
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    88
Goalw [Init_def,Next_def,temp_sat_def,satisfies_def,IMPLIES_def,AND_def]
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    89
 "!! A. [| ! s a t. (P s) & s-a--A-> t --> (Q t) |]\
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    90
\  ==> ex |== (Init (%(s,a,t). P s) .& Init (%(s,a,t). s -a--A-> t) \
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    91
\             .--> (Next (Init (%(s,a,t).Q s))))";
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    92
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    93
by (clarify_tac set_cs 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    94
by (asm_full_simp_tac (simpset() setloop split_tac [expand_if]) 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    95
(* TL = UU *)
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    96
br conjI 1;
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    97
by (pair_tac "ex" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    98
by (Seq_case_simp_tac "y" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
    99
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   100
by (Seq_case_simp_tac "s" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   101
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   102
(* TL = nil *)
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   103
br conjI 1;
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
   104
by (pair_tac "ex" 1);
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
   105
by (Seq_case_simp_tac "y" 1);
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   106
by (asm_full_simp_tac (simpset() addsimps [unlift_def])1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   107
by (Fast_tac 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   108
by (asm_full_simp_tac (simpset() addsimps [unlift_def])1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   109
by (Fast_tac 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   110
by (asm_full_simp_tac (simpset() addsimps [unlift_def])1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   111
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   112
by (Seq_case_simp_tac "s" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   113
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   114
(* TL =cons *)
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   115
by (asm_full_simp_tac (simpset() addsimps [unlift_def])1);
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
   116
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   117
by (pair_tac "ex" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   118
by (Seq_case_simp_tac "y" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   119
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   120
by (Seq_case_simp_tac "s" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   121
 by (Fast_tac 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   122
 by (Fast_tac 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   123
by (pair_tac "a" 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   124
 by (Fast_tac 1);
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 5068
diff changeset
   125
qed"TL_TLS";