Program Semantics and Classical Logic



Corollary 14 (Scott’s Induction Rule) Assume X1, . . . , Xn are not free
in C. Write C(Q) for [Q/X]C. Then

C ([fail/Xi,..., fail∕Xn]P )+
X111.Xn(C(P)^→C∖[Pι∕Xι,11.,Pn∕Xn]Pr AX
C
(hXi ^ Pi)i(P))+

8 Hoare’s Calculus

As a simple application we show that our semantics subsumes the Hoare
Calculus, which we shall present in Gentzen form. Sequents Γ
'h C will
consist of a set of asserted programs Γ and an asserted program C. The
derivability relation
'PA between assertions F is given by an axiomatization
of first-order logic plus the first-order Peano axioms. Structural rules of our
Hoare-Gentzen calculus are the following.

C 'h C


Γι 'h C


Γι, Γ2 'h C


Γι 'h Ci Γ2,C1 'h C2
γ1, γ2 'h C2


(Id)

(Weakening)

(Cut)


The following logical rules embody the Hoare Calculus.

'H {[N∕x]F}x := N{F}


(Assignment)


'H {F}B?{F B}               (Test)

Γi 'h {F1}P1{F2} Γ2 'h {F2}P2{F3}

Γι, Γ2 'h {Fi}Pi; P2{F3}

Γι 'h {F1}P1{F2} Γ2 'h {F1}P2{F2}
Γι, Γ2 'h {F1}P1 P2{F2}

Γ 'H {F1}[fail∕X1,..., fail∕Xn]P {F2}

Γ, {Fι}P{F2} 'h {F1}[P1∕X1,..., Pn/Xn]P{F2}

Γ 'h {F}lXi ^ Pi)n,l(P){F2}

(Composition)

(Choice)

(Recursion)


Fi 'PA F2 Γ 'h {F2}P{F3} F3 'PA F4
Γ 'h {Fi}P{F4}

(Consequence)


24



More intriguing information

1. The name is absent
2. The name is absent
3. REVITALIZING FAMILY FARM AGRICULTURE
4. The name is absent
5. Cardiac Arrhythmia and Geomagnetic Activity
6. Exchange Rate Uncertainty and Trade Growth - A Comparison of Linear and Nonlinear (Forecasting) Models
7. The name is absent
8. New issues in Indian macro policy.
9. Climate change, mitigation and adaptation: the case of the Murray–Darling Basin in Australia
10. A Rational Analysis of Alternating Search and Reflection Strategies in Problem Solving
11. WP 92 - An overview of women's work and employment in Azerbaijan
12. Anti Microbial Resistance Profile of E. coli isolates From Tropical Free Range Chickens
13. Luce Irigaray and divine matter
14. The name is absent
15. The WTO and the Cartagena Protocol: International Policy Coordination or Conflict?
16. A Bayesian approach to analyze regional elasticities
17. The Social Context as a Determinant of Teacher Motivational Strategies in Physical Education
18. Improvement of Access to Data Sets from the Official Statistics
19. O funcionalismo de Sellars: uma pesquisa histδrica
20. The name is absent