I am looking for a library or computer algebra system that will help calculate operations on polynomials in a ring
F_2[x_1, ..., x_n] / <f^2 - f>
where F_2 is a 2-element finite field, and <f^2 - f> is the ideal generated by the elements f^2 - f for all f in F_2[...] . (I think / hope / sure that this is a ring of Boolean algebra that uses xor as + and and as * [ wikipedia ]).
For instance,
x_1 = poly_xn 1 x_2 = poly_xn 2 x_1 * x_2 * x_1 -- returns "x_1 * x_2" x_1 + x_1 + x_2 -- returns "x_2"
I wrote the code for this in Haskell, but unfortunately the performance is not very good.
Note: the name "affine k-algebra" comes from the commutative Eisenbud algebra with the idea of a book of algebraic geometry p. 35; if there is a better name, please edit the question, thanks!
source share