src/HOL/Lambda/ParRed.thy
author nipkow
Mon May 22 16:00:26 1995 +0200 (1995-05-22)
changeset 1126 50ac36140e21
parent 1124 a6233ea105a4
child 1269 ee011b365770
permissions -rw-r--r--
Moved comment from ParRed.thy to ROOT.ML
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@1120
     9
ParRed = Lambda + Confluence +
nipkow@1120
    10
nipkow@1120
    11
consts  par_beta :: "(db * db) set"
nipkow@1120
    12
nipkow@1120
    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
nipkow@1120
    18
inductive "par_beta"
nipkow@1120
    19
  intrs
nipkow@1120
    20
    var   "Var n => Var n"
nipkow@1120
    21
    abs   "s => t ==> Fun s => Fun t"
nipkow@1120
    22
    app   "[| s => s'; t => t' |] ==> s @ t => s' @ t'"
nipkow@1124
    23
    beta  "[| s => s'; t => t' |] ==> (Fun s) @ t => s'[t'/0]"
nipkow@1120
    24
nipkow@1120
    25
consts
nipkow@1120
    26
  cd  :: "db => db"
nipkow@1120
    27
  deFun :: "db => db"
nipkow@1120
    28
nipkow@1120
    29
primrec cd db
nipkow@1120
    30
  cd_Var "cd(Var n) = Var n"
nipkow@1120
    31
  cd_App "cd(s @ t) = (case s of
nipkow@1120
    32
            Var n => s @ (cd t) |
nipkow@1120
    33
            s1 @ s2 => (cd s) @ (cd t) |
nipkow@1124
    34
            Fun u => deFun(cd s)[cd t/0])"
nipkow@1120
    35
  cd_Fun "cd(Fun s) = Fun(cd s)"
nipkow@1120
    36
nipkow@1120
    37
primrec deFun db
nipkow@1120
    38
  deFun_Var "deFun(Var n) = Var n"
nipkow@1120
    39
  deFun_App "deFun(s @ t) = s @ t"
nipkow@1120
    40
  deFun_Fun "deFun(Fun s) = s"
nipkow@1120
    41
end