A Graph-Rewriting s Perspective of the Beta-Law Dan R. Ghica Koko - - PowerPoint PPT Presentation

a graph rewriting
SMART_READER_LITE
LIVE PREVIEW

A Graph-Rewriting s Perspective of the Beta-Law Dan R. Ghica Koko - - PowerPoint PPT Presentation

w o r k p r i n o g r e s A Graph-Rewriting s Perspective of the Beta-Law Dan R. Ghica Koko Muroya Todd Waugh Ambridge (University of Birmingham (University of Birmingham) & RIMS, Kyoto University) S-REPLS 9 (Univ. Sussex),


slide-1
SLIDE 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) w

  • r

k i n p r

  • g

r e s s

slide-2
SLIDE 2

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

Equivalence of programs

2

syntactical equation

  • perational

equivalence denotational equality t = u Do t and u denote the same (mathematical)

  • bject?

Given any “closing” context C, do evaluations of C[t] and C[u] yield the same value?

slide-3
SLIDE 3

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

Equivalence of programs

3

syntactical equation

  • perational

equivalence denotational equality

graphically?

t = u Do t and u denote the same (mathematical)

  • bject?

Given any “closing” context C, do evaluations of C[t] and C[u] yield the same value?

slide-4
SLIDE 4

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

4

call-by-value equational theory contextual (operational) equivalence [Plotkin ‘75]

slide-5
SLIDE 5

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

call-by-value equational theory

5

contextual (operational) equivalence [Plotkin ‘75]

slide-6
SLIDE 6

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

6

call-by-value equational theory contextual (operational) equivalence [Plotkin ‘75] SECD machine

slide-7
SLIDE 7

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

7

call-by-value equational theory contextual (operational) equivalence soundness [Plotkin ‘75] SECD machine

slide-8
SLIDE 8

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

8

call-by-value equational theory contextual (operational) equivalence graph-rewriting machine graphically

slide-9
SLIDE 9

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

9

call-by-value graph-equational theory graphically contextual (operational) equivalence

slide-10
SLIDE 10

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

10

call-by-value graph-equational theory graphically contextual (operational) equivalence all and only values are duplicable

slide-11
SLIDE 11

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

11

call-by-value graph-equational theory graphically contextual (operational) equivalence

slide-12
SLIDE 12

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

12

call-by-value graph-equational theory graphically contextual (operational) equivalence alpha-law: trivial beta-law: refined (cf. explicit substitution)

slide-13
SLIDE 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)

slide-14
SLIDE 14

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

14

call-by-value graph-equational theory graphically contextual (operational) equivalence alpha-law: trivial beta-law: refined (cf. explicit substitution)

slide-15
SLIDE 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)

slide-16
SLIDE 16

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

16

contextual (operational) equivalence graphically call-by-value graph-equational theory alpha-law: trivial beta-law: refined (cf. explicit substitution) SECD machine

slide-17
SLIDE 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

slide-18
SLIDE 18

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

18

call-by-value graph-equational theory graphically graph-contextual (operational) equivalence alpha-law: trivial beta-law: refined (cf. explicit substitution) dGoI machine

slide-19
SLIDE 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
slide-20
SLIDE 20

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

20

SECD machine dGoI machine

slide-21
SLIDE 21

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

21

SECD machine dGoI machine

slide-22
SLIDE 22

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

dGoI-machine transitions

22

slide-23
SLIDE 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

slide-24
SLIDE 24

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

24

call-by-value graph-equational theory graphically graph-contextual (operational) equivalence alpha-law: trivial beta-law: refined (cf. explicit substitution) dGoI machine soundness

slide-25
SLIDE 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

slide-26
SLIDE 26

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

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”

slide-27
SLIDE 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

slide-28
SLIDE 28

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

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

slide-29
SLIDE 29

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

“Until the difference is reduced”

29

slide-30
SLIDE 30

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

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

slide-31
SLIDE 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

slide-32
SLIDE 32

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

Equivalence of programs

32

syntactical equation

  • perational

equivalence denotational equality

graphically?

t = u Do t and u denote the same (mathematical)

  • bject?

Given any “closing” context C, do evaluations of C[t] and C[u] yield the same value?

slide-33
SLIDE 33

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

Equivalence of programs

33

syntactical equation

  • perational

equivalence denotational equality

graphically?

t = u Do t and u denote the same (mathematical)

  • bject?

Given any “closing” context C, do evaluations of C[t] and C[u] yield the same value? modular proof of soundness using U-simulations

slide-34
SLIDE 34

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

so what?

34

slide-35
SLIDE 35

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

Equivalence of programs

35

syntactical equation

  • perational

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

slide-36
SLIDE 36

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

Equivalence of programs

36

syntactical equation

  • perational

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 related proof techniques: logical relations applicative bisimulations envirionmental bisimulations...

slide-37
SLIDE 37

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

Equivalence of programs

37

syntactical equation

  • perational

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

  • perations (function constants)

to preserve beta-law?

slide-38
SLIDE 38

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

Equivalence of programs

38

syntactical equation

  • perational

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 cost-sensitive equivalence?

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