author | huffman |
Wed, 12 Oct 2005 03:02:18 +0200 | |
changeset 17840 | 11bcd77cfa22 |
parent 17311 | 5b1d47d920ce |
permissions | -rw-r--r-- |
(* Title: HOL/Prolog/Func.ML ID: $Id$ Author: David von Oheimb (based on a lecture on Lambda Prolog by Nadathur) *) val prog_Func = prog_HOHH @ [eval]; fun pgoal s = (case Goal s of _ => by (prolog_tac prog_Func)); val p = ptac prog_Func 1; pgoal "eval ((S (S Z)) + (S Z)) ?X"; pgoal "eval (app (fix (%fact. abs(%n. cond (n eq Z) (S Z) \ \(n * (app fact (n - (S Z))))))) (S (S (S Z)))) ?X";