Logic Examples
Logic Examples
d. x +1=5.
e. Open the door.
f. 7055 is a large number.
g. x > 3.
Compound Statement
A compound statement is formed by connecting simple statements with the
connectives and, or, if . . . then, and if and only if.
Negation
The negation of a statement is the opposite or the contradictory of the
statement and is denoted by the curl (∼).
Disjunction
Disjunction is a compound statement whose simple statements are
joined by the word “or” and “unless” which is represented by the vel (∨) .
Conditional
Statements that are connected by “if…then”, “implies that”, “entails
that”, and similar phrases are called conditional statement denoted by
rightwards arrow (⟶). By convention the first part of the conditional is
termed the antecedent (also less often called the "implicans" or the
"protasis"), and the second part of the conditional is the consequent
(less often termed the "implicate" or "apodosis"). This, however, is not
always the case.
Biconditional
Statements that are connected by “if and only if”, “is equivalent to”,
and “is a sufficient and necessary condition for” is called biconditional
statement denoted by left right arrow (⟷). In logic, two statements have
truth functional equivalence when they have the same truth-value, not
because they have the same content
p: Today is Friday.
q: It is raining.
r: I am going to a movie.
s: I am not going to the basketball game.
a. Today is Friday and it is raining.
b. It is not raining and I am going to a movie.
c. I am going to the basketball game or I am going to a movie.
d. If it is raining, then I am not going to the basketball game.
e. Today is not Friday and I am going to a movie.
f. I am going to the basketball game and I am not going to a movie.
g. I am going to the movie if and only if it is raining.
h. If today is Friday, then I am not going to a movie.
Write “If you do not complete the training, then you will not get a promotion and you
will not receive a bonus.” in symbolic form
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 its simple statements.
Negation
a. 7 ≥ 5.
b. 5 is a whole number and 5 is an even number.
c. 2 is a prime number and 2 is an even number.
d. 21 is a rational number and 21 is a natural number.
e. 4 ≤ 9.
a. a+ 2< b or ab=5
a
b. b >0 and 3b is an even
b+1
c. If ka−1 ≤b , then k ≤ a
a 15
d. ab+ b ≠ b
e. If x= y , then ax=by