Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
3
Equality and Definite Description
Formal Methods
Introduction
Now we extend our language by adding a theory
of equality between expressions.
Predicate calculus with equality is more
expressive, because of asserting identity of two
objects, or distinguishing between them.
The expressions which are equal may be
substituted one for the other, without affecting the
truth of a statement.
This forms basis of our theory of equality.
Properties such as symmetry and transitivity can
be derived from them.
Formal Methods
Introduction
Addition of equality allows us to formulate a
simple rule for reasoning with quantifications:
the one-point rule.
We show how this rule may be used to
introduce existential quantifier and
eliminate the existential quantifier.
Formal Methods
Equality
The notion of equality is a familiar one:
We learn that 1+1 equals 2
In the Christian religion,
25th Dec. equals Christmas Day.
It shows that the two expressions concerned have
same value, or denote the same object.
In a formal description, we identify expressions
using the equality symbol: e.g.
1+1 = 2 and 25th Dec. = Christmas Day.
Consequently, e = f, means e is identical to f and
we cannot distinguish between them
Formal Methods
Equality
Example 4.1:
In an identity parade, a witness may state that the
man on the right is the man who stole my idea, is
equivalent to:
man on the right = man who stole my idea
Reflection:
Everything is identical to itself: thus, if t is any
expression, then t is equal to t .
This principle is known as the law of reflection:
Note: This principle is an axiom of standard Z
Dr. Nazir A. Zafar
Formal Methods
Equality
Leibnizs law:
Another axiom involving equality is Leibnizs law, or
the substitution of equals i.e.
if s = t , then whatever is true of s is true of t .
Example 4.3:
If s = t then
p [t / x] = p [s / x]
(by substitution)
Formal Methods
Equality
Example 4.3
If we know that
1. Christmas Day = 25th December, and
2. 25th December falls on a Sunday this year
Then we may apply the Leibniz's law rule and
conclude that
Christmas Day falls on a Sunday this year
Note:
If two expressions e and f are not identical, then
we write e f .
This is simply an abbreviation for : (e = f)
Dr. Nazir A. Zafar
Formal Methods
Formal Methods
Formal Methods
Formal Methods
Formal Methods
Formal Methods
Formal Methods
Formal Methods
Definite Description
Formal Methods
Definite Description
Example 4.14 :
Following phrases indicate that there is a unique
object with a certain property
Formal Methods
Definite Description
Example 4.15 :
The phrases in Example 4.14 can be formalized
as above:
1.
2.
3.
Formal Methods