ReDiP benchmarks of arXiv:2612.02006: inventory against pgfexamples, then synthesis timeouts and RecursionError

Open
#560 2 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
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github, python

Research direction

Start by parsing and printing the 50 programs in the linked paper repository’s benchmarks/{polar,diabolo,prodigy,psi,ours}/*.txt, then compare their content with pgfexamples/ and record matches, variants, missing programs, and internal duplicates. Next run evt_synthesis with a timeout per program on both engines and record each result; investigate recursion errors and measure where each timeout occurs. Done means the inventory and result list are recorded, recursion errors have regression coverage, and every remaining timeout has a measured cause and an issue or fix.

Written by the indexing model from the issue text.

Description

area: analysis bug priority: medium topic: loop strategies

Problem

arXiv:2612.02006 (Yang et al., Dec 2026, §7.1) ran Prodigy's occupation-invariant synthesis on 50 ReDiP benchmarks
with a 60 s limit per benchmark. They report:

  • 16 timeouts in synthesis;
  • 5 recursion-depth errors (RecursionError).

Their own engine (C++/FLINT with Z3) synthesised candidates for 46 of the 50. The authors name optimisations Prodigy
lacks: constant propagation and variable elimination by substitution, both applied before the fixed-point
constraints are built. They also note that the synthesis does not check finite mass itself (§7.1, the baseline adds
it); compare the finite_mass obligation of #556.

The benchmarks come from Polar, Diabolo, Prodigy, PSI, and the paper's own SampleMatching example (Table 3). The
paper does not say which of them failed in Prodigy.

Step 0: inventory before anything is added (no duplicate benchmarks)

All 50 programs are public in the paper's repository:
https://github.com/V-star-ai/Epsum-Exact-Posteriors-via-absolutely-SUMmable-fixed-points (benchmarks/{polar,diabolo,prodigy,psi,ours}/*.txt).
Many of them are already in pgfexamples/, often under other names. The 18 prodigy/* programs come from our own
suite, with observe removed. Before a single program is added:

  • Map each of the 50 programs by content to pgfexamples/: compare the program after parsing and printing it
    with our printer, not the file name. Each one gets one of: identical, same up to renaming, variant (e.g.
    without observe, other parameters or initial distribution; name the difference), or missing.
  • While doing so, list the duplicates inside pgfexamples/. For example, geometric, dueling_cowboys,
    random_walk, nontermination and coupon_collector each appear in two or three folders. Decide for each
    whether it is a real variant or a copy.
  • Add only what is missing. A variant is added only if the difference is relevant to the analysis, and its
    header comment names the original. Every added program names its source (Polar, Diabolo, PSI, the paper) and
    licence. No folder gets a second copy of a program that exists elsewhere; a benchmark list (e.g. a manifest that
    maps the paper's names to our files) refers to the existing files instead.

Name matches found so far (not yet checked by content):

  • prodigy/condand, dep_bern, ky_die, ky_die_2, random_walk, trivial_iid →
    pgfexamples/equivalence/loopy/…;
  • bit_flip, endless → …_conditioning;
  • 17_die → 17_die_even;
  • geo, geo_shifted, n_geo → geometric, geometric_shifted, n_geometric;
  • seq_loops → sequential_loops;
  • skip_geom → inference/loopy/skip_geom_dist;
  • brp_param, geo_param → template_parameter_synthesis/…;
  • nonterm → nontermination;
  • polar/coupon_collector, duelling_cowboys → lower_bounds/exact/….

Most programs from Diabolo and PSI, and sample_matching, have no name match.

Then

  • Run evt_synthesis on all 50, mapped to our files, on both engines, with timeout per program. Record the
    result per program.
  • Every RecursionError: find the cause and fix it. It is a crash, not a slow path, and must end either in a
    result or in "not implemented"/unknown with a reason. A GiNaC cause belongs in LKlinke/prodigy-ginac-bindings.
  • Every timeout: measure where the time goes (template construction, Ψ, constraint solving, the positivity
    check). Fix what is a bug. File the rest as performance items with the measurement, e.g. constant propagation
    or variable elimination before the constraints are built.
  • Check the paper's remark (§7.2) that for prodigy/random_walk the candidate (1+X)/(1−X) passes the positivity
    check but has infinite mass. The finite_mass obligation of #556 must reject it.

Done when

  • The inventory (50 programs → existing file, variant or added) and the duplicates found inside pgfexamples/ are in the issue. No program exists twice without a stated reason.
  • The benchmark list with its result per engine is in the issue or in docs/, before and after.
  • No RecursionError is left on the benchmarks. A regression test covers the class of each one.
  • Every remaining timeout has a measured cause and an issue or a fix.

Related: the signed fixed-point rule from the same paper (separate issue); #473 (time-limited exploration);
#348 (engine performance).

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.