Loading AI tools
Algebraic normal form, closely related to Zhegalkin polynomial (Q4370006) From Wikipedia, the free encyclopedia
In Boolean algebra, the algebraic normal form (ANF), ring sum normal form (RSNF or RNF), Zhegalkin normal form, or Reed–Muller expansion is a way of writing propositional logic formulas in one of three subforms:
It has been suggested that Zhegalkin polynomial and Reed–Muller expansion be merged into this article. (Discuss) Proposed since July 2024. |
This article needs additional citations for verification. (July 2013) |
Formulas written in ANF are also known as Zhegalkin polynomials and Positive Polarity (or Parity) Reed–Muller expressions (PPRM).[1]
ANF is a canonical form, which means that two logically equivalent formulas will convert to the same ANF, easily showing whether two formulas are equivalent for automated theorem proving. Unlike other normal forms, it can be represented as a simple list of lists of variable names—conjunctive and disjunctive normal forms also require recording whether each variable is negated or not. Negation normal form is unsuitable for determining equivalence, since on negation normal forms, equivalence does not imply equality: a ∨ ¬a is not reduced to the same thing as 1, even though they are logically equivalent.
Putting a formula into ANF also makes it easy to identify linear functions (used, for example, in linear-feedback shift registers): a linear function is one that is a sum of single literals. Properties of nonlinear-feedback shift registers can also be deduced from certain properties of the feedback function in ANF.
There are straightforward ways to perform the standard Boolean operations on ANF inputs in order to get ANF results.
XOR (logical exclusive disjunction) is performed directly:
NOT (logical negation) is XORing 1:[2]
AND (logical conjunction) is distributed algebraically[3]
OR (logical disjunction) uses either 1 ⊕ (1 ⊕ a)(1 ⊕ b)[4] (easier when both operands have purely true terms) or a ⊕ b ⊕ ab[5] (easier otherwise):
Each variable in a formula is already in pure ANF, so one only needs to perform the formula's Boolean operations as shown above to get the entire formula into ANF. For example:
ANF is sometimes described in an equivalent way:
There are only four functions with one argument:
To represent a function with multiple arguments one can use the following equality:
Indeed,
Since both and have fewer 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):
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.