2
$\begingroup$

Here is the definition of a conjunctive normal form:

A conjunctive normal form is a conjunction of one or more conjuncts that are disjunctions of one or more literals (letters). For example, $A \land (B \lor A) \land (\lnot B \lor A)$ is a conjunctive normal form.

I need to find a logically equivalent conjunctive normal form of the expression $\lnot (A \to B) \lor (\lnot A \land C)$. The answer in the textbook is $(A \lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$. I don't understand how they got this answer.

Can another answer be $A\land (\lnot B\lor \lnot A)\land C$?

$\endgroup$
0

3 Answers 3

1
$\begingroup$

Conditional Negation, Distribution, Complementation, and Identity.

$\begin{align} &\neg (A\to B)\vee(\neg A\wedge C)\\\equiv ~& (A\wedge\neg B)\vee(\neg A\wedge C)\\\equiv~& (A\vee\neg A)\wedge(A\vee C)\wedge(\neg B\vee \neg A)\wedge(\neg B\vee C)\\\equiv~& \qquad\qquad\quad(A\vee C)\wedge(\neg B\vee \neg A)\wedge(\neg B\vee C)\end{align}$

I am not sure how you figured this would be equivalent to $A\wedge(\neg B\vee\neg A)\wedge C$, because it is not.

$\endgroup$
4
  • $\begingroup$ Is there good reason to use $\equiv$ and not $=$? I am the only answerer who elected to use $=$... $\endgroup$
    – Mason
    Aug 3, 2018 at 6:24
  • $\begingroup$ It indicates that the expressions are equivalent rather than identical. They have the same truth evaluation, but are not quite saying the same thing. A subtle distinction to be sure. $\endgroup$ Aug 3, 2018 at 6:57
  • $\begingroup$ Not sure Its a distinction I am comprehending. But maybe this will help: math.stackexchange.com/questions/1058596/… $\endgroup$
    – Mason
    Aug 3, 2018 at 7:00
  • $\begingroup$ $3+4=7$ is equivalent to $e^{\pi i} =-1$ in that both statements evaluate to true but we wouldn't say that the statements are identical because it would have Euler turning in his grave. $\endgroup$
    – Mason
    Aug 3, 2018 at 7:05
1
$\begingroup$

$$ \begin{align} &\neg (A\to B)\vee (\neg A\wedge C)\\ &= \neg(B \vee \neg A )\vee (\neg A\wedge C)\\ &=(\neg B \vee A )\vee (\neg A\wedge C)\\ &=((\neg B \wedge A) \vee \neg A)\wedge ((\neg B \wedge A) \vee C)\\ &=(\neg B \vee \neg A) \wedge (A \vee \neg A)\wedge (\neg B \vee C) \wedge (A \vee C)\\ &=(\neg B \vee \neg A) \wedge (T)\wedge (\neg B \vee C) \wedge (A \vee C)\\ \end{align} $$

How can we justify these equalities:

1) Definition of $\rightarrow$. $x\rightarrow y = (y\vee \neg x)$

2) Distribute $\neg$. We can find that $\neg(x \vee y)=\neg x \wedge \neg y$

3) Demorgan's law. $x \wedge (y\vee z)=(x\vee y) \wedge (x\vee z) $

4) More application of Demorgan's law.

5) Tautology $x \vee \neg x =T$

Then you arrive at your conclusion after we remove this Tautology and rearrange.

You can verify that $(A,B,C)= (T,T,F)$ satisfies the expression above. but it doesn't satisfy $A\wedge (\neg B \vee\neg A) \wedge C$. This would be one way to assure yourself that these expressions aren't equal.

$\endgroup$
1
$\begingroup$

The formula $A \land (\lnot B \lor \lnot A)\land C$ is not logically equivalent to the formula $(A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$: take for instance the truth assignment $v$ such that $v(A) = \top$ and $v(B) = v(C) = \bot$, then $A \land (\lnot B \lor \lnot A)\land C$ is false for $v$ but $(A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$ is true for $v$. Therefore, it is impossible that both formulas are simultaneously conjunctive normal forms (CNF) of $\lnot (A\to B)\lor (\lnot A\land C)$.

Which one is a CNF of $\lnot (A\to B)\lor (\lnot A\land C)$? To discover it, I use the logical equivalences listed here as rewriting rules for forumlas.

  1. First step: eliminate implication. \begin{align} \lnot (A\to B)\lor (\lnot A\land C) &\equiv \lnot (\lnot A \lor B)\lor (\lnot A\land C) \end{align}

  2. Second step: move NOTs inwards by applying De Morgan's law and double negation law. \begin{align} \lnot (\lnot A \lor B)\lor (\lnot A\land C) &\equiv (\lnot\lnot A \land \lnot B)\lor (\lnot A\land C) \\ &\equiv (A \land \lnot B)\lor (\lnot A\land C) \end{align}

  3. Third step: apply the distribution law, identity law and commutativity. \begin{align} (A \land \lnot B)\lor (\lnot A\land C) &\equiv ((A \land \lnot B) \lor \lnot A) \land ((A \land \lnot B) \lor C)\ &\text{distr.} \\ &\equiv (A \lor \lnot A) \land (\lnot B \lor \lnot A ) \land ((A \land \lnot B) \lor C) &\text{distr.} \\ &\equiv (\lnot B \lor \lnot A ) \land ((A \land \lnot B) \lor C) &\text{ident.} \\ &\equiv (\lnot B \lor \lnot A ) \land (A \lor C) \land (\lnot B \lor C ) &\text{distr.} \\ &\equiv (A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C) &\text{comm.} \end{align} where the identity law can be applied because $A \lor \lnot A$ is a tautology.

Therefore, $\lnot (A\to B)\lor (\lnot A\land C) \equiv (A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$ and we can conclude that $(A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$ is a CNF of $\lnot (A\to B)\lor (\lnot A\land C)$ because $(A\lor C) \land (\lnot B \lor \lnot A) \land (\lnot B \lor C)$ is in CNF.

$\endgroup$
1
  • $\begingroup$ Thank you for making a very clear answer and taking the time to help me understand. :) $\endgroup$
    – user482939
    Aug 4, 2018 at 1:00

You must log in to answer this question.