A substitution involves the replacement of all free occurrences of a given variable in an expression with another expression. Here we restrict the substituted expressions to the set of numbers.
Consider the language FUN.
Now define a relation e,x,n ⇒se'
if e'
can be obtained from e
by replacing all free occurrences of the variable x
by n
.
The inductive definition of this relation follows:
Expressions | |
---|---|
Number | n',x,n ⇒s n' |
Variable |
|
Composite | e1,x,n ⇒s e1' e2,x,n ⇒s e2' |
Let |
|
R. Burstall. Language Semantics and Implementation. Course Notes. 1994.
Copyright © 2014 Barry Watson. All rights reserved.