Propositional Logic, Clauses, and Entailment
Administrative Announcements and Feedback
Course feedback forms are published on Ed Discussion and the Discord server.
Submitting feedback provides critical data directly to the teaching team and the School of Computer Science to improve student experience and course delivery.
Foundations of Propositional Logic and Logical Equivalence
Propositional logic provides the mathematical foundation necessary for working on assignments, tests, and examinations.
Propositions can be categorized into:
Atomic Propositions: Fundamental, indivisible statements that hold a truth value.
Composite (Compound) Propositions: Statements formed by joining atomic propositions using logical connectives.
Logical Equivalence: Two distinct symbolic propositions are logically equivalent if they yield identical truth values across all possible interpretations in a truth table.
Example of Logical Equivalence:
The material implication is logically equivalent to:
Disjunctive form:
Negated conjunctive form:
Concrete Real-World Scenario:
Let denote the proposition: "I win a lottery."
Let denote the proposition: "I start a company."
Implication (): "If I win the lottery, I will start a company."
Disjunction (): "Either I do not win the lottery, or I start a company." (Logically guarantees that winning the lottery results in starting a company).
Negated Conjunction (): "It will not happen that I win the lottery and do not start a company."
Natural language phrasing varies, but all three expressions represent identical logical constraints verified by matching truth tables.
De Morgan's Laws and Transformation Rules
Negation Rule: Flips the truth values of a proposition in a truth table.
De Morgan's Laws: Essential transformation rules used to convert disjunctive relationships (OR) into conjunctive relationships (AND) and vice versa.
Statement 1:
Statement 2:
De Morgan's laws flip the main connective inside a negated bracket:
Conjunction () transforms into disjunction ().
Disjunction () transforms into conjunction ().
Double Negation Cancellation: .
Example application:
Syntax, Semantics, and Distinctions in Logical Notation
Syntax: The formal symbolic representation and structural rules of propositions.
Semantics: The interpretation and truth-value assignment of symbolic propositions.
Key Distinctions Among Logical Connectives and Relations:
Material Implication (): A logical connective that joins two propositions to form a new composite proposition. It evaluates to false only when is true and is false.
Logical Implication / Entailment (): A meta-logical relationship asserting that in every interpretation where proposition is true, proposition must also be true.
Logical Equivalence (): A meta-logical relationship asserting that and evaluate to identical truth values under every possible interpretation.
Identifying Atomic Propositions in Problem Solving
Correctly identifying atomic propositions is the most critical step in formalizing natural language sentences into logic. Confusing atomic propositions with composite propositions leads to invalid formulations.
Exam Case Analysis:
Given atomic propositions:
: "It is sunny today."
: "I will go sailing."
Sentence to formalize: "I will go sailing whenever it is sunny. Since it is sunny, I will go sailing."
Option Analysis:
Expression : Translates to "If it is sunny, I will go sailing." This captures only the first half of the statement.
Expression : Incorrectly adds an converse requirement ("If I go sailing, it is sunny"), which is not asserted.
Complete Propositional Expression: . Captures both the implication rule ("I go sailing whenever it is sunny") and the premise/conclusion structure ("Since it is sunny, I will go sailing").
Interpretations and the Satisfaction Relation
Interpretation (): A function that assigns a specific truth value ( or ) to every atomic proposition, anchoring abstract logical statements to a concrete world state.
For binary propositional variables, there exist possible interpretations (rows in a truth table).
For variables, there are distinct interpretations.
Satisfaction Relation ():
An interpretation satisfies a proposition (written ) if and only if .
An interpretation satisfies a set of propositions (written ) if and only if satisfies every proposition contained in
Detailed Satisfaction Example:
Let be an interpretation defined by:
Satisfaction evaluations:
and
because both and evaluate to true.
because .
because .
Set Satisfaction Analysis:
For set : because and
For set : because . A single unsatisfied element in a set causes the whole set to fail satisfaction under
Definition and Structural Format of Clauses
Clause Definition: A clause is a specialized proposition constrained to a specific syntactic shape.
Canonical Clause Format:
Implication syntax:
Left-arrow notation:
Structural rules:
Head: Must be a disjunction () of literals.
Body: Must be a conjunction () of literals.
Literal: An atomic proposition or its negation.
In directional arrow notation, the expression closest to the arrowhead represents the Head, while the expression on the opposite side represents the Body.
Valid Clause Variants:
Standard clause: Disjunction in Head, Conjunction in Body.
Fact / Single literal: A standalone atomic proposition (or its negation) is a valid clause.
Clause with Empty Body: Contains only a Head (disjunction of literals) without prerequisites in the body (e.g.,
Invalid Clause Example:
Expression:
Reasons for invalidity: Negation is outside the parentheses. Applying De Morgan's laws yields , which places a conjunction () into the Head, violating clause format requirements.
Wumpus World Case Study: Transforming Rules to Clauses
Domain Rule: In a grid world, cell contains a breeze () if and only if an adjacent cell contains a pit ( or ).
Symbolic Representation:
Step-by-Step Transformation into Clauses:
Biconditional Breakdown: Split the equivalence into two directional implications:
Direction 1:
Direction 2:
Analyzing Direction 1 ():
Expressed in left-arrow form:
Head is (disjunction of literals).
Body is (literal).
Status: Valid Clause.
Analyzing Direction 2 ():
Expressed in left-arrow form:
Body contains a disjunction (), which violates clause format.
Applying Logical Transformations to Direction 2:
Apply implication transformation rules:
Convert to left-arrow clause set:
Clause 2a:
Clause 2b:
Status: Both are Valid Clauses (Literal Literal).
Predictive vs. Explanatory Directions:
Predictive Direction (): Knowing a pit exists directly predicts a breeze in adjacent cells.
Explanatory Direction (): Observing a breeze indicates at least one adjacent cell contains a pit, functioning as an existential constraint without specifying the exact cell.
Clauses as Constraints and Forbidden Combinations
A clause acts as a logical constraint over candidate world states.
Equivalent Representations of a Clause:
Implication Format:
Plain Disjunction of Literals:
Forbidden Combination Format:
Mechanism of Forbidden Combinations:
In disjunction form, a clause is satisfied as long as at least one literal is true.
Under De Morgan's laws, this transforms into a negated conjunction: .
An interpretation fails a clause if and only if it matches the specific variable assignment specified inside the negated conjunction (the forbidden combination).
Automated solvers (e.g., SAT algorithms) utilize forbidden combinations to quickly prune invalid interpretations during state-space searches.
Knowledge Bases and Mental Model Elimination
Knowledge Base (): A set or stack of logical clauses defining environment rules and observed facts.
Model of a Knowledge Base: An interpretation (a truth table row) that satisfies every clause in .
Model Elimination Example in Wumpus World:
Assume an environment represented by boolean variables: total theoretical interpretations (possible worlds).
Observation: The agent enters cell and perceives a breeze ().
Knowledge Constraint:
Truth Table Evaluation:
Out of worlds, worlds assign and .
Since , these worlds violate the knowledge base constraint.
The agent eliminates these invalid worlds from its mental representation, leaving valid candidate models.
Purpose of Agent Mental Models: Enables artificial agents to reason safely by eliminating impossible states internally, avoiding high-risk physical trial-and-error.
Logical Consequence and Entailment
Entailment Definition: A proposition is a logical consequence of a Knowledge Base (written ) if and only if evaluates to true in every model of
Mathematical Form:
Model Set Interpretation:
Let be the set of interpretations satisfying .
Let be the set of interpretations satisfying .
If the set of models satisfying is entirely contained within the set of models satisfying , is entailed by .
Comparison Summary:
Material Implication (): A single connective creating a compound proposition.
Logical Implication (): Meta-logical assertion between two individual propositions across all interpretations.
Entailment ($KB \models GGKB).\n\n# Introduction to Automated Inference\n\n* Manually evaluating entailment and satisfaction using truth tables requires constructing 2^n rows.\n* Truth table construction becomes computationally intractable as the number of variables n increases.\n* Inference engines use conversion to clause form and forbidden combinations to automate logical deduction efficiently without constructing full truth tables.\n\n# Questions and Discussion\n\n* **Question:** In the clause definition, why is eg (A \lor B) prohibited from serving as a literal or clause component?\n* **Answer:** Applying De Morgan's laws to eg (A \lor B) eg A \land eg B\land\lor$$) of literals.