src/HOL/Lambda/ParRed.thy
author nipkow
Mon Nov 04 17:23:37 1996 +0100 (1996-11-04)
changeset 2159 e650a3f6f600
parent 1900 c7a869229091
child 3001 8f89a99d2b00
permissions -rw-r--r--
Used nat_trans_tac. New Eta. various smaller changes.
     1 (*  Title:      HOL/Lambda/ParRed.thy
     2     ID:         $Id$
     3     Author:     Tobias Nipkow
     4     Copyright   1995 TU Muenchen
     5 
     6 Parallel reduction and a complete developments function "cd".
     7 *)
     8 
     9 ParRed = Lambda + Commutation +
    10 
    11 consts  par_beta :: "(dB * dB) set"
    12 
    13 syntax  "=>" :: [dB,dB] => bool (infixl 50)
    14 
    15 translations
    16   "s => t" == "(s,t) : par_beta"
    17 
    18 inductive par_beta
    19   intrs
    20     var   "Var n => Var n"
    21     abs   "s => t ==> Abs s => Abs t"
    22     app   "[| s => s'; t => t' |] ==> s @ t => s' @ t'"
    23     beta  "[| s => s'; t => t' |] ==> (Abs s) @ t => s'[t'/0]"
    24 
    25 consts
    26   cd  :: dB => dB
    27   deAbs :: dB => dB
    28 
    29 primrec cd dB
    30   "cd(Var n) = Var n"
    31   "cd(s @ t) = (case s of
    32             Var n => s @ (cd t) |
    33             s1 @ s2 => (cd s) @ (cd t) |
    34             Abs u => deAbs(cd s)[cd t/0])"
    35   "cd(Abs s) = Abs(cd s)"
    36 
    37 primrec deAbs dB
    38   "deAbs(Var n) = Var n"
    39   "deAbs(s @ t) = s @ t"
    40   "deAbs(Abs s) = s"
    41 end