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.
nipkow@1120
     1
(*  Title:      HOL/Lambda/ParRed.thy
nipkow@1120
     2
    ID:         $Id$
nipkow@1120
     3
    Author:     Tobias Nipkow
nipkow@1120
     4
    Copyright   1995 TU Muenchen
nipkow@1120
     5
nipkow@1120
     6
Parallel reduction and a complete developments function "cd".
nipkow@1120
     7
*)
nipkow@1120
     8
nipkow@1269
     9
ParRed = Lambda + Commutation +
nipkow@1120
    10
nipkow@2159
    11
consts  par_beta :: "(dB * dB) set"
nipkow@1120
    12
nipkow@2159
    13
syntax  "=>" :: [dB,dB] => bool (infixl 50)
nipkow@1120
    14
nipkow@1120
    15
translations
nipkow@1120
    16
  "s => t" == "(s,t) : par_beta"
nipkow@1120
    17
paulson@1789
    18
inductive par_beta
nipkow@1120
    19
  intrs
nipkow@1120
    20
    var   "Var n => Var n"
nipkow@2159
    21
    abs   "s => t ==> Abs s => Abs t"
nipkow@1120
    22
    app   "[| s => s'; t => t' |] ==> s @ t => s' @ t'"
nipkow@2159
    23
    beta  "[| s => s'; t => t' |] ==> (Abs s) @ t => s'[t'/0]"
nipkow@1120
    24
nipkow@1120
    25
consts
nipkow@2159
    26
  cd  :: dB => dB
nipkow@2159
    27
  deAbs :: dB => dB
nipkow@1120
    28
nipkow@2159
    29
primrec cd dB
berghofe@1900
    30
  "cd(Var n) = Var n"
berghofe@1900
    31
  "cd(s @ t) = (case s of
nipkow@1120
    32
            Var n => s @ (cd t) |
nipkow@1120
    33
            s1 @ s2 => (cd s) @ (cd t) |
nipkow@2159
    34
            Abs u => deAbs(cd s)[cd t/0])"
nipkow@2159
    35
  "cd(Abs s) = Abs(cd s)"
nipkow@1120
    36
nipkow@2159
    37
primrec deAbs dB
nipkow@2159
    38
  "deAbs(Var n) = Var n"
nipkow@2159
    39
  "deAbs(s @ t) = s @ t"
nipkow@2159
    40
  "deAbs(Abs s) = s"
nipkow@1120
    41
end