Make type class inference for inG less eager.
This way, it won't pick arbitrary (and possibly wrong!) inG instances when multiple ones are available. We achieve this by declaring: Hint Mode inG - - + So that type class inference only succeeds when the type of the ghost variable does not include any evars. This required me to make some minor changes throughout the whole development making some types explicit.
Showing
- heap_lang/lib/spawn.v 1 addition, 1 deletionheap_lang/lib/spawn.v
- program_logic/auth.v 2 additions, 2 deletionsprogram_logic/auth.v
- program_logic/boxes.v 4 additions, 4 deletionsprogram_logic/boxes.v
- program_logic/ghost_ownership.v 5 additions, 4 deletionsprogram_logic/ghost_ownership.v
- program_logic/global_functor.v 6 additions, 4 deletionsprogram_logic/global_functor.v
- program_logic/sts.v 2 additions, 2 deletionsprogram_logic/sts.v
- tests/joining_existentials.v 14 additions, 11 deletionstests/joining_existentials.v
- tests/one_shot.v 13 additions, 14 deletionstests/one_shot.v
Please register or sign in to comment