-
-
Notifications
You must be signed in to change notification settings - Fork 703
Closed
Description
Currently, IntegerModRing refines its category if asked for membership in Fields():
sage: M = IntegerModRing(3)
sage: M.category()
Join of Category of commutative rings ...
sage: M in Fields()
True
sage: M.category()
Join of Category of fields ...
The same does not happen for IntegralDomains():
sage: M = IntegerModRing(5)
sage: M.category()
Join of Category of commutative rings ...
sage: M in IntegralDomains()
False
sage: M.category()
Join of Category of commutative rings ...
The changes on this ticket copy the logic from fields over to integral domains.
Depends on #14482
Component: categories
Author: Julian Rueth
Branch/Commit: u/saraedum/ticket/15183 @ 2282a39
Issue created by migration from https://trac.sagemath.org/ticket/15183