chore: missing case

This commit is contained in:
Leonardo de Moura 2022-08-08 23:40:44 -07:00
parent 1952633a75
commit fbb858a32c

View file

@ -17,6 +17,11 @@ partial def simpType (type : Expr) : MetaM Expr := do
match type with
| .sort u => return .sort u
| .const .. => visitApp type #[]
| .lam n d b bi =>
withLocalDecl n bi d fun x => do
let d ← simpType d
let b ← simpType (b.instantiate1 x)
return .lam n d (b.abstract #[x]) bi
| .forallE n d b bi =>
withLocalDecl n bi d fun x => do
let borrowed := isMarkedBorrowed d