doc-src/Tutorial/Ifexpr/value
author paulson
Wed, 03 Feb 1999 13:26:07 +0100
changeset 6171 cd237a10cbf8
parent 5377 efb799c5ed3c
permissions -rw-r--r--
inj is now a translation of inj_on

consts value :: boolex => (nat => bool) => bool
primrec
"value (Const b) env = b"
"value (Var x)   env = env x"
"value (Neg b)   env = (~ value b env)"
"value (And b c) env = (value b env & value c env)"