I've seen some answers here that use it and I don't know what it means or how to use it. I's also hard to look for it via a search engine :)
29
votes
3 Answers
31
votes
It's the 'not provable' operator. It succeeds if its argument is not provable (and fails if its argument is provable).
0
votes
The way I memorize it is through the following logical rule:
\+= 'ifunsureorfalse, assumefalse'
This is different from standard boolean logic in that if your goal is uncertain instead of outright true or false, it assumes false when it can't prove true. The most obvious example of this is being unable to see whether a stream is still open or not. If you can't prove it is open, it's the same as being closed to the program.
|+? Or just~or!like the rest of the world. - Alexander!is an already defined operator that says "discard all choicepoints for this call" called a cut operator.Not provablemeans the question can't be answered at this time, not that the answer is false. An example would be "Is the inputstream going to send more data?" which can only be determined when there's an external timeout or a termination signal, not from inside the streamreader itself. - G_V