Logic & Sets

Table of Contents

Functions

Function f: A ➝ B — binary relation f of type A × B such that every x ∈ A relates to at most one y ∈ B

injective: if each element x of domain maps to at most one element y of codomain (“one-to-one”)

surjective: if each element x of domain maps to at least one element y of codomain; the range is the codomain (“onto”)

total: if the function is defined for all possible input values (domain)

bijective: if the function is total, injective, and surjective

Composition:

(g o f) of f: A ➝ B and g: B ➝ C

Inverse:

a function has an inverse only if it’s injective (one-to-one)