Syntax of Propositional Logic

COS2661 - Formal Logic II · Introduction to Propositional Logic

Syntax of Propositional Logic

Propositional logic is a branch of logic that deals with propositions, which are statements that can either be true or false. The syntax of propositional logic defines how these propositions are formed and combined using logical connectives.

Basic Components

The basic components of propositional logic include:

  • Propositions: These are the basic building blocks. For example, 'It is raining' could be represented as the proposition P.
  • Logical Connectives: These are symbols used to connect propositions. The main logical connectives are:
  • Negation (¬): This operator negates a proposition. If P is true, then ¬P is false.
  • Conjunction (∧): This operator represents 'and'. The expression P ∧ Q is true only if both P and Q are true.
  • Disjunction (∨): This operator represents 'or'. The expression P ∨ Q is true if at least one of P or Q is true.
  • Implication (→): This operator represents 'if... then...'. The expression P → Q is false only if P is true and Q is false.
  • Biconditional (↔): This operator represents 'if and only if'. The expression P ↔ Q is true if both P and Q are either true or false.

Forming Propositions

Propositions can be simple or compound. A simple proposition contains no logical connectives. For example, 'The sky is blue' is a simple proposition. A compound proposition is formed by combining two or more propositions using logical connectives. For example, the compound proposition P ∧ Q states that both P and Q must be true.

Examples of Propositions

Consider the following propositions:

  • P: 'It is raining.'
  • Q: 'I will take an umbrella.'

We can form compound propositions using these two statements:

  • Negation: ¬P means 'It is not raining.'
  • Conjunction: P ∧ Q means 'It is raining and I will take an umbrella.'
  • Disjunction: P ∨ Q means 'It is raining or I will take an umbrella.'
  • Implication: P → Q means 'If it is raining, then I will take an umbrella.'
  • Biconditional: P ↔ Q means 'It is raining if and only if I will take an umbrella.'

Order of Operations

When evaluating compound propositions, it is essential to understand the order of operations, also known as precedence. The order of operations for logical connectives is as follows:

  1. Negation (¬)
  2. Conjunction (∧)
  3. Disjunction (∨)
  4. Implication (→)
  5. Biconditional (↔)

This means that negation has the highest precedence, followed by conjunction, disjunction, implication, and biconditional. For example, in the expression ¬P ∨ Q ∧ R, you would first evaluate Q ∧ R, then apply the negation to P, and finally evaluate the disjunction.

Remember: Always apply the order of operations when evaluating logical expressions to avoid mistakes.

Parentheses in Propositions

To clarify the order of operations, parentheses can be used in logical expressions. For example, the expression (P ∧ Q) ∨ R means that you first evaluate P ∧ Q, and then take the disjunction with R. In contrast, P ∧ (Q ∨ R) means that you first evaluate Q ∨ R, and then take the conjunction with P.

Using parentheses can help avoid confusion in complex expressions. For instance, consider the expression ¬P ∨ Q ∧ R. Without parentheses, it is unclear whether to evaluate Q ∧ R first or apply negation to P first.

Watch out: Failing to use parentheses can lead to incorrect interpretations of logical expressions. Always clarify with parentheses when needed.

Truth Values

Each proposition has a truth value, which is either true (T) or false (F). When combining propositions, the truth value of the compound proposition depends on the truth values of the individual propositions and the logical connectives used.

Truth Tables

Truth tables are a systematic way to determine the truth values of compound propositions. A truth table lists all possible combinations of truth values for the propositions involved. For example, consider the compound proposition P ∧ Q. The truth table for this expression is:

PQP ∧ Q
TTT
TFF
FTF
FFF

This table shows that P ∧ Q is true only when both P and Q are true.

Constructing Propositions

To construct a logical expression, follow these steps:

  1. Identify the propositions involved.
  2. Determine the logical relationship between them.
  3. Use logical connectives to form the compound proposition.

For example, if you want to express 'If it rains, I will stay indoors', identify the propositions:

  • P: 'It rains'
  • Q: 'I will stay indoors'

The logical relationship is an implication, so the expression would be P → Q.

Practice Example

Let’s consider the propositions:

  • P: 'I study hard.'
  • Q: 'I will pass the exam.'

Construct the following compound propositions:

  1. Negation of P
  2. Conjunction of P and Q
  3. Disjunction of P and Q
  4. Implication from P to Q

1. Negation of P: ¬P means 'I do not study hard.'

2. Conjunction of P and Q: P ∧ Q means 'I study hard and I will pass the exam.'

3. Disjunction of P and Q: P ∨ Q means 'I study hard or I will pass the exam.'

4. Implication from P to Q: P → Q means 'If I study hard, then I will pass the exam.'

Tip: Practice constructing different compound propositions using various logical connectives to strengthen your understanding.

Summary

  • Propositions can be simple or compound.
  • Logical connectives include negation, conjunction, disjunction, implication, and biconditional.
  • The order of operations is important for evaluating compound propositions.
  • Parentheses clarify the order of evaluation.
  • Truth tables help determine the truth values of compound propositions.

Check your understanding

  1. What is the difference between a simple proposition and a compound proposition?
  2. Explain the order of operations for logical connectives.
  3. Construct a truth table for the expression P ∨ Q.
  4. Provide an example of a compound proposition using all five logical connectives.