Putting It Together: Set Theory and Logic
In this module we’ve seen how logic and valid arguments can be formalized using mathematical notation and a few basic rules. In fact when George Boole (1815-1864) first developed symbolic logic (or Boolean logic), he had the idea that his system could be used by lawyers, philosophers, and mathematicians alike to help put convoluted arguments on a firmer footing. Little did he realize that his system of “and,” “or,” and “not” operations would one day transform the world by ushering in the Digital Revolution and modern day computing. What is the connection between logic and computers? Instead of truth values T and F, digital computers rely on two states, either on(1) or off(0). This is because a computer consists of many circuits, which are electrical pathways that can either be closed to allow the current to flow, or open to break the connection. A “1” would signify a closed circuit while a “0” represents an open circuit. Certain components called gates allow the computer to open or close circuits based on input. For example, an AND gate has two input wires (A, B) and one output (C). Electricity will flow at C if and only if both A and B have current. Traditionally, the AND operation is written like multiplication; that is, A AND B = AB.
Multiplication seems to be a natural interpretation of AND when applied to the values 0 and 1. Just think about the truth table for the operation [latex]\wedge[/latex], replacing T by 1 and F by 0.
| A | B | AB (A AND B) |
| 1 | 1 | 1 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 0 |
| A | B | A + B (A OR B) |
| 1 | 1 | 1 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 0 | 0 | 0 |
| A | [latex]\overline{\textrm{A}}[/latex] (NOT A) |
| 1 | 0 |
| 0 | 1 |
[latex]\textrm{Q}=\overline{\textrm{A}}\cdot\overline{\textrm{B}}=(\sim\!\textrm{A})\wedge(\sim\!\textrm{B})[/latex]
You may recognize the expression as one side of De Morgan’s Law. Therefore, there is an equivalence,[latex](\sim\!\textrm{A})\wedge(\sim\!\textrm{B})= \;\sim\!(\textrm{A} \vee \textrm{B}) = \overline{\textrm{A} + \textrm{B}}[/latex]
Finally, the last expression corresponds to a circuit diagram with only two gates, an OR and a NOT.
Licenses & Attributions
CC licensed content, Original
- Putting It Together: Set Theory. Authored by: Lumen Learning. License: CC BY: Attribution.
- AND Gate. Authored by: Shaun Ault for Lumen Learning. License: CC BY: Attribution.
- OR Gate. Authored by: Shaun Ault for Lumen Learning. License: CC BY: Attribution.
- NOT Gate. Authored by: Shaun Ault for Lumen Learning. License: CC BY: Attribution.
- (NOT A) AND (NOT B). Authored by: Shaun Ault for Lumen Learning. License: CC BY: Attribution.
- NOT (A OR B). Authored by: Shaun Ault for Lumen Learning. License: CC BY: Attribution.
CC licensed content, Shared previously
- George Boole. Located at: https://commons.wikimedia.org/wiki/File:George_Boole_color.jpg. License: Public Domain: No Known Copyright.

