use DimEq directly in typing context
This commit is contained in:
parent
4b7379f094
commit
065ebedf2d
3 changed files with 8 additions and 22 deletions
|
@ -70,12 +70,12 @@ parameters (label : String) (act : Lazy (M ()))
|
|||
|
||||
|
||||
ctx : TContext Three 0 n -> TyContext Three 0 n
|
||||
ctx = MkTyContext DNil
|
||||
ctx = MkTyContext new
|
||||
|
||||
inferredTypeEq : TyContext Three d n -> (exp, got : Term Three d n) -> M ()
|
||||
inferredTypeEq ctx exp got =
|
||||
catchError
|
||||
(inj $ equalType (makeDimEq ctx.dctx) ctx.tctx exp got)
|
||||
(inj $ equalType ctx.dctx ctx.tctx exp got)
|
||||
(\_ : Error' => throwError $ WrongInfer exp got)
|
||||
|
||||
qoutEq : (exp, got : QOutput Three n) -> M ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue