Skip to main content
โšก Calmops

Satisfiability and Validity

Introduction

Satisfiability and validity are central concepts in formal logic that determine whether formulas are true, false, or contingent. Understanding these concepts is essential for:

  • Logic programming and constraint solving
  • Automated reasoning and theorem proving
  • Formal verification
  • Database query optimization
  • Artificial intelligence

In this article, we’ll explore satisfiability and validity in depth.

Satisfiability

Definition

A formula is satisfiable if there exists at least one interpretation (model) that makes it true.

Formal Definition:

ฯ† is satisfiable iff there exists a model M such that M โŠจ ฯ†

Examples of Satisfiable Formulas

Simple Satisfiable Formula:

ฯ† = P(x)
Satisfiable: Set P(x) = true

Complex Satisfiable Formula:

ฯ† = (P โˆจ Q) โˆง (ยฌP โˆจ R)
Satisfiable: Set P = true, Q = false, R = true

Quantified Satisfiable Formula:

ฯ† = โˆƒx P(x)
Satisfiable: Set P(a) = true for some element a

Satisfying Assignment

An assignment that makes a formula true is called a satisfying assignment.

Example:

Formula: (P โˆจ Q) โˆง (ยฌP โˆจ R)
Satisfying assignment: P = true, Q = false, R = true
Verification: (true โˆจ false) โˆง (false โˆจ true) = true โˆง true = true

Validity (Tautology)

Definition

A formula is valid (or a tautology) if it is true in all interpretations.

Formal Definition:

ฯ† is valid (โŠจ ฯ†) iff for all models M: M โŠจ ฯ†

Examples of Valid Formulas

Law of Excluded Middle:

ฯ† = P โˆจ ยฌP
Valid: True regardless of P's value

Tautology:

ฯ† = (P โ†’ Q) โˆจ (Q โ†’ P)
Valid: True in all interpretations

Quantified Tautology:

ฯ† = โˆ€x (P(x) โˆจ ยฌP(x))
Valid: True in all models

Verification of Validity

Truth Table Method:

For P โˆจ ยฌP:
P | ยฌP | P โˆจ ยฌP
T | F  | T
F | T  | T
All rows true โ†’ Valid

Logical Reasoning:

For (P โ†’ Q) โˆจ (Q โ†’ P):
Case 1: P is true
  If Q is true: P โ†’ Q is true, so disjunction is true
  If Q is false: Q โ†’ P is false, but P โ†’ Q is false, so... wait
  Actually: If P is true and Q is false, then P โ†’ Q is false
  But Q โ†’ P is true (false โ†’ true = true)
  So disjunction is true
Case 2: P is false
  P โ†’ Q is true (false โ†’ anything = true)
  So disjunction is true
All cases true โ†’ Valid

Unsatisfiability (Contradiction)

Definition

A formula is unsatisfiable (or a contradiction) if it is false in all interpretations.

Formal Definition:

ฯ† is unsatisfiable iff for all models M: M โŠญ ฯ†

Examples of Unsatisfiable Formulas

Simple Contradiction:

ฯ† = P โˆง ยฌP
Unsatisfiable: No assignment makes this true

Complex Contradiction:

ฯ† = (P โˆจ Q) โˆง ยฌP โˆง ยฌQ
Unsatisfiable: If P and Q are both false, then P โˆจ Q is false

Quantified Contradiction:

ฯ† = โˆƒx (P(x) โˆง ยฌP(x))
Unsatisfiable: No element can satisfy both P and ยฌP

Contingency

Definition

A formula is contingent if it is neither valid nor unsatisfiable (true in some models, false in others).

Formal Definition:

ฯ† is contingent iff there exist models Mโ‚, Mโ‚‚ such that:
Mโ‚ โŠจ ฯ† and Mโ‚‚ โŠญ ฯ†

Examples of Contingent Formulas

Simple Contingent Formula:

ฯ† = P
Contingent: True when P = true, false when P = false

Complex Contingent Formula:

ฯ† = P โˆง Q
Contingent: True when both P and Q are true, false otherwise

Quantified Contingent Formula:

ฯ† = โˆƒx P(x)
Contingent: True in models where P holds for some element,
           false in models where P holds for no element

Relationships Between Concepts

Satisfiability and Validity

Relationship:

Valid โ†’ Satisfiable (all valid formulas are satisfiable)
Satisfiable โ†› Valid (satisfiable formulas may not be valid)

Examples:

P โˆจ ยฌP: Valid and satisfiable
P: Satisfiable but not valid
P โˆง ยฌP: Not satisfiable and not valid

Negation Relationships

Negation of Valid Formula:

If ฯ† is valid, then ยฌฯ† is unsatisfiable
โŠจ ฯ† โŸบ โŠญ ยฌฯ†

Negation of Unsatisfiable Formula:

If ฯ† is unsatisfiable, then ยฌฯ† is valid
โŠญ ฯ† (for all models) โŸบ โŠจ ยฌฯ†

Negation of Contingent Formula:

If ฯ† is contingent, then ยฌฯ† is also contingent

Logical Consequence and Validity

Definition

ฯˆ is a logical consequence of ฯ† (ฯ† โŠจ ฯˆ) if every model satisfying ฯ† also satisfies ฯˆ.

Formal Definition:

ฯ† โŠจ ฯˆ iff for all models M: if M โŠจ ฯ† then M โŠจ ฯˆ

Relationship to Validity

Theorem:

ฯ† โŠจ ฯˆ iff โŠจ (ฯ† โ†’ ฯˆ)
(ฯˆ is consequence of ฯ† iff ฯ† โ†’ ฯˆ is valid)

Examples

Example 1:

ฯ† = โˆ€x P(x)
ฯˆ = P(a)
ฯ† โŠจ ฯˆ (if all x satisfy P, then a satisfies P)

Example 2:

ฯ† = P โˆง Q
ฯˆ = P
ฯ† โŠจ ฯˆ (if both P and Q, then P)

SAT Problem

Definition

The Boolean Satisfiability Problem (SAT) asks: Given a Boolean formula, is it satisfiable?

Formal Definition:

SAT = {ฯ† | ฯ† is a satisfiable Boolean formula}

Significance

  • NP-Complete: SAT is the first proven NP-complete problem
  • Practical Importance: Many problems reduce to SAT
  • Active Research: SAT solvers are highly optimized

SAT Solver Techniques

DPLL Algorithm:

1. Unit propagation: Assign variables in unit clauses
2. Pure literal elimination: Assign pure literals
3. Branching: Try both values for unassigned variable
4. Backtracking: Undo assignments if contradiction found

Modern Techniques:

- Conflict-driven clause learning (CDCL)
- Non-chronological backtracking
- Variable ordering heuristics
- Preprocessing and simplification

Glossary

  • Satisfiable: True in at least one model
  • Valid: True in all models
  • Unsatisfiable: False in all models
  • Contingent: True in some models, false in others
  • Tautology: Valid formula
  • Contradiction: Unsatisfiable formula
  • Satisfying assignment: Assignment making formula true
  • Logical consequence: Formula follows from another
  • SAT problem: Satisfiability of Boolean formulas
  • SAT solver: Algorithm solving SAT instances

Practice Problems

Problem 1: Satisfiability

Is the formula (P โˆจ Q) โˆง (ยฌP โˆจ ยฌQ) satisfiable?

Solution:

Try P = true, Q = false:
(true โˆจ false) โˆง (false โˆจ true) = true โˆง true = true
Yes, satisfiable with assignment P = true, Q = false

Problem 2: Validity

Is the formula (P โ†’ Q) โˆจ (Q โ†’ P) valid?

Solution:

Truth table:
P | Q | Pโ†’Q | Qโ†’P | (Pโ†’Q)โˆจ(Qโ†’P)
T | T | T   | T   | T
T | F | F   | T   | T
F | T | T   | F   | T
F | F | T   | T   | T
All rows true โ†’ Valid

Problem 3: Unsatisfiability

Is the formula (P โˆง Q) โˆง (ยฌP โˆจ ยฌQ) unsatisfiable?

Solution:

For the formula to be true:
- P โˆง Q must be true: P = true, Q = true
- ยฌP โˆจ ยฌQ must be true: At least one of P, Q is false
Contradiction: Can't have both P and Q true and at least one false
Unsatisfiable

Problem 4: Logical Consequence

Does P โˆง Q logically imply P โˆจ Q?

Solution:

Check if (P โˆง Q) โ†’ (P โˆจ Q) is valid:
If P โˆง Q is true, then both P and Q are true
Then P โˆจ Q is true
So implication is valid
Yes, P โˆง Q โŠจ P โˆจ Q

Online Platforms

Interactive Tools

  • “Introduction to Logic” by Hurley - Comprehensive coverage
  • “Language, Proof, and Logic” by Barwise & Etchemendy - Interactive approach
  • “Symbolic Logic” by Lewis & Langford - Classic text
  • “Logic: The Basics” by Priest - Accessible introduction
  • “Handbook of Satisfiability” - Comprehensive SAT reference

Academic Journals

Software Tools

Conclusion

Satisfiability and validity are fundamental concepts:

  • Satisfiable formulas have at least one true interpretation
  • Valid formulas are true in all interpretations
  • Unsatisfiable formulas are false in all interpretations
  • Contingent formulas are true in some, false in others
  • SAT problem is NP-complete and practically important

Understanding these concepts is essential for logic, formal verification, and automated reasoning.

In the next article, we’ll explore completeness and soundness, which relate proof theory to model theory.


Next Article: Completeness and Soundness

Previous Article: Model Theory Basics

Comments