split up Quox.Typing

This commit is contained in:
rhiannon morris 2023-03-13 21:41:57 +01:00
parent ecd3be8bda
commit f4af1a5a78
5 changed files with 193 additions and 125 deletions

View file

@ -0,0 +1,22 @@
module Quox.Typing.Context
import Quox.Syntax
import Quox.Context
public export
TContext : Type -> Nat -> Nat -> Type
TContext q d = Context (Term q d)
public export
QOutput : Type -> Nat -> Type
QOutput = Context'
public export
record TyContext q d n where
constructor MkTyContext
dctx : DimEq d
tctx : TContext q d n
%name TyContext ctx