represents the domain of Booleans, as in x∈Booleans.
Booleans
represents the domain of Booleans, as in x∈Booleans.
Details
- The domain of Booleans is taken to consist of the symbols True and False.
- x∈Booleans evaluates immediately if x is explicitly True or False.
- Simplify[expr∈Booleans] can be used to try to determine whether an expression is Boolean, with no undetermined variables.
- Booleans is output in TraditionalForm as
. This typeset form can be input using
bools
.
Examples
open all close allBasic Examples (2)
Scope (3)
Domain for FindInstance:
FindInstance[p && !(!p || !q), {p, q}, Booleans]FindInstance[a && x < y && Element[a, Booleans], {a, x, y}]Domain for Resolve, in this case solving satisfiability:
Resolve[Exists[{p, q}, p || q && !q], Booleans]TraditionalForm for formatting:
Booleans // TraditionalFormApplications (1)
Use Simplify to determine whether an expression is Boolean, with no undetermined variables:
Simplify[n^2 < EulerPhi[n]^3∈Booleans, n > 42 && n∈Integers]Tech Notes
Related Guides
History
Introduced in 1999 (4.0) | Updated in 2017 (11.2)
Text
Wolfram Research (1999), Booleans, Wolfram Language function, https://reference.wolfram.com/language/ref/Booleans.html (updated 2017).
CMS
Wolfram Language. 1999. "Booleans." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Booleans.html.
APA
Wolfram Language. (1999). Booleans. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Booleans.html
BibTeX
@misc{reference.wolfram_2026_booleans, author="Wolfram Research", title="{Booleans}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Booleans.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_booleans, organization={Wolfram Research}, title={Booleans}, year={2017}, url={https://reference.wolfram.com/language/ref/Booleans.html}, note=[Accessed: 13-June-2026]}