The valuation functions are defined according to the following rules:
For the sake of simplicity I am assuming a C-like interpretation of the if-then-else (i.e, the true is represented by any number different from zero).