Propositional Logic 2
Propositional Logic 2
1
Propositional Logic
1 Module Summary
1.1 Module learning objective
• Recognize and translate atomic and compound propositional.
• Construct truth tables.
• Apply the laws of Boolean algebra to show logical equivalence.
•
Proposition Or Statement
• A sentence conveying a situation which is neither imperative,
exclamatory, nor interrogative is a statement.
• A statement is a declaration sentence which is either true or false,but not
both.
• Denoted by p, q, r s.
Propositional logic
• A area of logic that deals with propositions that can eitherbe true or false.
Compound Statement
• When two or more logical statements are combined by logical connectorsthat
is And, Or, Not, If then, If and only, then that statement is called compound
statement.
Logical Operator
• Operations used to form new propositions from existing ones.The
main types include:
1. Conjunction(∧): “And”- true only if both propositions are true.
p q p∧q
T T T
T F F
F T F
F F F
Conditional
If one proposition implies another one, the resulting compound proposition is called
a condition statement. It is denoted by ( →).
p q p→
q
T T T
T F F
F T T
F F T
Bi-Conditional:
The bi-conditional statement is when both propositions implies each other.
Denoted by (↔).
p q p↔q
T T T
T F F
F T F
F F T
2. Idempotent law:
P∧P≡P /& P∨P≡P
P P P∧P P∨P
T T T T
F F F F
4. Commutative Law:
P∧Q≡Q∧P & P∨Q≡Q∨P
P Q P∧Q Q∧P P∨Q Q∨P
T T T T T T
T F F F T T
F T F F T T
F F F F F F
5. Associative Law:
(P∧Q) ∧R≡P∧ (Q∧R) & (P∨Q)∨R≡P∨(Q∨R)
P Q R P∧Q Q∧R (P∧Q) ∧R P∧ (Q∧R)
T T T T T T T
T T F T F F F
T F T F F F F
T F F F F F F
F T T F T F F
F T F F F F F
F F T F F F F
F F F F F F F
6. Distributive Law:
P∧ (Q∨R) ≡ (P∧Q) ∨ (P∧R) & P∨ (Q∧R) ≡ (P∨Q) ∧ (P∨R)
7. De-Morgan’s law:
¬(A∧B)≡¬A∨¬B & ¬(A∨B)≡¬A∧¬B
A B ~A ~B A∧B ¬(A∧B) ¬A∨¬B
T T F F T F F
T T F F T F F
T F F T F T T
T F F T F T T
F T T F F T T
F T T F F T T
F F T T F T T
F F T T F T T
P T F P∨T P∧F
T T F T F
F T F T F
9. Negation law:
P∨~P≡T / P∧~P≡F
P ~P P∨~P P∧~P T F
T F T F T F
F T T F T F
1.3 Reflection
3. Why do you think your course team wants you to learn the
content of thismodule?
The course team likely wants you to learn the content of this propositional logic
module because:
• Such concepts will help me in enhancing problem solving skills.
• Logical reasoning forms the basis of algorithms and programming.
Evidence
10/3/24, 8:15 PM Propositional Logic
Propositional Logic
Click on a question number to see how your answers were marked and, where
available, full solutions.
Performance Summary
Exam Name: Propositional Logic
Session ID: 13068148718
Exam Start: Thu Oct 03 2024 20:03:31
Exam Stop: Thu Oct 03 2024 20:15:25
Time Spent: 0:11:54
Question 1
Truth Table
Instructions
Please enter a truth table for the expression q ∧ (p ∨ (p ∧ q)).
file:///C:/Users/HP/Downloads/Propositions/Propositions/index.html 1/6
10/3/24, 8:15 PM Propositional Logic
Entering expressions
You can enter expressions either by copy-pasting the expression below (or is
sub-expressions), or typing the expression with English words - for example: "p
or (q and not p)". The system will recognise and display the expression. If it does
not display, then the system is unable to parse your input (make sure you check
the brackets).
p q p∧q p ∨ (p ∧ q) q ∧ (p ∨ (p ∧ q))
T T T T T
T F F T F
F T F F F
F F F F F
Score: 0/1
Advice
Question 2
Show that ¬(q ∨ ((q ∨ p) ∧ (p ∨ p))) ≡ ¬(p ∨ q).
bodmas, which can be confusing at first. Unfortunately this is hardcoded and cannot
be changed.
You can enter formulas using either the operations ¬,∧,∨, or English words not,
and, or. So, the input "p and (q or not p)" is the same as "p ∧ (q ∨ ¬ p)".
At the bottom of this question you will find a table with the list of operations, and the
keywords to use.
You may copy-paste the expression in the first box: ¬(q ∨ ((q ∨ p) ∧ (p ∨ p)))
LHS ¬(q∨((q∨p)∧(p∨p)))
≡ ¬ (q ∨ (q ∨ p) ∧ (p ∨ p))
¬(q∨((q∨p)∧p)) Idempotent Law
≡
¬ (q ∨ (q ∨ p) ∧ p)
¬(q∨((p∨q)∧p)) Commutative Law
≡
¬ (q ∨ (p ∨ q) ∧ p)
Absorption Law
≡ ¬(q∨p) ¬ (q ∨ p)
Commutative Law
≡ ¬(p∨q) ¬ (p ∨ q)
You may enter the operations by copying from the following table. Either versions
are fine.
file:///C:/Users/HP/Downloads/Propositions/Propositions/index.html 3/6
10/3/24, 8:15 PM Propositional Logic
inclusive exclus
Operation/Value True False negation conjunction
disjunction disjunc
ascii version true false not and or
symbol version ¬ ∧ ∨
The maximum you can score for this part is 10 marks. Your
scores will be scaled down accordingly.
LHS
Your answer is numerically correct. You were awarded
1.1111111111 marks.
Step 1
This part was marked using your answers to previous parts.
Your answer is numerically correct.
Law 1
This part was marked using your answers to previous parts.
Step 2
This part was marked using your answers to previous parts.
Your answer is numerically correct.
Law 2
Step 3
This part was marked using your answers to previous parts.
Your answer is numerically correct.
Law 3
Step 4
This part was marked using your answers to previous parts.
Your answer is numerically correct.
file:///C:/Users/HP/Downloads/Propositions/Propositions/index.html 4/6
10/3/24, 8:15 PM Propositional Logic
Law 4
Step 5
This part was marked using your answers to previous parts.
You did not enter an answer.
Law 5
Step 6
Law 6
Step 7
This part was marked using your answers to previous parts.
You did not enter an answer.
Law 7
Step 8
Law 8
Step 9
This part was marked using your answers to previous parts.
You did not enter an answer.
Law 9
Step 10
Law 10
Step 11
This part was marked using your answers to previous parts.
You did not enter an answer.
Law 11
Step 12
Law 12
You scored 10 marks for this part.
Score: 10/10
file:///C:/Users/HP/Downloads/Propositions/Propositions/index.html 5/6
10/3/24, 8:15 PM Propositional Logic
Advice
file:///C:/Users/HP/Downloads/Propositions/Propositions/index.html 6/6
REFERENCES:
1. D2L Modules
2. Quiz
3. Discrete Maths Oscar Levin