doc-src/Tutorial/Ifexpr/value
author ballarin
Tue, 30 Sep 2003 15:10:26 +0200
changeset 14213 7bf882b0a51e
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Changed order of prems in finprod_cong. Slight speedup.

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