Type systems question: is there a name for a type system which natively encodes state transitions? So not just that sum types which enumerate valid states, but also encode the transitions between those states as part of the type?

It's almost-but-not-quite the same as session types. So like, I feel like there must be prior art for this, but I don't know what to look for.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://toot.yosh.is/users/yosh/statuses/115787070637859187 on your instance and quote it. (Note that quoting is not supported in Mastodon.)