191k views
4 votes
Find a compound proposition involving the propositional variables p, q, and r that is true when exactly two of p, q, and r are true and is false otherwise.

1 Answer

4 votes

Answer:

Consider the proposition C=(p∧q∧¬r)∨(p∧¬q∧r)∨(¬p∧q∧r)

Explanation:

This compound proposition C uses the outer disjunction (∨) then the proposition is true if and only if one of the three propositions (p∧q∧¬r),(p∧¬q∧r),(¬p∧q∧r) is true.

First, it is impossible that two or three of these propositions are simultaneously true. For example, if (p∧q∧¬r) and (p∧¬q∧r) are both true, then ¬r is true (from the first conjuntion) and r is true (from the second one), a contradiction. All the other possibilities can be discarded reasoning in the same way.

Since these propositions are mutually excluyent, C is true if and only if exactly one of the three propositions is true (and false otherwise). This can only happen if exactly two of p,q, and r are true and the other one is false. For example, (p∧q∧¬r) is true when p and q are true, and r is false.

User Jeadonara
by
3.5k points