Overview: open problems of the loop strategies

Open
#262 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python

Research direction

This is a tracking issue that groups separate loop strategy problems; start by filtering the repository for topic: loop strategies and read the linked issues, especially #256, #257, and #243. Choose a specific open problem from the list before investigating its implementation and tests. Done means addressing that individual issue and following the tracking rules: report whether the finding exists on main, and add new strategy problems to the appropriate section.

Written by the indexing model from the issue text.

Description

priority: high topic: loop strategies tracking

Tracking issue. Loop strategies are what Prodigy is for: invariants, EVT and the sandwich, synthesis and unrolling. This issue bundles their open problems in order of importance. Each problem keeps its own issue; this list says what matters now. Filter: label topic: loop strategies. Milestone: "7 · Loop strategies" (the correctness items in progress stay in milestone 1, the research directions are collected in #347).

1. Correctness: wrong results or crashes in strategies

Strategies compute with candidate measures, and these may be signed or have infinite mass.

  • #295: positivity heuristics treat parameters as series variables; claim negativity without proof (medium)
  • #276: EVT upper bounds, the closed-form fixed-point check may be invalid when the radius of convergence is below 1 (high)
  • #256: case-split updates unfold the marginal; on signed measures, a value whose mass cancels is lost (medium)
  • #257: GiNaC, modulo by 0 on an infinite-mass measure (low)
  • #243: monus of two variables with infinite marginals (exact for product form, algebraic otherwise; follow-ups in #366)

2. Termination and robustness

  • #226: evt_synthesis runs without bound when no rational invariant exists (high)
  • #224: unrolling is up to 100x slower on one engine than on another (medium)
  • #341: evt_synthesis on GiNaC, RecursionError when SymPy parses long GiNaC strings; templates skipped (medium; clear "undecided" since #378, structural conversion open)
  • #229: nested loops, the summary of an inner loop concatenates the messages of all its executions (low)

3. Completeness: programs where strategies give no result yet

  • #297: non-negativity not shown for sums like 5/(2-x) + t*(…) (medium)
  • #298: SingleRationalFunction raises TypeError on symbolic coefficients (low)
  • #282: evt_synthesis fails on the simple loop while (b == 0) { b = bernoulli(1/2); … } (medium)
  • #318: evt_synthesis after #315, squared denominators, cost of large denominators (medium)
  • #313: Newton for one-counter loops, accelerated unrolling (medium)
  • #305: IndexError from SymPy's solver ends the whole analysis in evt_synthesis (medium)
  • #323: state-dependent probabilities rational in a counter as operators (integral, derivative)
  • (folded into this issue, see comment; was #364) promote an EVT upper bound with mass 1 to exact when almost-sure termination is proven (low)
  • (folded into #313; was #338) EVT exploration, guess closed forms for slowly converging loops (low)
  • #336: auto keeps the upper bound of an infinite-mass invariant (low) (#380)
  • #303: parameter ranges, so parametric invariants can be proven (medium)
  • #281: evt_synthesis, cheaper template solving; undecided fixed points are dropped (medium)
  • #225: guards that compare two variables, in strategies with templates (concrete distributions done in #365)
  • #237: state-dependent probabilities beyond α + Σβ/(k+a) (polynomial in a counter, double poles, several exponentials)
  • #179: lower-bound strategies for poisson, logdist, negative_binomial

4. Usability: choosing a strategy

  • #324: strategies grouped by goal, auto as default, evt_iterate shows the EVT
  • #337: interactive CLI, evt_synthesis picks an uncertified candidate first (low)
  • #312 (in the ideas collection #414): interactive debugger, step into loops (low)

5. Research: new classes of loops and candidates

  • #347: research collection (D-finite and algebraic generating functions, tail asymptotics; formerly #231, #228, #186)
  • #83, #137 (in the ideas collection #414): invariant candidates and certificates from language models (milestone 3)

Rules

  • Every finding states whether it already exists on main. A finding that a PR introduces gets the label regression and is fixed in that PR.
  • New problems of the strategies get the label topic: loop strategies and are added to this list in the right section.

🤖 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

  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.