src/HOL/TLA/Intensional.thy
author haftmann
Thu, 19 Aug 2010 11:02:14 +0200
changeset 38549 d0385f2764d8
parent 35354 2e8dc3c64430
child 38786 e46e7a9cb622
permissions -rw-r--r--
use antiquotations for remaining unqualified constants in HOL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
     1
(*  Title:      HOL/TLA/Intensional.thy
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
     2
    Author:     Stephan Merz
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
     3
    Copyright:  1998 University of Munich
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
     4
*)
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
     5
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
     6
header {* A framework for "intensional" (possible-world based) logics
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
     7
  on top of HOL, with lifting of constants and functions *}
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
     8
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
     9
theory Intensional
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    10
imports Main
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    11
begin
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    12
35318
e1b61c5fd494 dropped axclass, going back to purely syntactic type classes
haftmann
parents: 35108
diff changeset
    13
classes world
e1b61c5fd494 dropped axclass, going back to purely syntactic type classes
haftmann
parents: 35108
diff changeset
    14
classrel world < type
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    15
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    16
(** abstract syntax **)
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    17
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    18
types
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    19
  ('w,'a) expr = "'w => 'a"               (* intention: 'w::world, 'a::type *)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    20
  'w form = "('w, bool) expr"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    21
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    22
consts
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    23
  Valid    :: "('w::world) form => bool"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    24
  const    :: "'a => ('w::world, 'a) expr"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    25
  lift     :: "['a => 'b, ('w::world, 'a) expr] => ('w,'b) expr"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    26
  lift2    :: "['a => 'b => 'c, ('w::world,'a) expr, ('w,'b) expr] => ('w,'c) expr"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    27
  lift3    :: "['a => 'b => 'c => 'd, ('w::world,'a) expr, ('w,'b) expr, ('w,'c) expr] => ('w,'d) expr"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    28
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    29
  (* "Rigid" quantification (logic level) *)
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    30
  RAll     :: "('a => ('w::world) form) => 'w form"       (binder "Rall " 10)
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    31
  REx      :: "('a => ('w::world) form) => 'w form"       (binder "Rex " 10)
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    32
  REx1     :: "('a => ('w::world) form) => 'w form"       (binder "Rex! " 10)
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    33
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    34
(** concrete syntax **)
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    35
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    36
nonterminals
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    37
  lift
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    38
  liftargs
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    39
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    40
syntax
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    41
  ""            :: "id => lift"                          ("_")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    42
  ""            :: "longid => lift"                      ("_")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    43
  ""            :: "var => lift"                         ("_")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    44
  "_applC"      :: "[lift, cargs] => lift"               ("(1_/ _)" [1000, 1000] 999)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    45
  ""            :: "lift => lift"                        ("'(_')")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    46
  "_lambda"     :: "[idts, 'a] => lift"                  ("(3%_./ _)" [0, 3] 3)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    47
  "_constrain"  :: "[lift, type] => lift"                ("(_::_)" [4, 0] 3)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    48
  ""            :: "lift => liftargs"                    ("_")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    49
  "_liftargs"   :: "[lift, liftargs] => liftargs"        ("_,/ _")
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    50
  "_Valid"      :: "lift => bool"                        ("(|- _)" 5)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    51
  "_holdsAt"    :: "['a, lift] => bool"                  ("(_ |= _)" [100,10] 10)
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    52
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    53
  (* Syntax for lifted expressions outside the scope of |- or |= *)
35354
2e8dc3c64430 observe standard convention for syntax consts;
wenzelm
parents: 35318
diff changeset
    54
  "_LIFT"       :: "lift => 'a"                          ("LIFT _")
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    55
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    56
  (* generic syntax for lifted constants and functions *)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    57
  "_const"      :: "'a => lift"                          ("(#_)" [1000] 999)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    58
  "_lift"       :: "['a, lift] => lift"                  ("(_<_>)" [1000] 999)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    59
  "_lift2"      :: "['a, lift, lift] => lift"            ("(_<_,/ _>)" [1000] 999)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    60
  "_lift3"      :: "['a, lift, lift, lift] => lift"      ("(_<_,/ _,/ _>)" [1000] 999)
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    61
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    62
  (* concrete syntax for common infix functions: reuse same symbol *)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    63
  "_liftEqu"    :: "[lift, lift] => lift"                ("(_ =/ _)" [50,51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    64
  "_liftNeq"    :: "[lift, lift] => lift"                ("(_ ~=/ _)" [50,51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    65
  "_liftNot"    :: "lift => lift"                        ("(~ _)" [40] 40)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    66
  "_liftAnd"    :: "[lift, lift] => lift"                ("(_ &/ _)" [36,35] 35)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    67
  "_liftOr"     :: "[lift, lift] => lift"                ("(_ |/ _)" [31,30] 30)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    68
  "_liftImp"    :: "[lift, lift] => lift"                ("(_ -->/ _)" [26,25] 25)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    69
  "_liftIf"     :: "[lift, lift, lift] => lift"          ("(if (_)/ then (_)/ else (_))" 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    70
  "_liftPlus"   :: "[lift, lift] => lift"                ("(_ +/ _)" [66,65] 65)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    71
  "_liftMinus"  :: "[lift, lift] => lift"                ("(_ -/ _)" [66,65] 65)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    72
  "_liftTimes"  :: "[lift, lift] => lift"                ("(_ */ _)" [71,70] 70)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    73
  "_liftDiv"    :: "[lift, lift] => lift"                ("(_ div _)" [71,70] 70)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    74
  "_liftMod"    :: "[lift, lift] => lift"                ("(_ mod _)" [71,70] 70)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    75
  "_liftLess"   :: "[lift, lift] => lift"                ("(_/ < _)"  [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    76
  "_liftLeq"    :: "[lift, lift] => lift"                ("(_/ <= _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    77
  "_liftMem"    :: "[lift, lift] => lift"                ("(_/ : _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    78
  "_liftNotMem" :: "[lift, lift] => lift"                ("(_/ ~: _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    79
  "_liftFinset" :: "liftargs => lift"                    ("{(_)}")
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    80
  (** TODO: syntax for lifted collection / comprehension **)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    81
  "_liftPair"   :: "[lift,liftargs] => lift"                   ("(1'(_,/ _'))")
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    82
  (* infix syntax for list operations *)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    83
  "_liftCons" :: "[lift, lift] => lift"                  ("(_ #/ _)" [65,66] 65)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    84
  "_liftApp"  :: "[lift, lift] => lift"                  ("(_ @/ _)" [65,66] 65)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    85
  "_liftList" :: "liftargs => lift"                      ("[(_)]")
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    86
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
    87
  (* Rigid quantification (syntax level) *)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    88
  "_ARAll"  :: "[idts, lift] => lift"                    ("(3! _./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    89
  "_AREx"   :: "[idts, lift] => lift"                    ("(3? _./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    90
  "_AREx1"  :: "[idts, lift] => lift"                    ("(3?! _./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    91
  "_RAll" :: "[idts, lift] => lift"                      ("(3ALL _./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    92
  "_REx"  :: "[idts, lift] => lift"                      ("(3EX _./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
    93
  "_REx1" :: "[idts, lift] => lift"                      ("(3EX! _./ _)" [0, 10] 10)
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    94
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
    95
translations
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
    96
  "_const"        == "CONST const"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
    97
  "_lift"         == "CONST lift"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
    98
  "_lift2"        == "CONST lift2"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
    99
  "_lift3"        == "CONST lift3"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   100
  "_Valid"        == "CONST Valid"
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   101
  "_RAll x A"     == "Rall x. A"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   102
  "_REx x  A"     == "Rex x. A"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   103
  "_REx1 x  A"    == "Rex! x. A"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   104
  "_ARAll"        => "_RAll"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   105
  "_AREx"         => "_REx"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   106
  "_AREx1"        => "_REx1"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   107
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   108
  "w |= A"        => "A w"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   109
  "LIFT A"        => "A::_=>_"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   110
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   111
  "_liftEqu"      == "_lift2 (op =)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   112
  "_liftNeq u v"  == "_liftNot (_liftEqu u v)"
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   113
  "_liftNot"      == "_lift (CONST Not)"
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   114
  "_liftAnd"      == "_lift2 (op &)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   115
  "_liftOr"       == "_lift2 (op | )"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   116
  "_liftImp"      == "_lift2 (op -->)"
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   117
  "_liftIf"       == "_lift3 (CONST If)"
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   118
  "_liftPlus"     == "_lift2 (op +)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   119
  "_liftMinus"    == "_lift2 (op -)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   120
  "_liftTimes"    == "_lift2 (op *)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   121
  "_liftDiv"      == "_lift2 (op div)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   122
  "_liftMod"      == "_lift2 (op mod)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   123
  "_liftLess"     == "_lift2 (op <)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   124
  "_liftLeq"      == "_lift2 (op <=)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   125
  "_liftMem"      == "_lift2 (op :)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   126
  "_liftNotMem x xs"   == "_liftNot (_liftMem x xs)"
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   127
  "_liftFinset (_liftargs x xs)"  == "_lift2 (CONST insert) x (_liftFinset xs)"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   128
  "_liftFinset x" == "_lift2 (CONST insert) x (_const {})"
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   129
  "_liftPair x (_liftargs y z)"       == "_liftPair x (_liftPair y z)"
35108
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   130
  "_liftPair"     == "_lift2 (CONST Pair)"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   131
  "_liftCons"     == "CONST lift2 (CONST Cons)"
e384e27c229f modernized syntax/translations;
wenzelm
parents: 31945
diff changeset
   132
  "_liftApp"      == "CONST lift2 (op @)"
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   133
  "_liftList (_liftargs x xs)"  == "_liftCons x (_liftList xs)"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   134
  "_liftList x"   == "_liftCons x (_const [])"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   135
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   136
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   137
6255
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   138
  "w |= ~A"       <= "_liftNot A w"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   139
  "w |= A & B"    <= "_liftAnd A B w"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   140
  "w |= A | B"    <= "_liftOr A B w"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   141
  "w |= A --> B"  <= "_liftImp A B w"
db63752140c7 updated (Stephan Merz);
wenzelm
parents: 3808
diff changeset
   142
  "w |= u = v"    <= "_liftEqu u v w"
9517
f58863b1406a tuned version by Stephan Merz (unbatchified etc.);
wenzelm
parents: 7224
diff changeset
   143
  "w |= ALL x. A"   <= "_RAll x A w"
f58863b1406a tuned version by Stephan Merz (unbatchified etc.);
wenzelm
parents: 7224
diff changeset
   144
  "w |= EX x. A"   <= "_REx x A w"
f58863b1406a tuned version by Stephan Merz (unbatchified etc.);
wenzelm
parents: 7224
diff changeset
   145
  "w |= EX! x. A"  <= "_REx1 x A w"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   146
12114
a8e860c86252 eliminated old "symbols" syntax, use "xsymbols" instead;
wenzelm
parents: 9517
diff changeset
   147
syntax (xsymbols)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   148
  "_Valid"      :: "lift => bool"                        ("(\<turnstile> _)" 5)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   149
  "_holdsAt"    :: "['a, lift] => bool"                  ("(_ \<Turnstile> _)" [100,10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   150
  "_liftNeq"    :: "[lift, lift] => lift"                (infixl "\<noteq>" 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   151
  "_liftNot"    :: "lift => lift"                        ("\<not> _" [40] 40)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   152
  "_liftAnd"    :: "[lift, lift] => lift"                (infixr "\<and>" 35)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   153
  "_liftOr"     :: "[lift, lift] => lift"                (infixr "\<or>" 30)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   154
  "_liftImp"    :: "[lift, lift] => lift"                (infixr "\<longrightarrow>" 25)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   155
  "_RAll"       :: "[idts, lift] => lift"                ("(3\<forall>_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   156
  "_REx"        :: "[idts, lift] => lift"                ("(3\<exists>_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   157
  "_REx1"       :: "[idts, lift] => lift"                ("(3\<exists>!_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   158
  "_liftLeq"    :: "[lift, lift] => lift"                ("(_/ \<le> _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   159
  "_liftMem"    :: "[lift, lift] => lift"                ("(_/ \<in> _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   160
  "_liftNotMem" :: "[lift, lift] => lift"                ("(_/ \<notin> _)" [50, 51] 50)
3808
8489375c6198 symbols syntax;
wenzelm
parents: 3807
diff changeset
   161
6340
7d5cbd5819a0 HTML output;
wenzelm
parents: 6255
diff changeset
   162
syntax (HTML output)
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   163
  "_liftNeq"    :: "[lift, lift] => lift"                (infixl "\<noteq>" 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   164
  "_liftNot"    :: "lift => lift"                        ("\<not> _" [40] 40)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   165
  "_liftAnd"    :: "[lift, lift] => lift"                (infixr "\<and>" 35)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   166
  "_liftOr"     :: "[lift, lift] => lift"                (infixr "\<or>" 30)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   167
  "_RAll"       :: "[idts, lift] => lift"                ("(3\<forall>_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   168
  "_REx"        :: "[idts, lift] => lift"                ("(3\<exists>_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   169
  "_REx1"       :: "[idts, lift] => lift"                ("(3\<exists>!_./ _)" [0, 10] 10)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   170
  "_liftLeq"    :: "[lift, lift] => lift"                ("(_/ \<le> _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   171
  "_liftMem"    :: "[lift, lift] => lift"                ("(_/ \<in> _)" [50, 51] 50)
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   172
  "_liftNotMem" :: "[lift, lift] => lift"                ("(_/ \<notin> _)" [50, 51] 50)
6340
7d5cbd5819a0 HTML output;
wenzelm
parents: 6255
diff changeset
   173
35318
e1b61c5fd494 dropped axclass, going back to purely syntactic type classes
haftmann
parents: 35108
diff changeset
   174
defs
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   175
  Valid_def:   "|- A    ==  ALL w. w |= A"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   176
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   177
  unl_con:     "LIFT #c w  ==  c"
21020
9af9ceb16d58 Adapted to changes in FixedPoint theory.
berghofe
parents: 17309
diff changeset
   178
  unl_lift:    "lift f x w == f (x w)"
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   179
  unl_lift2:   "LIFT f<x, y> w == f (x w) (y w)"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   180
  unl_lift3:   "LIFT f<x, y, z> w == f (x w) (y w) (z w)"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   181
17309
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   182
  unl_Rall:    "w |= ALL x. A x  ==  ALL x. (w |= A x)"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   183
  unl_Rex:     "w |= EX x. A x   ==  EX x. (w |= A x)"
c43ed29bd197 converted to Isar theory format;
wenzelm
parents: 14565
diff changeset
   184
  unl_Rex1:    "w |= EX! x. A x  ==  EX! x. (w |= A x)"
3807
82a99b090d9d A formalization of TLA in HOL -- by Stephan Merz;
wenzelm
parents:
diff changeset
   185
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   186
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   187
subsection {* Lemmas and tactics for "intensional" logics. *}
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   188
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   189
lemmas intensional_rews [simp] =
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   190
  unl_con unl_lift unl_lift2 unl_lift3 unl_Rall unl_Rex unl_Rex1
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   191
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   192
lemma inteq_reflection: "|- x=y  ==>  (x==y)"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   193
  apply (unfold Valid_def unl_lift2)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   194
  apply (rule eq_reflection)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   195
  apply (rule ext)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   196
  apply (erule spec)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   197
  done
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   198
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   199
lemma intI [intro!]: "(!!w. w |= A) ==> |- A"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   200
  apply (unfold Valid_def)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   201
  apply (rule allI)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   202
  apply (erule meta_spec)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   203
  done
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   204
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   205
lemma intD [dest]: "|- A ==> w |= A"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   206
  apply (unfold Valid_def)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   207
  apply (erule spec)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   208
  done
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   209
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   210
(** Lift usual HOL simplifications to "intensional" level. **)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   211
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   212
lemma int_simps:
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   213
  "|- (x=x) = #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   214
  "|- (~#True) = #False"  "|- (~#False) = #True"  "|- (~~ P) = P"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   215
  "|- ((~P) = P) = #False"  "|- (P = (~P)) = #False"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   216
  "|- (P ~= Q) = (P = (~Q))"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   217
  "|- (#True=P) = P"  "|- (P=#True) = P"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   218
  "|- (#True --> P) = P"  "|- (#False --> P) = #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   219
  "|- (P --> #True) = #True"  "|- (P --> P) = #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   220
  "|- (P --> #False) = (~P)"  "|- (P --> ~P) = (~P)"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   221
  "|- (P & #True) = P"  "|- (#True & P) = P"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   222
  "|- (P & #False) = #False"  "|- (#False & P) = #False"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   223
  "|- (P & P) = P"  "|- (P & ~P) = #False"  "|- (~P & P) = #False"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   224
  "|- (P | #True) = #True"  "|- (#True | P) = #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   225
  "|- (P | #False) = P"  "|- (#False | P) = P"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   226
  "|- (P | P) = P"  "|- (P | ~P) = #True"  "|- (~P | P) = #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   227
  "|- (! x. P) = P"  "|- (? x. P) = P"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   228
  "|- (~Q --> ~P) = (P --> Q)"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   229
  "|- (P|Q --> R) = ((P-->R)&(Q-->R))"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   230
  apply (unfold Valid_def intensional_rews)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   231
  apply blast+
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   232
  done
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   233
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   234
declare int_simps [THEN inteq_reflection, simp]
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   235
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   236
lemma TrueW [simp]: "|- #True"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   237
  by (simp add: Valid_def unl_con)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   238
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   239
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   240
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   241
(* ======== Functions to "unlift" intensional implications into HOL rules ====== *)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   242
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   243
ML {*
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   244
(* Basic unlifting introduces a parameter "w" and applies basic rewrites, e.g.
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   245
   |- F = G    becomes   F w = G w
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   246
   |- F --> G  becomes   F w --> G w
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   247
*)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   248
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   249
fun int_unlift th =
24180
9f818139951b tuned ML setup;
wenzelm
parents: 21624
diff changeset
   250
  rewrite_rule @{thms intensional_rews} (th RS @{thm intD} handle THM _ => th);
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   251
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   252
(* Turn  |- F = G  into meta-level rewrite rule  F == G *)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   253
fun int_rewrite th =
24180
9f818139951b tuned ML setup;
wenzelm
parents: 21624
diff changeset
   254
  zero_var_indexes (rewrite_rule @{thms intensional_rews} (th RS @{thm inteq_reflection}))
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   255
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   256
(* flattening turns "-->" into "==>" and eliminates conjunctions in the
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   257
   antecedent. For example,
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   258
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   259
         P & Q --> (R | S --> T)    becomes   [| P; Q; R | S |] ==> T
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   260
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   261
   Flattening can be useful with "intensional" lemmas (after unlifting).
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   262
   Naive resolution with mp and conjI may run away because of higher-order
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   263
   unification, therefore the code is a little awkward.
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   264
*)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   265
fun flatten t =
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   266
  let
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   267
    (* analogous to RS, but using matching instead of resolution *)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   268
    fun matchres tha i thb =
31945
d5f186aa0bed structure Thm: less pervasive names;
wenzelm
parents: 31460
diff changeset
   269
      case Seq.chop 2 (Thm.biresolution true [(false,tha)] i thb) of
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   270
          ([th],_) => th
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   271
        | ([],_)   => raise THM("matchres: no match", i, [tha,thb])
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   272
        |      _   => raise THM("matchres: multiple unifiers", i, [tha,thb])
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   273
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   274
    (* match tha with some premise of thb *)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   275
    fun matchsome tha thb =
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   276
      let fun hmatch 0 = raise THM("matchsome: no match", 0, [tha,thb])
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   277
            | hmatch n = matchres tha n thb handle THM _ => hmatch (n-1)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   278
      in hmatch (nprems_of thb) end
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   279
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   280
    fun hflatten t =
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   281
        case (concl_of t) of
38549
d0385f2764d8 use antiquotations for remaining unqualified constants in HOL
haftmann
parents: 35354
diff changeset
   282
          Const _ $ (Const (@{const_name "op -->"}, _) $ _ $ _) => hflatten (t RS mp)
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   283
        | _ => (hflatten (matchsome conjI t)) handle THM _ => zero_var_indexes t
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   284
  in
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   285
    hflatten t
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   286
  end
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   287
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   288
fun int_use th =
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   289
    case (concl_of th) of
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   290
      Const _ $ (Const ("Intensional.Valid", _) $ _) =>
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   291
              (flatten (int_unlift th) handle THM _ => th)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   292
    | _ => th
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   293
*}
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   294
30528
7173bf123335 simplified attribute setup;
wenzelm
parents: 24180
diff changeset
   295
attribute_setup int_unlift = {* Scan.succeed (Thm.rule_attribute (K int_unlift)) *} ""
7173bf123335 simplified attribute setup;
wenzelm
parents: 24180
diff changeset
   296
attribute_setup int_rewrite = {* Scan.succeed (Thm.rule_attribute (K int_rewrite)) *} ""
7173bf123335 simplified attribute setup;
wenzelm
parents: 24180
diff changeset
   297
attribute_setup flatten = {* Scan.succeed (Thm.rule_attribute (K flatten)) *} ""
7173bf123335 simplified attribute setup;
wenzelm
parents: 24180
diff changeset
   298
attribute_setup int_use = {* Scan.succeed (Thm.rule_attribute (K int_use)) *} ""
21624
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   299
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   300
lemma Not_Rall: "|- (~(! x. F x)) = (? x. ~F x)"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   301
  by (simp add: Valid_def)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   302
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   303
lemma Not_Rex: "|- (~ (? x. F x)) = (! x. ~ F x)"
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   304
  by (simp add: Valid_def)
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   305
6f79647cf536 TLA: converted legacy ML scripts;
wenzelm
parents: 21020
diff changeset
   306
end