The Foundations: Logic and Proof, Sets, and Functions Discrete Structures
The Foundations: Logic and Proof, Sets, and Functions Discrete Structures
Functions
Discrete Structures
ALME B. MARAVILLAS, MCS
LOGIC
Logic is the study of good reasoning. It deals with true and false.
Proposition(s)- is a declarative statement that is either true or
false, but not both.
“but not both?”- statements that are true and false at the same
time. These are called “bivalent statements, half-truths,
paradoxes”
Examples of propositions
1. Washington D.C. is the capital of the United States of America.
2. Toronto is the capital of Canada.
3. 1 + 1 = 2.
4. 2 + 2 = 3.
Propositions 1 and 3 are true, whereas 2 and 4 are false.
Proposition’s Truth Values
The truth value of a proposition is true, denoted by T, if it is a true proposition, and
false, denoted by F, if it is a false proposition.
Examples
Conjunction: Let p be the proposition “Today is Friday” and q be the proposition
“It is raining today.” Find the conjunction of p and q.
p q: “Today is Friday and it is raining today.”
DEFINITION 3
Let p and q be propositions.
The proposition “p or q,” denoted p q, is the proposition that is false when both p and q are
false and is true otherwise. The proposition p q is called the disjunction of p and q.
DEFINITION 4
Let p and q be propositions.