src/HOL/Prolog/Func.ML
author oheimb
Tue Jun 11 16:43:17 2002 +0200 (2002-06-11)
changeset 13208 965f95a3abd9
parent 12486 0ed8bdd883e0
child 14981 e73f8140af78
permissions -rw-r--r--
added the usual file headers
     1 (* Title:    HOL/Prolog/Func.ML
     2     ID:       $Id$
     3     Author:   David von Oheimb (based on a lecture on Lambda Prolog by Nadathur)
     4     License:  GPL (GNU GENERAL PUBLIC LICENSE)
     5 *)
     6 
     7 open Func;
     8 
     9 val prog_Func = prog_HOHH @ [eval];
    10 fun pgoal s = (case Goal s of _ => by (prolog_tac prog_Func));
    11 val p = ptac prog_Func 1;
    12 
    13 pgoal "eval ((S (S Z)) + (S Z)) ?X";
    14 
    15 pgoal "eval (app (fix (%fact. abs(%n. cond (n eq Z) (S Z) \
    16 			\(n * (app fact (n - (S Z))))))) (S (S (S Z)))) ?X";
    17 
    18