Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Refine quotient ring category to Fields()
Browse files Browse the repository at this point in the history
when it is isomorphic to a field
  • Loading branch information
saraedum committed Nov 30, 2016
1 parent 1a3cb94 commit ca050d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sage/rings/polynomial/polynomial_quotient_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,11 @@ def is_field(self, proof = True):
sage: S.is_field()
True
"""
return self.base_ring().is_field(proof) and self.modulus().is_irreducible()
ret = self.base_ring().is_field(proof) and self.modulus().is_irreducible()
if ret:
from sage.categories.all import Fields
self._refine_category_(Fields())
return ret

def krull_dimension(self):
return self.base_ring().krull_dimension()
Expand Down

0 comments on commit ca050d3

Please sign in to comment.