- Algebraic normal form
In
Boolean logic , the algebraic normal form (ANF) is a method of standardizing and normalizing logical formulas. As anormal form , it can be used inautomated theorem proving (ATP), but is more commonly used in the design of cryptographicrandom number generator s, specificallylinear feedback shift register s (LFSRs). A logicalformula is considered to be in ANF if and only if it is a single algebraic sum (XOR ) of a constant and one or more conjunctions of the function arguments. ANF is also known as "Zhegalkin polynomial s" ( _ru. полиномы Жегалкина) and as "Positive Polarity (or Parity) Reed-Muller" expression.Putting a formula into ANF makes it easy to identify
linear functions, as is needed for linear feedback in LFSRs: a linear function is one that is a sum of literals. Properties of nonlinear feedbackshift register s can also be deduced from certain properties of the feedback function in ANF.The general ANF can be written as:where fully describes .
For each function there is a unique ANF. There are only four functions with one argument: , , , (all of them are given in the ANF). To represent a function with multiple arguments one can use the following equality: , where and . Indeed, if then and so ; if then and so . Since both and have less arguments than it follows that using this process recursively we will finish with functions with one variable. For example, let us construct ANF of (logical or): ; since and , it follows that ; by opening the parentheses we get the final ANF: .
ee also
*
Boolean function
*Conjunctive normal form
*Disjunctive normal form
*Logical graph
Wikimedia Foundation. 2010.