We need to ask: "What would it take to prove something like this?" Hopefully you will agree that if we could describe a process (an algorithm, as we computer scientists say) that takes formula $F$ as input and produces a formula $G$ that 1) is equivalant to $F$, and 2) only uses ands, ors and nots, then we would have proved the theorem. So that's what we do.
English Logic
-------------------------------- --------
it is not the case that both bob
is wearing a hat and cathy is ¬(bh∧¬cs)
not wearing sunglasses
This is a direct translation of the english, so that's what
we do. It is equivalent to say, for example,
¬bh ∨ cs (don't worry if you don't see why). But we don't
want to write that down, because it is not a direct
translation of the English. There are some logic steps in
between the English and the propositional formula ¬bh ∨ cs.
We don't want that. We only want logic steps after
we've translated to propositional logic.
ACTIVITY
Suppose a car is offered with various packages and options, with the following restrictions:
Below are two questions. Your job is to model the above restrictions using propositional logic, and then use a SAT solver to answer the two questions below.
Question 1: Can I have the turbo with regwheels?
Question 2: Can I have the turbo without having the rearwing?
A few important thoughts:
(~sp & ~tp) as "base". In fact, it would
have probably been prettier to make a "base" variable, but
then I would have had to add
(base <=> (~sp & ~tp))
to the formula.