Course: IT 104 | Discrete Mathematics
Session 1 Overview
Write compound propositions in both statement and symbolic form.
Construct truth tables to establish the validity and falsity of arguments, determining logical equivalence.
State the converse, inverse, and contrapositive of conditional statements.
Propositions
Logical Connectives and Truth Tables
Conditional and Biconditional Propositions
Tautologies and Contradictions
Logical Equivalence
Arguments
Applications of Logic in Circuits
Definition: Logic is a discipline dealing with reasoning methods, assessing the correctness of reasoning.
Determines the validity of an argument mainly based on logical form rather than the specific meanings of terms.
Utilized across various fields:
Mathematics: For proving theorems.
Computer Science: For verifying program correctness.
Natural and Physical Sciences: To draw conclusions from experiments.
Social Sciences and Daily Life: To solve various problems.
Definition: A proposition (or statement) is a declarative sentence that expresses information and assigns a truth value (true or false).
Characteristics:
Always ends in a period.
May be categorized as:
Atomic Proposition: Simple statements that cannot be decomposed.
Compound Proposition: Formed through logical connectives from atomic propositions.
The only positive integers that divide 5 are 1 and 5 itself.
The sun will come out tomorrow.
a + b = b + c if a = c.
10 - 1 = 9.
5-a = b.
What time is it?
Help!
Malolos is the best city in Bulacan.
This sentence is false.
Devices that link propositions include:
Negation ("not")
Conjunction ("and")
Disjunction ("or")
Inclusive Disjunction
Exclusive Disjunction
Assigned values to propositions are True (1) or False (0).
A truth table summarizes the truth values of propositions, showing all combinations of truth values.
There are 2^n possible truth value combinations for n propositional variables.
Step 1: Prepare all possible truth value combinations for the propositional variables.
Step 2: Compute the truth values for each connective and organize them into a new column.
For a proposition p, its negation is denoted as Β¬p or ~p, which indicates "not p".
Examples:
p: "Today is Friday."
~p: "Today is not Friday."
p: "The sun is not shining."
~p: "The sun is shining."
p | ~p |
---|---|
1 | 0 |
0 | 1 |
Combination of propositions formed using logical connectives.
Propositional Connectives: Operations that combine two propositions yielding a new one, dependent on the truth values of the originals.
Denoted as p β§ q, true when both p and q are true.
Truth Table: | p | q | p β§ q | |---|---|-------| | 1 | 1 | 1 | | 1 | 0 | 0 | | 0 | 1 | 0 | | 0 | 0 | 0 |
p: "Today is Friday"
q: "It is raining today"
p β§ q: "Today is Friday and it is raining."
Denoted as p β¨ q (inclusive) or p β q (exclusive).
Truth Table for Inclusive Disjunction: | p | q | p β¨ q | |---|---|-------| | 1 | 1 | 1 | | 1 | 0 | 1 | | 0 | 1 | 1 | | 0 | 0 | 0 |
Written as p β q, indicating "if p, then q."
Truth Table: | p | q | p β q | |---|---|-------| | 1 | 1 | 1 | | 1 | 0 | 0 | | 0 | 1 | 1 | | 0 | 0 | 1 |
p: "I am late"
q: "I cannot take the seatwork"
p β q: "If I am late, then I cannot take the seatwork."
Converse: q β p
Contrapositive: ~q β ~p
Inverse: ~p β ~q
Denoted as p β q, meaning "p if and only if q."
Truth Table: | p | q | p β q | |---|---|-------| | 1 | 1 | 1 | | 1 | 0 | 0 | | 0 | 1 | 0 | | 0 | 0 | 1 |
p: "David is the son of Ricky."
q: "Ricky is the father of David."
p β q: "David is the son of Ricky if and only if Ricky is the father of David."
Tautology: True for all values.
Contradiction: Always false.
Contingency: Can be true or false depending on values.
p β§ ~p (Contradiction).
(p β q) β§ (p β¨ q) (Contingency).
Any questions?