Program Semantics and Classical Logic



this procedural way, the rule is a generalisation of the procedural rule for the
μ operator studied in [21, 3].

The following definition says what it is for a program to follow from
another program in one step. Note that we make use of the notational
convention given in the previous section here: Q
1 and Q2 may be taken to
be empty.

Definition 4 (Immediate Consequence) A program Q1 ; Q; Q2 is an im-
mediate consequence of a program Q
1 ; Q0; Q2 iff Q follows from Q0 by the
rule or the ρ rule. Q1 ; Q; Q2 is a leftmost immediate consequence of
Q
1 ; Q0; Q2 if, moreover, Q1 is linear.

From the notion of immediate consequence we can define the notion of com-
putational entailment we are after.

Definition 5 (Computational Entailment) A (leftmost) derivation of Pn
from P1 is a sequence of programs P1 , . . . , Pn such that each Pi+1 is a (left-
most) immediate consequence of Pi. We write P 'C Q (P 'LC Q) iff there is
a (leftmost) derivation of
Q from P.

Example 1 The following is a leftmost derivation of

hZ ^ (x < 3?; x := x + 1; Z) —x < 3?i(Z),

which we shall abbreviate as D(Z), from the linear program x < 3?; x :=

x + 1;x < 3?;x :=

x + 1; —x < 3?.

1.

x < 3?; x :=

x + 1;x < 3?;x :

x + 1; —x < 3?

(premise)

2.

x < 3?; x :=
((x < 3?; x :

x + 1;x < 3?;x :
= x + 1; D(Z))

= x+ 1;

—x < 3?)

( rule)

3.

x < 3?; x :=

x + 1;x < 3?;x :

= x + 1; D(Z)

(ρ rule)

4.

x < 3?; x :=

x + 1; ((x < 3?;x

:= x + 1; D(Z)) —x < 3?)

( rule)

5.

x < 3?; x :=

x+1;D(Z)

(ρ rule)

6.

(x < 3?; x :=

= x + 1; D(Z)) -x< 3?

( rule)

7.

D(Z)

(ρ rule)

8



More intriguing information

1. The Tangible Contribution of R&D Spending Foreign-Owned Plants to a Host Region: a Plant Level Study of the Irish Manufacturing Sector (1980-1996)
2. NEW DEVELOPMENTS IN FARM PRICE AND INCOME POLICY PROGRAMS: PART I. SITUATION AND PROBLEM
3. The name is absent
4. The name is absent
5. 03-01 "Read My Lips: More New Tax Cuts - The Distributional Impacts of Repealing Dividend Taxation"
6. TLRP: academic challenges for moral purposes
7. The Clustering of Financial Services in London*
8. A Critical Examination of the Beliefs about Learning a Foreign Language at Primary School
9. Types of Cost in Inductive Concept Learning
10. Ein pragmatisierter Kalkul des naturlichen Schlieβens nebst Metatheorie
11. Quality practices, priorities and performance: an international study
12. Placentophagia in Nonpregnant Nulliparous Mice: A Genetic Investigation1
13. The name is absent
14. AGRICULTURAL TRADE IN THE URUGUAY ROUND: INTO FINAL BATTLE
15. Change in firm population and spatial variations: The case of Turkey
16. The name is absent
17. Life is an Adventure! An agent-based reconciliation of narrative and scientific worldviews
18. The name is absent
19. Modeling industrial location decisions in U.S. counties
20. The name is absent