- About this Journal ·
- Abstracting and Indexing ·
- Advance Access ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

Abstract and Applied Analysis

Volume 2013 (2013), Article ID 985095, 11 pages

http://dx.doi.org/10.1155/2013/985095

## On 0-Complete Partial Metric Spaces and Quantitative Fixed Point Techniques in Denotational Semantics

^{1}Department of Mathematics, King Abdulaziz University, P.O. Box 80203, Jeddah 21859, Saudi Arabia^{2}Departamento de Ciencias Matemáticas e Informática, Universidad de las Islas Baleares, Carretera de Valldemossa km 7.5, 07122 Palma de Mallorca, Spain

Received 9 June 2013; Revised 8 October 2013; Accepted 9 October 2013

Academic Editor: Ngai-Ching Wong

Copyright © 2013 N. Shahzad and O. Valero. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

In 1994, Matthews introduced the notion of partial metric space with the aim of providing a quantitative mathematical model suitable for program verification. Concretely, Matthews proved a partial metric version of the celebrated Banach fixed point theorem which has become an appropriate quantitative fixed point technique to capture the meaning of recursive denotational specifications in programming languages. In this paper we show that a few assumptions in statement of Matthews fixed point theorem can be relaxed in order to provide a quantitative fixed point technique useful to analyze the meaning of the aforementioned recursive denotational specifications in programming languages. In particular, we prove a new fixed point theorem for self-mappings between partial metric spaces in which the completeness has been replaced by 0-completeness and the contractive condition has been weakened in such a way that the new one best fits the requirements of practical problems in denotational semantics. Moreover, we provide examples that show that the hypothesis in the statement of our new result cannot be weakened. Finally, we show the potential applicability of the developed theory by means of analyzing a few concrete recursive denotational specifications, some of them admitting a unique meaning and others supporting multiple ones.

#### 1. Introduction

##### 1.1. Denotational Semantics for Programing Languages

In denotational semantics one of the aims consists of analyzing the correctness of recursive algorithms by means of mathematical models of the programming languages in which the algorithm has been written. Moreover, in many programming languages one can construct recursive algorithms through procedures in such a way that the meaning of such a procedure is expressed in terms of its own meaning. In order to analyze the meaning of such recursive definitions of procedures, Scott developed what nowadays is known as domain theory (see [1, 2] account of the theory and, also, [3, 4] for recent applications to computer science).

In the spirit of Scott, the meaning of a denotational specification can be obtained as a fixed point of a nonrecursive mapping that is induced by the denotational specification. The fixed point is, at the same time, the supremum and the topological limit of the sequence of successive iterations generated by the nonrecursive mapping acting on a fixed element of the mathematical model. Furthermore, the order relation encodes information so that each step of the procedure computation, modeled by each iteration of the nonrecursive mapping, is identified with a model element that is greater than (or equal to) the elements representing the preceding steps of the procedure computation (the preceding iterations of the nonrecursive mapping), since each iteration gives more information about the meaning of the recursive definition of the procedure than all previous ones. The aforementioned meaning of the recursive procedure denotational specification is modeled as the fixed point of the nonrecursive mapping which corresponds to the supremum and, simultaneously, the topological limit, with respect to the so-called Scott topology, of the increasing successive iterations sequence. As a consequence, the fixed point provides the total information about the meaning yielded by all elements of the increasing sequence of iterations and, in addition, it does not give more information than that which can be deduced from the elements of such a sequence.

A recursive algorithm computing the factorial of a positive integer number typically uses the following recursive denotational specification, where denotes the set of positive integer numbers:

From the preceding illustrative example of denotational specification one deduces the existence of a handicap. Indeed, the meaning of the symbol fact is expressed in terms of itself. Thus the symbol fact cannot be substituted by its meaning in (1), since such a meaning, given by the right-hand side in (1), also contains the symbol. According to Scott theory, the meaning of (1), that is, the entire factorial function, is given by the unique fixed point (which is a total function) of the nonrecursive mapping defined, on the set of partial functions ordered by extension (see [5] for a detailed description of the set of partial functions), by where the successive iterations acting over the partial function (dom and ) hold that if and for all . The increasing sequence of iterations models each step of the computation of the factorial of a nonnegative integer number by the recursive algorithm under consideration which follows specification (1) and, besides, the topological limit of such a sequence, taking the Scott topology, is exactly the meaning of the symbol fact which yields the factorial of each nonnegative integer number. Observe that each iteration yields only partial information of the entire factorial function and, thus, each iteration gives more information about the symbol fact (the entire factorial function) than all preceding ones. Finally, the sequence of successive iterations is increasing with respect to the extension order and its supremum matches up with the meaning of the symbol fact.

Of course, the mapping has a unique fixed point, which provides the meaning of the denotational specification (1), and such a fixed point matches up with the entire factorial function fact.

It is interesting to stress that, from an information content viewpoint, the Scott model needs to distinguish two kinds of elements: the so-called totally defined objects and the partially defined ones. The former represent elements of the model whose information content cannot be stored in a computer and, therefore, must be approximated (in the preceding example the entire functorial function). The partially defined objects match up with those elements of the model that can be stored in the computer and that approximate the total ones (each partial function in the preceding example).

##### 1.2. Partial Metrics and Denotational Semantics

From the discussion in Section 1.1 we can infer that the Scott model does not incorporate a “metric” tool to measure the information content of the elements that form such a model. Inspired, in part, by the preceding fact, Matthews introduced the notion of partial metric as a mathematical tool to model computational processes in the spirit of Scott in such a way that a quantitative degree of the information content of the involved elements can be provided [6].

Let us recall some notions related to partial metrics in order to explain the significance of this new metric concept in computer science. To this end, we will denote by the set of nonnegative real numbers.

According to [6], a partial metric on a nonempty set is a function such that for all (i), (ii), (iii), (iv).

Clearly a metric on a nonempty set is a partial metric on satisfying, in addition, the following condition for all : (v) .

A partial metric space is a pair such that is a nonempty set and is a partial metric on .

Each partial metric on generates a topology on which has as a base the family of open -balls , where for all and . From this fact it immediately follows that a sequence in a partial metric space converges to a point with respect to . According to [7], a sequence in is said to be -convergent to provided that it converges to with respect to and .

As usual (see [5]) a partial order on a nonempty set is a reflexive, antisymmetric and transitive binary relation on . A partially ordered set is a pair such that is nonempty set and is a partial order on . Moreover, given a subset , an upper bound for in is an element such that for all . The supremum for in , if exists, is an element which is an upper bound for and, in addition, satisfies that provided that is an upper bound for . We will denote by , with , the set . Furthermore, an element is maximal in provided that if there exists such that , then .

The success of partial metrics in computer science lies in the fact that every complete partial metric (see below for the definition of completeness) induces a partial order on in such a way that increasing sequences of elements have a supremum with respect to and converge to it with respect to the partial metric topology . Inspired by the preceding fact, Matthews named this type of topologies as Scott-like topologies. Moreover, partial metrics can be used as a tool to measure the information content in the spirit of Scott’s models. Indeed, they allow to distinguish between elements in with totally defined information content and elements with partially defined information content. Specifically, if is a partial metric space, then the numerical value allows us to quantify the amount of information contained in . In particular, according to [6], the smaller is, the more defined is, being totally defined whenever .

The preceding facts have led to the widespread acceptance of partial metrics in computer science. A few works on the study of partial metrics spaces and their applications to computer science can be found in [8–19].

On account of [6], a sequence in a partial metric space is called a Cauchy sequence if exists. A partial metric space (or simply the partial metric ) is said to be complete if every Cauchy sequence in converges, with respect to , to a point such that . Moreover, every partial metric induces in a natural way a metric. Indeed, given a partial metric space , then the function defined by is a metric on . It is not hard to see that a sequence in converges to with respect to if and only if . Furthermore, the metric plays a crucial role in the study of completeness of partial metric spaces. In particular, it is routine to check that a sequence in is Cauchy if and only if it is Cauchy in the metric space and that is complete if and only if is complete.

In [6], Matthews extended Banach’s fixed point theorem to the framework of partial metric spaces. Such extension was made in order to provide a quantitative fixed point technique that captures the meaning of recursive denotational specifications as the fixed point of a nonrecursive (contractive) mapping which is at the same time a total defined object of the model, the supremum of the increasing successive iterations sequence, generated by the aforesaid nonrecursive mapping acting on a distinguished element of the model, and the topological limit of such a sequence.

The aforementioned theorem can be stated as follows.

Theorem 1. *Let be a mapping of a complete partial metric space into itself such that there is satisfying
**
for all . Then has a unique fixed point which holds: *(1)*the sequence converges to with respect to for every ,*(2)*.*

Matthews used Theorem 1 to formulate a suitable test to detect lazy data flow deadlock in Kahn’s model of parallel computation (for a fuller treatment of such an application we refer the reader to [20]).

Since Matthews published Theorem 1, an intense research activity on fixed point results in partial metric spaces has been developed. A few recent works in which fixed point results in the metric framework have been extended to the partial metric context can be found in [7, 8, 11, 21–33].

##### 1.3. Statement of the Problem

When the meaning of recursive denotational specifications in programming languages is studied in practical problems, it seems enough to manage the contractive condition (25) only for the chosen distinguished element of the mathematical model and its associated sequence of successive iterations (e.g., and in the discussion of the factorial recursive specification exposed in Section 1.1). Thus, to check contractive condition (25) for all elements of the model is unnecessary. This motivates the natural question of whether the Matthews contractive condition (25) could be relaxed in such a way that the new one is better suited to the demands of the practical problems and, besides, continues to be useful for providing a quantitative fixed point technique to analyze the meaning of recursive denotational specifications. Concretely, we postulate that a new possible contractive condition should require only that for all , where is a fixed element which represents the aforementioned distinguished element of the model and .

If the preceding contractive condition, which is required only for a concrete sequence of elements of the model, was appropriate for our purpose, then the completeness that is required for all Cauchy sequences of the partial metric space supporting the mathematical model would be also unnecessary in order to provide the new quantitative fixed point technique.

In the light of the preceding facts, it seems interesting to wonder if it is possible to obtain a fixed point technique, which refines the original Matthews technique, based on the use of a new version of Theorem 1 which simultaneously incorporates the contractive condition (4) and a weaker notion of completeness and, in addition, it allows analyzing the meaning of recursive denotational semantics in the spirit of Scott and maintaining the original ideas of Matthews.

In the remainder of the paper we provide a positive answer to the posed question. In Section 2 we consider the -completeness, as introduced in [7], and we show that such a notion of completeness, weaker than the completeness of Matthews, is enough to prove the announced fixed point theorem for self-mappings satisfying the contractive condition (4). Moreover, in the same section, we provide examples that show that the hypothesis in the statement of our new result cannot be weakened. In addition, we discuss the feasibility of using the new fixed point theorem as a mathematical tool for analyzing the meaning of recursive denotational specifications. In Section 3, we show that our new result is appropriate for such a purpose and we illustrate its utility discussing the meaning of a few concrete denotational specifications, among them, the denotational specification of the factorial function and a while-loop.

#### 2. The Fixed Point Theorem

In this section we present our main result which will play a central role in the application to denotational semantics developed in Section 3. To this end, let us recall a few pertinent notions.

Following [34], an element of a partially ordered set is said to be a post-fixed point, with respect to , of a mapping from into itself provided that . As usual, a mapping from a partially ordered set into itself will be called monotone if whenever .

On account of [7], a sequence in a partial metric space is called -Cauchy if . Moreover, a partial metric space is said to be -complete if every -Cauchy sequence in -converges, with respect to , to a point . Of course, every complete partial metric space is -complete, but the converse is not true in general.

In the light of the preceding notions we are in a position to introduce the announced main result.

Theorem 2. *Let be a monotone mapping from a -complete partial metric space into itself and let be a post-fixed point of with respect to . If there exists such that
**
for all , then has a fixed point which satisfies that*(1)* is the unique fixed point of in ;*(2)* is the supremum of in ; moreover, is maximal in ;*(3)*the sequence converges to with respect to ;*(4)*.*

*Proof. *By (5) we have that
for all . Whence we obtain that .

Since and is monotone we have that the sequence is increasing in . Thus
for all . Whence
for all . It follows that is a -Cauchy sequence in . Since is -complete we deduce that the existence of such that with respect to, that is, . Therefore, and converges to with respect to .

Next we show that . Since for all we have that for all . Now, let . Then there exists such that for all , since . Thus
for all . Whence we obtain that and, hence, that ; that is, .

Next we show that is the supremum of in and that is maximal in . First of all we prove that is an upper bound of . Since
for all with and , we deduce that for all . Consequently, for all .

Now assume that there exists such that for all . Then for all . Hence
It follows, from , that and, hence, that . Whence is the supremum of . Moreover, the fact that provides that whenever . So is maximal in .

In the following we show that is a fixed point of . We have that for all . Then, by monotonicity of , we obtain that for all . Since is the supremum of we deduce that . Whence, by maximality of , we obtain that .

It remains to prove that is the unique fixed point of in . Indeed, assume that there exists with . Then we immediately deduce that for all . So is an upper bound of the sequence . Whence we obtain that , since is the supremum of . The fact that is maximal yields that .

The below example shows that the -completeness of the partial metric space cannot be relaxed in statement of Theorem 2.

*Example 3. *Let be a nonempty alphabet. Denote by the set of finite sequences over . According to [6], consider the partial metric defined by
where denotes the longest common prefix of and (of course if and have not a common prefix then . It is easy to check that is a prefix of .

Observe that, given , is exactly the length of .

The partial metric space is not -complete. Indeed, fix and take the sequence in given by for all . It is clear that the sequence is -Cauchy but it is not -convergent with respect to .

Define the mapping by , where denotes the concatenation of and . It is evident that is monotone and that is a post-fixed point of . Moreover, we have that
for all . Nevertheless, has no fixed points.

The next examples show that the monotonicity and the contractive condition (5) of the self-mapping cannot be deleted in the statement of Theorem 2 in order to assure the existence of fixed point.

*Example 4. *Consider the partial metric given by . Clearly the partial metric space is -complete. Moreover, the partial order satisfies that
where stands for the usual order on . Define the function by

It is evident that is not monotone, since and . Moreover, is a post-fixed point of . Furthermore,
for all . Obviously has no fixed points.

*Example 5. *Consider the partial metric space , where
for all . According to [35, 36], the partial metric space is complete and, therefore, is -complete. Moreover, it is clear that for all .

Next consider given by and , where and for all . It is not hard to check that is -complete.

Now define the mapping by

It is routine to check that is monotone and that is fixed point free. Take given by for all . Then is a post-fixed point of . Furthermore, there is no such that
for any . Indeed, assume for the purpose of contradiction that that there exists satisfying the preceding inequality. Then
Whence we obtain that
which is impossible.

In the below example we show that the existence of a post-fixed point of the self-mapping cannot be omitted in the statement of Theorem 2 to ensure the existence of fixed point.

*Example 6. *Let . Denote by and the set of finite and infinite sequences over , respectively. On account of [6], the partial metric space , known as the Baire partial metric, is complete, where and for all (recall that, similar to Example 3, denotes the longest common prefix of and ). Hence the partial metric space is -complete. Moreover, it is clear that is a prefix of .

Consider the monotone mapping defined by
where denotes the first element of the sequence . It is clear that
for all , where denotes the length of the sequence ; that is, and, thus, whenever and whenever .

It is obvious that is post-fixed point free. Of course, has no fixed points.

Recently, it has been shown that many fixed point results proved in the partial metric framework can be obtained from the corresponding fixed point results in the metric framework (see [37, 38]). Concretely, in [37], it was proved that every partial metric on a nonempty set induces a metric on such that , where Moreover, is complete if and only if is -complete.

Taking into account the preceding facts, in [38] it was pointed out that a wide class of generalized contractive mappings in the partial metric context are at the same time generalized contractive mappings in the metric one. So the existence and uniqueness of fixed point results for such mappings can be deduced from those results given for the same kind of mappings in the metric case. Of course, as a particular case of the preceding remark one obtains that if a mapping satisfies the below condition for all and any , then also satisfies the next condition for all . Therefore, guaranteed that the partial metric space is -complete and that a mapping holds (25), the existence and uniqueness of fixed point of follow from the classical Banach fixed point and the fact that holds (26). Observe that in spite of the fact that the existence and uniqueness of fixed point in the statement of Theorem 1 can be deduced directly from the classical Banach fixed point result, Theorem 1 provides a property of such a fixed point that cannot be deduced in the metric context and that is essential in denotational semantics. Specifically, if is the fixed point of the mapping, then . In consequence, the classical fixed point results do not invalidate totally the new ones in the partial metric framework.

The above discussion motivates one to wonder if our new result, Theorem 2, can be deduced from the corresponding result for metric spaces. However, the answer to the posed question is negative. Indeed, on the one hand, we have that in the statement of Theorem 2 we need the partial order that induces a partial metric . Of course such a partial order cannot be induced by the associated metric (in fact from any metric), since we have that Nevertheless, the condition implies that there are in general different elements which can be order-related. An illustrative example of the exposed situation is given by the partial metric on introduced in Example 4. It is evident that and that . On the other hand, if one preserves all hypotheses in statement of Theorem 2 except inequality (5), then one can wonder if the aforementioned inequality can be replaced by its metric version (with respect to or another metric). Again such a question has a negative answer because the metric version of inequality (5) does not provide any information about the behavior of the mapping under consideration. In particular, the next example shows that in this case there are mappings which are fixed point free.

*Example 7. *Consider the -complete partial metric space introduced in Example 5. It is clear that the mapping introduced in the aforesaid example holds all conditions in statement of Theorem 2 except inequality (5). Obviously, it satisfies the metric version of such an inequality; that is,
for any (in fact for all ). However, is a fixed point free mapping. Notice that the preceding inequality is satisfied for any metric not only for . So one could consider any metric and still would have an example of a fixed point free mapping.

In the light of Theorem 2, it seems natural to wonder whether the existence of fixed point of the self-mapping could be retrieved from the celebrated Tarski-Kantorovitch’s or Kleene’s fixed point theorem. However, the answer to the posed question is negative such as the below examples show. With the aim of introducing such examples, we recall a few pertinent concepts following [39]. A mapping from a partially ordered set into itself is said to be ≤-continuous provided that the supremum of is for every increasing sequence whose supremum exists and is . We will say that a partially ordered set is countably chain-complete provided that every increasing sequence has a supremum. The aforesaid celebrated fixed point theorem states the following.

Theorem 8. *Let be a countably chain-complete partially ordered set and let be a ≤-continuous mapping from into itself. If is a post-fixed point of , then has a fixed point which satisfies that .*

As announced before, the next examples guarantee that Theorem 2 is not a corollary of Theorem 8. The first of them yields that if is a -complete partial metric space, then the partially ordered set is not countably chain-complete in general. The second one gives that there exist monotone mappings from -complete partially ordered sets into itself which are not -continuous.

*Example 9. *Let . Consider the partial metric introduced in Example 4. It is clear that the partial metric space is -complete. Next take the sequence in given by for all . It is obvious that the sequence is increasing in . However, such a sequence has no supremum in . So is not countably chain-complete.

*Example 10. *Let be the set of all nonempty compact intervals of the real line. Consider the partial metric given by
According to [6], the partial metric space is complete and, thus, -complete. Moreover, It is not hard to see that the partial order is defined on as follows:
Next take the sequence in given by for all . Of course, is an increasing sequence in whose supremum is . Define the mapping by , where the function is defined by
It is easy to see that is monotone. However, is not -continuous. Indeed, the sequence is increasing in and its supremum is .

We end the section discussing the feasibility of using our new fixed point theorem as a mathematical tool for recursive denotational semantics correctness.

Of course, Theorem 2 provides a fixed point technique suitable for analyzing the meaning of recursive denotational specifications in the spirit of Scott and Matthews. Indeed, the computational interpretation of Theorem 2 can be given in the following terms. Fixed an approximation of the meaning of the recursive denotational specification under study, which is given by an element such that ( is a partial object of the model which is provided by and ) then the contractive condition, gives that the sequence of successive iterations represents the progress of the computational recursion process in such a way that the information about the final stage of the process is increased successively in each passage of the same one, since the smaller is, the more defined is and, thus, contains more information about the meaning of the recursive specification than . Moreover, the final stage of the process, the meaning of the recursive specification, matches up with the fixed point of the self-mapping which satisfies ( is a total defined object of the model). Hence the computational process is obtaining in each step of the computation an approximation to the final stage of the process which is better than the approximations obtained in the preceding steps. Furthermore, the uniqueness of the fixed point ensures that we can find in the model a univocal representative of the meaning whose information content, of course, must include the information content of the first approximation; that is, . The fact that is maximal gives that there is not another element of the model whose information content approximates the recursive denotational specification meaning better than . Finally, the convergence of with respect to and the fact that is the supremum of yield that captures exactly the information content of the meaning and it does not contain more information that can be derived from the elements of the sequence of approximations.

It must be stressed that the point can be interpreted as an initial condition which must be satisfied by the denotational specification and, thus, its meaning should depend on such initial condition; that is, for each initial condition there is a meaning of the denotational specification (see Section 3). In this situation, the fact that the unique fixed point of the mapping, whose sequence of successive iterations provides the information about the final stage of the process, belongs to yields that, for each initial condition , Theorem 2 gives the meaning of the denotational specification associated with such a condition. Observe that Matthews fixed point theorem, Theorem 1 in Section 1, is not able to analyze those denotational specifications whose meaning depends on an initial condition because the fixed point provided by such a result is unique in the whole space , which provides the mathematical model joint with . Therefore, Theorem 2 not only relaxes the hypothesis in the statement of Theorem 1, but also expands the sort of denotational specifications that can be treated by means of quantitative fixed point techniques in the spirit of Theorem 1.

#### 3. Testing the New Fixed Point Technique Based on Partial Metric Spaces

The aim of this section is twofold. On the one hand, we show that the developed method in Section 2 (provided by Theorem 2) is useful, as a quantitative alternative to the Scott one, to analyze the meaning of recursive definitions in denotational semantics for programming languages. On the other hand, we want to validate the aforesaid method by means of proving the meaning of a few illustrative examples of recursive denotational specifications.

To this end, we first consider a recursive algorithm computing the factorial of a positive integer number by means of the recursive denotational specification introduced in Section 1.1; that is,

The above denotational specification, as we have pointed out in Section 1.1, has the drawback that the meaning of the symbol fact is expressed in terms of itself. Hence the symbol fact cannot be replaced by its meaning in the denotational specification (1), since the meaning, given by the right-hand side in (1), also contains the symbol.

In order to prove that the meaning of specification (33) is the entire factorial function, we take and consider the Baire partial metric space (cf. Example 6). On account of [6], the Baire partial metric space is complete and, therefore, -complete.

In what follows, given , we will write

Next we consider, associated with , the mapping defined by , where , is given by

Of course, the meaning, the solution to (33), of the recursive denotational specification (33) is a fixed point of the mapping . Observe that, in fact, the mapping has only one fixed point and that the mapping is an adaptation to the Baire partial metric framework of the mapping , whose fixed point is the meaning of the denotational specification (33), introduced in Section 1.1.

Clearly the mapping is monotone. Define by . Then . It is obvious that is a post-fixed point of ; that is, . Moreover, it is easy to check that for all . Consequently, for all .

Since all assumptions in statement of Theorem 2 hold we obtain that has a unique fixed point . It is evident that models the behavior of the recursive program that computes the factorial function when the input is exactly . In fact, provides the factorial of the number ; that is, is a finite approximation to the entire total factorial function which provides the factorial of every number with . Moreover, the sequence is ascending in and this agrees with the fact that each successive iteration contains more information about the entire factorial function, and thus approaches better the entire factorial function, than the preceding ones. In fact, each successive iteration allows computing the factorial of a positive integer number more than the previous one. Furthermore, Theorem 2 ensures that the fixed point of is the supremum of the ascending sequence and that such a sequence converges to with respect to . This guarantees that does not contain more information that can be derived from the elements of the sequence of successive iterations . So, yields the factorial of every number and, in turn, gives no further information. Finally, it must be stressed that Theorem 2 provides that is maximal in and that . Notice that the maximal elements in are exactly those that satisfy the condition . Besides, the condition is equivalent to . The latter agrees with the fact that the entire total factorial function cannot be represented by an element in . Moreover, observe that in this case the initial conditions satisfying that and that is the meaning of the denotational specification match up with the prefixes of such that . So in this case all initial conditions provide the same fixed point of the mapping , which is the unique meaning of denotational specification (33).

Therefore, Theorem 2 provides the entire factorial function, the meaning of (33), as the unique fixed point of the mapping with infinite length.

In the light of the preceding example one could think that Theorem 2 provides a quantitative fixed point technique which is only useful to discuss the meaning of very simple denotational specifications such as the factorial denotational specification where the meaning is unique. However, Theorem 2 is able to analyze denotational specifications which admit more than one meaning such as the next example shows. Consider the recursive specification given as follows:

Similarly to the preceding example the denotational specification (37) presents the handicap that the meaning of the symbol is expressed in terms of itself. It is clear that the meaning of (37) is provided by a collection of mappings where is given by

In order to apply Theorem 2 to obtain the meaning of (37) as the aforesaid collection of mappings we define the mapping on , with , by where is given by It is not hard to see that each with and is a post-fixed point of with respect to and for all . Therefore, Theorem 2 yields the existence of a unique fixed point of in which is maximal, the supremum of in , and the limit of the sequence with respect to and, in addition, with (i.e., ). Obviously we have that for any Therefore, we conclude that Theorem 2 provides for any the unique fixed point of which matches up with the meaning of the denotational specification (37) associated with the initial condition , that is, matches up with the mapping defined above. So our result allows obtaining the meaning of the specification under consideration by means of the collection of fixed points of the mapping preserving, as explained in the preceding case, the original Scott spirit and the quantitative one of Matthews.

Finally, we end the paper analyzing the meaning of an additional denotational specification in order to show the power of the developed theory. In particular, we show that Theorem 2 is able to analyze the denotational specification of a while-loop . Of course, the preceding denotation expressed by means of sequential composition of commands holds the below specification: Similar to the case of the denotational specifications (33) and (37), the denotational specification (42) presents a disadvantage because the meaning of the symbol is expressed in terms of itself.

An illustrative example of this sort of situations is given by the following while-loop: where the storage variables and take a nonnegative integer value and an integer one, respectively. If denotes the set of integer numbers and, in addition, and stand for the input values of and , respectively, then it is clear that the meaning of the denotational specification (43) is given by a mapping such that for all or, equivalently, by a family of mappings such that is defined by for all (see [40]).

In the following we show that Theorem 2 allows analyzing the meaning of the denotation specification (43). To this end, we consider and given we will write each element of the sequence as follows where and for all .

Next define the mapping by where is given by

In what follows we show that the mapping holds all conditions in the statement of Theorem 2. Clearly, the Baire partial metric space is complete and, hence, -complete. Moreover, fixed , we have that is a post-fixed point of such that for all , where with . Furthermore, for all . Consequently, Theorem 2 guarantees the existence of a unique fixed point of in which is maximal, the supremum of in , and the limit of the sequence with respect to and, in addition, with (i.e., ). It is clear that for all , since for any we have that So, by Theorem 2, for each we obtain a fixed point of the mapping which matches up with the outputs of the mapping for each . Whence we obtain that the meaning of the denotational specification (43) is provided by the collection of fixed points of the mapping preserving both the original Scott spirit and the quantitative one of Matthews. Hence the provides a finite approximation to the output of the while-loop when the input values of the variables and are and , respectively. Since the sequence is ascending in we have that each successive iteration contains more information about the output of while-loop and approaches better such an output than the preceding ones when the input values of the variables and are and , respectively. Moreover, does not contain more information about the final output of the while-loop than can be derived from the elements of the sequence , since the aforementioned sequence converges to its supremum with respect to . Furthermore, is maximal () and this agrees with the fact that, provided the input values for and , the meaning of the while-loop cannot be represented by an element in (in fact such a meaning matches up with the mapping defined above).

#### Acknowledgments

The authors thank the reviewers for their valuable suggestions which have improved the content of the paper. O. Valero thanks the support from the Spanish Ministry of Economy and Competitiveness, under Grant MTM2012-37894-C02. This work was partially funded by the Deanship of Scientific Research (DSR), King Abdulaziz University, Jeddah. N. Shahzad, therefore, acknowledges with thanks DSR for financial support.

#### References

- D. S. Scott, “Outline of a mathematical theory of computation,” in
*Proceedings of the 4th Annual Princeton Conference on Information Sciences and Systems*, pp. 169–176, Oxford, UK, November 1970. - G. Gierz, K. H. Hofmann, K. Keimel, J. D. Lawson, M. Mislove, and D. S. Scott,
*Continuous Lattices and Domains*, vol. 93 of*Encyclopedia of Mathematics and its Applications*, Cambridge University Press, Cambridge, UK, 2003. View at Publisher · View at Google Scholar · View at MathSciNet - M. Schellekens, “The smyth completion: a common foundation for denotational semantics and complexity analysis,”
*Electronic Notes in Theoretical Computer Science*, vol. 1, pp. 535–556, 1995. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at Scopus - S. Romaguera and O. Valero, “A common mathematical framework for asymptotic complexity analysis and denotational semantics for recursive programs based on complexity spaces,” in
*Semantics—Advances in Theories and Mathematical Models*, M. T. Afzal, Ed., vol. 1, chapter 5, pp. 99–120, InTech Open Science, Rijeka, Croatia, 2012. View at Publisher · View at Google Scholar - B. A. Davey and H. A. Priestley,
*Introduction to Lattices and Order*, Cambridge Mathematical Textbooks, Cambridge University Press, Cambridge, UK, 1990. View at MathSciNet - S. G. Matthews, “Partial metric topology,”
*Annals of the New York Academy of Sciences*, vol. 728, pp. 183–197, 1994. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at Scopus - S. Romaguera, “Matkowski's type theorems for generalized contractions on (ordered) partial metric spaces,”
*Applied General Topology*, vol. 12, no. 2, pp. 213–220, 2011. View at Zentralblatt MATH · View at MathSciNet · View at Scopus - M. A. Alghamdi, N. Shahzad, and O. Valero, “Fixed point theorems in generalized metric spaces with applications to computer science,”
*Fixed Point Theory and Applications*, vol. 2013, article 118, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - M. A. Bukatin and J. S. Scott, “Towards computing distances between programs via scott domains,” in
*Logical Foundations of Computer Science*, S. Adian and A. Nerode, Eds., vol. 1234 of*Lecture Notes in Computer Science*, pp. 33–43, Springer, Berlin, Germany, 1997. View at Publisher · View at Google Scholar · View at MathSciNet - M. A. Cerdà-Uguet, M. P. Schellekens, and O. Valero, “The baire partial quasi-metric space: a mathematical tool for asymptotic complexity analysis in computer science,”
*Theory of Computing Systems*, vol. 50, no. 2, pp. 387–399, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - A. K. Seda and P. Hitzler, “Generalized distance functions in the theory of computation,”
*Computer Journal*, vol. 53, no. 4, pp. 443–464, 2010. View at Publisher · View at Google Scholar · View at Scopus - R. Heckmann, “Approximation of metric spaces by partial metric spaces,”
*Applied Categorical Structures*, vol. 7, no. 1–2, pp. 71–83, 1999. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. J. O'Neill, “Partial metrics, valuations, and domain theory,”
*Annals of the New York Academy of Sciences*, vol. 806, pp. 304–315, 1996. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at Scopus - S. Romaguera and M. P. Schellekens, “Partial metric monoids and semivaluation spaces,”
*Topology and Its Applications*, vol. 153, no. 5-6, pp. 948–962, 2005. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. Romaguera, P. Tirado, and O. Valero, “Complete partial metric spaces have partially metrizable computational models,”
*International Journal of Computer Mathematics*, vol. 89, no. 3, pp. 284–290, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. Romaguera and O. Valero, “A quantitative computational model for complete partial metric spaces via formal balls,”
*Mathematical Structures in Computer Science*, vol. 19, no. 3, pp. 541–563, 2009. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. Romaguera and O. Valero, “Domain theoretic characterisations of quasi-metric completeness in terms of formal balls,”
*Mathematical Structures in Computer Science*, vol. 20, no. 3, pp. 453–472, 2010. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - M. P. Schellekens, “A characterization of partial metrizability: domains are quantifiable,”
*Theoretical Computer Science*, vol. 305, no. 1–3, pp. 409–432, 2003. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - M. P. Schellekens, “The correspondence between partial metrics and semivaluations,”
*Theoretical Computer Science*, vol. 315, no. 1, pp. 135–149, 2004. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. G. Matthews, “An extensional treatment of lazy data flow deadlock,”
*Theoretical Computer Science*, vol. 151, no. 1, pp. 195–205, 1995. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - M. Abbas, T. Nazir, and S. Romaguera, “Fixed point results for generalized cyclic contraction mappings in partial metric spaces,”
*Revista de la Real Academia de Ciencias Exactas, Físicas y Naturales, Serie A*, vol. 106, no. 2, pp. 287–297, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - M. A. Alghamdi, N. Shahzad, and O. Valero, “On fixed point theory in partial metric spaces,”
*Fixed Point Theory and Applications*, vol. 2012, article 175, 2012. View at Publisher · View at Google Scholar · View at MathSciNet - I. Altun and A. Erduran, “Fixed point theorems for monotone mappings on partial metric spaces,”
*Fixed Point Theory and Applications*, vol. 2011, article 508730, 2011. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - R. P. Argarwal, M. A. Alghamdi, and N. Shahzad, “Fixed point theory for cyclic generalized contractions in partial metric spaces,”
*Fixed Point Theory Applications*, vol. 2012, article 40, 2012. View at Publisher · View at Google Scholar - H. Aydi, M. Abbas, and C. Vetro, “Partial hausdorff metric and nadler's fixed point theorem on partial metric spaces,”
*Topology and Its Applications*, vol. 159, no. 14, pp. 3234–3242, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - H. Aydi, C. Vetro, W. Sintunavarat, and P. Kumam, “Coincidence and fixed points for contractions and cyclical contractions in partial metric spaces,”
*Fixed Point Theory and Applications*, vol. 2012, article 124, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - L. Ćirić, B. Samet, H. Aydi, and C. Vetro, “Common fixed points of generalized contractions on partial metric spaces and an application,”
*Applied Mathematics and Computation*, vol. 218, no. 6, pp. 2398–2406, 2011. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - D. Ilić, V. Pavlović, and V. Rakočević, “Some new extensions of Banach's contraction principle to partial metric space,”
*Applied Mathematics Letters*, vol. 24, no. 8, pp. 1326–1330, 2011. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - D. Ilić, V. Pavlović, and V. Rakočević, “Extensions of the Zamfirescu theorem to partial metric spaces,”
*Mathematical and Computer Modelling*, vol. 55, no. 3–4, pp. 801–809, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - S. Oltra and O. Valero, “Banach's fixed point theorem for partial metric spaces,”
*Rendiconti dell'Istituto di Matematica dell'Università di Trieste*, vol. 36, pp. 17–26, 2004. View at Zentralblatt MATH · View at MathSciNet - S. Romaguera, “Fixed point theorems for generalized contractions on partial metric spaces,”
*Topology and Its Applications*, vol. 159, no. 1, pp. 194–199, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - I. A. Rus, “Fixed point theory in partial metric spaces,”
*Analele Universitatii de Vest din Timisoara: Seria Matematica-Informatica*, vol. 46, no. 2, pp. 149–160, 2008. View at Zentralblatt MATH · View at MathSciNet - O. Valero, “On Banach fixed point theorems for partial metric spaces,”
*Applied General Topology*, vol. 6, no. 2, pp. 229–240, 2005. View at Zentralblatt MATH · View at MathSciNet - S. Roman,
*Lattices and Ordered Sets*, Springer, New York, NY, USA, 2008. View at MathSciNet - S. Romaguera and M. P. Schellekens, “Quasi-metric properties of complexity spaces,”
*Topology and Its Applications*, vol. 98, no. 1–3, pp. 311–322, 1999. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - S. Oltra, S. Romaguera, and E. A. Sánchez-Pérez, “Bicompleting weightable quasi-metric spaces and partial metric spaces,”
*Rendiconti del Circolo Matematico di Palermo*, vol. 51, no. 1, pp. 151–162, 2002. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - P. Hitzler and A. K. Seda,
*Mathematical Aspects of Logic Programming Semantics*, CRC Press, Boca Raton, Fla, USA, 1st edition, 2011. - R. H. Haghi, Sh. Rezapour, and N. Shahzad, “Be careful on partial metric fixed point results,”
*Topology and Its Applications*, vol. 160, no. 3, pp. 450–454, 2013. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - A. Baranga, “The contraction principle as a particular case of Kleene's fixed point theorem,”
*Discrete Mathematics*, vol. 98, no. 1, pp. 75–79, 1991. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - H. R. Nielson and F. Nielson,
*Semantics with Applications: A Formal Introduction*, Wiley Professional Computing, John Wiley & Sons, New York, NY, USA, 1992.