Discrete Mathematics and its Applications (8th Edition)
2021/03/05 - Applications of Propositional Logic and Propositional Equivalences
Contents
1 The Foundations: Logic and Proofs
1.2 Applications of Propositional Logic
1.2.2 Translating English Sentences
1.2.3 System Specifications
Example: “The automated reply cannot be sent when the file system is full.”
Solution: p → ¬ p p\rightarrow \neg p p→¬p
A list of propoitions is consistent if it is possible to assign truth value to the propositional varibles so that each proposition is true.
1.2.5 Logic Puzzles
Example: An island has two kinds of inhabitants, knights, who always tell the truth while knaves always lie. A says “B is a knight”, B says “We are different types of people.” What are the types of A and B?
Logic Circuits
- Inventer ( ¬ \neg ¬)
- OR gate ( ∨ \vee ∨)
- AND gate (
∧
\wedge
∧)
1.3 Propositional Equivalences
1.3.1 Introductions
A compound proposition that is always true, no matter what the truth values of the propositional variables that occur in it, is called a tautology. A compound proposition that is always false is called a contradiction. A compound proposition that is neither a tautology nor a con- tradiction is called a contingency.
1.3.2 Logical Equivalences
The compound propositions p p p and q q q are called logically equivalent if p ↔ q p \leftrightarrow q p↔q is a tautology. The notation p ≡ q p \equiv q p≡q denotes that p p p and q q q are logically equivalent. The symbol ⇔ \Leftrightarrow ⇔ is sometimes used instead of ≡ \equiv ≡.
Exapmle:
- ¬ p ∨ q \neg p\vee q ¬p∨q is equivalent to p → q p\rightarrow q p→q.
- ¬ ( p ∧ q ) ≡ ¬ p ∨ ¬ q \neg(p\wedge q)\equiv \neg p \vee \neg q ¬(p∧q)≡¬p∨¬q [
De morgan's Law I
]- ¬ ( p ∨ q ) ≡ ¬ p ∧ ¬ q \neg(p\vee q)\equiv \neg p \wedge \neg q ¬(p∨q)≡¬p∧¬q [
De morgan's Law II
]
- Identity Laws
- Domination Laws
- Idempotent Laws
- Double Negation Law
- Negation Laws
- Commutative Laws
- Associative Laws
- Distributive Laws
- Absorption Laws
Disjunctive Normal Form
A literal is a propositional variable or its negation.
formula is in disjunctive normal form (DNF) iff it is a disjunction of conjuctions of literals.
Theorem: Every proposition can be put into an quivalent DNF.
Proof:
- Emininate all operators except for negation, conjunction and disjunction by substituting logically equivalent formulas:
- A → B ≡ ¬ A ∨ B A\rightarrow B\equiv \neg A\vee B A→B≡¬A∨B
- A ↔ B ≡ ( A → B ) ∧ ( B → A ) A\leftrightarrow B\equiv (A\rightarrow B)\wedge (B\rightarrow A) A↔B≡(A→B)∧(B→A)
- A ⊕ B ≡ ( A → B ) ∨ ¬ ( B → A ) A\oplus B\equiv (A\rightarrow B)\vee\neg(B\rightarrow A) A⊕B≡(A→B)∨¬(B→A)
- push negations inward using De Morgan’s laws:
- ¬ ( A ∧ B ) ≡ ¬ A ∨ ¬ B \neg(A\wedge B)\equiv \neg A \vee \neg B ¬(A∧B)≡¬A∨¬B [
De morgan's Law I
]- ¬ ( A ∨ B ) ≡ ¬ A ∧ ¬ B \neg(A\vee B)\equiv \neg A \wedge \neg B ¬(A∨B)≡¬A∧¬B [
De morgan's Law II
]
until they appear only before atomic propositions or atomic propositions preseded by negations.
- Eliminating sequences of negations by deleting double negation operators:
- ¬ ¬ A ≡ A \neg\neg A\equiv A ¬¬A≡A
- The formula now consists of disjunctions and conjuctions of literals. Use the distrubutive laws:
- A ∧ ( B ∨ C ) ≡ ( A ∧ B ) ∨ ( A ∧ C ) A\wedge(B\vee C)\equiv(A\wedge B)\vee(A\wedge C) A∧(B∨C)≡(A∧B)∨(A∧C)
to eliminate disjunctions within conjuctions.
1.3.4 Constructing New Logical Equivalences
Related Notes
Note for MIT 6.042J - Lecture 1 Introductions and Proofs
Assignment
【离散数学】 SEU - Assignment 2 - 2021/03/05
ALL RIGHTS RESERVED © 2021 Teddy van Jerry
This blog is licensed under the CC 4.0 Licence.
See also
Teddy van Jerry’s CSDN Homepage
Teddy van Jerry’s GitHub Homepage