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