Re: [sage-devel] Categories catalog?

2016-09-01 Thread Daniel Krenn
On 2016-09-01 11:11, Jeroen Demeyer wrote: > Even if you think that categories belong in the top-level namespace, I > think it would still be useful to have a catalog such that > TAB-completion can give a list of all named categories in Sage. +1 for having a catalog. -- You received this message

[sage-devel] Categories catalog?

2016-09-01 Thread Jeroen Demeyer
Should we move all categories in a catalog, e.g. rename FiniteSemigroups to categories.FiniteSemigroups Even if you think that categories belong in the top-level namespace, I think it would still be useful to have a catalog such that TAB-completion can give a list of all named categories in

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Bill Hart
I once collected some amusing examples from Pari, Sage and Magma related to their different concepts of coercion. It can lead to all sorts of mathematical stupidity. I concluded that trying to model maths this way is like trying to put a carpet down in a room with a wonky floor. You can locally

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Francesco Biscani
FWIW that's what Piranha does as well: polynomial x{"x"}; // This will print "1". std::cout << std::is_same>::value << '\n'; On 1 October 2015 at 21:35, Bill Page wrote: > In FriCAS > > (1) -> x:Polynomial(Integer) >Type: > V

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Bill Page
In FriCAS (1) -> x:Polynomial(Integer) Type: Void (2) -> x + 1/2 1 (2) x + - 2 Type: Polynomial(Fraction(Integer)) On 1 October 2015 at 15:28, 'Bill Hart' via

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Bill Page
On 1 October 2015 at 15:10, William Stein wrote: > On Thu, Oct 1, 2015 at 12:00 PM, Bill Page wrote: >> ... Clearly the related? concept of >> "element" is borrowed from category theory - maybe even topos theory? > > Yes, parents and elements are from Magma. To me they have nothing to > do with

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread 'Bill Hart' via sage-devel
On 1 October 2015 at 20:23, William Stein wrote: By the way, look at how coercion "works" in Magma: > > $ magma > Magma V2.18-5 Thu Oct 1 2015 16:59:12 on compute3-us [Seed = > 629019987] > Type ? for help. Type -D to quit. > > R := PolynomialRing(IntegerRing()); > > x + 1/2; > > >> x + 1/

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread William Stein
On Thu, Oct 1, 2015 at 12:00 PM, Bill Page wrote: > On 1 October 2015 at 14:23, William Stein wrote: >> ... >> One other impression you have is that categories were just bolted on >> by combinatorics people at the end. However, David Kohel and I >> actually implemented the first round of categor

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Bill Page
On 1 October 2015 at 14:23, William Stein wrote: > ... > One other impression you have is that categories were just bolted on > by combinatorics people at the end. However, David Kohel and I > actually implemented the first round of category-related stuff in Sage > right at the very, very beginni

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread William Stein
On Thu, Oct 1, 2015 at 11:00 AM, Bill Page wrote: > On 1 October 2015 at 13:07, William Stein wrote: >> On Thu, Oct 1, 2015 at 9:38 AM, Bill Page wrote: >>> [Changed thread subject from: Sources of funding - perhaps computer >>> manufacturers? ] >>> >>> What I find hard to swallow is the peculia

Re: [fricas-devel] Re: [sage-devel] categories

2015-10-01 Thread Bill Page
On 1 October 2015 at 13:07, William Stein wrote: > On Thu, Oct 1, 2015 at 9:38 AM, Bill Page wrote: >> [Changed thread subject from: Sources of funding - perhaps computer >> manufacturers? ] >> >> What I find hard to swallow is the peculiar mix of "parent", >> "category", and Python data types (c

Re: [sage-devel] categories

2015-10-01 Thread William Stein
On Thu, Oct 1, 2015 at 9:38 AM, Bill Page wrote: > [Changed thread subject from: Sources of funding - perhaps computer > manufacturers? ] > > What I find hard to swallow is the peculiar mix of "parent", > "category", and Python data types (class system and inheritance). In > spite of the available

[sage-devel] categories

2015-10-01 Thread Bill Page
[Changed thread subject from: Sources of funding - perhaps computer manufacturers? ] What I find hard to swallow is the peculiar mix of "parent", "category", and Python data types (class system and inheritance). In spite of the available documentation in the category system in Sage, I really don't

[sage-devel] categories: ZZ not in Posets() ?

2015-08-22 Thread Daniel Krenn
Is there a reason why sage: ZZ in Posets() False sage: QQ in Posets() False ? Best Daniel -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr..

[sage-devel] Categories, category= -argument

2015-07-25 Thread Jori Mäntysalo
I still try to understand categories in sage... There is category-argument in Poset(), but without examples. As a test I run P = Poset({1:[2,3]}, category=FiniteLatticePosets()) print P.cover_relations() print P.category() and got [[1, 2], [1, 3]] Join of Category of finite lattice posets and

[sage-devel] Categories, axioms, C3, and startup time

2013-06-28 Thread Nicolas M. Thiery
Dear Sage developers, In the last two years, I have been progressively redesigning the category infrastructure to make it scale better (#10963). For a buzz word, it introduces "axioms", which automatizes part of the construction of the category hierarchy when there are many variants of a c

[sage-devel] categories and element classes

2012-03-26 Thread Alex Ghitza
Hello sage-devel, Schemes and their points are not yet properly embedded in the category framework. One of the trac tickets listing the issues is http://trac.sagemath.org/sage_trac/ticket/7946 which mentions that Volker Braun had resolved some of the issues but some related to elements still r

Re: [sage-devel] categories and element classes

2012-03-24 Thread Nicolas M. Thiery
On Fri, Mar 23, 2012 at 07:33:01PM -0700, David Roe wrote: >Unfortunately, whenever I write a Python class I've also been very >frustrated trying to get the class I'm writing to inherit from the >appropriate element_class. As a consequence I try to write most of my >elements in Cyt

Re: [sage-devel] categories and element classes

2012-03-23 Thread David Roe
Elements are supposed to inherit from their category's element_class, but this requirement is waived for elements that are implemented in Cython. See the following snippet from sage.structure.element.Element._test_category (line 495 of element.pyx): # Tests that self inherits methods from

[sage-devel] categories and element classes

2012-03-23 Thread AlexGhitza
Hello sage-devel, (I sent this from my email a couple of hours ago but it hasn't appeared on the list yet. I am trying again from within Google Groups. Apologies if it ends up being a duplicate post.) Schemes and their points are not yet properly embedded in the category framework. One of th

[sage-devel] Categories for matrix spaces: Serious speed regressions in sage-4.7.2.alpha3

2011-10-05 Thread Simon King
Hi! I think I would be able to fix the regression, but I'd like to ask whether you would object to my approach. The ticket is #11900. 1. Provide a custom .list() method for both rational and integral dense vectors. Currently, they use a generic implementation. I guess you will agree that a custo

[sage-devel] categories, etc.: how to define a new algebra

2010-05-19 Thread John Palmieri
Suppose I want to define a new algebra in Sage. What should I do? - I have followed the nice coercion docs in the reference manual, and in particular, I've set up _add_, _mul_, etc.; and also _coerce_map_from_ and _element_constructor_. - Should I do anything with the new categories framework?

Re: [sage-devel] Categories for extensions types

2010-01-15 Thread Nicolas M. Thiery
On Thu, Jan 14, 2010 at 04:05:29PM -0800, Robert Bradshaw wrote: > I actually went to that ticket a bit ago, but didn't see any patch > attached. I'll certainly review this during Sage days if no one else > beats me to it. Excellent! For the record: all tests passed this night on my machine with

Re: [sage-devel] Categories for extensions types

2010-01-14 Thread David Roe
I'm not going to be available until early next week, so it sounds like someone else will get to it before me. I'm excited to see it though! David On Thu, Jan 14, 2010 at 7:05 PM, Robert Bradshaw < rober...@math.washington.edu> wrote: > I actually went to that ticket a bit ago, but didn't see any

Re: [sage-devel] Categories for extensions types

2010-01-14 Thread Robert Bradshaw
I actually went to that ticket a bit ago, but didn't see any patch attached. I'll certainly review this during Sage days if no one else beats me to it. - Robert On Jan 14, 2010, at 3:24 PM, Nicolas M. Thiery wrote: Hi, Given the recent discussion on adding generic group features,

[sage-devel] Categories for extensions types

2010-01-14 Thread Nicolas M. Thiery
Hi, Given the recent discussion on adding generic group features, it was way time for someone to go one step further: to enable extension types to inherit code from categories, so that we could at last start to systematically put generic code in the categories instead of the "old" abstract

[sage-devel] Categories: final report!

2009-11-19 Thread Nicolas M. Thiery
Dear category fans, dear Sage-Combinat developers, This is my final status report for the category patches: Yiiippeee! Mike just merged them today in Sage 4.3-alpha0, together with one year of hard work worth of feature-full patches around root

[sage-devel] Categories review: almost there!

2009-11-12 Thread Nicolas M. Thiery
Dear category fans, Latest status report for the category patches: - They apply smoothly on 4.2.1 alpha0, with all test passing :-) (This is on a macbook pro ubuntu 9.4 with everything up to sage-4.3.patch in the Sage-Combinat queue) Mike: could you please run the tests on a v

[sage-devel] Categories review: the last ones?

2009-11-01 Thread Alex Ghitza
On Sun, Nov 01, 2009 at 01:36:50PM +0100, Nicolas M. Thiery wrote: > > So, what do we do with the preexisting OrderedSets and OrderedMonoids? > Does anyone care if we just break backward compatibility by discarding > them? > I guess the current policy is that we should have their __init__ metho

Re: [sage-combinat-devel] Re: [sage-devel] Categories restart: the end?

2009-10-13 Thread Robert Bradshaw
On Oct 13, 2009, at 12:29 PM, Nicolas M. Thiery wrote: > > Dear Anne, Dan, William, Florent, Jason, ... > > On Tue, Oct 13, 2009 at 09:10:24AM -0700, Daniel Bump wrote: >>> The next Sage version will be 4.2. Send me a list of technical >>> patches with positive review related to categories

Re: [sage-combinat-devel] Re: [sage-devel] Categories restart: the end?

2009-10-13 Thread Nicolas M. Thiery
Dear Anne, Dan, William, Florent, Jason, ... On Tue, Oct 13, 2009 at 09:10:24AM -0700, Daniel Bump wrote: > > The next Sage version will be 4.2. Send me a list of technical > > patches with positive review related to categories, and they can be > > the *first* to go in. I also see 4.2 a

Re: [sage-combinat-devel] Re: [sage-devel] Categories restart: the end?

2009-10-13 Thread Daniel Bump
> Is this question addressed to me, or ? Yes. Note that the root system patch depends on the category patches, which why it came in this thread. Various other long pending patches depend on it. Dan --~--~-~--~~~---~--~~ To post to this group, send an email to

Re: [sage-combinat-devel] Re: [sage-devel] Categories restart: the end?

2009-10-13 Thread William Stein
On Tue, Oct 13, 2009 at 9:10 AM, Daniel Bump wrote: > > >> The next Sage version will be 4.2.  Send me a list of technical >> patches with positive review related to categories, and they can be >> the *first* to go in.  I also see 4.2 as being a relatively quick >> release (compared to the extrem

Re: [sage-combinat-devel] Re: [sage-devel] Categories restart: the end?

2009-10-13 Thread Daniel Bump
> The next Sage version will be 4.2. Send me a list of technical > patches with positive review related to categories, and they can be > the *first* to go in. I also see 4.2 as being a relatively quick > release (compared to the extremely long 4.1.2). Is it possible to conjecture a timetable f

[sage-devel] Categories restart: the end?

2009-10-13 Thread Nicolas M. Thiery
Dear David, dear Javier, dear category fans, Yippee! the technical patches required by the category code are making their way into Sage, maybe even in 4.1.2. Then not much remains to be done, so I am now dreaming of getting the full thing in 4.1.3 (or whatever the next Sage version will b

[sage-devel] Categories restart

2009-06-10 Thread Robert Bradshaw
As many of us have stated on IRC and elsewhere, lots of us reviewing the categories stuff got burned out after Sage days and then busy with lots of other stuff. There's lots of good code here that should go in, and it's a blocker for much of the sage-combinat stuff as well. I've just review

[sage-devel] Re: [sage-combinat-devel] Re: [sage-devel] Categories for the working programmer

2008-11-13 Thread Ralf Hemmecke
>> You know that FriCAS/Aldor does not have this drawback? Eg., the set of all >> combinatorial species forms a Ring... A semi-ring, we don't have virtual species yet. > Thanks for pointing this out. Could you make a quick summary here of > how this is achieved? I don't know what Martin refers

[sage-devel] Re: [sage-combinat-devel] Re: [sage-devel] Categories for the working programmer

2008-11-13 Thread Nicolas M. Thiery
Hi Martin, > You know that FriCAS/Aldor does not have this drawback? Eg., the set of all > combinatorial species forms a Ring... Thanks for pointing this out. Could you make a quick summary here of how this is achieved? Each combinatorial species is a domain, right? Are they simultaneo

[sage-devel] Re: [sage-combinat-devel] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Martin Rubey
"Nicolas M. Thiery" <[EMAIL PROTECTED]> writes: > Very much like in MuPAD. And somehow that's the part I don't like in > MuPAD. We often wanted to have parents which would simultaneously be > also elements (e.g. consider a monoid whose elements would themselves > be monoids, using cartesian produ

[sage-devel] Re: [sage-combinat-devel] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Nicolas M. Thiery
> Yes. Here is an example of one of the main ways I intended > categories to be used in practice. > > sage: C = VectorSpaces(GF(5)) > sage: W = (ZZ^3).span([[1,2,3],[4,5,3]]) > sage: C > Category of vector spaces over Finite Field of size 5 > sage: C(W) > Vector space of degree 3 and dimension 2

[sage-devel] Re: [sage-combinat-devel] Re: [Axiom-developer] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Ralf Hemmecke
> What is the relationship between "categories" in Axiom and the > mathematical notion of a category? None. It is much better to think of categories in Axiom as multisorted algebras. Or to make it simpler, as a first approach you can think of it as universal algebras. A semigroup in Axiom look

[sage-devel] Re: [Axiom-developer] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Nicolas M. Thiery
> The point I was making is related to Nicolas's suggestion of > redesigning the category hierarchy to handle additive vs > multiplicative forms in a different way. Ah ok. Sorry if I have been unclear, I was merely asking whether different *names* could possibly be deemed more appropriate by the

[sage-devel] Re: [Axiom-developer] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread root
Mike, >On Sun, Nov 9, 2008 at 1:21 PM, root <[EMAIL PROTECTED]> wrote: >> There are at least two possible paths toward a category hierarchy in Sage, >> adopting Axiom's version or designing a new one. >> >> The key advantage of adopting the Axiom category hierarchy is the Sage >> system could reu

[sage-devel] Re: [sage-combinat-devel] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Ralf Hemmecke
Dear William, On 11/09/2008 09:43 PM, William Stein wrote: > On Sun, Nov 9, 2008 at 7:31 AM, Nicolas M. Thiery > <[EMAIL PROTECTED]> wrote: >> - Are the Sage categories currently used for anything but documenting >> and testing the mathematical properties of parents? > > Yes. Here is an exam

[sage-devel] Re: [Axiom-developer] Re: [sage-devel] Categories for the working programmer

2008-11-09 Thread Mike Hansen
Hi Tim, On Sun, Nov 9, 2008 at 1:21 PM, root <[EMAIL PROTECTED]> wrote: > There are at least two possible paths toward a category hierarchy in Sage, > adopting Axiom's version or designing a new one. > > The key advantage of adopting the Axiom category hierarchy is the Sage > system could reuse a

[sage-devel] Categories for the working programmer

2008-11-09 Thread Nicolas M. Thiery
Dear Sage developers, > On Tue, Aug 19, 2008 at 8:14 PM, Bill Page <[EMAIL PROTECTED]> wrote: > >> The Sage concept of 'parent' is an attempt to capture similar generic > >> relationships that are represented by categories in Axiom, but I do > >> not like the fact that this concept needs t