Shift rule: refute true poles at 0; slow SymPy coefficient search for sqrt forms

Open
#478 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Two separate defects inherited from #459: the shift rule must refute (not report "not proven") when G / x^k has a non-zero coefficient below k, e.g. (1 - sqrt(1 - c^2))/c^3; and the SymPy coefficient search for square-root forms such as (1 - sqrt(1 - x^2))/(2x) must be avoided when the proof rules already decide the comparison. Start by reading how the shift rule classifies a series with a pole at 0 and where undecided comparisons fall through to the SymPy coefficient loop. Done means the first case is refuted and the second returns without paying for 20 coefficients (~22 s).

Written by the indexing model from the issue text.

Description

area: engines priority: low

From #459 (found, not fixed there). Exists on main.

  1. Shift with a true pole at 0. G / x^k where G has a non-zero coefficient below k (e.g. (1 - sqrt(1 - c^2))/c^3) is reported as "not proven" instead of refuted.
  2. Slow coefficient search on SymPy for square-root forms: 20 coefficients of (1 - sqrt(1 - x^2))/(2x) take about 22 s. The proof rules now run first, but undecided comparisons of such forms still pay for the search.
Dominant language
Python
Stars
6
Forks
2
Avg merge
1h 52m
Merged PRs (30d)
187

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LKlinke/Prodigy

All issues in LKlinke/Prodigy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.