Open mtzguido opened 1 year ago
This now fails with a localized error on spawn (pth n)
, saying "Elaborated term has unresolved implicits". If you turn on print_implicits and print_universes you see
Bug45.spawn u#_ u#_ #Prims.nat #Pulse.Lib.Core.emp #(fun _ -> Pulse.Lib.Core.emp) (Bug45.pth n)
I'm not sure why we can't resolve at least the first universe var to 0.
If you make domain singly universe polymorphic:
assume val domain : a:Type u#a -> (a -> vprop) -> Type u#a
Then the universe inference works out, but the example still fails with
Expected type "$f: unit -> Prims.Tot (stt u#0 nat emp (fun _ -> emp))"; but "pth n" has type "_fret: unit -> Prims.Tot (stt u#0 nat emp (fun _ -> emp))"
not handling the $ qualifier correctly. Changing the title accordingly.
Probably an F* issue