Crates.io | trilean |
lib.rs | trilean |
version | 1.1.0 |
source | src |
created_at | 2018-05-22 15:08:21.983934 |
updated_at | 2021-06-18 07:45:40.183308 |
description | Kleene's three-valued logic (boolean + unknown). |
homepage | |
repository | https://github.com/ptal/trilean |
max_upload_size | |
id | 66618 |
size | 19,881 |
This library provides the strong Kleene's three-valued logic which contains the boolean values true
and false
and an additional unknown
variant.
The semantics of unknown
usually means that the current value is neither true or false yet, but might evolve to one or the other later.
In particular, we have false && unknown
equals to false
, although the second value is unknown
, we can evaluate the full expression.
Truth tables are available in the documentation.
This library compiles on stable Rust.
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.
M. Fitting, “Kleene’s three valued logics and their children,” Fundamenta informaticae, vol. 20, no. 1, 2, 3, pp. 113–131, 1994.