Professional Documents
Culture Documents
MAED MATH-I
Example (statements/propositions):
4. 5 + 3 = 8
5. 2+3 = 5
Example (non-statements):
1. 5 + 3 = 9
3. (a+b)2=a2+b2
4. (a-b)2=a2-b2
5. 6 = 7
3. Enumerate, discuss, give 2 examples and show the truth tables of the operation
on statements.
Truth Table is used to perform logical operations in Maths. These
operations comprise boolean algebra or boolean functions. It is basically used to
check whether the propositional expression is true or false, as per the input values.
This is based on boolean algebra. It consists of columns for one or more input
values, says, P and Q and one assigned column for the output results. The output
which we get here is the result of the unary or binary operation performed on the
given input values. Some examples of binary operations are AND, OR, NOR,
XOR, XNOR, etc. We will learn all the operations here with their respective truth-
table.
Logical True
In this operation, the output is always true, despite any input value.
Suppose P denotes the input values and Q denotes the output, then we can write
the table as;
P Q→T
T T
F T
Where T=True and F=False
Logical False
Unlike the logical true, the output values for logical false are always false. It
is also said to be unary falsum. Let us create a truth table for this operation.
P Q→F
T F
F F
Where T=True and F=False
Logical Identity
In this operation, the output value remains the same or equal to the input
value. Let us find out with the help of the table.
P Q→P
T T
F F
So, here you can see that even after the operation is performed on the input
value, its value remains unchanged.
Logical Negation
When we perform the logical negotiation operation on a single logical value
or propositional value, we get the opposite value of the input value, as an output.
Let us see the truth-table for this:
P Q→~P
T F
F T
The symbol ‘~’ denotes the negation of the value.
AND
OR
NAND
NOR
XOR
Conditional or ‘If-Then’
Bi-conditional
Let us draw a consolidated truth table for all the binary operations, taking
the input values as P and Q.
P Q AND OR NAND NOR XOR Conditional Bi-conditional
T T T T F F F T T
T F F T T F T F F
F T F T T F T T F
F F F F T T F T T
XOR Operation
This operation states, the input values should be exactly True or exactly
False. The symbol for XOR is (⊻).
P Q ~P ~P ∨ Q
T T F T
T F F F
F T T T
F F T T
You can match the values of P⇒Q and ~P ∨ Q. Both are equal.
Bi-conditional is also known as Logical equality. If both the values of P and
Q are either True or False, then it generates a True output or else the result will
be false.
Example 3.1
Write the truth table for the following given statement:(P ∨ Q)∧(~P⇒Q).
Solution: Given, (P ∨ Q)∧(~P⇒Q)
Now let us create the table taking P and Q as two inputs,
T T T F T T
T F T F T T
F T T T T T
F F F T F F
Example 3.2
Argument Types
An inductive argument uses a collection of specific examples as its
premises and uses them to propose a general conclusion.
Argument validity
In evaluating an argument, we consider separately the truth of the
premises and the validity of the logical relationships between the premises, any
intermediate assertions and the conclusion. The main logical property of an
argument that is of concern to us here is whether it is truth preserving, that is if
the premises are true, then so is the conclusion. We will usually abbreviate this
property by saying simply that argument is valid.
If the argument is valid, the premises together entail or imply the conclusion.
The ways in which arguments go wrong tend to fall into certain patterns,
called logical fallacies.
Validity is a semantic characteristic of arguments; independently of this
property, and more controversially, arguments should also be scrutinizable, in the
sense that the argument be open to public examination and systematic in the
sense that the structural components of the argument have public legitimacy.
Example 4.1
Premise: M → J
Premise: J → S
Conclusion: M → S
We can construct a truth table for [(M→J) ⋀ (J→S)] → (M→S)
M J S M → J → (M→J) ⋀ (J→S) M → [(M→J) ⋀ (J→S)] → (M→S)
J S S
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T
Example 4.3
The argument “All cats are mammals and a tiger is a cat, so a tiger is a
mammal” is a valid deductive argument.
The premises are:
All cats are mammals
A tiger is a cat
The conclusion is:
A tiger is a mammal
Let C = All the cats are mammals, T = A tiger is a cat, and M = A tiger is a
mammal.
The premises and conclusion can be stated as:
Premise: C → T
Premise: T → M
Conclusion: C → M
We can construct a truth table for [(C→T) ⋀ (T→M)] → (C→M)
C T M C → T → (C → T) ⋀ (T → M) C → [(C→T) ⋀ (T→M)] →
T M M (C→M)
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T
From the truth table, we can see this is a valid argument.
Example 4.4
Example 4.5
Premise: x is even
Premise: A → B
Premise: A
Conclusion: B
To test the validity, we look at whether the combination of both premises
implies the conclusion; is it true that [(A → B) ⋀ A] → B ?
A B A → B (A→B) ⋀ A [(A→B) ⋀ A] → B
T T T T T
T F F F T
F T T F T
F F T F T
Since the
truth table for [(A→B) ⋀ A] → B is always true, this is a valid argument.
Variants of conditionals
Converse
Inverse
In logic and mathematics, the inverse of a categorical or implicational
statement is the result of taking the negation of both the hypothesis and the
conclusion. For the implication P → Q, the inverse is P→
Q.
To form the inverse of the conditional statement, take the negation of both
the hypothesis and the conclusion.
The inverse of “If it rains, then they cancel school” is “If it does not rain,
then they do not cancel school.”
Contrapositive
In logic and mathematics, the inverse of a categorical or implicational
statement is the result of taking the negation reversing its two constituent
statements. For the implication P → Q, the inverse is ~Q → ~P.
P Q PvQ P → PvQ
T T T T
T F T T
F T T T
F F F T
Since the truth table for P → PvQ is always true, this is a valid argument.
Example 7.1.2
Consider the argument: x is even.
Premise: x is even.
Conclusion: Either x is even, or x is odd.
Let P represents the statement “x is even” and Q represents the
statement “x is odd”. The arguments become:
Premise: P
Conclusion: PvQ
To test the validity, we look at whether the premises imply the
conclusion; is it true that P → PvQ?
P Q PvQ P → PvQ
T T T T
T F T T
F T T F
F F F T
Since the truth table for P → PvQ is always true, this is a valid argument.
Example 7.1.3
Consider the argument: x is odd.
Premise: x is odd.
Conclusion: Either x is odd, or x is even.
Let P represents the statement “x is odd” and Q represents the
statement “x is even”. The arguments become:
Premise: P
Conclusion: PvQ
To test the validity, we look at whether the premises imply the
conclusion; is it true that P → PvQ?
P Q PvQ P → PvQ
T T T T
T F T F
F T T T
F F F T
Since the truth table for P → PvQ is always true, this is a valid argument.
2. Conjunction
Example 7.2.1
Consider the argument: He studies very hard, and he is the best boy in the
class.
Premise: He studies very hard
Premise: He is the best boy in the class
Conclusion: He studies very hard, and he is the best boy in the class.
Let P represents the statement “He studies very hard” and Q
represents the statement “He is the best boy in the class”. The arguments
become:
Premise: P
Premise: Q
Conclusion: P^Q
To test the validity, we look at whether the premises imply the
conclusion; is it true that P^Q?
P Q P^Q
T T T
T F F
F T F
F F F
Since the truth table for P^Q is NOT always true, this is an invalid argument.