src/HOLCF/IOA/meta_theory/Pred.thy
author wenzelm
Sat, 01 Dec 2001 18:52:32 +0100
changeset 12338 de0f4a63baa5
parent 12218 6597093b77e7
child 14565 c6dc17aab88a
permissions -rw-r--r--
renamed class "term" to "type" (actually "HOL.type");
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5976
44290b71a85f tuning to assimiliate it with PhD;
mueller
parents: 4559
diff changeset
     1
(*  Title:      HOLCF/IOA/meta_theory/Pred.thy
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
     2
    ID:         $Id$
12218
wenzelm
parents: 12114
diff changeset
     3
    Author:     Olaf Müller
wenzelm
parents: 12114
diff changeset
     4
    License:    GPL (GNU GENERAL PUBLIC LICENSE)
4559
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
Logical Connectives lifted to predicates.
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
	       
7661
8c3190b173aa depend on Main;
wenzelm
parents: 6340
diff changeset
     9
Pred = Main +
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    10
12338
de0f4a63baa5 renamed class "term" to "type" (actually "HOL.type");
wenzelm
parents: 12218
diff changeset
    11
default type
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    12
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    13
types
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    14
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    15
'a predicate      = "'a => bool"
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
consts
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
satisfies    ::"'a  => 'a predicate => bool"    ("_ |= _" [100,9] 8)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    20
valid        ::"'a predicate => 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
NOT          ::"'a predicate => 'a predicate"  (".~ _" [40] 40)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    23
AND          ::"'a predicate => 'a predicate => 'a predicate"    (infixr ".&" 35)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    24
OR           ::"'a predicate => 'a predicate => 'a predicate"    (infixr ".|" 30)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    25
IMPLIES      ::"'a predicate => 'a predicate => 'a predicate"    (infixr ".-->" 25)
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
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    28
syntax ("" output)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    29
  "NOT"     ::"'a predicate => 'a predicate" ("~ _" [40] 40)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    30
  "AND"     ::"'a predicate => 'a predicate => 'a predicate"    (infixr "&" 35)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    31
  "OR"      ::"'a predicate => 'a predicate => 'a predicate"    (infixr "|" 30)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    32
  "IMPLIES" ::"'a predicate => 'a predicate => 'a predicate"    (infixr "-->" 25)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    33
12114
a8e860c86252 eliminated old "symbols" syntax, use "xsymbols" instead;
wenzelm
parents: 7661
diff changeset
    34
syntax (xsymbols output)
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    35
  "NOT"    ::"'a predicate => 'a predicate" ("\\<not> _" [40] 40)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    36
  "AND"    ::"'a predicate => 'a predicate => 'a predicate"    (infixr "\\<and>" 35)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    37
  "OR"     ::"'a predicate => 'a predicate => 'a predicate"    (infixr "\\<or>" 30)
12114
a8e860c86252 eliminated old "symbols" syntax, use "xsymbols" instead;
wenzelm
parents: 7661
diff changeset
    38
  "IMPLIES" ::"'a predicate => 'a predicate => 'a predicate"    (infixr "\\<longrightarrow>" 25)
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    39
12114
a8e860c86252 eliminated old "symbols" syntax, use "xsymbols" instead;
wenzelm
parents: 7661
diff changeset
    40
syntax (xsymbols)
4559
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    41
  "satisfies"  ::"'a => 'a predicate => bool"    ("_ \\<Turnstile> _" [100,9] 8)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    42
6340
7d5cbd5819a0 HTML output;
wenzelm
parents: 5976
diff changeset
    43
syntax (HTML output)
7d5cbd5819a0 HTML output;
wenzelm
parents: 5976
diff changeset
    44
  "NOT"    ::"'a predicate => 'a predicate" ("\\<not> _" [40] 40)
7d5cbd5819a0 HTML output;
wenzelm
parents: 5976
diff changeset
    45
4559
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
defs
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    48
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    49
satisfies_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    50
   "s |= P  == P s" 
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    51
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    52
(* priority einfuegen, da clash mit |=, wenn graphisches Symbol *)
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    53
valid_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    54
   "valid P == (! s. (s |= 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
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    57
NOT_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    58
  "NOT P s ==  ~ (P s)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    59
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    60
AND_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    61
  "(P .& Q) s == (P s) & (Q s)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    62
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
OR_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    65
  "(P .| Q) s ==  (P s) | (Q s)"
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
IMPLIES_def
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    68
  "(P .--> Q) s == (P s) --> (Q s)"
8e604d885b54 added files containing temproal logic and abstraction;
mueller
parents:
diff changeset
    69
7661
8c3190b173aa depend on Main;
wenzelm
parents: 6340
diff changeset
    70
end