fixued issue with definition indecies
This commit is contained in:
parent
90255e9c40
commit
60954c21c3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user