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

AssertionError in LimitValuation #38898

Open
2 tasks done
swewers opened this issue Oct 31, 2024 · 1 comment
Open
2 tasks done

AssertionError in LimitValuation #38898

swewers opened this issue Oct 31, 2024 · 1 comment

Comments

@swewers
Copy link

swewers commented Oct 31, 2024

Steps To Reproduce

The following Sage commands produce an error:

v_2 = QQ.valuation(2)
R.<x> = QQ[]
f = x^8 - 7/2*x^6 + 7/2*x^5 - 7/11*x^4 + 7*x^3 + 7/2*x^2 + 49*x + 14
v0 = GaussValuation(R, v_2)
v1 = v0.augmentation(x, 1)
v = LimitValuation(v1, f)
v
v(x)

v is correctly created as a limit valuation:
[ Gauss valuation induced by 2-adic valuation, v(x) = 1 , … ]

but then the computation of the value v(x) causes an error:
AssertionError: a MacLane step produced no augmentation

Expected Behavior

In this situation, the limit valuation is well defined, and the result should be v(x)=1.

Actual Behavior

However, the computation of v(x) causes an assertion error.

Additional Information

The error occurs when the function mac_lane_step of the current approximation of the limit valuation v is called. The assertion statement is

assert not allow_equivalent_key, "a MacLane step produced no augmentation"

Environment

  • OS: Ubuntu 20.04
  • Sage Version: 10.04

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@swewers swewers added the t: bug label Oct 31, 2024
@swewers
Copy link
Author

swewers commented Oct 31, 2024

@saraedum
This should be easy to fix. Why is the assert necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants