UnateQ
✖
UnateQ
Details

- A positive unate Boolean function is also known as a Boolean increasing function.
- A negative unate Boolean function is also known as a Boolean decreasing function.
- The Boolean expression bexpr is positive unate in the variable xi if Boole[bexpr/.xi->False]≤Boole[bexpr/.xi->True] for all values of other variables.
- The Boolean expression bexpr is negative unate in the variable xi if Boole[bexpr/.xi->False]≥Boole[bexpr/.xi->True] for all values of other variables.
- Any combination of variables and their negation can be used.
- UnateQ[bf,{ind1,ind2,…}] tests whether the Boolean function bf is unate in variable k according to the indicator indk.
- The indicators indk can take the following values:
-
True,1 test for positive unate False,0 test for negative unate _ do not test for unateness
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Test if a Boolean expression is positive unate:

https://wolfram.com/xid/0cg52w0hv-skmcgv


https://wolfram.com/xid/0cg52w0hv-baf4s9

Test if a Boolean expression is negative unate:

https://wolfram.com/xid/0cg52w0hv-op7o5x


https://wolfram.com/xid/0cg52w0hv-xu1niz

Scope (5)Survey of the scope of standard use cases

https://wolfram.com/xid/0cg52w0hv-734lnd


https://wolfram.com/xid/0cg52w0hv-pqcuji

Test for unateness in one variable:

https://wolfram.com/xid/0cg52w0hv-c0npvs

Test for positive unate in one variable, negative unate in another:

https://wolfram.com/xid/0cg52w0hv-82k8xl

Check for unateness of a pure function:

https://wolfram.com/xid/0cg52w0hv-18rvrk


https://wolfram.com/xid/0cg52w0hv-389ie

Test for negative unateness in the first variable and positive unateness in the second:

https://wolfram.com/xid/0cg52w0hv-7tlux9

Test for whether a function is positive unate in its first and last variables:

https://wolfram.com/xid/0cg52w0hv-t1qvo

Applications (2)Sample problems that can be solved with this function
Enumerate all unate functions of three variables:

https://wolfram.com/xid/0cg52w0hv-bdc6rx

ReliabilityDistribution only takes positive unate functions:

https://wolfram.com/xid/0cg52w0hv-o1wqm0

https://wolfram.com/xid/0cg52w0hv-5j0a66


https://wolfram.com/xid/0cg52w0hv-rdhud8


Find out which variables are not positive unate:

https://wolfram.com/xid/0cg52w0hv-s7kco6

Remove x4 by setting it to False:

https://wolfram.com/xid/0cg52w0hv-fxetm1


https://wolfram.com/xid/0cg52w0hv-qm5z8k

Properties & Relations (6)Properties of the function, and connections to other functions
Basic positive unate functions:

https://wolfram.com/xid/0cg52w0hv-9rd3s

Basic negative unate functions:

https://wolfram.com/xid/0cg52w0hv-e19dw

Implies is negative unate in one variable and positive unate in the other:

https://wolfram.com/xid/0cg52w0hv-zfzk66

Some Boolean functions are not unate in any variable:

https://wolfram.com/xid/0cg52w0hv-qfjhd8


https://wolfram.com/xid/0cg52w0hv-16wos1


https://wolfram.com/xid/0cg52w0hv-0qqf0b

The fraction of Boolean functions that are positive unate for dimension :

https://wolfram.com/xid/0cg52w0hv-di1zru

https://wolfram.com/xid/0cg52w0hv-4eo5wi

Combinations of positive unate functions are unate:

https://wolfram.com/xid/0cg52w0hv-3xyjgb

Combinations of negative unate functions are not necessarily negative unate:

https://wolfram.com/xid/0cg52w0hv-ulny5y

The negation of a positive unate function is negative unate:

https://wolfram.com/xid/0cg52w0hv-yl1zzj

https://wolfram.com/xid/0cg52w0hv-nunje


https://wolfram.com/xid/0cg52w0hv-ketn2h

Wolfram Research (2012), UnateQ, Wolfram Language function, https://reference.wolfram.com/language/ref/UnateQ.html.
Text
Wolfram Research (2012), UnateQ, Wolfram Language function, https://reference.wolfram.com/language/ref/UnateQ.html.
Wolfram Research (2012), UnateQ, Wolfram Language function, https://reference.wolfram.com/language/ref/UnateQ.html.
CMS
Wolfram Language. 2012. "UnateQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnateQ.html.
Wolfram Language. 2012. "UnateQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnateQ.html.
APA
Wolfram Language. (2012). UnateQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnateQ.html
Wolfram Language. (2012). UnateQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnateQ.html
BibTeX
@misc{reference.wolfram_2025_unateq, author="Wolfram Research", title="{UnateQ}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/UnateQ.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_unateq, organization={Wolfram Research}, title={UnateQ}, year={2012}, url={https://reference.wolfram.com/language/ref/UnateQ.html}, note=[Accessed: 25-March-2025
]}