add CanSubst Var (Term/Elim)

This commit is contained in:
rhiannon morris 2021-09-09 23:55:30 +02:00
parent 8c675d01d5
commit 4a2f7e1497
1 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,9 @@ CanSubst (Elim d) (Term d) where
Shift SZ => s
th => CloT s th
export CanSubst Var (Term d) where s // th = s // map (B {d}) th
export CanSubst Var (Elim d) where e // th = e // map (B {d}) th
export CanShift (Term d) where i // by = i // Shift by {env=(Elim d)}
export CanShift (Elim d) where i // by = i // Shift by {env=(Elim d)}