fixued issue with definition indecies

master
Rachel Lambda Samuelsson 2022-07-27 00:28:06 +02:00
parent 90255e9c40
commit 60954c21c3
2 changed files with 4 additions and 1 deletions

View File

@ -435,7 +435,7 @@ definitions defs = do
ty <- expr defs 0 []
match PTDefEq
tr <- expr defs 0 []
next <- definitions (arg :: defs) <|> pure ([], [])
next <- definitions (defs ++ [arg]) <|> pure ([], [])
pure (arg :: fst next, (ty, tr) :: snd next)
parsePi : List String -> Grammar () PiToken True a -> List (WithBounds PiToken) -> Either String a

View File

@ -1,6 +1,9 @@
let add :
-ind (λ_. ) (λn.n) (λn.λan.λm. suc (an m))
let add_test : Id (add 2 2) 4
≔ refl 4
let add_id_l : Π (n : ) Id n (add 0 n)
≔ λn. refl n