-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cartesian products with orders #18223
Comments
Branch: u/dkrenn/cat/cartesian |
Commit: |
Changed branch from u/dkrenn/cat/cartesian to public/ticket/18223 |
comment:5
Replying to @fchapoton:
Thanks.
What was the reason for this merge? |
comment:6
This is forced to me by git, even when the merge is trivial. I work like that:
|
comment:7
Replying to @fchapoton:
http://www.sagemath.org/doc/developer/manual_git.html#merging-and-rebasing says at the end of the section:
|
comment:9
Hello Daniel,
IMHO, something like the following would be better
where order could also be a custom function or a string like 'lex', 'product', ... this second remark is just from the user point of view.
Vincent |
comment:10
Salut Vincent! We had discussed this design with Daniel, and take my share of the blame. I am not quite happy with this solution. I am not quite happy with other solutions either. So that's a good occasion for a discussion! I guess the main question is whether there will be other categories in If not, then having a specific cartesian product for posets is If yes, we would want to have some syntax where we can specify options
This is more or less what the proposed syntax aims for. But it has the
It would need to be checked whether we can indeed achieve this syntax Another related question is whether a single function is sufficient to Cheers, |
comment:11
Salut Nicolas, Replying to @nthiery:
On the other hand the feature is clearly missing. So we need to find a solution.
This worries me a lot since cartesian product is intended for any kind of structures... not only poset. If you start adding specific options into this machinery it will be horrible as well.
This is already nicer. Though, there is a problem with morphisms then (see my remark 3 in comment:9). The order in a cartesian product can not be parametrized if the morphisms are monotone functions. So doing the above will prevent defining morphisms in that way. I do not know whether it is what we want to do here. Note that the following almost works
I say almost, because building a Vincent |
comment:12
Replying to @videlec:
Just a short comment: This will not work for what I have in mind, since my A0, A1, A2 will be groups or monoids or rings, and I want B to be a group or monoid or ring, resp., as well. This is also one motivation for using the category framework to add the desired comparison behavior to existing structures. |
Changed branch from public/ticket/18223 to u/dkrenn/cat/cartesian-product-posets |
This comment has been minimized.
This comment has been minimized.
Dependencies: #18586 |
comment:13
I've now derived a class from
Last 10 new commits:
|
Author: Daniel Krenn |
comment:38
Replying to @videlec:
I think I see your point now and I have to admit I thought we were taking about New commits:
Last 10 new commits:
|
comment:39
two failing doctests |
Changed branch from u/dkrenn/cat/cartesian-product-posets to u/behackl/cat/cartesian-product-posets |
comment:40
I fixed the two failing doctests (in Vincent, as you have done quite some work here would you like to add your name to the reviewers? Finally, as this ticket seems to have reached a stable state, this could be set to Benjamin Last 10 new commits:
|
comment:41
Replying to @behackl:
done
The branch is in good shape. I would like to go through the whole changes a last time. If everything is fine I will set the positive review. Is that ok? Vincent |
Changed reviewer from Benjamin Hackl to Benjamin Hackl, Vincent Delecroix |
comment:42
Replying to @videlec:
Sure! Thanks for going over it once again! Benjamin |
comment:43
because
which actually point toward the exact same thing. Please change for
And some questions:
and indeed
|
Changed branch from u/behackl/cat/cartesian-product-posets to u/dkrenn/cat/cartesian-product-posets |
comment:45
Replying to @videlec:
Ok (I don't have an opinion on this); changed to
Ooops...forgotten to remove it (when moving to the code to
I've added a doctest. This test can and will be rewritten once #18182 is merged.
I completly agree.
I wasn't aware that this works, but it is clear that it works :) Changed.
True; I think this should be fixed by using the
Yes, I am aware of. Adding an extra category only makes sense if the underlying object is a poset (thus has New commits:
|
Changed dependencies from #18586 to none |
comment:46
All right. Thanks for the last changes. Vincent |
Changed branch from u/dkrenn/cat/cartesian-product-posets to |
Create cartesian products which have a particular order (lexicographically or component-wise) on its elements.
This also incorporates the proposed changes of #18586 (won't be fixed; see discussion there), namely passes keyword arguments on in
cartesian_product
and addsextra_category
.CC: @behackl @cheuberg @nthiery
Component: categories
Keywords: sd67
Author: Daniel Krenn
Branch/Commit:
8f9a619
Reviewer: Benjamin Hackl, Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/18223
The text was updated successfully, but these errors were encountered: