This work attempts to generalize the concept of roof duality to polynomials of higher degree than 2. Roof duality is a useful concept when minimizing or maximizing polynomials of boolean variables.
Source code for generalized roof duality is available via Github: