Linear Boolean functions
Studies of Boolean functions |
Linear Boolean functions are Walsh functions and their negations.
A Walsh function is a variadic XOR (a.k.a. parity function).
The set of arguments in that XOR can easily be expressed as an integer, which shall be called Walsh index.
The natural way to denote a linear function is as Walsh index and parity. Walsh functions have parity 0. Their negations have parity 1.
Sometimes a more arcane notation is useful, namely as leader and quadrant.
The leader is the right shift of the Walsh index. The quadrant is the first and last digit of the truth table expressed in an integer.
The tables below show the Walsh indices on gray and the quadrants on colored background.
The Walsh indices of functions with quadrants 0 and 3 are evil numbers 0, 3, 5, 6... For quadrants 1 and 2 they are odious numbers 1, 2, 4, 7...
The columns marked with Ж show the Zhegalkin indices. Those of the Walsh functions are sequence A358126. Those of the negations are bigger by 1.
See also Linear and noble Boolean functions.
2-ary
[edit | edit source]matrix | |
---|---|
Walsh weight |
Walsh index |
leader | Walsh | ¬ Walsh | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Q | Ж | Q | Ж | |||||||
0 | 0 | 0 | 0 | 0 | 0 | 3 | 15 | 1 | ||
1 | 1 | 0 | 2 | 10 | 2 | 1 | 5 | 3 | ||
1 | 2 | 1 | 2 | 12 | 4 | 1 | 3 | 5 | ||
2 | 3 | 1 | 0 | 6 | 6 | 3 | 9 | 7 |
3-ary
[edit | edit source]matrix | |
---|---|
4-ary
[edit | edit source]matrix | ||||
---|---|---|---|---|
|