-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Full interface to letterplace from singular #7797
Comments
hack to create an MPolynomialRing as a parent for letterplace polynomials |
Attachment: trac_7797-letterplace_ring_hack.patch.gz basic interface to compute groebner bases with letterplace |
comment:1
Attachment: trac_7797-letterplace.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:3
Doctest failure on sage.math:
I think we used to allow calling libsingular option objects earlier, however load() replaces it. |
comment:4
Actually, this doesn't make sense to me: bck = int(libsingular_options)
#letter place needs these options
libsingular_options['redTail'] = True
libsingular_options['redSB'] = True
libsingular_options(bck) First bck is stored and then options are changed. So far fine. However, then bck is loaded and thus overwrites the options just set. |
letter place singular interface |
comment:5
Attachment: trac_7797-letterplace.2.patch.gz Hi! I have corrected that using the new context interface. Cheers, |
Attachment: trac_7797-letterplace.3.patch.gz |
comment:7
|
comment:8
This is with Singular 3-1-1-3 though. |
comment:9
Aufruf von System ist offiziell, heißt aber nur, dass es nicht als extra Kommando eingebaut ist. |
comment:10
sorry, for the language: |
comment:11
the result seem to differ just in order. What Ideal class is used for free algebras? |
Attachment: plural_functions.patch.gz some improvements to plural interface, still not much working |
comment:12
Replying to @sagetrac-PolyBoRi:
Apparently, we don't have one which works yet
|
comment:13
Do I understand correctly that in this ticket it is not attempted to replace What Sage currently does in free algebras is generic and slow. As pointed out on sage-devel, bot Singular and Gap are faster in basic arithmetic than the current implementation in Sage. But this should be on a different ticket, right? Best regards, |
comment:14
As I understand, this makes the Singular's letterplace functionality accessible to Sage (in addition to the Plural functionality of #4539). |
comment:15
This ticket is only about exposing the Groebner basis computation. We didn't think arithmetic was usable since
If you think the arithmetic should be wrapped as well, that should be on a different ticket. I don't know how much the Plural wrapper (#4539) will help with that. |
comment:16
Replying to @alexanderdreyer:
What is meant by "Letterplace functionality"? Is it "simply" computing Gröbner basis with degree bound in free associative algebras? Something that irritates me (and I already asked in the Singular forum) is that I could not find a way to apply such Groebner basis, e.g., in order to compute a normal form of an element of the free associative algebra w.r.t. this Gröbner basis. Also I tend to call basic arithmetic a funtionality. Replying to @burcin:
OK. If I find the time, I'll finish the wrappers that I hacked together yesterday. The new ticket will then provide two alternative implementations of free (associative) algebras. One will be based on Gap, the other on Letterplace. The latter will be a hack as well: While doing arithmetic, the degree bound will be dynamically adapted. Currently I use Expect interfaces, but I guess using the Plural wrapper will improve things further. Cheers, |
comment:99
Tests pass on skynet machine mark. |
comment:101
I'm getting (in a trial sage-5.5.beta1, so it includes many other tickets)
|
comment:103
I think we have already discussed that the order of doctests may influence the size of the polynomial ring used to represent the letterplace elements. So, the fix should be to have |
comment:104
Doctest error confirmed with (unreleased but essentially ready) sage-5.5.beta0, but not with sage-5.4.rc2. |
A full wrapper for Singular's letterplace functionality, plus positive integral degree weights, plus complete Groebner bases of weighted homogeneous two-sided ideals, plus coercion. Rel #12988 |
comment:105
Attachment: trac7797-full_letterplace_wrapper_combined.patch.gz I am sorry that I took so long to fix it. I have changed the "big" patch. The diff of the two patch versions is: --- trac7797-full_letterplace_wrapper_combined.patch 2012-11-09 11:15:19.355793326 +0100
+++ trac7797-full_letterplace_wrapper_combined.patch 2012-09-02 09:00:20.000000000 +0200
@@ -2176,7 +2176,7 @@
+ sage: p.reduce(I)
+ y*y*y - y*y*z + y*z*y - y*z*z
+ sage: G = F._reductor_(I.gens(),3); G
-+ Ideal (x*y_1 + y*z_1, x_1*y_2 + y_1*z_2, x*x_1 + x*y_1 - y*x_1 - y*y_1, x_1*x_2 + x_1*y_2 - y_1*x_2 - y_1*y_2) of Multivariate Polynomial Ring in x, y, z, x_1, y_1, z_1, x_2, y_2, z_2... over Rational Field
++ Ideal (x*y_1 + y*z_1, x_1*y_2 + y_1*z_2, x*x_1 + x*y_1 - y*x_1 - y*y_1, x_1*x_2 + x_1*y_2 - y_1*x_2 - y_1*y_2) of Multivariate Polynomial Ring in x, y, z, x_1, y_1, z_1, x_2, y_2, z_2, x_3, y_3, z_3... over Rational Field
+
+ We do not use the usual reduction method for polynomials in
+ Sage, since it does the reductions in a different order I hope it is ok to restore the positive review, since I assume doctests will be run anyway before releasing. Apply trac7797-full_letterplace_wrapper_combined.patch trac_7797-ref.patch |
comment:106
Just realized, that I'm the reviewer: I'm fine with reestablishing to positive review. |
Merged: sage-5.5.beta2 |
comment:108
See #13802 for a problem this causes on Cygwin, though it looks like the fix is easy. I'd appreciate knowing whether it's okay to add |
comment:109
Replying to @kcrisman:
Indeed, looking at the other singular-based modules it makes sense. I don't expect problems doing so. |
comment:110
Great, can you give some feedback on the patch at #13802 then? Thanks! |
comment:112
Very helpful, thank you. |
<!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> As discussed in sagemath#37390 (comment), we change how Sphinx role ``:issue:`` is rendered. For example, short ``` By Issue sagemath#7797, there is a different implementation ... ``` instead of current ``` By github issue sagemath#7797, there is a different implementation ... ``` Arguments for the short form are > Please don't do "Github issue". It is a lot of text with extremely little extra value. > In the trac era, it was "trac sagemath#7797". <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#37403 Reported by: Kwankyu Lee Reviewer(s): Travis Scrimshaw
The new aim of this ticket is to add an interface to the letterplace component of Singular, that actually goes beyond what Singular offers.
The patch provides
(Note that the original purpose was merely to compute Groebner bases up to a degree bound of two-sided ideals of free algebras, but without normal form computation etc.)
Examples are below, in the comments.
Apply
attachment: trac7797-full_letterplace_wrapper_combined.patch and attachment: trac_7797-ref.patch
Depends on #11068 #11268 #12641 #12749
Depends on #4539
Depends on #11268
Depends on #12461
Depends on #12749
Depends on #12988
Depends on #13237
Upstream: None of the above - read trac for reasoning.
CC: @sagetrac-PolyBoRi @saliola @malb @jhpalmieri @sagetrac-sage-combinat @sagetrac-OleksandrMotsak
Component: algebra
Keywords: singular, free algebra, letterplace
Author: Simon King, Michael Brickenstein, Burcin Erocal
Reviewer: Alexander Dreyer
Merged: sage-5.5.beta2
Issue created by migration from https://trac.sagemath.org/ticket/7797
The text was updated successfully, but these errors were encountered: