src/HOLCF/IOA/meta_theory/LiveIOA.thy
author nipkow
Tue, 09 Jan 2001 15:36:30 +0100
changeset 10835 f4745d77e620
parent 4816 64f075872f69
child 12218 6597093b77e7
permissions -rw-r--r--
` -> $
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/LiveIOA.thy
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
Live I/O automata -- specified by temproal formulas
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     7
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     8
*) 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     9
  
4816
64f075872f69 simplification of explicit theory usage and merges
oheimb
parents: 4577
diff changeset
    10
LiveIOA = TLS + 
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    11
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    12
default term
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    13
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    14
types
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
 ('a,'s)live_ioa       = "('a,'s)ioa * ('a,'s)ioa_temp"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    17
 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    18
consts
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    19
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    20
validLIOA   :: "('a,'s)live_ioa => ('a,'s)ioa_temp  => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    21
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    22
WF         :: "('a,'s)ioa => 'a set => ('a,'s)ioa_temp"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    23
SF         :: "('a,'s)ioa => 'a set => ('a,'s)ioa_temp"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    24
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    25
liveexecutions    :: "('a,'s)live_ioa => ('a,'s)execution set"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    26
livetraces        :: "('a,'s)live_ioa => 'a trace set"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    27
live_implements   :: "('a,'s1)live_ioa => ('a,'s2)live_ioa => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    28
is_live_ref_map   :: "('s1 => 's2) => ('a,'s1)live_ioa => ('a,'s2)live_ioa => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    29
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    30
 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    31
defs
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    32
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    33
validLIOA_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    34
  "validLIOA AL P == validIOA (fst AL) ((snd AL) .--> P)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    35
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    36
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    37
WF_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    38
  "WF A acts ==  <> [] <%(s,a,t) . Enabled A acts s> .--> [] <> <xt2 (plift (%a. a : acts))>"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    39
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    40
SF_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    41
  "SF A acts ==  [] <> <%(s,a,t) . Enabled A acts s> .--> [] <> <xt2 (plift (%a. a : acts))>"
4577
674b0b354feb added thms wrt weakening and strengthening in Abstraction;
mueller
parents: 4559
diff changeset
    42
 
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    43
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    44
liveexecutions_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    45
   "liveexecutions AP == {exec. exec : executions (fst AP) & (exec |== (snd AP))}"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    46
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    47
livetraces_def
10835
nipkow
parents: 4816
diff changeset
    48
  "livetraces AP == {mk_trace (fst AP)$(snd ex) | ex. ex:liveexecutions AP}"
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    49
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    50
live_implements_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    51
  "live_implements CL AM == (inp (fst CL) = inp (fst AM)) & 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    52
                            (out (fst CL) = out (fst AM)) &
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    53
                            livetraces CL <= livetraces AM"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    54
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    55
is_live_ref_map_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    56
   "is_live_ref_map f CL AM ==  
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    57
            is_ref_map f (fst CL ) (fst AM) & 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    58
            (! exec : executions (fst CL). (exec |== (snd CL)) --> 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    59
                                           ((corresp_ex (fst AM) f exec) |== (snd AM)))"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    60
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    61
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    62
end