src/ZF/Coind/Dynamic.thy
author clasohm
Sat Dec 09 13:36:11 1995 +0100 (1995-12-09)
changeset 1401 0c439768f45c
parent 1155 928a16e02f9f
child 1478 2b8c2a7547ab
permissions -rw-r--r--
removed quotes from consts and syntax sections
lcp@915
     1
(*  Title: 	ZF/Coind/Dynamic.thy
lcp@915
     2
    ID:         $Id$
lcp@915
     3
    Author: 	Jacob Frost, Cambridge University Computer Laboratory
lcp@915
     4
    Copyright   1995  University of Cambridge
lcp@915
     5
*)
lcp@915
     6
lcp@915
     7
Dynamic = Values +
lcp@915
     8
lcp@915
     9
consts
clasohm@1401
    10
  EvalRel :: i
lcp@915
    11
inductive
lcp@915
    12
  domains "EvalRel" <= "ValEnv * Exp * Val"
lcp@915
    13
  intrs
lcp@915
    14
    eval_constI
clasohm@1155
    15
      " [| ve:ValEnv; c:Const |] ==>   
clasohm@1155
    16
       <ve,e_const(c),v_const(c)>:EvalRel"
lcp@915
    17
    eval_varI
clasohm@1155
    18
      " [| ve:ValEnv; x:ExVar; x:ve_dom(ve) |] ==>   
clasohm@1155
    19
       <ve,e_var(x),ve_app(ve,x)>:EvalRel" 
lcp@915
    20
    eval_fnI
clasohm@1155
    21
      " [| ve:ValEnv; x:ExVar; e:Exp |] ==>   
clasohm@1155
    22
       <ve,e_fn(x,e),v_clos(x,e,ve)>:EvalRel "  
lcp@915
    23
    eval_fixI
clasohm@1155
    24
      " [| ve:ValEnv; x:ExVar; e:Exp; f:ExVar; cl:Val;   
clasohm@1155
    25
          v_clos(x,e,ve_owr(ve,f,cl))=cl |] ==>   
clasohm@1155
    26
       <ve,e_fix(f,x,e),cl>:EvalRel " 
lcp@915
    27
    eval_appI1
clasohm@1155
    28
      " [| ve:ValEnv; e1:Exp; e2:Exp; c1:Const; c2:Const;   
clasohm@1155
    29
          <ve,e1,v_const(c1)>:EvalRel;   
clasohm@1155
    30
          <ve,e2,v_const(c2)>:EvalRel |] ==>   
clasohm@1155
    31
       <ve,e_app(e1,e2),v_const(c_app(c1,c2))>:EvalRel "
lcp@915
    32
    eval_appI2
clasohm@1155
    33
      " [| ve:ValEnv; vem:ValEnv; e1:Exp; e2:Exp; em:Exp; xm:ExVar; v:Val;   
clasohm@1155
    34
          <ve,e1,v_clos(xm,em,vem)>:EvalRel;   
clasohm@1155
    35
          <ve,e2,v2>:EvalRel;   
clasohm@1155
    36
          <ve_owr(vem,xm,v2),em,v>:EvalRel |] ==>   
clasohm@1155
    37
       <ve,e_app(e1,e2),v>:EvalRel "
lcp@915
    38
  type_intrs "c_appI::ve_appI::ve_empI::ve_owrI::Exp.intrs@Val_ValEnv.intrs"
lcp@915
    39
lcp@915
    40
  
lcp@915
    41
end