expand_proof now also takes an optional term describing the proposition
of the theorem to be expanded (to avoid problems with different theorems
having the same names).
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)"