@@ -525,6 +525,12 @@ convEq ctxt = ceq [] where
525525 ceq ps (P xt x _) (P yt y _)
526526 | x == y || (x, y) `elem` ps || (y,x) `elem` ps = return True
527527 | otherwise = sameDefs ps x y
528+ ceq ps x (Bind n (Lam t) (App y (V 0))) = ceq ps x y
529+ ceq ps (Bind n (Lam t) (App x (V 0))) y = ceq ps x y
530+ ceq ps x (Bind n (Lam t) (App y (P Bound n' _)))
531+ | n == n' = ceq ps x y
532+ ceq ps (Bind n (Lam t) (App x (P Bound n' _))) y
533+ | n == n' = ceq ps x y
528534 ceq ps (V x) (V y) = return (x == y)
529535 ceq ps (Bind _ xb xs) (Bind _ yb ys)
530536 = liftM2 (&&) (ceqB ps xb yb) (ceq ps xs ys)