Skip to content

Precision issue in the normalization of a Tate series #40046

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

xcaruso
Copy link
Contributor

@xcaruso xcaruso commented May 4, 2025

This PR fixes the following bug:

    sage: S.<x,y> = TateAlgebra(Qp(5), log_radii=(1,0))
    sage: f = 5*x
    sage: f.valuation()
    0
    sage: f.add_bigoh(1)
    O(5 * <x/5, y>)

The correct answer is (5 + O(5^2))*x + O(5 * <x/5, y>) given that the first summand is not absorbed by the O(.).

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

Copy link

github-actions bot commented May 4, 2025

Documentation preview for this PR (built with commit 9713051; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link

@vilanele vilanele left a comment

Choose a reason for hiding this comment

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

Changes correctly fix the precision issue.

Copy link

@TristanVaccon TristanVaccon left a comment

Choose a reason for hiding this comment

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

I approve that this update fixes the issue in question.

@xcaruso
Copy link
Contributor Author

xcaruso commented May 6, 2025

All tests seem to pass (the error, which is reported, is a priori unrelated to this PR).
So, on behalf on the approvals by @vilanele et @TristanVaccon, I give a positive review to this PR.
Please fell free to revert it if you disagree.

vbraun pushed a commit to vbraun/sage that referenced this pull request May 6, 2025
sagemathgh-40046: Precision issue in the normalization of a Tate series
    
This PR fixes the following bug:

```
    sage: S.<x,y> = TateAlgebra(Qp(5), log_radii=(1,0))
    sage: f = 5*x
    sage: f.valuation()
    0
    sage: f.add_bigoh(1)
    O(5 * <x/5, y>)
```

The correct answer is `(5 + O(5^2))*x + O(5 * <x/5, y>)` given that the
first summand is not absorbed by the `O(.)`.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#40046
Reported by: Xavier Caruso
Reviewer(s): TristanVaccon, Vilanele
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants