Join Nostr
2025-12-28 20:27:35 UTC

Owen Lynch on Nostr: I'm implementing a type theory where the top-level bindings are *judgments* in the ...

I'm implementing a type theory where the top-level bindings are *judgments* in the theory, rather than closed forms (this is important because I only have a restricted pi type). This means that evaluating an identifier (in the context of nbe) doesn't necessarily produce a "value" in the traditional sense. So I have two options:

1. Have eval return a sum type of (closed value, judgment)
2. Extend my type of values to include these "non-values".

Has anyone else run into this kind of problem before? Do people have recommendations for solutions?