Certainly a univarient model in the type system could be useful, but it would be extra powerful (and more correct) if it could handle covariance.
It's not part of the type system, it's just the giry monad as a library.
As presented in the article, it is indeed just a library.
Bayes is mentioned on page 46.
> And why does it need to be part of the type system? It could be just a library.
It is a library that defines a type.
It is not a new type system, or an extension to any particularly complicated type system.
> Am I missing something?
Did you read it?
https://www.microsoft.com/en-us/research/wp-content/uploads/...
Bayes isn't mentioned in the linked article. But thanks for the links.
If you go down this road far enough you eventually end up reinventing particle filters and similar.
mackross•1h ago