• No se han encontrado resultados

DERECHO A LA EDUCACIÓN

In document BELLO CIUDAD EDUCADA Y COMPETITIVA (página 130-139)

The collection of state functions

y

1,

:::

,

y

n is called a renement map-

ping. The \barred variable"

y

iis the state function with which implements the variable

y

i of .

To prove (51), one must nd a renement mapping such that )

is valid. The completeness theorem then implies that the proof of )

can be reduced to the proof of valid action formulas by using the rules of Figure 5. But can the requisite renement mapping always be found? Does the validity of (51) imply the existence of a renement mapping such that

) is valid?

The answer is no; a renement mapping need not exist. As an example, we return to Programs 1 and 2, represented by formulas of Figure 3 on page 18 and of Figure 7 on page 32. Program 2 permits precisely the same sequences of values for

x

and

y

as does Program 1. Therefore, the formula

9sem

;

pc

1

;

pc2: , which describes only the sequences of values for

x

and

y

allowed by Program 2, is equivalent to . Can we prove this equivalence? We already sketched the proof of ) , which by Rule E2 implies

(9 sem

;

pc

1

;

pc2 : )

). In this case, has no internal variables, so the

renement mapping is the trivial one consisting of the empty set of barred variables. Now consider the converse,

) (9sem

;

pc

1

;

pc2 : ) (52)

Can we dene the requisite state functions sem, pc1, and pc2 in terms of

x

and

y

(the only variables that occur in ) so that Program 1 allows them to assume only those sequences of values that Program 2 allows the corresponding variables to assume? Clearly not. There is no way to infer from the values of

x

and

y

what the values of sem, pc1, and pc2 should be.

Thus, there does not exist a renement mapping for which implies . To prove (52), one must modify by adding dummy variables. Intu- itively, a dummy variable is one that is added to a program without aecting the program's behavior. Formally, adding a dummy variable

d

to a formula means nding a formula d such that9

d

: d is equivalent to . (The

variable

d

is assumed not to occur free in .) Formula (52) can be proved by adding two dummy variables

h

and

p

to . That is, we can construct a formula hp such that9

h;p

: hp is equivalent to , and can then prove

(9

h;p

:

hp)

) (9sem

;

pc

by constructing a renement mapping such that hp implies . The rene- ment mapping can be found because the state functions sem, pc1, and pc2

are allowed to depend upon

h

and

p

as well as

x

and

y

.

In general, renement mappings can always be found if we add the right dummy variables. The completeness theorem of [1] shows that, under certain reasonable assumptions about and , if (51) is valid, then it can in prin- ciple be proved by adding dummy variables to and nding the requisite renement mapping. This theorem and the completeness theorem provide a relative completeness result for TLA formulas of the form (51) when and are formulas of the form Init^2[N]f^

F

, with

F

the conjunction of

fairness conditions.

9.3.3 \Barring" Fairness

When has the canonical form Init ^2[N]f ^

F

, the formula equals

Init ^2[N]f ^

F

. If

F

is the conjunction of fairness conditions of the

form WFg(M) and SFg(M), then

F

is the conjunction of \barred" fairness

conditions WFg(M) and SFg(M).

We might expect that WFg(M) would be equivalent to WFg(M) and

SFg(M) equivalent to SFg(M), but that need not be the case. It is true

that

WFg(M) 23:Enabled hMig _ 23hMig

SFg(M) 23:Enabled hMig _ 32hMig

(53) However, Enabled hMig is not necessarily equivalent to Enabled hMig. For

example, let Mbe the action (

x

0=

x

)

^ (

y

0

6

=

y

), let

g

equal (

x;y

), and let the renement mapping be dened by x =

z

and y =

z

. Then EnabledhMig

equals true, so Enabled hMig equals true. But

Enabled hMig Enabled h(

x

0=

x

) ^ (

y

0 6 =

y

)i (x;y) fby denition ofMandg g Enabled h(x 0= x) ^ (y 0 6 = y)i (x;y) fby denition of :::g Enabled h(

z

0=

z

) ^ (

z

0 6 =

z

)i (z;z) fby denition ofx andyg Enabled false fby denition ofh:::i

::: g

false fby denition ofEnabledg

Thus, Enabled hMig is not equivalent to Enabled hMig. In general, the

Enabled hMig, so we can't obtain Enabled hMig from Enabled hMig by

blindly barring all variables.

In rules WF2 and SF2, the formulas WFg(M) and SFg(M) are dened

by (53). The rules are sound when M is any action,

g

any state function,

and Enabled hMig any predicate|assuming that WFg(M) and SFg(M)

are dened by (53). In practice, the barred formulas will be obtained from unbarred ones by substituting \barred variables" (state functions) for vari- ables, as in our example.

10 Further Comments

In document BELLO CIUDAD EDUCADA Y COMPETITIVA (página 130-139)