Program Semantics and Classical Logic



We see here that an assignment statement x := N is interpreted as the set
of pairs of input and output states such that input and output state differ
at most in the affected register and the value of the register in the output
state is the original value of N . The translation is clearly dependent upon
the Update Axiom. Tests B? are interpreted as sets of those pairs hi, ii such
that B is true in i. Program variables translate themselves; sequencing is
translated as relational composition; and choice is interpreted as union. The
recursion construct is interpreted as a simultaneous fixpoint. The interpre-
tation of hX
i ^ Piin=1 (P) is obtained by considering all those assignments
to X
1 , . . . , Xn for which it is the case that X1 = P1 and . . . and Xn = Pn are
all simultaneously true. For each of those assignments P will have a certain
value and we get the value of the whole construct by taking the intersection
of all values so obtained.

We give the translations of correctness formulas to conclude with. Trans-
lations are now of type t and are almost self-explanatory again. The interpre-
tation of the asserted program {F
1}P {F2} expresses that after any successful
execution of P from a state where F
1 holds we shall be in a state where F2
holds and , not unexpectedly, is interpreted as inclusion.

Definition 14 (Translation of Correctness Formulas)

({F1}P{F2})t = ij ((F1t(i) P⅜,ji)) → F2t(j))        (17)

(Pi P2)t = r (Pt(r) → P2t(r))                       (18)

7 Scott’s Induction Rule

The aim of this section is to import some conceptual machinery from the
Scott-Strachey tradition, adapt it to our revised setting, and develop the
necessary theory in this new setting. In particular, it will turn out to be
possible to prove the validity of
Scott Induction, a rule which is immensely
useful when it comes to proving properties of programs containing the recur-
sion construct.

Our translation function f sends formulae to terms of type s → t, pro-
grams to s × s → t terms and correctness formulae to terms of type t. Clearly,
the domains corresponding to these terms come with natural Boolean alge-
bras: if F is of type α → t then F is the characteristic function of a set R
F ,
which may be identified with F itself. This means that D
α→t corresponds to

16



More intriguing information

1. Types of Tax Concessions for Promoting Investment in Free Economic and Trade Areas
2. Why Managers Hold Shares of Their Firms: An Empirical Analysis
3. The name is absent
4. Howard Gardner : the myth of Multiple Intelligences
5. Peer Reviewed, Open Access, Free
6. Performance - Complexity Comparison of Receivers for a LTE MIMO–OFDM System
7. KNOWLEDGE EVOLUTION
8. LABOR POLICY AND THE OVER-ALL ECONOMY
9. Trade Openness and Volatility
10. Three Strikes and You.re Out: Reply to Cooper and Willis