






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























zero : nat succ : nat © nat
Õ n : nat × n = zerp Ú Ö m : nat × n = succ m
zero : nat succ : nat ª nat
Õ n : nat × n = zerp Ú Ö m : nat × n = succ m {zero} » ran succ = ¸
zero : nat succ : nat ¬ nat
{zero} » ran succ = ¸ {zero} ¼ ran succ = nat
Colors :: = red | orange | yellow | green | blue | indigo | violet
Colors :: = indigo | red | orange | yellow | green | blue | violet, same as
Colors :: = red | orange | yellow | green | blue | indigo | violet
Degree ::= status Ý 0..3 Þ
ba, msc, dphil, ma : Degree
ba = status 0 msc = status 1 dphil = status 2 ma = status 3
Example 8.1 An organization has a system for keeping track of its employees while they are on the premises. Each employee is issued with an active badge which reports their current position to a central database.
Definition: if each element of X is related to unique element of Y then partial function is a total function denoted by X ª Y.
X ª Y == { f : X©Y | dom f = X × f }
b c
d
1
2 3
X f Y
f = {x :X | p x § e}