tweaks to output, fix scope issue in pprint

This commit is contained in:
2024-11-15 16:49:31 -08:00
parent e6944bc842
commit 9faee86886
6 changed files with 18 additions and 15 deletions

View File

@@ -39,7 +39,6 @@ data Term : Ctx -> Type -> U where
Lam : {Γ : Ctx} {σ τ : Type} -> Term (σ :: Γ) τ -> Term Γ (σ ~> τ)
Var : {Γ : Ctx} {σ : Type} -> Ref σ Γ Term Γ σ
-- FIXME, I wasn't getting an error when I had Nil shadowing Nil
infixr 7 _:::_
data Env : Ctx -> U where
ENil : Env Nil

View File

@@ -54,7 +54,7 @@ plus (S n) m = S (plus n m)
plus' : Nat -> Nat -> Nat
plus' = \ n m => case n of
Z => m
S n => S (plus n m)
S n => S (plus' n m)
-- We can define operators, currently only infix
-- and we allow unicode and letters in operators