doc-src/Tutorial/Ifexpr/value
author paulson
Sat, 03 Feb 2001 12:41:38 +0100
changeset 11042 bb566dd3f927
parent 5377 efb799c5ed3c
permissions -rw-r--r--
commutation theory, ported by Sidi Ehmety

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)"