- #1
zzmanzz
- 54
- 0
Homework Statement
So my professor wanted us to convert the statement:
[ (p -> q) & (q -> r) ] -> (p -> r)
into a Boolean polynomial
Homework Equations
The Attempt at a Solution
1. (p -> q) & (q -> r)
= (1 + p + pq)(1 + q + qr)
= (1 + p + q + pq + qr)
2. [ (p -> q) & (q -> r) ] -> (p -> r)
1 + (1 + p + q + pq + qr) + (1 + p + q + pq + qr)(1 + p + pr)
Apparently the last formula is the correct boolean formula ( although it can be simplified.) However, I do not understand why the terms
1 + (1 + p + q + pq + qr)
are added to
(1 + p + q + pq + qr)(1 + p + pr)
My answer in the HW was (1 + p + q + pq + qr)(1 + p + pr) but it was missing the extra terms. Can anyone help me understand why step 1 is the product for the if/then but in step two, also an if then, we have 1 + (1 + p + q + pq + qr) in addition to the if/then product.