
It has been suggested that this article be merged with Zhegalkin polynomial to Algebraic normal form. (Discuss) Proposed since July 2024. |
This article may be too technical for most readers to understand.(December 2018) |
In Boolean logic, a Reed–Muller expansion (or Davio expansion) is a decomposition of a Boolean function.
For a Boolean function we call
the positive and negative cofactors of with respect to , and
the boolean derivation of with respect to , where denotes the XOR operator.
Then we have for the Reed–Muller or positive Davio expansion:
Description
This equation is written in a way that it resembles a Taylor expansion of about
. There is a similar decomposition corresponding to an expansion about
(negative Davio expansion):
Repeated application of the Reed–Muller expansion results in an XOR polynomial in :
This representation is unique and sometimes also called Reed–Muller expansion.
E.g. for the result would be
where
For the result would be
where
Geometric interpretation
This case can be given a cubical geometric interpretation (or a graph-theoretic interpretation) as follows: when moving along the edge from
to
, XOR up the functions of the two end-vertices of the edge in order to obtain the coefficient of
. To move from
to
there are two shortest paths: one is a two-edge path passing through
and the other one a two-edge path passing through
. These two paths encompass four vertices of a square, and XORing up the functions of these four vertices yields the coefficient of
. Finally, to move from
to
there are six shortest paths which are three-edge paths, and these six paths encompass all the vertices of the cube, therefore the coefficient of
can be obtained by XORing up the functions of all eight of the vertices. (The other, unmentioned coefficients can be obtained by symmetry.)
Paths
The shortest paths all involve monotonic changes to the values of the variables, whereas non-shortest paths all involve non-monotonic changes of such variables; or, to put it another way, the shortest paths all have lengths equal to the Hamming distance between the starting and destination vertices. This means that it should be easy to generalize an algorithm for obtaining coefficients from a truth table by XORing up values of the function from appropriate rows of a truth table, even for hyperdimensional cases ( and above). Between the starting and destination rows of a truth table, some variables have their values remaining fixed: find all the rows of the truth table such that those variables likewise remain fixed at those given values, then XOR up their functions and the result should be the coefficient for the monomial corresponding to the destination row. (In such monomial, include any variable whose value is 1 (at that row) and exclude any variable whose value is 0 (at that row), instead of including the negation of the variable whose value is 0, as in the minterm style.)
Similar to binary decision diagrams (BDDs), where nodes represent Shannon expansion with respect to the according variable, we can define a decision diagram based on the Reed–Muller expansion. These decision diagrams are called functional BDDs (FBDDs).
Derivations
The Reed–Muller expansion can be derived from the XOR-form of the Shannon decomposition, using the identity :
Derivation of the expansion for :
Derivation of the second-order boolean derivative:
See also
- Algebraic normal form (ANF)
- Ring sum normal form (RSNF)
- Zhegalkin polynomial
- Karnaugh map
- Irving Stoy Reed
- David Eugene Muller
- Reed–Muller code
References
- Kebschull, Udo; Schubert, Endric; Rosenstiel, Wolfgang (1992). "Multilevel logic synthesis based on functional decision diagrams". Proceedings of the 3rd European Conference on Design Automation.
Further reading
- Жега́лкин [Zhegalkin], Ива́н Ива́нович [Ivan Ivanovich] (1927). "O Tekhnyke Vychyslenyi Predlozhenyi v Symbolytscheskoi Logykye" О технике вычислений предложений в символической логике [On the technique of calculating propositions in symbolic logic (Sur le calcul des propositions dans la logique symbolique)]. Matematicheskii Sbornik (in Russian and French). 34 (1). Moscow, Russia: 9–28. Mi msb7433. Archived from the original on 2017-10-12. Retrieved 2017-10-12.
- Reed, Irving Stoy (September 1954). "A Class of Multiple-Error Correcting Codes and the Decoding Scheme". IRE Transactions on Information Theory. IT-4: 38–49.
- Muller, David Eugene (September 1954). "Application of Boolean Algebra to Switching Circuit Design and to Error Detection". IRE Transactions on Electronic Computers. EC-3: 6–12.
- Kebschull, Udo; Rosenstiel, Wolfgang (1993). "Efficient graph-based computation and manipulation of functional decision diagrams". Proceedings of the 4th European Conference on Design Automation: 278–282.
- Maxfield, Clive "Max" (2006-11-29). "Reed-Muller Logic". Logic 101. EETimes. Part 3. Archived from the original on 2017-04-19. Retrieved 2017-04-19.
- Steinbach, Bernd [in German]; Posthoff, Christian (2009). "Preface". Logic Functions and Equations - Examples and Exercises (1st ed.). Springer Science + Business Media B. V. p. xv. ISBN 978-1-4020-9594-8. LCCN 2008941076.
- Perkowski, Marek A.; Grygiel, Stanislaw (1995-11-20). "6. Historical Overview of the Research on Decomposition". A Survey of Literature on Function Decomposition. Version IV. Functional Decomposition Group, Department of Electrical Engineering, Portland University, Portland, Oregon, USA. pp. 21–22. CiteSeerX 10.1.1.64.1129. (188 pages)
It has been suggested that this article be merged with Zhegalkin polynomial to Algebraic normal form Discuss Proposed since July 2024 This article may be too technical for most readers to understand Please help improve it to make it understandable to non experts without removing the technical details December 2018 Learn how and when to remove this message In Boolean logic a Reed Muller expansion or Davio expansion is a decomposition of a Boolean function For a Boolean function f x1 xn Bn B displaystyle f x 1 ldots x n mathbb B n to mathbb B we call fxi x f x1 xi 1 1 xi 1 xn fx i x f x1 xi 1 0 xi 1 xn displaystyle begin aligned f x i x amp f x 1 ldots x i 1 1 x i 1 ldots x n f overline x i x amp f x 1 ldots x i 1 0 x i 1 ldots x n end aligned the positive and negative cofactors of f displaystyle f with respect to xi displaystyle x i and f xi fxi x fx i x displaystyle begin aligned frac partial f partial x i amp f x i x oplus f overline x i x end aligned the boolean derivation of f displaystyle f with respect to xi displaystyle x i where displaystyle oplus denotes the XOR operator Then we have for the Reed Muller or positive Davio expansion f fx i xi f xi displaystyle f f overline x i oplus x i frac partial f partial x i DescriptionThis equation is written in a way that it resembles a Taylor expansion of f displaystyle f about xi 0 displaystyle x i 0 There is a similar decomposition corresponding to an expansion about xi 1 displaystyle x i 1 negative Davio expansion f fxi x i f xi displaystyle f f x i oplus overline x i frac partial f partial x i Repeated application of the Reed Muller expansion results in an XOR polynomial in x1 xn displaystyle x 1 ldots x n f a1 a2x1 a3x2 a4x1x2 a2nx1 xn displaystyle f a 1 oplus a 2 x 1 oplus a 3 x 2 oplus a 4 x 1 x 2 oplus ldots oplus a 2 n x 1 cdots x n This representation is unique and sometimes also called Reed Muller expansion E g for n 2 displaystyle n 2 the result would be f x1 x2 fx 1x 2 fx 2 x1x1 fx 1 x2x2 2f x1 x2x1x2 displaystyle f x 1 x 2 f overline x 1 overline x 2 oplus frac partial f overline x 2 partial x 1 x 1 oplus frac partial f overline x 1 partial x 2 x 2 oplus frac partial 2 f partial x 1 partial x 2 x 1 x 2 where 2f x1 x2 fx 1x 2 fx 1x2 fx1x 2 fx1x2 displaystyle partial 2 f over partial x 1 partial x 2 f bar x 1 bar x 2 oplus f bar x 1 x 2 oplus f x 1 bar x 2 oplus f x 1 x 2 For n 3 displaystyle n 3 the result would be f x1 x2 x3 fx 1x 2x 3 fx 2x 3 x1x1 fx 1x 3 x2x2 fx 1x 2 x3x3 2fx 3 x1 x2x1x2 2fx 2 x1 x3x1x3 2fx 1 x2 x3x2x3 3f x1 x2 x3x1x2x3 displaystyle f x 1 x 2 x 3 f bar x 1 bar x 2 bar x 3 oplus partial f bar x 2 bar x 3 over partial x 1 x 1 oplus partial f bar x 1 bar x 3 over partial x 2 x 2 oplus partial f bar x 1 bar x 2 over partial x 3 x 3 oplus partial 2 f bar x 3 over partial x 1 partial x 2 x 1 x 2 oplus partial 2 f bar x 2 over partial x 1 partial x 3 x 1 x 3 oplus partial 2 f bar x 1 over partial x 2 partial x 3 x 2 x 3 oplus partial 3 f over partial x 1 partial x 2 partial x 3 x 1 x 2 x 3 where 3f x1 x2 x3 fx 1x 2x 3 fx 1x 2x3 fx 1x2x 3 fx 1x2x3 fx1x 2x 3 fx1x 2x3 fx1x2x 3 fx1x2x3 displaystyle partial 3 f over partial x 1 partial x 2 partial x 3 f bar x 1 bar x 2 bar x 3 oplus f bar x 1 bar x 2 x 3 oplus f bar x 1 x 2 bar x 3 oplus f bar x 1 x 2 x 3 oplus f x 1 bar x 2 bar x 3 oplus f x 1 bar x 2 x 3 oplus f x 1 x 2 bar x 3 oplus f x 1 x 2 x 3 Geometric interpretationThis n 3 displaystyle n 3 case can be given a cubical geometric interpretation or a graph theoretic interpretation as follows when moving along the edge from x 1x 2x 3 displaystyle bar x 1 bar x 2 bar x 3 to x1x 2x 3 displaystyle x 1 bar x 2 bar x 3 XOR up the functions of the two end vertices of the edge in order to obtain the coefficient of x1 displaystyle x 1 To move from x 1x 2x 3 displaystyle bar x 1 bar x 2 bar x 3 to x1x2x 3 displaystyle x 1 x 2 bar x 3 there are two shortest paths one is a two edge path passing through x1x 2x 3 displaystyle x 1 bar x 2 bar x 3 and the other one a two edge path passing through x 1x2x 3 displaystyle bar x 1 x 2 bar x 3 These two paths encompass four vertices of a square and XORing up the functions of these four vertices yields the coefficient of x1x2 displaystyle x 1 x 2 Finally to move from x 1x 2x 3 displaystyle bar x 1 bar x 2 bar x 3 to x1x2x3 displaystyle x 1 x 2 x 3 there are six shortest paths which are three edge paths and these six paths encompass all the vertices of the cube therefore the coefficient of x1x2x3 displaystyle x 1 x 2 x 3 can be obtained by XORing up the functions of all eight of the vertices The other unmentioned coefficients can be obtained by symmetry PathsThe shortest paths all involve monotonic changes to the values of the variables whereas non shortest paths all involve non monotonic changes of such variables or to put it another way the shortest paths all have lengths equal to the Hamming distance between the starting and destination vertices This means that it should be easy to generalize an algorithm for obtaining coefficients from a truth table by XORing up values of the function from appropriate rows of a truth table even for hyperdimensional cases n 4 displaystyle n 4 and above Between the starting and destination rows of a truth table some variables have their values remaining fixed find all the rows of the truth table such that those variables likewise remain fixed at those given values then XOR up their functions and the result should be the coefficient for the monomial corresponding to the destination row In such monomial include any variable whose value is 1 at that row and exclude any variable whose value is 0 at that row instead of including the negation of the variable whose value is 0 as in the minterm style Similar to binary decision diagrams BDDs where nodes represent Shannon expansion with respect to the according variable we can define a decision diagram based on the Reed Muller expansion These decision diagrams are called functional BDDs FBDDs DerivationsThe Reed Muller expansion can be derived from the XOR form of the Shannon decomposition using the identity x 1 x displaystyle overline x 1 oplus x f xifxi x ifx i xifxi 1 xi fx i xifxi fx i xifx i fx i xi f xi displaystyle begin aligned f amp x i f x i oplus overline x i f overline x i 5pt amp x i f x i oplus 1 oplus x i f overline x i 5pt amp x i f x i oplus f overline x i oplus x i f overline x i 5pt amp f overline x i oplus x i frac partial f partial x i end aligned Derivation of the expansion for n 2 displaystyle n 2 f fx 1 x1 f x1 fx 2 x2 f x2 x 1 x1 fx 2 x2 f x2 x1 fx 1x 2 x2 fx 1 x2 x1 fx 2 x1 x2 2f x1 x2 fx 1x 2 x2 fx 1 x2 x1 fx 2 x1 x1x2 2f x1 x2 displaystyle begin aligned f amp f bar x 1 oplus x 1 partial f over partial x 1 5pt amp Big f bar x 2 oplus x 2 partial f over partial x 2 Big bar x 1 oplus x 1 partial Big f bar x 2 oplus x 2 partial f over partial x 2 Big over partial x 1 5pt amp f bar x 1 bar x 2 oplus x 2 partial f bar x 1 over partial x 2 oplus x 1 Big partial f bar x 2 over partial x 1 oplus x 2 partial 2 f over partial x 1 partial x 2 Big 5pt amp f bar x 1 bar x 2 oplus x 2 partial f bar x 1 over partial x 2 oplus x 1 partial f bar x 2 over partial x 1 oplus x 1 x 2 partial 2 f over partial x 1 partial x 2 end aligned Derivation of the second order boolean derivative 2f x1 x2 x1 f x2 x1 fx 2 fx2 fx 2 fx2 x 1 fx 2 fx2 x1 fx 1x 2 fx 1x2 fx1x 2 fx1x2 displaystyle begin aligned partial 2 f over partial x 1 partial x 2 amp partial over partial x 1 Big partial f over partial x 2 Big partial over partial x 1 f bar x 2 oplus f x 2 5pt amp f bar x 2 oplus f x 2 bar x 1 oplus f bar x 2 oplus f x 2 x 1 5pt amp f bar x 1 bar x 2 oplus f bar x 1 x 2 oplus f x 1 bar x 2 oplus f x 1 x 2 end aligned See alsoAlgebraic normal form ANF Ring sum normal form RSNF Zhegalkin polynomial Karnaugh map Irving Stoy Reed David Eugene Muller Reed Muller codeReferencesKebschull Udo Schubert Endric Rosenstiel Wolfgang 1992 Multilevel logic synthesis based on functional decision diagrams Proceedings of the 3rd European Conference on Design Automation Further readingZhega lkin Zhegalkin Iva n Iva novich Ivan Ivanovich 1927 O Tekhnyke Vychyslenyi Predlozhenyi v Symbolytscheskoi Logykye O tehnike vychislenij predlozhenij v simvolicheskoj logike On the technique of calculating propositions in symbolic logic Sur le calcul des propositions dans la logique symbolique Matematicheskii Sbornik in Russian and French 34 1 Moscow Russia 9 28 Mi msb7433 Archived from the original on 2017 10 12 Retrieved 2017 10 12 Reed Irving Stoy September 1954 A Class of Multiple Error Correcting Codes and the Decoding Scheme IRE Transactions on Information Theory IT 4 38 49 Muller David Eugene September 1954 Application of Boolean Algebra to Switching Circuit Design and to Error Detection IRE Transactions on Electronic Computers EC 3 6 12 Kebschull Udo Rosenstiel Wolfgang 1993 Efficient graph based computation and manipulation of functional decision diagrams Proceedings of the 4th European Conference on Design Automation 278 282 Maxfield Clive Max 2006 11 29 Reed Muller Logic Logic 101 EETimes Part 3 Archived from the original on 2017 04 19 Retrieved 2017 04 19 Steinbach Bernd in German Posthoff Christian 2009 Preface Logic Functions and Equations Examples and Exercises 1st ed Springer Science Business Media B V p xv ISBN 978 1 4020 9594 8 LCCN 2008941076 Perkowski Marek A Grygiel Stanislaw 1995 11 20 6 Historical Overview of the Research on Decomposition A Survey of Literature on Function Decomposition Version IV Functional Decomposition Group Department of Electrical Engineering Portland University Portland Oregon USA pp 21 22 CiteSeerX 10 1 1 64 1129 188 pages