Professional Documents
Culture Documents
A01 Dit - MC - U1 - Logic x9 Ok
A01 Dit - MC - U1 - Logic x9 Ok
Learning Objectives:
1.1 Introduction
1.2.1 Propositions
A proposition is a declarative sentence that is either true or false, but not both.
An operator or connective combines one or more operand expressions into a larger expression.
– (E.g., “+” in numeric expressions.)
Unary operators take 1 operand
– (e.g., -3);
Binary operators take 2 operands
– (eg 3 4).
Propositional or Boolean operators operate on propositions or truth values instead of numbers.
The Negation Operator
The unary negation operator “¬” (NOT) transforms a proposition into its logical negation.
Example:
If p = “Today is Friday.”
then ¬p = “Today is not Friday.”
p p
T F
F T
The Conjunction Operator
The binary conjunction operator “” (AND) combines two propositions to form their logical
conjunction.
Example:
Note: In logic, the word “but” is sometimes used instead of “and” in a conjunction.
The binary disjunction operator “” (OR) combines two propositions to form their logical
disjunction.
Example:
p=“That car has a bad engine.”
q=“That car has a bad carburetor.”
pq=Either that car has a bad engine or that car has a bad carburetor.
The binary exclusive-or operator “ ” (XOR) combines two propositions to form their logical
“exclusive or” (exjunction?).
Example:
p = “I will earn an A in this course,”
q = “I will drop this course,”
p q = “I will either earn an A for this course, or I will drop it (but not both!)”
The implication p q states that p implies q. It is FALSE only in the case that p is TRUE but q
is FALSE.
Some terminology:
The biconditional p q states that p is true if and only if (IFF) q is true. It is TRUE when both
p q and q p are TRUE.
p = “It is raining.”
q = “The home team wins.”
Operator Precedence
• A tautology is a compound proposition that is true no matter what the truth values of its
atomic propositions are!
Eg.,
p p [What is its truth table?]
• A contradiction is a compound proposition that is false no matter what!
Eg.,
p p [Truth table?]
Two syntactically (i.e., textually) different compound propositions may be semantically identical
(i.e., have the same meaning). We call them equivalent.
Compound propositions p and q are logically equivalent to each other IFF p and q contain the
same truth values as each other in all rows of their truth tables.
Compound proposition p is logically equivalent to compound proposition q, written pq, IFF
the compound proposition pq is a tautology.
“You can access the Internet from campus only if you are a computer science major or you are
not a freshman.”
Let a, c, and f represent “You can access Internet from campus,” “You are a computer science
major,” and “You are a freshman,” respectively.
The symbolic analysis of predicates and quantified statements is called the predicate calculus.
The sentence “He is a college student” is not a statement because it may be either true or false
depending on the value of the pronoun he.
Similarly, the sentence “x + y is greater than 0” is not a statement because its truth value depends
on the values of the variables x and y.
In grammar, the word predicate refers to the part of a sentence that gives information about the
subject. In the sentence “James is a student at Bedford College,” the word James is the subject
and the phrase is a student at Bedford College is the predicate. The predicate is the part of the
sentence from which the subject has been removed.
In logic, predicates can be obtained by removing some or all of the nouns from a statement.
For instance, let P stand for “is a student at Bedford College” and let Q stand for “is a student at.”
Then both P and Q are predicate symbols. The sentences “x is a student at Bedford College” and
“x is a student at y” are symbolized as P(x) and as Q(x, y) respectively, where x and y are
predicate variables that take values in appropriate sets.
Exercises
1) Which of these are propositions? What are the truth values of those that are propositions?
a) Today is Thursday.
b) There is no pollution in New Jersey.
c) 2+1=3
5) State the converse, contra positive and inverse of the following conditional statements.