• 検索結果がありません。

A Graph-Rewriting Perspective of the Beta-Law

N/A
N/A
Protected

Academic year: 2022

シェア "A Graph-Rewriting Perspective of the Beta-Law"

Copied!
38
0
0

読み込み中.... (全文を見る)

全文

(1)

Muroya (U. B’ham. & RIMS, Kyoto U.)

A Graph-Rewriting

Perspective of the Beta-Law

Dan R. Ghica

Todd Waugh Ambridge (University of Birmingham)

S-REPLS 9 (Univ. Sussex), 25 May 2018

Koko Muroya

(University of Birmingham

& RIMS, Kyoto University) work in progress

(2)

Equivalence of programs

syntactical equation

operational equivalence denotational

equality

t = u

Do t and u denote the same (mathematical) object?

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the

(3)

Muroya (U. B’ham. & RIMS, Kyoto U.)

Equivalence of programs

3

syntactical equation

operational equivalence denotational

equality

graphically?

t = u

Do t and u denote the same (mathematical) object?

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the same value?

(4)

call-by-value equational

theory

contextual (operational)

equivalence [Plotkin ‘75]

(5)

Muroya (U. B’ham. & RIMS, Kyoto U.)

call-by-value equational

theory

5

contextual (operational)

equivalence [Plotkin ‘75]

(6)

call-by-value equational

theory

contextual (operational)

equivalence [Plotkin ‘75]

SECD machine

(7)

Muroya (U. B’ham. & RIMS, Kyoto U.)

7

call-by-value equational

theory

contextual (operational)

equivalence soundness

[Plotkin ‘75]

SECD machine

(8)

call-by-value equational

theory

contextual (operational)

equivalence

graph-rewriting

graphically

(9)

Muroya (U. B’ham. & RIMS, Kyoto U.)

9

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

(10)

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

all and only values are duplicable

(11)

Muroya (U. B’ham. & RIMS, Kyoto U.)

11

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

(12)

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

alpha-law: trivial beta-law: refined

(cf. explicit substitution)

(13)

Muroya (U. B’ham. & RIMS, Kyoto U.)

13

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

alpha-law: trivial beta-law: refined

(cf. explicit substitution)

(14)

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

alpha-law: trivial beta-law: refined

(cf. explicit substitution)

(15)

Muroya (U. B’ham. & RIMS, Kyoto U.)

15

call-by-value graph-equational

theory graphically

contextual (operational)

equivalence

alpha-law: trivial beta-law: refined

(cf. explicit substitution)

(16)

contextual (operational)

equivalence graphically

call-by-value graph-equational

theory

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

SECD

(17)

Muroya (U. B’ham. & RIMS, Kyoto U.)

17

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

graph-rewriting machine

(18)

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

dGoI

(19)

Muroya (U. B’ham. & RIMS, Kyoto U.)

19

SECD machine dGoI machine

● stack of closures

● environment

● control string

● dump

● graph

● evaluation control (“token”)

● rewriting flag

● computation stack

● box stack

(20)

SECD machine dGoI machine

(21)

Muroya (U. B’ham. & RIMS, Kyoto U.)

21

SECD machine dGoI machine

(22)

dGoI-machine transitions

(23)

Muroya (U. B’ham. & RIMS, Kyoto U.)

23

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

dGoI machine

(24)

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

dGoI

soundness

(25)

Muroya (U. B’ham. & RIMS, Kyoto U.)

25

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence soundness

alpha-law: trivial

beta-law: refined (cf. explicit substitution) 1. lift an axiom to a binary relation on

(dGoI-machine) states

(26)

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence soundness

1. lift an axiom to a binary relation on (dGoI-machine) states

2. show the binary relation is a

“U-simulation”

(27)

Muroya (U. B’ham. & RIMS, Kyoto U.)

27

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence soundness

1. lift an axiom to a binary relation on (dGoI-machine) states

2. show the binary relation is a

“U-simulation”

simulation

(28)

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence soundness

1. lift an axiom to a binary relation on (dGoI-machine) states

2. show the binary relation is a

“U-simulation”

simulation

...until the difference is reduced

(29)

Muroya (U. B’ham. & RIMS, Kyoto U.)

“Until the difference is reduced”

29

(30)

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence soundness

1. lift an axiom to a binary relation on (dGoI-machine) states

2. show the binary relation is a

“U-simulation”

simulation

...until the difference is reduced

(31)

Muroya (U. B’ham. & RIMS, Kyoto U.)

31

call-by-value graph-equational

theory graphically

graph-contextual (operational)

equivalence

alpha-law: trivial

beta-law: refined (cf. explicit substitution)

dGoI machine

soundness

modular proof using U-simulations

(32)

Equivalence of programs

syntactical equation

operational equivalence denotational

equality

graphically?

t = u

Do t and u denote the same (mathematical) object?

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the

(33)

Muroya (U. B’ham. & RIMS, Kyoto U.)

Equivalence of programs

33

syntactical equation

operational equivalence denotational

equality

graphically?

t = u

Do t and u denote the same (mathematical) object?

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the same value?

modular proof of soundness using U-simulations

(34)

so what?

(35)

Muroya (U. B’ham. & RIMS, Kyoto U.)

Equivalence of programs

35

syntactical equation

operational equivalence

graphically?

t = u

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the same value?

modular proof of soundness using U-simulations

(36)

Equivalence of programs

syntactical equation

operational equivalence

graphically?

t = u

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the modular proof of soundness

related proof techniques:

logical relations

applicative bisimulations

envirionmental bisimulations...

(37)

Muroya (U. B’ham. & RIMS, Kyoto U.)

Equivalence of programs

37

syntactical equation

operational equivalence

graphically?

t = u

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the same value?

modular proof of soundness using U-simulations

semantical criteria of primitive operations (function constants) to preserve beta-law?

(38)

Equivalence of programs

syntactical equation

operational equivalence

graphically?

t = u

Given any “closing”

context C, do

evaluations of C[t]

and C[u] yield the modular proof of soundness

cost-sensitive equivalence?

(cf. [Schmidt-Schauss & Dallmeyer, WPTE ’17]

参照

関連したドキュメント

Considering singular terms at 0 and permitting p 6= 2, Loc and Schmitt [17] used the lower and upper solution method to show existence of solution for (1.1) with the nonlinearity of

[3] Chen Guowang and L¨ u Shengguan, Initial boundary value problem for three dimensional Ginzburg-Landau model equation in population problems, (Chi- nese) Acta Mathematicae

Applying the representation theory of the supergroupGL(m | n) and the supergroup analogue of Schur-Weyl Duality it becomes straightforward to calculate the combinatorial effect

As a consequence of this characterization, we get a characterization of the convex ideal hyperbolic polyhedra associated to a compact surface with genus greater than one (Corollary

To be specic, let us henceforth suppose that the quasifuchsian surface S con- tains two boundary components, the case of a single boundary component hav- ing been dealt with in [5]

To define the category of sets of which this type of sets is the type of objects requires choosing a second universe of types U 0 and an element u of U 0 such that U = El(u) where El

The theory of log-links and log-shells, both of which are closely related to the lo- cal units of number fields under consideration (Section 5, Section 12), together with the

We relate group-theoretic constructions (´ etale-like objects) and Frobenioid-theoretic constructions (Frobenius-like objects) by transforming them into mono-theta environments (and