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
infinite polynomial ring is_integral_domain and is_field omit optional argument 'proof' #9443
Comments
Attachment: trac_9943_default_arguments.patch.gz add argument 'proof' with default value False to is_field and is_integral_domain |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
apply after previous patch; includes doctests, and updates a few functions to accept positional and keyword arguments; removes duplicate definition of is_field |
Work Issues: Add ticket number to commit message |
comment:4
Attachment: trac_9943_default_arguments_doctests.patch.gz Thank you for working on Infinite Polynomial Rings! Why didn't you add me (as original author) to Cc? I think I am a natural candidate for being reviewer... First of all, the patches apply cleanly, and Second, I think the patches provide a clean solution. I am sorry that I didn't use Third, it is a formal requirement that the commit message of each patch must point to the relevant ticket. So, could you please add "#9443: " or so to the commit messages? Moreover, the attachments name a wrong ticket number (9943 rather than 9443). Fourth, I am now running Fifth, since you fix a bug, I believe the priority is certainly not "trivial". I am promoting it to "major". |
comment:5
|
Reviewer: Simon King |
comment:6
All tests pass. So, I can give this a positive review - modulo the minor nitpicking about the commit message. This is easy to change. I hope it is, in this case, correct to mark this ticket as "positive review" but keep the "work issues" field. |
Attachment: trac_9443_default_arguments_combined.patch.gz compined patch replacing the previous two; patch name and commit message fixed |
comment:7
Thanks! The combined patch should now be complete. |
Changed work issues from Add ticket number to commit message to none |
comment:9
Applying attachment: trac_9443_default_arguments_combined.patch to the forthcoming Sage 4.5.2, which is just 4.5.2.rc1 + #9226, I see
The reject file's contents: --- infinite_polynomial_ring.py
+++ infinite_polynomial_ring.py
@@ -1037,10 +1037,17 @@
"""
return False
- def is_field(self,**kwds):
+ def is_field(self, *args, **kwds):
"""
- Since Infinite Polynomial Rings must have at least one generator, they
- have infinitely many variables and thus never are fields.
+ Return ``False``, since an infinite polynomial ring has at least one
+ generator and hence infinitely many variables.
+
+ EXAMPLES::
+
+ sage: R.<x, y> = InfinitePolynomialRing(QQ)
+ sage: R.is_field()
+ False
+
TESTS::
Can someone rebase the patch when it's convenient? It might be sufficient to work from #9114. |
Attachment: trac_9443_default_arguments_combined_rebased.patch.gz rebased against #9114 (for 4.5.2); apply only this patch. |
comment:10
should now apply cleanly, although I admit I haven't had time to test it thoroughly. |
Attachment: trac_9443_default_arguments_combined_rebased.2.patch.gz Restore commit string. Apply only this patch. |
comment:11
Thanks! The new patch applies cleanly to 4.5.3.alpha0. I've attached V2, which simply restores the earlier fixed commit message. |
Changed author from niles to Niles Johnson |
Merged: sage-4.6.alpha1 |
Other implementations of is_integral_domain allow an argument 'proof' whose default value is False. Infinite polynomial ring omits this argument in its definition of is_integral_domain:
same goes for is_field:
Component: algebra
Keywords: infinite polynomial ring
Author: Niles Johnson
Reviewer: Simon King
Merged: sage-4.6.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/9443
The text was updated successfully, but these errors were encountered: