This commit is contained in:
Yiyun Liu 2025-05-13 17:08:48 -04:00
parent 193be1168e
commit f5fe22c419

View file

@ -146,6 +146,10 @@
[`(app ,a ,b) (max (scope a) (scope b))]
[`(var ,i) (+ i 1)]))
(: interp-with-scope (-> V Term D))
(define (interp-with-scope n a)
(interp a (λ (x) (delay (idsub n x)))))
(: normalize (-> Term Term))
(define (normalize a)
(let ([sa (scope a)])