14.2 Propositional Calculus

A background in symbolic logic is essential to understanding how logic programs are constructed and executed. Symbolic logic is a formal system involving both a syntax by which propositions and relationships between propositions are expressed and formal methods by which new propositions can be deduced from axioms (i.e., propositions asserted to be true). The goal of symbolic logic is to provide a formal apparatus by which the validity of these new propositions can be verified. Multiple systems of symbolic logic exist, which offer varying degrees of expressivity in describing and manipulating propositions. A proposition is a statement that is either true or false (e.g., “Pascal is a philosopher”). Propositional logic involves the use of symbols (e.g., p, q, and r) for expressing propositions. The simplest form of a proposition is an atomic proposition. For example, the symbol p could represent the atomic proposition “Pascal is a philosopher.” Compound propositions can be formed by connecting two or more atomic propositions with logical operators (Table 14.1):

Table 14.1 Logical Concepts and Operators or Connectors

A table of logical concepts and operators or connectors.
Description
A list of operators and their relationships.
Description

The precedence of these operators is implied in their top-down presentation (i.e., highest to lowest) in Table 14.1:

A list of operators and their relationships.
Description

The truth table presented in Table 14.2 proves the logical equivalence between pq and ¬ pq.

Table 14.2 Truth Table Proof of the Logical Equivalence pq ≡ ¬ pq

A truth table.
Description

A model of a proposition in formal logic is a row of the truth table. Entailment, which is a semantic concept in formal logic, means that all of the models that make the left-hand side of the entailment symbol (⊨) true also make the right-hand side true. For instance, pqpq, which reads left to right “pq entails pq” and reads right to left “pq is a semantic consequence of pq.” Notice that pqpq is not true because some models that make the proposition on the left-hand side true (e.g., the second and third rows of the truth table) do not make the proposition on the right-hand side true.

While implication and entailment are different concepts, they are easily confused. Implication is a function or connective operator that establishes a conditional relationship between two propositions. Entailment is a semantic relation that establishes a consequence relationship between a set of propositions and a proposition.

An example for implication and entailment.
Description

While different concepts, implication and entailment are related:

αβ if and only if the proposition αβ is true for all models.4

This statement is called the deduction theorem and a proposition that is true for all models is called a tautology (see rightmost column in Table 14.3).

Table 14.3 Truth Table Illustration of the Concept of Entailment in pqpq

A truth table.
Description

The relationship between logical equivalence (≡) and entailment (⊨)is also notable:

An expression. Alpha is logically equivalent to beta if and only if alpha entails beta and beta entails alpha.

Biconditional and logical equivalence are also sometimes confused with each other. Like implication, biconditional establishes a (bi)conditional relationship between two propositions. Akin to entailment, logical equivalence is a semantic relation that establishes a (bi)consequence relationship. While different concepts, biconditional and logical equivalence (like implication and entailment) are similarly related:

An expression. Alpha entails beta if and only if the proposition alpha implies beta is true for all models.

The rightmost column in Table 14.2 illustrates that (pq) ⇐⇒ (¬ pq) is a tautology since (pq) ≡ (¬ pq).

4. This statement can also be expressed as: An expression. Alpha is logically equivalent to beta if and only if alpha entails beta and beta entails alpha..

5. This statement can also be expressed as: Alpha is logically equivalent to beta if and only if the proposition alpha if and only if beta is true for all models..

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.97.126