Is it possible to mix dynamic and static types in settings such as System F or CoC?

I have a fairly large code base of untyped ฮป-terms. I think it might be fun to try this code base for Calculus of Constructions, but I would not want to implement everything from scratch. Instead, I would like the type system to accept my untyped terms. I would gradually add type annotations in a progressive manner.

My idea is to extend CoC with an โ€œunknownโ€ type annotation ?that will always be checked, but I'm not sure if this will work. Is there any known, principled way to do this?

+4
source share

Source: https://habr.com/ru/post/1618797/


All Articles