#10963: More functorial constructions
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner: stumpc5
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-6.2
Component: categories | Resolution:
Keywords: days54 | Merged in:
Authors: Nicolas M. Thiéry | Reviewers: Simon King, Frédéric
Report Upstream: N/A | Chapoton
Branch: | Work issues:
public/ticket/10963-doc- | Commit:
distributive | c718f218fbc726bf3cf7f4c3f20638c9b0c7eea7
Dependencies: #11224, #8327, | Stopgaps:
#10193, #12895, #14516, #14722, |
#13589, #14471, #15069, #15094, |
#11688, #13394, #15150, #15506 |
-------------------------------------+-------------------------------------
Comment (by vbraun):
The metaclass approach for inner categories as subcategories works now.
I've switched it to attributes
{{{#!python
class FiniteCommutativeTest1(CategoryWithAxioms):
__base_category_class__ = Test1
__axiom_classes__ = frozenset([axioms.Commutative, axioms.Finite])
}}}
but inheritance from axioms works, too
{{{#!python
class Test2(Category):
class FiniteCommutative2(InnerCategory, axioms.Finite,
axioms.Commutative):
pass
}}}
see
http://git.sagemath.org/sage.git/tree/src/sage/categories/category_with_axioms.py?h=c520eb0bddcf6543d037dad3c7f0b808ae29b160
I haven't implemented relations in the category manager, though one could
keep that simple and leave more complicated things for later. One thing
that I think is tricky is to derive rules from implications A => B => C =>
A, especially if `all_super_categories` is actually missing some super
categories.
To answer your timeline question, I'd say less than a month.
--
Ticket URL: <http://trac.sagemath.org/ticket/10963#comment:499>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.