Tighten up the signature
This commit is contained in:
parent
c6528de647
commit
9dc599396a
2 changed files with 26 additions and 3 deletions
|
@ -23,7 +23,11 @@
|
|||
|
||||
(: synth (-> context Term Term))
|
||||
(define (synth Γ a)
|
||||
(error "unimplmented"))
|
||||
(match a
|
||||
[`(var ,i) (context-get Γ i)]
|
||||
[`(app ,a ,b)
|
||||
(let ([A (synth Γ a)]
|
||||
[D (interp-with-scope (context-len Γ) A)]))]))
|
||||
|
||||
(: check (-> context Term D Boolean))
|
||||
(define (check Γ a A)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue