Parameter ranges: declare bounds for parameters (e.g. p in [0, 1]) so parametric inputs and invariants can be proven
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Read docs/source/language.md and trace how .ppy and .pgcl parameter declarations reach input validation and the positivity heuristics used by all three engines. Identify where range assumptions would be passed through those paths. Done means declared ranges prove the stated input and invariant properties across all three engines, no-range behavior is unchanged, and the language documentation is updated.
Written by the indexing model from the issue text.
Description
Found in #300 and #301. Exists on main (completeness, not soundness).
Parameters (rparam, nparam) have no declared range, so their sign is unknown:
- Since #300, every parametric input distribution whose coefficients depend on a parameter (e.g.
p*x + 1 - pwithpmeant as a probability) is refused, because its non-negativity cannot be proven. Before, such inputs were accepted unchecked. - Since #301, parametric EVT invariants such as
(1 + (1-p)*t)/(1-p*x)stay undecided, although the program usespas a probability. nparamis typed as a non-negative integer only where the caller does so (input distributions); the EVT heuristics get invariants as strings and treatnparamas real.
Idea
- A declared range for parameters, e.g.
p: rparam in [0, 1]in.ppy(and an equivalent in.pgcl), passed to the positivity heuristics and the input validation as assumptions; or results that state the range they hold for. - Possibly infer
0 ≤ p ≤ 1wherepis used as a probability, but only as a stated assumption.
Done when
- A parametric program with a declared range gets its proven guarantees (input accepted, invariant non-negative) on all three engines; without a range nothing changes.
- Docs in
docs/source/language.md.
🤖 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