I need to construct the following ring in GAP:
$$F_2(u) / \langle u^2=0 \rangle =\{ \; a+bu \; | \; a,b \in F_2 \; \}=\{0,1,u,1+u\}$$.
I tried using the commands PolynomialRing and PolynomialReduction, however I couldn't get it to work. This is what I tried and it didn't work:
R:=PolynomialRing(GF(2),["u"]);
u:=Indeterminant(GF(2),"u");
R1:=PolynomialReduction(R,[u^2],MonomialTotalDegreeLess);
Does anyone know how to construct this ring in GAP?
Thanking you in advance!
You would need to form a quotient:
(The
PolynomialReductioncommand you use would take the remainder when dividing by an ideal given by a Gröbner basis.)Generically (if you cannot describe the ring easily as quotient of a polynomial ring over a field), there is
RingBystructureConstantsas well as a library of small rings given bySmallRing.