LOGIC
LOGIC
LOGIC STATEMENTS
You may know if the sentence is true, but you do know that
the sentence is either true or it is false, and that it is not
both true and false. Thus, you know that the sentence is a
statement.
EXAMPLE 1. Identify statements
Determine whether each sentence is a statement.
Florida is a state in the United States.
How are you?
99 + 2 is a prime number.
x+1 = 5
Solution:
Florida is one of the 50 states in the United States, so this sentence is true and
it is a statement.
The sentence “How are you?” is a question; it is not a declarative sentence.
Thus it is not a sentence.
You may not know whether 99 + 2 is a prime number. However, you o know that
it is a whole number larger than 1, so it is either a prime number or it's not a
prime number. The sentence is either true or it is false, and it is not both true
and false, so it is a statement.
X + 1= 5 is a statement. It is known as an open statement. It is true for x =4 ,
and it is false for any other values of x. For any given value of x, it is true or
false but not both.
Simple Statements and Compound Statements
A simple statement is a statement that conveys a single idea. A compound statement is a statement
that convey two or more ideas.
Connecting simple statements with words and phrases such as and, or, if,... then, and if and only if
creates a compound statement. For instance, “I will attend the meeting or “I will go to school” is a
compound statement. It is a compound of the two simple statements, “I will attend the meeting” and “
I will go to school.” The word or is a connective for the two simple statements.
George Boole used symbols such as p, q, r and s to represent simple statements and the symbol
to represent
connectives.
Logic Connectives and
Symbols
Truth Value and Truth Tables
The truth value of a simple statement is either true (T) or False (F).
The truth value of a compound statement depends on the truth values of its
simple statements and its connectives.
A truth table is a table that shows the truth value of a compound statement for
all possible truth values of the simple statements.
EXAMPLE 2. Write the negation of a statement
Solution
Solution
a. The game will be shown on CBS and the game will be played in Atlanta
b.The game will be shown on ESPN and the Mets are favored to win.
c. The Mets are favored to win if and only if the game will not be played in Atlanta.
THANK
YOU