Added some missing wf checks
This commit is contained in:
parent
64c8edfde4
commit
0b0a2eed40
|
@ -494,16 +494,19 @@
|
||||||
|
|
||||||
[(side-condition (Δ-in-dom Δ x))
|
[(side-condition (Δ-in-dom Δ x))
|
||||||
(where t (Δ-ref-type Δ x))
|
(where t (Δ-ref-type Δ x))
|
||||||
|
(wf Δ Γ)
|
||||||
----------------- "DTR-Inductive"
|
----------------- "DTR-Inductive"
|
||||||
(type-infer Δ Γ x t)]
|
(type-infer Δ Γ x t)]
|
||||||
|
|
||||||
[(side-condition (Δ-in-constructor-dom Δ x))
|
[(side-condition (Δ-in-constructor-dom Δ x))
|
||||||
(where t (Δ-ref-constructor-type Δ x))
|
(where t (Δ-ref-constructor-type Δ x))
|
||||||
|
(wf Δ Γ)
|
||||||
----------------- "DTR-Constructor"
|
----------------- "DTR-Constructor"
|
||||||
(type-infer Δ Γ x t)]
|
(type-infer Δ Γ x t)]
|
||||||
|
|
||||||
[(side-condition (Γ-in-dom Γ x))
|
[(side-condition (Γ-in-dom Γ x))
|
||||||
(where t (Γ-ref Γ x))
|
(where t (Γ-ref Γ x))
|
||||||
|
(wf Δ Γ)
|
||||||
----------------- "DTR-Start"
|
----------------- "DTR-Start"
|
||||||
(type-infer Δ Γ x t)]
|
(type-infer Δ Γ x t)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user