I am considering multivariate polynomials with integer coefficients that can be expressed as sums of products of terms of the form $y_i-z_j$ for positive integers $i$ and $j$. I am trying to find an algorithm to determine if there is a way to express them in terms of these linear factors in such a way that the terms have nonnegative coefficients. I have a conjecture that this is always true for the polynomials that I am considering, and I want to do some extensive testing of it.
For example, my program outputs the following in one case (for reasons of speed, absolutely no simplification is done intermediately; computing the coefficients is at best $\#P$-complete even when the degree of the polynomial is $0$): $$-2 (y_2 - z_1) (y_1 - z_1) + 2 (y_1 + y_2 - z_1 - z_2) (y_1 + y_2 - z_1 - z_3) - (-(y_2 - z_1) (y_1 - z_1) + (y_1 + y_2 - z_1 - z_2) (y_1 + y_2 - z_1 - z_3))$$ This is not expressed in a positive manner, but there is cancelation you can do to get $$(y_2-z_1)(y_2-z_3)+(y_1-z_2)(y_1-z_1)+(y_1-z_2)(y_2-z_3)$$ and this would pass the test.
For context, it's considered a hopelessly difficult unsolved problem to determine whether computing the degree $0$ coefficients is in $\#P$, though the problem is known to be in $\mathrm{GapP}^+$.
When I plug this example into Maple and call simplify, I get $$y_1^2 + (y_2 - z_1 - z_2 - z_3)*y_1 + y_2^2 + (-z_1 - z_2 - z_3)*y_2 + (z_2 + z_3)*z_1 + z_2*z_3$$ which is not really very helpful.
A conjecture that would be easier to check is that, when expanded, the polynomial has nonnegative coefficients in terms of $y_i$ and $-z_j$, but this is not quite the same.
I am really just looking for any algorithm at all; it doesn't have to be fast.