5 // This file defines a simple tree structure Wff representing a
6 // well-formed formula in proposition calculus
13 datatype Wff = falsity
15 | prop (char) // a proposition with a single character name
16 | disj(Wff, Wff) // disjunction
17 | conj(Wff, Wff) // conjunction
18 | implies(Wff, Wff) // implication
19 | not (Wff) // negation
22 friend Bool eval(const Wff, const Bool []); // Evaluate a wff
23 friend Wff simplify(Wff); // Simplify a wff