VI.2 Justification

Justification [Slide 177]

Example [Slide 180]

Consider the following ITL formula

Example 56.  

M = 4 N = 1 halt(M = 0) M gets M 1 N gets 2 N

Interval:
State 0: M=4 N=1
State 1: M=3 N=2
State 2: M=2 N=4
State 3: M=1 N=8
State 4: M=0 N=16

Tempura interpreter [Slide 181]

Tempura interpreter:

A formula is executable if

Tempura interpreter:

takes a Tempura formula and constructs the satisfying sequence of states, i.e. interval, using the following rewrite technique:

f present_state what_remains

Example 57.  

f
more f
f
f f

Example 58.  

Some examples of executable formulae:

skip I = 0 (I = 1)
len(3) (I = 2)
len(4) I = 0 I gets I + 1

Example 59.  

Some examples of non-executable formulae:

empty (I = 0 I = 1)
I = 0 ; I = 1
len(4) I gets I + 1

2023-09-12
Contact | Home | ITL home | Course | Proofs | Algebra | FL
© 1996-2023