Added some missing wf checks

This commit is contained in:
William J. Bowman 2016-03-25 02:57:22 -04:00
parent 64c8edfde4
commit 0b0a2eed40
No known key found for this signature in database
GPG Key ID: DDD48D26958F0D1A

View File

@ -494,16 +494,19 @@
[(side-condition (Δ-in-dom Δ x))
(where t (Δ-ref-type Δ x))
(wf Δ Γ)
----------------- "DTR-Inductive"
(type-infer Δ Γ x t)]
[(side-condition (Δ-in-constructor-dom Δ x))
(where t (Δ-ref-constructor-type Δ x))
(wf Δ Γ)
----------------- "DTR-Constructor"
(type-infer Δ Γ x t)]
[(side-condition (Γ-in-dom Γ x))
(where t (Γ-ref Γ x))
(wf Δ Γ)
----------------- "DTR-Start"
(type-infer Δ Γ x t)]