AMC Topic 4 Boolean Algebra and Propositional Logic 2
AMC Topic 4 Boolean Algebra and Propositional Logic 2
Concepts in Computing
Topic 4:
Boolean Algebra and Propositional Logic 2
Unit Syllabus
1. Computational Thinking
2. Number Systems
3. Boolean Algebra and Propositional Logic 1
4. Boolean Algebra and Propositional Logic 2
5. Predicate Logic and Set Theory
6. Statistics
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.3
Recap
What we covered in the Last Topic:
• Logic and Boolean algebra, use in computer science and
AI.
• Statements
• Truth Tables
• Boolean expressions, Logic
• Boolean operators, their precedence: conjunction,
disjunction, negation, conditional, and biconditional
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.5
Quiz 1
Quiz 2
Quiz 3
Quiz 4
Quiz 5
Quiz 6
Quiz 7
Quiz 8
Quiz 9
Quiz 10
A∨(A∧B)=A?
a) Identity Law
b) Absorption Law
c) Distributive Law
d) Associative Law
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.15
Topic 4 – Lecture 1
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.16
Learning Outcomes
By the end of this topic students will be able to:
• Understand the concept of propositions and their
role in logical reasoning.
• Define tautology and contradiction as special types
of logical expressions.
• Learn about syllogistic reasoning and its use in
formal logic.
• Recognise the limitations of propositional logic in
representing complex relationships and reasoning.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.18
Propositions:
A proposition is a statement that is either true (1) or
false (0) but not both. It is a declarative sentence that
can be assigned a truth value.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.20
For example:
• "The sky is blue." (can be either true or false)
• "2 + 2 = 5." (false)
• "It is raining outside." (true or false)
In logic, propositions are typically represented by
letters such as p, q, or r.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.21
Truth Tables
Truth Tables
P Q ¬p p∧q p∨q p⇒q
T T F T T T
T F F F T F
F T T F T T
F F T F F T
Truth Tables
Each row in the truth table corresponds to a specific combination of
truth values for p and q, and the columns show the resulting truth
values for the different logical operations.
Truth tables are valuable tools in logic for analysing the validity of
logical arguments and for constructing and evaluating complex logical
expressions. They help to systematically explore all possible
combinations of truth values for propositions and their
combinations.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.24
Tautology
Example of Tautology
Example: p∨¬p
In this example:
• p is a proposition.
• ¬p is the negation (NOT) of p.
• ∨ represents the logical OR.
Example of Tautology
p p∨¬p
¬p
T T
F
F T
T
In the truth table:
When p is true (T), ¬p is false (F), and p∨¬p is true (T).
When p is false (F), ¬p is true (T), and p∨¬p is true (T).
Contradiction
• A contradiction is a logical statement that is always false, regardless of
the truth values of its individual propositions.
• In other words, a contradiction is a statement that cannot be true
under any interpretation.
• Contradictions are often denoted by the symbol ⊥.
Example: p∧¬p
• In this example:
• p is a proposition.
• ¬p is the negation (NOT) of p.
• ∧ represents the logical AND.
• The statement p∧¬p essentially says "both p is true and its negation ¬p
is true at the same time." This is inherently contradictory because a
proposition cannot be both true and false simultaneously.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.29
Contradiction
Let’s Build a truth table for p∧¬p:
p p∧¬p
¬p
T F
F
F F
T
In the truth table:
Principle of substitution
• The Principle of Substitution is a fundamental concept in logic that
states that if two logical expressions are logically equivalent, one
can be substituted for the other without changing the truth value
of the entire expression.
• This principle is crucial for simplifying logical expressions, proving
the equivalence of statements, and understanding the relationships
between different propositions in logic.
• In other words, if p≡q (where ≡ denotes logical equivalence), then
p and q can be used interchangeably in any logical expression
without affecting the overall truth value of that expression.
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.31
Principle of substitution
Example:
Let's consider an example to illustrate the Principle of Substitution:
Suppose we have the logical equivalence p∨¬p≡ True. This means
that the logical OR of a proposition p and its negation ¬p is always
true, making it a tautology.
Topic 4 – Lecture 2
Syllogism
• A syllogism is a form of deductive reasoning consisting of two
premises and a conclusion.
• It typically involves three categorical propositions or statements,
where the conclusion is derived from the combination of the two
premises.
• The structure of a syllogism follows a specific pattern:
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.34
Logical Equivalence
• Logical equivalence is the condition of equality that exists between
two statements or sentences in propositional logic or
Boolean algebra.
• The relationship between the two statements translates verbally
into "if and only if.“
• In mathematics, logical equivalence is typically symbolized by a
double arrow (⟺or ⟷) or triple lines (≡).
• The double arrow is sometimes referred to as an IIF function.
• This expression provides an example of logical equivalence
between two simple statements:
A ∨ B ⟺B ∨ A
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.37
Logical Equivalence
• The expression includes the statements A ∨ B and B ∨ A, which
are connected together by the IIF function.
• Each statement uses the OR Boolean function (∨) to indicate an
inclusive disjunction between variables A and B.
• This means that the statement returns a true value if either
variable is true or if both variables are true, but it returns a false
value if both variables are false.
• The expression in its entirety is effectively stating that the
statement "variable A or variable B" is logically equivalent to the
statement "variable B or variable A."
How is logical equivalence
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.38
determined?
• An expression's statements are considered logically equivalent if they return
identical truth values for every row in a truth table.
• The truth table shown in Figure 1 reveals the truth values for the statements in
the example expression given previously.
• Lack of Expressiveness
• Inability to Represent Quantifiers
• Limited to Boolean Values
• Difficulty in Handling Relationships
• No Representation of Time
• Combination Explosion
• No Negation of Quantifiers
• Limited for Natural Language Processing
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.41
Documentation
Propositions and Truth Tables:
Tutorialspoint: https://www.tutorialspoint.com/discrete_mathematics/propositional_logic.htm
ResearchGate:
https://www.researchgate.net/post/What_are_the_limitations_and_extensions_of_propositional_logic
Boolean Algebra and Propositional Logic 2 Topic 4 - 4.43
Summary
This topic covered:
• Propositions and Truth Tables
• Tautology, Contradiction, Principle of substitution
• Syllogism, logical equivalence
• Limitations of propositional logic
Topic 4: Boolean Algebra and
Propositional Logic 2
Any Questions?