Fixed bug in well-formed inductive type checker
This commit is contained in:
parent
543a7f93e6
commit
816da683ec
|
@ -476,7 +476,7 @@
|
||||||
(type-infer Δ ∅ t_D U_D)
|
(type-infer Δ ∅ t_D U_D)
|
||||||
(type-infer Δ (∅ D : t_D) t_c U_c) ...
|
(type-infer Δ (∅ D : t_D) t_c U_c) ...
|
||||||
;; NB: Ugh this should be possible with pattern matching alone ....
|
;; NB: Ugh this should be possible with pattern matching alone ....
|
||||||
(side-condition ,(map (curry equal? (term D)) (term (D_0 ...))))
|
(side-condition ,(andmap (curry equal? (term D)) (term (D_0 ...))))
|
||||||
(side-condition (positive* D (t_c ...)))
|
(side-condition (positive* D (t_c ...)))
|
||||||
----------------- "WF-Inductive"
|
----------------- "WF-Inductive"
|
||||||
(wf (Δ (D : t_D
|
(wf (Δ (D : t_D
|
||||||
|
|
Loading…
Reference in New Issue
Block a user