Is there a way to do this kind of F# refinement typing in OCaml?

I wonder if we can encode full System F(no inference) with enough GADT magic.

1 Like