I am studying for my exams and I am having some trouble understanding how to write the below statements in:
- Propositional logic
- Horn clause.
A. Customer chooses Converse shoes
B. Customer chooses Adidas shoesThe customer can choose at most one brand of shoes.
Here is what I have come up with:
$(A \lor B) \land \lnot(A \land B)$
Is the above correct? And how would this be represented in Horn clause?
Your logic statement doesn't match the problem statement - you give a formula for exactly one. For at most one, write:
$$\lnot(A \land B)$$
Using de Morgan's laws again, the new statement becomes:
$$\lnot A \lor \lnot B$$
which is a Horn clause (in fact it is a goal - no positive literal).