













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!














Software Engineering
Let S be the set { 1 , 2 , 3 }.
In this case, we have introduced a constant and made its denotation clear; we have given it an interpretation.
PROCEDURE f(a1:T1; ... an:Tn) : T;
this function takes n arguments; the first is of type T1, the second is of type T2, and so on. The function returns a value of type T.
Definition: Let f be an arbitrary function symbol of type T, with arity n ∈ IN, taking arguments of type T 1 ,... , Tn respectively. Also, let τ 1 ,... , τn be terms of type T 1 ,... , Tn respectively. Then f (τ 1 ,... , τn) is a functional term.
2 + 3 instead of something like plus(2, 3) is merely a matter of convention, and is not relevant from the point of view of logic; all these are functions in exactly the way we have defined.
Man(x) Mortal(x) Malfunctioning(x).
- ∀x : Man • Mortal(x) ‘For all x of type Man, x is mortal.’ (i.e. all men are mortal) - ∀x : Man • ∃ 1 y : Woman • MotherOf (x, y) ‘For all x of type Man, there exists a unique y of type Woman, such that y is the mother of x.’ - ∃m : Monitor • MonitorState(m, ready) ‘There exists a monitor that is in a ready state.’ - ∀r : Reactor • ∃ 1 t : 100.. 1000 • Temp(r) = t ‘Every reactor will have a temperature in the range 100 to 1000.’