src/Modal/s43.thy
author wenzelm
Thu Aug 27 20:46:36 1998 +0200 (1998-08-27)
changeset 5400 645f46a24c72
parent 0 a5a9c433f639
permissions -rw-r--r--
made tutorial first;
clasohm@0
     1
(*  Title: 	91/Modal/S43
clasohm@0
     2
    ID:         $Id$
clasohm@0
     3
    Author: 	Martin Coen
clasohm@0
     4
    Copyright   1991  University of Cambridge
clasohm@0
     5
clasohm@0
     6
This implements Rajeev Gore's sequent calculus for S43.
clasohm@0
     7
*)
clasohm@0
     8
clasohm@0
     9
S43 = Modal0 +
clasohm@0
    10
clasohm@0
    11
consts
clasohm@0
    12
  S43pi	:: "[sobj=>sobj, sobj=>sobj, sobj=>sobj,\
clasohm@0
    13
\	     sobj=>sobj, sobj=>sobj, sobj=>sobj] => prop"
clasohm@0
    14
  "@S43pi" :: "[sequence, sequence, sequence, sequence, sequence,\
clasohm@0
    15
\		sequence] => prop" ("S43pi((_);(_);(_);(_);(_);(_))" [] 5)
clasohm@0
    16
clasohm@0
    17
rules
clasohm@0
    18
(* Definition of the star operation using a set of Horn clauses  *)
clasohm@0
    19
(* For system S43: gamma * == {[]P | []P : gamma}                *)
clasohm@0
    20
(*                 delta * == {<>P | <>P : delta}                *)
clasohm@0
    21
clasohm@0
    22
  lstar0         "|L>"
clasohm@0
    23
  lstar1         "$G |L> $H ==> []P, $G |L> []P, $H"
clasohm@0
    24
  lstar2         "$G |L> $H ==>   P, $G |L>      $H"
clasohm@0
    25
  rstar0         "|R>"
clasohm@0
    26
  rstar1         "$G |R> $H ==> <>P, $G |R> <>P, $H"
clasohm@0
    27
  rstar2         "$G |R> $H ==>   P, $G |R>      $H"
clasohm@0
    28
clasohm@0
    29
(* Set of Horn clauses to generate the antecedents for the S43 pi rule       *)
clasohm@0
    30
(* ie                                                                        *)
clasohm@0
    31
(*           S1...Sk,Sk+1...Sk+m                                             *)
clasohm@0
    32
(*     ----------------------------------                                    *)
clasohm@0
    33
(*     <>P1...<>Pk, $G |- $H, []Q1...[]Qm                                    *)
clasohm@0
    34
(*                                                                           *)
clasohm@0
    35
(*  where Si == <>P1...<>Pi-1,<>Pi+1,..<>Pk,Pi, $G * |- $H *, []Q1...[]Qm    *)
clasohm@0
    36
(*    and Sj == <>P1...<>Pk, $G * |- $H *, []Q1...[]Qj-1,[]Qj+1...[]Qm,Qj    *)
clasohm@0
    37
(*    and 1<=i<=k and k<j<=k+m                                               *)
clasohm@0
    38
clasohm@0
    39
  S43pi0         "S43pi $L;; $R;; $Lbox; $Rdia"
clasohm@0
    40
  S43pi1
clasohm@0
    41
   "[| (S43pi <>P,$L';     $L;; $R; $Lbox;$Rdia);   $L',P,$L,$Lbox |- $R,$Rdia |] ==> \
clasohm@0
    42
\       S43pi     $L'; <>P,$L;; $R; $Lbox;$Rdia"
clasohm@0
    43
  S43pi2
clasohm@0
    44
   "[| (S43pi $L';; []P,$R';     $R; $Lbox;$Rdia);  $L',$Lbox |- $R',P,$R,$Rdia |] ==> \
clasohm@0
    45
\       S43pi $L';;     $R'; []P,$R; $Lbox;$Rdia"
clasohm@0
    46
clasohm@0
    47
(* Rules for [] and <> for S43 *)
clasohm@0
    48
clasohm@0
    49
  boxL           "$E, P, $F, []P |- $G ==> $E, []P, $F |- $G"
clasohm@0
    50
  diaR           "$E |- $F, P, $G, <>P ==> $E |- $F, <>P, $G"
clasohm@0
    51
  pi1
clasohm@0
    52
   "[| $L1,<>P,$L2 |L> $Lbox;  $L1,<>P,$L2 |R> $Ldia;  $R |L> $Rbox;  $R |R> $Rdia;  \
clasohm@0
    53
\      S43pi ; $Ldia;; $Rbox; $Lbox; $Rdia |] ==> \
clasohm@0
    54
\   $L1, <>P, $L2 |- $R"
clasohm@0
    55
  pi2
clasohm@0
    56
   "[| $L |L> $Lbox;  $L |R> $Ldia;  $R1,[]P,$R2 |L> $Rbox;  $R1,[]P,$R2 |R> $Rdia;  \
clasohm@0
    57
\      S43pi ; $Ldia;; $Rbox; $Lbox; $Rdia |] ==> \
clasohm@0
    58
\   $L |- $R1, []P, $R2"
clasohm@0
    59
end
clasohm@0
    60
clasohm@0
    61
ML
clasohm@0
    62
clasohm@0
    63
local
clasohm@0
    64
clasohm@0
    65
  val S43pi  = "S43pi";
clasohm@0
    66
  val SS43pi = "@S43pi";
clasohm@0
    67
clasohm@0
    68
  val tr  = LK.seq_tr1;
clasohm@0
    69
  val tr' = LK.seq_tr1';
clasohm@0
    70
clasohm@0
    71
  fun s43pi_tr[s1,s2,s3,s4,s5,s6]=
clasohm@0
    72
	Const(S43pi,dummyT)$tr s1$tr s2$tr s3$tr s4$tr s5$tr s6;
clasohm@0
    73
  fun s43pi_tr'[Abs(_,_,s1),Abs(_,_,s2),Abs(_,_,s3),
clasohm@0
    74
		Abs(_,_,s4),Abs(_,_,s5),Abs(_,_,s6)] =
clasohm@0
    75
        Const(SS43pi,dummyT)$tr' s1$tr' s2$tr' s3$tr' s4$tr' s5$tr' s6;
clasohm@0
    76
in
clasohm@0
    77
val parse_translation = [(SS43pi,s43pi_tr)];
clasohm@0
    78
val print_translation = [(S43pi,s43pi_tr')]
clasohm@0
    79
end