ocaml-gospel / gospel

A tool-agnostic formal specification language for OCaml.
https://ocaml-gospel.github.io/gospel
MIT License
128 stars 16 forks source link

Difference between `prop` and `bool` #287

Closed shym closed 3 weeks ago

shym commented 1 year ago

During a meeting, it was mentioned that the difference between terms of type bool and formulae (aka type prop) is a bit unclear.

In particular, the Gospel type-checker converts on the fly between both kinds when required, see for instance what is done at 1 and 2. The comment “favor prop over bool” at 3 adds to my confusion.

So I wonder whether the applications where keeping the distinction between bool and prop is important are working with the type-checker as it is now.