← back to logic

Identity and Functions

Craig DeLancey · A Concise Introduction to Logic, Ch. 8 · CC BY-SA 4.0

Identity (=) lets us say two names refer to the same object. Combined with quantifiers, it expresses uniqueness ("there is exactly one") and definite descriptions ("the x such that"). Functions in logic map each input to exactly one output.

Domain Codomain a b c 1 2 3 f(b) = 2

Equality

The identity predicate x = y means x and y are the same object. It obeys reflexivity (a = a), symmetry (if a = b then b = a), and transitivity (if a = b and b = c then a = c). It also obeys substitution: if a = b, then anything true of a is true of b.

Scheme

Uniqueness: "there exists exactly one"

∃!x P(x) means "there exists exactly one x such that P(x)." It is defined as: ∃x(P(x) ∧ ∀y(P(y) → y = x)). There is a witness, and anything else satisfying P must be that same witness.

Scheme

Definite descriptions

"The x such that P(x)" presupposes exactly one such x exists. In logic, "the even prime" means ∃!x(even(x) ∧ prime(x)), and the description refers to that unique witness.

Scheme

Functions in logic

A function f from domain D to codomain C assigns each element of D exactly one element of C. In predicate logic: ∀x ∃!y f(x) = y. Every input has exactly one output.

Scheme