Skip to content
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

Clarify, fix and test semantics of Quotient(R,a,b) #3612

Merged

Conversation

fingolfin
Copy link
Member

This improves the documentation of Quotient to make it sensible for non-commutative rings, and rings with zero divisors; it also fixes some methods for Quotient which violated the documentation of Quotient (before and after my changes to it).

In particular Quotient(R, x, Zero(R)) should return fail, not run into an error.

Also add some tests for various Quotient methods. It turns out that those for
polynomials still are broken, which should be fixed in the future.

@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes gapsingular2019 Issues and PRs that arose at https://opendreamkit.org/meetings/2019-04-02-GAPSingularMeeting labels Aug 20, 2019
<monoid>[t]
gap> Quotient(2*t, t);
ZmodnZObj(2,6)
gap> #Quotient(t, 2*t); # FIXME: should return fail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you intend to fix this FIXME in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilfwilson Nope, that would require substantial changes to the polynomial code, which isn't something I plan to look at any time soon.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to clarify the comment to make it clearer what is going on. Also tried to fix the test failure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@fingolfin fingolfin force-pushed the mh/Quotient-and-QUO-semantics branch from 6676af2 to a7f3eb7 Compare August 29, 2019 22:34
@codecov
Copy link

codecov bot commented Aug 29, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@cd17292). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #3612   +/-   ##
=========================================
  Coverage          ?   80.91%           
=========================================
  Files             ?      644           
  Lines             ?   317116           
  Branches          ?        0           
=========================================
  Hits              ?   256607           
  Misses            ?    60509           
  Partials          ?        0
Impacted Files Coverage Δ
lib/ring.gd 100% <ø> (ø)
lib/field.gi 74.44% <100%> (ø)
lib/integer.gi 93.98% <100%> (ø)
lib/gaussian.gi 90.44% <100%> (ø)

Copy link
Member

@wilfwilson wilfwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although there's still a single thing failing on Travis (hopefully straightforward to fix).

This improves the documentation of Quotient to make it sensible for
non-commutative rings, and rings with zero divisors; it also fixes some
methods for Quotient which violated the documentation of Quotient (before and
after my changes to it).

In particular Quotient(R, x, Zero(R)) should return fail, not run into an
error.

Also add some tests for various Quotient methods. It turns out that those for
polynomials still are broken, which should be fixed in the future.
@fingolfin fingolfin force-pushed the mh/Quotient-and-QUO-semantics branch from a7f3eb7 to 987f6ad Compare August 30, 2019 08:04
@coveralls
Copy link

coveralls commented Aug 30, 2019

Coverage Status

Coverage decreased (-0.0005%) to 84.403% when pulling 987f6ad on fingolfin:mh/Quotient-and-QUO-semantics into cd17292 on gap-system:master.

@wilfwilson wilfwilson merged commit dea32ff into gap-system:master Aug 30, 2019
@fingolfin fingolfin deleted the mh/Quotient-and-QUO-semantics branch August 30, 2019 17:16
@dimpase dimpase added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Feb 4, 2020
@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11.0 milestone Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapsingular2019 Issues and PRs that arose at https://opendreamkit.org/meetings/2019-04-02-GAPSingularMeeting kind: bug Issues describing general bugs, and PRs fixing them kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants