#logic #ternary #kleene

trilean

Kleene's three-valued logic (boolean + unknown)

4 releases (stable)

Uses old Rust 2015

1.1.0 Jun 18, 2021
1.0.1 May 23, 2018
0.1.0 May 22, 2018

#818 in Math

Download history 7644/week @ 2024-07-21 5665/week @ 2024-07-28 5299/week @ 2024-08-04 6216/week @ 2024-08-11 5263/week @ 2024-08-18 5469/week @ 2024-08-25 5590/week @ 2024-09-01 5125/week @ 2024-09-08 4420/week @ 2024-09-15 5669/week @ 2024-09-22 4521/week @ 2024-09-29 4894/week @ 2024-10-06 5952/week @ 2024-10-13 4289/week @ 2024-10-20 5101/week @ 2024-10-27 4820/week @ 2024-11-03

20,336 downloads per month
Used in 102 crates (3 directly)

MIT/Apache

8KB
107 lines

Three-valued logics

ptal on Travis CI

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.

License

Licensed under either of

Contribution

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.

References

M. Fitting, “Kleene’s three valued logics and their children,” Fundamenta informaticae, vol. 20, no. 1, 2, 3, pp. 113–131, 1994.

No runtime deps