In Class:
More Logic
Math Foundations of Computing
Inverse, Converse, Contrapositive
If I hydrate then I’ll learn better
- Translate to a logical expression (define any propositions you need).
- Using logical symbols, form the:
- Inverse
- Converse
- Contrapositive
- Translate each of these three back into English.
Logical Equivalence
Consider the following two statements:
- \(\lnot (p \rightarrow q)\)
- \(\lnot p \land q\).
Are these two statements logically equivalent? What are two strategies we could use to find out?
Boolean Circuits
A Boolean circuit is an abstract description of the fundamental operation building block of computation: performing an operation on one or more bits.
We can string Boolean circuits together to make more complicated ones:
Boolean Circuits
Can you draw a simpler Boolean circuit that has the same output in all cases?
Fancy Vocab Time: Isomorphism
Informally, two sets of things are isomorphic if you can translate back and forth between them without losing “structure.”
In our case:
- For every logical expression there is a unique corresponding Boolean circuit.
- For every Boolean circuit there is a unique logical expression.
- I can simplify Boolean circuits using a three-step process:
- Translate to logical expression.
- Simplify logical expression using logical equivalences.
- Translate back to Boolean expression.