src/HOLCF/IOA/meta_theory/TL.thy
author wenzelm
Sat, 03 Nov 2001 01:39:17 +0100
changeset 12028 52aa183c15bb
parent 10835 f4745d77e620
child 12114 a8e860c86252
permissions -rw-r--r--
replaced Undef by UU;
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.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
A General Temporal Logic
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
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    10
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
TL = Pred + Sequence +  
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
default term
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
types
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
'a temporal      = 'a Seq predicate
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
 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    21
consts
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    22
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    23
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    24
suffix     :: "'a Seq => 'a Seq => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    25
tsuffix    :: "'a Seq => 'a Seq => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    26
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    27
validT     :: "'a Seq predicate => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    28
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    29
unlift     ::  "'a lift => 'a"
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
Init         ::"'a predicate => 'a temporal"          ("<_>" [0] 1000)
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
Box          ::"'a temporal => 'a temporal"   ("[] (_)" [80] 80)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    34
Diamond      ::"'a temporal => 'a temporal"   ("<> (_)" [80] 80)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    35
Next         ::"'a temporal => 'a temporal"   
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    36
Leadsto      ::"'a temporal => 'a temporal => 'a temporal"  (infixr "~>" 22)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    37
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    38
syntax (symbols)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    39
   "Box"        ::"'a temporal => 'a temporal"   ("\\<box> (_)" [80] 80)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    40
   "Diamond"    ::"'a temporal => 'a temporal"   ("\\<diamond> (_)" [80] 80)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    41
   "Leadsto"    ::"'a temporal => 'a temporal => 'a temporal"  (infixr "\\<leadsto>" 22)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    42
 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    43
defs
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    44
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    45
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    46
unlift_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    47
  "unlift x == (case x of 
12028
52aa183c15bb replaced Undef by UU;
wenzelm
parents: 10835
diff changeset
    48
                 UU   => arbitrary
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    49
               | Def y   => y)"
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
(* this means that for nil and UU the effect is unpredictable *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    52
Init_def
10835
nipkow
parents: 5976
diff changeset
    53
  "Init P s ==  (P (unlift (HD$s)))" 
4559
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
suffix_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    56
  "suffix s2 s == ? s1. (Finite s1  & s = s1 @@ s2)" 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    57
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    58
tsuffix_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    59
  "tsuffix s2 s == s2 ~= nil & s2 ~= UU & suffix s2 s"
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
Box_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    62
  "([] P) s == ! s2. tsuffix s2 s --> P s2"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    63
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    64
Next_def
10835
nipkow
parents: 5976
diff changeset
    65
  "(Next P) s == if (TL$s=UU | TL$s=nil) then (P s) else P (TL$s)"
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    66
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    67
Diamond_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    68
  "<> P == .~ ([] (.~ P))"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    69
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    70
Leadsto_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    71
   "P ~> Q == ([] (P .--> (<> Q)))"  
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    72
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    73
validT_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    74
  "validT P == ! s. s~=UU & s~=nil --> (s |= P)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    75
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    76
end