Fix α-normalization bug (#319)

This fixes α-normalization to correctly relabel a `let`-bound variable
This commit is contained in:
Gabriel Gonzalez 2018-03-10 09:30:01 -08:00 committed by GitHub
parent bd83658409
commit 99c6241111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -890,7 +890,7 @@ alphaNormalize (App f₀ a₀) =
a = alphaNormalize a
alphaNormalize (Let x (Just _A) a b) =
Let x (Just _A) a b
Let "_" (Just _A) a b
where
_A = alphaNormalize _A
@ -902,7 +902,7 @@ alphaNormalize (Let x (Just _A₀) a₀ b₀) =
b = shift (-1) (V x 0) b
b = alphaNormalize b
alphaNormalize (Let x Nothing a b) =
Let x Nothing a b
Let "_" Nothing a b
where
a = alphaNormalize a