# Philosophy:Unate function

A unate function is a type of boolean function which has monotonic properties. They have been studied extensively in switching theory.

A function $\displaystyle{ f(x_1,x_2,\ldots,x_n) }$ is said to be positive unate in $\displaystyle{ x_i }$ if for all possible values of $\displaystyle{ x_j }$, $\displaystyle{ j\neq i }$

$\displaystyle{ f(x_1,x_2,\ldots,x_{i-1},1,x_{i+1},\ldots,x_n) \ge f(x_1,x_2,\ldots,x_{i-1},0,x_{i+1},\ldots,x_n).\, }$

Likewise, it is negative unate in $\displaystyle{ x_i }$ if

$\displaystyle{ f(x_1,x_2,\ldots,x_{i-1},0,x_{i+1},\ldots,x_n) \ge f(x_1,x_2,\ldots,x_{i-1},1,x_{i+1},\ldots,x_n).\, }$

If for every $\displaystyle{ x_i }$ f is either positive or negative unate in the variable $\displaystyle{ x_i }$ then it is said to be unate (note that some $\displaystyle{ x_i }$ may be positive unate and some negative unate to satisfy the definition of unate function). A function is binate if it is not unate (i.e., is neither positive unate nor negative unate in at least one of its variables).

For example, the logical disjunction function or with boolean values used for true (1) and false (0) is positive unate. Conversely, Exclusive or is non-unate, because the transition from 0 to 1 on input x0 is both positive unate and negative unate, depending on the input value on x1.

NB: positive unateness can also be considered as passing the same slope (no change in the input) and negative unate is passing the opposite slope.... non unate is dependence on more than one input (of same or different slopes)