Case splits for conditions on sums: guards, observe, and two variables of infinite support
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
Research direction
Start with #316 to understand how the existing case split computes Pr[x + y < 3] when one summand has finite support, then trace the guard and observe handling and the three engine entry points. Check how the loop strategies discussed in #225 handle guards comparing variables. Done means both cases work exactly for Pr, if, while guards, and observe on all three engines, with tests.
Written by the indexing model from the issue text.
Description
Found in #316. Exists on main.
#316 computes Pr[x + y < 3] by a case split when one summand has finite support. Still missing:
- Guards and
observeon such conditions (if (x + y < 3)with finite-supportxand infinite-supporty) end the analysis with "not computable on infinite generating function"; the same case split applies. - Both variables of infinite support (two geometric variables): only finitely many values of each can satisfy
x + y < 3, so a case split can first restrictxto the values the condition allows.
Done when
- Both cases are computed exactly on all three engines for
Pr,if,whileguards andobserve; tests. Related: #225 (guards comparing two variables in loop strategies).
🤖 Generated with Claude Code
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LKlinke/Prodigy
-
area: engines bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
area: engines bug priority: medium
Maintainers usually reply within 1 day
-
area: maintenance priority: low
Maintainers usually reply within 1 day
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day