author | haftmann |
Mon, 13 Nov 2006 22:31:23 +0100 | |
changeset 21348 | 74c1da5d44be |
parent 17481 | 75166ebb619b |
child 21426 | 87ac12bed1ab |
permissions | -rw-r--r-- |
17481 | 1 |
(* Title: Sequents/Modal0.thy |
2073
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
2 |
ID: $Id$ |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
3 |
Author: Martin Coen |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
4 |
Copyright 1991 University of Cambridge |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
5 |
*) |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
6 |
|
17481 | 7 |
theory Modal0 |
8 |
imports LK0 |
|
9 |
uses "modal.ML" |
|
10 |
begin |
|
2073
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
11 |
|
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
12 |
consts |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
13 |
box :: "o=>o" ("[]_" [50] 50) |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
14 |
dia :: "o=>o" ("<>_" [50] 50) |
17481 | 15 |
"--<" :: "[o,o]=>o" (infixr 25) |
16 |
">-<" :: "[o,o]=>o" (infixr 25) |
|
17 |
Lstar :: "two_seqi" |
|
18 |
Rstar :: "two_seqi" |
|
14765 | 19 |
|
20 |
syntax |
|
2073
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
21 |
"@Lstar" :: "two_seqe" ("(_)|L>(_)" [6,6] 5) |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
22 |
"@Rstar" :: "two_seqe" ("(_)|R>(_)" [6,6] 5) |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
23 |
|
17481 | 24 |
ML {* |
2073
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
25 |
val Lstar = "Lstar"; |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
26 |
val Rstar = "Rstar"; |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
27 |
val SLstar = "@Lstar"; |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
28 |
val SRstar = "@Rstar"; |
fb0655539d05
New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff
changeset
|
29 |
|
17481 | 30 |
fun star_tr c [s1,s2] = Const(c,dummyT)$ seq_tr s1$ seq_tr s2; |
31 |
fun star_tr' c [s1,s2] = Const(c,dummyT) $ seq_tr' s1 $ seq_tr' s2; |
|
32 |
*} |
|
33 |
||
34 |
parse_translation {* [(SLstar,star_tr Lstar), (SRstar,star_tr Rstar)] *} |
|
35 |
print_translation {* [(Lstar,star_tr' SLstar), (Rstar,star_tr' SRstar)] *} |
|
36 |
||
37 |
defs |
|
38 |
strimp_def: "P --< Q == [](P --> Q)" |
|
39 |
streqv_def: "P >-< Q == (P --< Q) & (Q --< P)" |
|
40 |
||
41 |
ML {* use_legacy_bindings (the_context ()) *} |
|
42 |
||
43 |
end |