comment out issue in Zoo4eg

This commit is contained in:
2024-10-16 22:03:09 -07:00
parent a0ceac3167
commit 1695815fe3
4 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
## TODO ## TODO
- [ ] unsolved meta errors repeat (need to freeze at some point)
- [x] Sanitize JS idents, e.g. `_+_` - [x] Sanitize JS idents, e.g. `_+_`
- [ ] Generate some programs that do stuff - [ ] Generate some programs that do stuff
- [x] import - [x] import

View File

@@ -143,8 +143,8 @@ parameters (ctx: Context)
if (length sp /= size) then do if (length sp /= size) then do
-- need INFO that works like debug. -- need INFO that works like debug.
-- FIXME we probably need to hold onto the constraint and recheck when we solve the meta? -- FIXME we probably need to hold onto the constraint and recheck when we solve the meta?
info (getFC t) "meta \{show m} applied to \{show $ length sp} args insted of \{show size}" info (getFC t) "meta \{show m} (\{show ix}) applied to \{show $ length sp} args instead of \{show size}"
-- error (getFC t) "meta \{show m} applied to \{show $ length sp} args insted of \{show size}" -- error (getFC t) "meta \{show m} applied to \{show $ length sp} args instead of \{show size}"
else do else do
debug "meta \{show meta}" debug "meta \{show meta}"
ren <- invert l sp ren <- invert l sp

View File

@@ -39,7 +39,7 @@ Eq BD where
Defined == Defined = True Defined == Defined = True
_ == _ = False _ == _ = False
public export
Show BD where Show BD where
show Bound = "bnd" show Bound = "bnd"
show Defined = "def" show Defined = "def"

View File

@@ -56,15 +56,15 @@ list1 : List Bool
list1 = cons true (cons false (cons true nil)) list1 = cons true (cons false (cons true nil))
-- dependent function composition -- dependent function composition
comp : {A} {B : A -> U} {C : {a} -> B a -> U} comp : {A} {B : A -> U} {C : {a : A} -> B a -> U}
(f : {a} (b : B a) -> C b) (f : {a : A} (b : B a) -> C b)
(g : (a : A) -> B a) (g : (a : A) -> B a)
(a : A) (a : A)
-> C (g a) -> C (g a)
comp = \f g a => f (g a) comp = \f g a => f (g a)
compExample : _ -- compExample : Bool
compExample = comp (cons true) (cons false) nil -- compExample = comp (cons true) (cons false) nil
Nat : U Nat : U
Nat = (N : U) -> (N -> N) -> N -> N Nat = (N : U) -> (N -> N) -> N -> N