Program Semantics and Classical Logic



Definition 1 (Language)

Num :

:= 0    |

S(Num)

N:

:= x |

Num |

N1 + N2   |  N1 × N2

B:

:= false

|   N1 =

N2   |  N1 N2  |  B1 B2

F:

:= B |

F1 F2

|   ∀xF

A:

:= x := N

|   B?

|X

P:

:= A |

P1;P2

Pi P2   |   hXi ^ Piin(p)

C:

:= {F1}P {F2}   |

P1 P2

Note that the construction hXi ^ Pi)n=1(P), unlike the similar construct
studied in [3], may be nested to an arbitrary depth. A real programming
language such as PASCAL would write
hXi ^ Piin=1(P) as follows.

procedure X1 ;

P1;

procedure Xn ;

P

n;

P

This exhausts our stock of programs. The category C finally, consists of cor-
rectness statements,
which can be divided into asserted programs {F1}P {F2}
stating that program P , whenever it is started in a state where F1 holds, will
after any successful execution be in a state where F
2 holds. The statement
P
1 P2 expresses that if we can reach a state j starting from a state i by
running P
1 , we can also get from i to j by running P2.

The following abbreviations are useful.

Definition 2 (Abbreviations)

true

is

short for

false false

-F

is

short for

F false

F1 F2

is

short for

-F1 F2

F1 F2

is

short for

-(-Fi ∨ -F2)

xF

is

short for

-Vx-F

N1 < N2

is

short for

N1 N2 ∧ -N1 = N2

5



More intriguing information

1. Fiscal federalism and Fiscal Autonomy: Lessons for the UK from other Industrialised Countries
2. Models of Cognition: Neurological possibility does not indicate neurological plausibility.
3. Regional Intergration and Migration: An Economic Geography Model with Hetergenous Labour Force
4. The name is absent
5. Regional specialisation in a transition country - Hungary
6. Cultural Diversity and Human Rights: a propos of a minority educational reform
7. EMU's Decentralized System of Fiscal Policy
8. Human Development and Regional Disparities in Iran:A Policy Model
9. Delayed Manifestation of T ransurethral Syndrome as a Complication of T ransurethral Prostatic Resection
10. REVITALIZING FAMILY FARM AGRICULTURE
11. The Importance of Global Shocks for National Policymakers: Rising Challenges for Central Banks
12. The Employment Impact of Differences in Dmand and Production
13. Exchange Rate Uncertainty and Trade Growth - A Comparison of Linear and Nonlinear (Forecasting) Models
14. The name is absent
15. Input-Output Analysis, Linear Programming and Modified Multipliers
16. The name is absent
17. The name is absent
18. The name is absent
19. Job quality and labour market performance
20. What Contribution Can Residential Field Courses Make to the Education of 11-14 Year-olds?