✖️ 1. Definition of logical propositions and statements
📝 What Are Logical Propositions
- A proposition is a statement that is either true or false, never both.
- Questions, commands, and opinions are NOT propositions.
- We use letters like , , to represent propositions.
- Every proposition has exactly one truth value: T (true) or F (false).
- Propositions can be combined using logical operations.
Example: "5 is greater than 3" is a proposition (true). "Is it raining?" is NOT a proposition.
💡 Think: A proposition is like a light switch—it's either ON (true) or OFF (false), nothing in between.
1. Definition of logical propositions and statements
Logical Propositions and Statements
A proposition is a declarative sentence that is either true or false, but not both. Propositions form the foundation of logical reasoning and can be assigned a truth value: true (T) or false (F).
Intuition: Think of propositions as claims about reality that can be verified. "The sky is blue" is a proposition; "Is it raining?" is not, because questions have no truth value.
Core Rules:
- A proposition must be declarative (not a question, command, or exclamation)
- Every proposition has exactly one truth value at any given time
- Propositions can be simple (atomic) or compound (built from simpler propositions)
- Variables like , , represent propositions in symbolic logic
Consequence: Propositions allow us to formalize reasoning and build complex logical structures from simple true/false statements.
Example: "7 is an odd number" is a proposition (true). "" becomes a proposition only when is specified (e.g., if , it is true).
Based on the definition of a proposition, which of the following sentences is a proposition?
✖️ 2. The NOT operation (negation) and its effect on truth value
🔄 The NOT Operation
- NOT flips the truth value of a proposition.
- Symbol: or (read as "not P").
- If is true, then is false.
- If is false, then is true.
- NOT always produces the opposite truth value.
Example: If = "It is raining" (true), then = "It is NOT raining" (false).
💡 Memory hook: NOT is the truth value mirror—it reflects everything to the opposite side.
2. The NOT operation (negation) and its effect on truth value
The NOT Operation (Negation)
The negation of a proposition , denoted or NOT , reverses its truth value. If is true, then is false; if is false, then is true.
Intuition: Negation creates the logical opposite. If "It is raining" is true, then "It is not raining" is false.
Core Rules:
- has the opposite truth value of
- Negation is a unary operation (operates on a single proposition)
- Double negation returns the original:
- In natural language, negation often uses "not," "no," or "it is false that"
Consequence: Negation is the simplest logical operation and essential for expressing contradictions and denials.
Example: Let = "5 is even" (false). Then = "5 is not even" (true). Similarly, confirms double negation.
Let be the proposition "The number 7 is even."
Which of the following represents the truth value of ?
✖️ 3. The AND operation (conjunction) and the concept of logical intersection
🤝 The AND Operation
- AND is true only when both propositions are true.
- Symbol: (read as "P and Q").
- If either proposition is false, the whole AND is false.
- Think of AND as a strict requirement—all conditions must be met.
- AND represents logical intersection (overlap of truth).
Example: = "I have 10 dollars" (true), = "I have a ticket" (false). Then = false (I cannot enter without both).
💡 Visual cue: AND is like a chain—if one link breaks, the whole chain fails.
3. The AND operation (conjunction) and the concept of logical intersection
The AND Operation (Conjunction)
The conjunction of propositions and , denoted or AND , is true only when both and are true. It represents logical intersection.
Intuition: Think of AND as requiring all conditions to be met simultaneously. "I have an umbrella AND it is raining" is true only if both facts hold.
Core Rules:
- is true if and only if both is true and is true
- If either or (or both) is false, then is false
- Conjunction is commutative:
- Conjunction is associative:
Consequence: AND creates stricter conditions, narrowing the set of cases where the compound statement is true.
Example: Let = "" and = "". Then is true when (both conditions hold), but false when or .
Let be the statement "" and be the statement "".
If , what is the truth value of the conjunction ?
✖️ 4. The OR operation (disjunction), distinguishing between inclusive and exclusive OR
🔀 The OR Operation
- OR is true when at least one proposition is true.
- Symbol: (read as "P or Q").
- Inclusive OR (standard): true if one or both are true.
- Exclusive OR (XOR): true only if exactly one is true, not both.
- In math and logic, OR usually means inclusive unless stated otherwise.
Example: = "I study math" (true), = "I study science" (true). Then = true (inclusive OR allows both).
💡 Think: Inclusive OR is like a safety net—you only need ONE to catch you, but having both is fine too.
4. The OR operation (disjunction), distinguishing between inclusive and exclusive OR
The OR Operation (Disjunction)
The disjunction of propositions and , denoted or OR , is true when at least one of or is true. By convention, OR is inclusive unless stated otherwise.
Intuition: Inclusive OR means "one or the other or both." Exclusive OR (XOR, denoted ) means "one or the other but not both."
Core Rules:
- Inclusive OR (): true if is true, is true, or both are true
- Exclusive OR (): true only if exactly one of or is true
- Disjunction is commutative and associative
- is false only when both and are false
Consequence: Inclusive OR broadens conditions; XOR enforces mutual exclusivity.
Example: Let = "I study math" and = "I study physics." Then (inclusive) is true if I study either or both. But (exclusive) is false if I study both subjects.
Let proposition be "The sky is green" (False) and proposition be "Pigs can fly" (False). What is the truth value of the inclusive disjunction ?
✖️ 5. Basic logical equivalences (De Morgan's laws, double negation)
⚖️ Basic Logical Equivalences
- Double negation: (two NOTs cancel out).
- De Morgan's Law 1: (NOT of AND becomes OR of NOTs).
- De Morgan's Law 2: (NOT of OR becomes AND of NOTs).
- These laws help simplify complex logical expressions.
- De Morgan flips the operation (AND to OR or vice versa) and negates each part.
Example: NOT("I am tall AND smart") = "I am NOT tall OR I am NOT smart".
💡 Memory hook: De Morgan says: break the gate, flip the sign—AND becomes OR, and everything gets a NOT.
5. Basic logical equivalences (De Morgan's laws, double negation)
Basic Logical Equivalences
Logical equivalences are identities showing when two compound propositions always have the same truth value. Key equivalences include De Morgan's laws and double negation.
Intuition: These laws allow us to transform logical expressions systematically, much like algebraic identities simplify equations.
Core Rules:
- Double Negation:
- De Morgan's First Law: (negation distributes over AND, changing it to OR)
- De Morgan's Second Law: (negation distributes over OR, changing it to AND)
- These equivalences hold for all truth value assignments
Consequence: De Morgan's laws are essential for simplifying logical circuits, proofs, and database queries by converting between conjunctions and disjunctions.
Example: means "not both and ," equivalent to "either not or not " (i.e., ). If = "it is sunny" and = "it is warm," then "it is not both sunny and warm" equals "it is not sunny or not warm."
Which logical expression is logically equivalent to ?
✖️ 6. Applications: Simple logic gates in computer science and boolean search queries
💻 Applications in Computing
- Logic gates in computers use AND, OR, NOT to process binary signals (0 and 1).
- NOT gate inverts the input, AND gate outputs 1 only if all inputs are 1.
- OR gate outputs 1 if any input is 1.
- Boolean search uses AND (narrow results), OR (broaden results), NOT (exclude terms).
- Example search: "cats AND dogs" finds pages with both words.
Example: Search "python NOT snake" finds programming content, excludes reptile pages.
💡 Real-world: Every digital device uses millions of these tiny logic gates to make decisions at lightning speed.
6. Applications: Simple logic gates in computer science and boolean search queries
Applications: Logic Gates and Boolean Search
Logical operations directly implement logic gates in digital circuits and structure boolean search queries in databases and search engines.
Intuition: Computer hardware uses AND, OR, and NOT gates to process binary signals (0 = false, 1 = true). Search engines use boolean operators to filter results.
Core Rules:
- AND gate: outputs 1 only if all inputs are 1 (used for filtering conditions)
- OR gate: outputs 1 if any input is 1 (used for broadening searches)
- NOT gate: inverts the input (0 becomes 1, 1 becomes 0)
- Boolean search: combining keywords with AND (narrow results), OR (expand results), NOT (exclude terms)
Consequence: Understanding logical operations is fundamental to computer architecture, programming, and effective information retrieval.
Example: Searching "python AND programming NOT snake" returns pages about Python programming language while excluding pages about the reptile. In circuits, an AND gate with inputs 1 and 0 outputs 0, blocking the signal.
In a digital circuit, an AND gate receives two binary inputs. The first input is and the second input is . What is the numerical output of this gate?