File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
redex-doc/redex/scribblings/long-tut/code Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,9 @@ subst (if time, otherwise it's provide)
190
190
#:equiv =α/racket)
191
191
(test-equal (term (subst ((2 x)) ((lambda (x) (1 x)) x)))
192
192
(term ((lambda (x) (1 x)) 2 ))
193
+ #:equiv =α/racket)
194
+ (test-equal (term (subst (((lambda (x) y) x)) (lambda (y) x)))
195
+ (term (lambda (y1) (lambda (x) y)))
193
196
#:equiv =α/racket))
194
197
195
198
(define-metafunction Lambda
@@ -200,7 +203,7 @@ subst (if time, otherwise it's provide)
200
203
(lambda (x_new)
201
204
(subst ((any_1 x_1) ... )
202
205
(subst-raw (x_new x) any_body)))
203
- (where x_new ,(variable-not-in (term any_body) (term x)))]
206
+ (where x_new ,(variable-not-in (term (any_1 ... any_body) ) (term x)))]
204
207
[(subst [(any_1 x_1) ... ] (any ... )) ((subst [(any_1 x_1) ... ] any ) ... )]
205
208
[(subst [(any_1 x_1) ... ] any_*) any_*])
206
209
You can’t perform that action at this time.
0 commit comments