Week S2.2. Logical Equivalence and Syntactic Re-writing

 

Order of quantifiers

Order of quantifiers

The order of quantifiers matters depending on the formula. For a sequence of same-type quantifiers, the order does not matter:

For a sequence of alternating quantifiers, the order matters:

Link to original

Example: order of quantifiers

Consider and .

If there is a student attending all classes, then each class is attended by at least a student, i.e. ; if each class is attended by a student, this does not imply that there is a student attending all classes.

Relationships between quantifiers

Relationships between quantifiers

Consider the formula, “no university has no student”, it is equivalent to “all universities have at least one student”, which shows that quantifiers are linked.

Hence we can produce the following the equivalences:

Link to original

Example 1: Interpreting Negated Formulae 1

Problem: represent and negate “there is a student attending the ELA module”

  1. Encode as a formula:
  2. Obtain negation:
  3. Use rules demonstrated earlier to obtain This produces two different statements:
    • Negation: “there is no student attending the ELA module”
    • Generated from rule: “all students do not attend the ELA module”

Example 2: Interpreting Negated Formulae 2

Problem: represent and negate “all universities have at least one student”

  1. Encode:
  2. Negate:
  3. Transform using rules: The last formula reads “there is a university without any student”.

Example 3: Showing Equivalence

Problem: show that the following two formulas are equivalent.

In order to show equivalence, we can use double negation:

Quantifier Replacement Rules

Quantifier Replacement Rules

From what we just saw in the previous example, we can generate a set of rules used to transform quantifiers:

Link to original

Distribution of quantifiers over and

Distribution of existential quantification over disjunction

Existential quantification distributes over dis-junction:

Link to original

Distribution of universal quantification over conjunction

Universal quantification distributes over conjunction:

Link to original

Note however that:

  • We can find that but not the converse.
  • We can find that but not the converse.

Example 4: Equivalent with distribution

Show that .

Vacuous quantification

Vacuous quantification

Vacuous quantification is when a variable has no occurrence in a formula , hence then binding with a quantifier in has no effect. Or when the variable is already bound by another quantifier in a formula , hence binding again has no effect.

title: not sure if the last example is correct, check if it should $\equiv \exists$
Link to original

Renaming quantified variables

Renaming quantified variables

If is a new variable that does not occur in , then the following equivalences hold:

Where is obtained from by replacing all free occurrences of in with .

Link to original

Equivalences with restrictions

Equivalences with restrictions

Provided that does not occur in (or that is bound by another quantifier in ), then the following equivalences hold:

Simplification:

Regarding disjunction:

Regarding conjunction:

We can also show similar equivalences for implications:

Link to original

Deduction rules in First-order Logic

Similarly to propositional logic, we can obtain logical consequences in FOL using deduction rules. All natural deduction rules involving the propositional connectives and seen for the propositional logic case are still valid. New deduction rules need to be provided for the quantifiers.

Universal Instantiation (-elimination)

Universal instantiation

A universal instantiation means for each and every entity $c$ in the domain we have a correct inference rule of the form: $$\boxed {\begin{array}{c}\underline{\forall xP(x)} \\P(c)\end{array}}$$

For example,

By universal instantiation, given the premise , we may derive the conclusion , where is any object in the domain:

If holds for all the elements of the domain, it holds in particular for the element as well. Universal instantiation can be seen as -elimination.

Link to original

title: Example
Validate the following inference:
- Every boy likes Mary
- John is a boy
- **Therefore**: John likes Mary
 
$$
	\begin{aligned}
		&1. &&\forall x(\text{Boy}(x) \rightarrow \text{Likes}(x, mary)) &&\text{data} \\
		&2. &&\text{Boy}(john) &&\text{data} \\
		&3. &&\text{Boy}(john) \rightarrow \text{Likes}(john, mary) &&\text{from } (1.) \text{ and } \forall E: x / john \\
		&4. &&\text{Likes}(john, mary) &&\text{from } (2.), (3.), \text{ and } (\rightarrow E)
	\end{aligned}
$$

Universal Generalisation (-introduction)

Universal generalisation

A universal generalisation is $$ \boxed{\begin{array}{c} \underline{P(c) \textsf{ for any arbitrary entity } c \textsf{ in the domain}} \\ \forall x P(x)\end{array}} $$

By universal generalisation, given the premise takes place for a generic object of the domain, we may derive :

The object in the premise of must not be specific but arbitrary, i.e. we cannot make any assumption about other than it comes from the domain. Universal generalisation can be seen as .

Link to original

title: Example
Validate the following inference:
- All humans are mammals
- All mammals are vertebrates
- **Therefore**: All humans are vertebrates
 
$$
	\begin{array}{l}
		\begin{aligned}
			&1. &&\forall x (\text{Human}(x) \rightarrow \text{Mammal}(x)) &&\text{data} \\
			&2. &&\forall x (\text{Mammal}(x) \rightarrow \text{Vertebrate}(x)) &&\text{data} \\
			&3. &&\text{Human}(a) \rightarrow \text{Vertebrate}(a) &&\text{subcomputation}
		\end{aligned} \\
		\boxed{
			\begin{aligned}
				& && && &&\underline{\text{Vertebrate}(a)} \\
				&3.1 &&\text{Human}(a) &&\text{assume} \\
				&3.2 &&\text{Human}(a) \rightarrow Mammal(a) &&\text{from } (1.), \text{ and } \forall E: x/a \\
				&3.3 &&\text{Mammal}(a) &&(3.1), (3.2), \text{ and } \rightarrow E \\
				&3.4 &&\text{Mammal}(a) \rightarrow \text{Vertebrate}(a) &&(2.), \text{ and } \forall E: x/a \\
				&3.5 &&\text{Vertebrate}(a) &&(3.3), (3.4), \text{ and } \rightarrow E
			\end{aligned}
		} \\
		\begin{aligned}
			&4. &&\forall x (\text{Human}(x) \rightarrow \text{Vertebrate}(x)) &&(3.), \text{ and } \forall I: a / x
		\end{aligned}
	\end{array}
$$

Existential Generalisation

Existential generalisation

An existential generalisation means that for every entity in the domain, we have a correct inference rule of the form $$ \boxed{ \begin{array}{c} \underline{P(c)} \\ \exists x P(x) \end{array} } $$

For example:

By existential generalisation, given that is known to hold for a particular object of the domain, we may derive :

This can be seen as .

Link to original

title: Example
Validate the following inference:
- Anne likes Bob
- **Therefore**: Someone likes Bob
 
$$
	\begin{aligned}
		&1. &&\text{Likes}(ann, bob) &&\text{data} \\
		&2. &&(\exists x) \text{Likes}(x, bob) &&(1.), \text{ and } \exists I: ann/x
	\end{aligned}
$$

Existential Instantiation (-elimination)

Existential instantiation

By existential instantiation, given the premise , we may derive where is a particular object of the domain:

Note: we cannot select an arbitrary object in but rather it must be an object for which is true. Usually, we have no knowledge of what the actual object is, we only know that it does exist. Since it exists, we can give it a new name, not used anywhere before, say , and continue the derivation. Existential instantiation can be seen as .

Link to original

title: Example
Validate the following inference:
- Everyone who likes Bob likes Charles
- Someone likes Bob
- **Therefore**: Someone likes Charles
 
$$
	\begin{aligned}
		&1. &&\forall x(\text{Likes}(x, bob) \rightarrow \text{Likes} (x, charles)) &&\text{data} \\
		&2. &&(\exists x) \text{Likes}(x, bob) &&\text{data} \\
		&3. &&\text{Likes}(t, bob) &&\text{from } (2.), \text{ and } \exists E: x/t \\
		&4. &&\text{Likes}(t, bob) \rightarrow \text{Likes}(t, charles) &&\text{from } (1.), \text{ and } \forall E: x/t \\
		&5. &&\text{Likes}(t, charles) &&\text{from } (3.), (4.), \text{ and } \rightarrow E \\
		&6. &&(\exists x) \text{Likes}(x, charles) &&(5.), \text{ and } \exists I: t/x
	\end{aligned}
$$

Identity Introduction ()

Identity introduction

By identity introduction, for any term , we can assert that :

Link to original

Identity Elimination ()

Identity elimination 1

By identity elimination (substitution of identicals), if and are terms, from and , we may derive (we substitute for since they are identical):

Link to original

Symmetry Proof of

We can prove that the equality relation is symmetric, i.e. prove that: