Put in minimal simpset to avoid excessive simplification,
just as in revision 1.9 of HOL/indrule.ML
(* Title: FOL/ex/declIffOracle
ID: $Id$
Author: Lawrence C Paulson, Cambridge University Computer Laboratory
Copyright 1996 University of Cambridge
Example of how to declare an oracle
*)
(*New exception constructor for passing arguments to the oracle*)
exception IffOracleExn of int;
(*Internal syntactic declarations*)
val oT = Type("o",[]);
val iff = Const("op <->", [oT,oT]--->oT);
fun mk_iff 1 = Free("P", oT)
| mk_iff n = iff $ Free("P", oT) $ mk_iff (n-1);
val Trueprop = Const("Trueprop",oT-->propT);
(*Oracle makes tautologies of the form "P <-> P <-> P <-> P"*)
fun mk_iff_oracle (sign, IffOracleExn n) =
if n>0 andalso n mod 2 = 0
then Trueprop $ mk_iff n
else raise IffOracleExn n;