Skip to content

x in IntegralDomains() should refine category #15183

@saraedum

Description

@saraedum

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

CC: @simon-king-jena @nthiery

Component: categories

Author: Julian Rueth

Branch/Commit: u/saraedum/ticket/15183 @ 2282a39

Issue created by migration from https://trac.sagemath.org/ticket/15183

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions