varl = ['x0', 'x1', 'x2', 'x3']
B = BooleanPolynomialRing(names = varl)
B.inject_variables(verbose=False)
P.<p> = PolynomialRing(B)
Byte.<t> = P.quotient_ring( p^4 + p + 1 )
X = B.gens()
x = Byte(list(X))
E = x^2
print( E )
type(Byte)
x3*t^3 + (x1 + x3)*t^2 + x2*t + x0 + x2
<class 'sage.rings.polynomial.polynomial_quotient_ring.PolynomialQuotientRing_generic_with_category'>
x3*t^6 + x2*t^4 + x1*t^2 + x0
<class 'sage.rings.quotient_ring.QuotientRing_generic_with_category'>
Hi,in version 8.4 this example doesn't work anymore as it did at least until version 8.2:
varl = ['x0', 'x1', 'x2', 'x3']
B = BooleanPolynomialRing(names = varl)
B.inject_variables(verbose=False)
P.<p> = PolynomialRing(B)
Byte.<t> = P.quotient_ring( p^4 + p + 1 )
I agree that this seems a critical bug. Would you mind filing a ticket with importance "critical" ?
There is this ticket : https://trac.sagemath.org/ticket/26929 which seems to me relevant. Should I open another one anyway?