Algebraic normal form: Difference between revisions
imported>Watchduck No edit summary |
(No difference)
|
Latest revision as of 23:24, 16 May 2024
Template:Boolf header Template:Zhegalkin stuff
The Template:W (ANF) is a Template:W of a Boolean function.
It is a Template:W formula of Template:W formulas, like this:
Here it shall be abbreviated like this:
Both operators are Template:W, i.e. they can have any number of arguments, including none or one.
XOR without arguments is false (Template:W 0). AND without arguments is true (Template:W 1).
The empty XOR is false:
XOR containing empty AND is true:
XOR containing unary AND is an atomic statement:
The presence of empty AND works as a Template:W:
So the negation of the introductory example is this:
Each AND formula corresponds to a set of integers, which can be interpreted as a binary number.
Thus each XOR formula also corresponds to a set of integers, which can also be interpreted as a binary number.
| empty sum 0 | |||||
In short, there is a bijection between the non-negative integers and algebraic normal forms.
While the truth tables for a given arity can be interpreted as integers, truth tables in general can only be assigned Template:W values between 0 and 1.
The ANF allows to assign every Boolean function (regardless of its arity) a unique integer, which shall be called its Zhegalkin index.
It has the interesting property, that its parity corresponds to the just mentioned fraction:
Boolean functions with an even (odd) Zhegalkin index have a rational value below (above) .
Here is a list of examples: v:Studies of Euler diagrams/list
The Zhegalkin indices of Boolean functions in the same permutation equivalence class have the same binary weight.
For a specific arity each Boolean function can be interpreted as an integer.
So the map from integers to Boolean functions becomes a map from integers to integers, which is the Zhegalkin permutation.
See also: Zhegalkin matrix