src/HOLCF/IOA/meta_theory/TLS.thy
author nipkow
Tue, 09 Jan 2001 15:36:30 +0100
changeset 10835 f4745d77e620
parent 5976 44290b71a85f
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/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
Temporal Logic of Steps -- tailored for I/O automata
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
TLS = IOA + TL + 
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)ioa_temp       = "('a option,'s)transition temporal" 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    17
 ('a,'s)step_pred      = "('a option,'s)transition predicate"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    18
  's state_pred        = "'s 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
consts
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
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    23
option_lift :: "('a => 'b) => 'b => ('a option => 'b)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    24
plift       :: "('a => bool) => ('a option => bool)"
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
temp_sat   :: "('a,'s)execution => ('a,'s)ioa_temp => bool"    (infixr "|==" 22)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    27
xt1        :: "'s predicate => ('a,'s)step_pred"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    28
xt2        :: "'a option predicate => ('a,'s)step_pred"
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
validTE    :: "('a,'s)ioa_temp => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    31
validIOA   :: "('a,'s)ioa => ('a,'s)ioa_temp => bool"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    32
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    33
mkfin      :: "'a Seq => 'a Seq"
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    34
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    35
ex2seq     :: "('a,'s)execution => ('a option,'s)transition Seq"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    36
ex2seqC    :: "('a,'s)pairs -> ('s => ('a option,'s)transition Seq)" 
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
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    39
defs
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    40
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    41
mkfin_def
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    42
  "mkfin s == if Partial s then @t. Finite t & s = t @@ UU
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    43
                           else s"
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    44
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    45
option_lift_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    46
  "option_lift f s y == case y of None => s | Some x => (f x)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    47
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    48
(* plift is used to determine that None action is always false in 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    49
   transition predicates *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    50
plift_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    51
  "plift P == option_lift P False"
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
temp_sat_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    54
  "ex |== P == ((ex2seq ex) |= P)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    55
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    56
xt1_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    57
  "xt1 P tr == P (fst tr)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    58
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    59
xt2_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    60
  "xt2 P tr == P (fst (snd tr))"
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
ex2seq_def
10835
nipkow
parents: 5976
diff changeset
    63
  "ex2seq ex == ((ex2seqC $(mkfin (snd ex))) (fst ex))"
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    64
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    65
ex2seqC_def
10835
nipkow
parents: 5976
diff changeset
    66
  "ex2seqC == (fix$(LAM h ex. (%s. case ex of 
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    67
      nil =>  (s,None,s)>>nil
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    68
    | x##xs => (flift1 (%pr.
10835
nipkow
parents: 5976
diff changeset
    69
                (s,Some (fst pr), snd pr)>> (h$xs) (snd pr)) 
nipkow
parents: 5976
diff changeset
    70
                $x)
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    71
      )))"
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
validTE_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    74
  "validTE P == ! ex. (ex |== 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
validIOA_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    77
  "validIOA A P == ! ex : executions A . (ex |== P)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    78
5976
44290b71a85f tuning to assimiliate it with PhD;
mueller
parents: 5677
diff changeset
    79
44290b71a85f tuning to assimiliate it with PhD;
mueller
parents: 5677
diff changeset
    80
4577
674b0b354feb added thms wrt weakening and strengthening in Abstraction;
mueller
parents: 4559
diff changeset
    81
rules
674b0b354feb added thms wrt weakening and strengthening in Abstraction;
mueller
parents: 4559
diff changeset
    82
5677
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    83
mkfin_UU
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    84
  "mkfin UU = nil"
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    85
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    86
mkfin_nil
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    87
  "mkfin nil =nil"
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    88
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    89
mkfin_cons
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    90
  "(mkfin (a>>s)) = (a>>(mkfin s))"
4feffde494cf another little bug ;-) and minor changes in TLS.*;
mueller
parents: 4577
diff changeset
    91
4577
674b0b354feb added thms wrt weakening and strengthening in Abstraction;
mueller
parents: 4559
diff changeset
    92
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    93
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    94
end
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    95