Reproduce “Program Synthesis from Polymorphic Refinement Types” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Nadia Polikarpova, Ivan Kuraj, Armando Solar-Lezama

Researchers at MIT CSAIL developed SYNQUID, a program synthesizer that generates provably correct recursive functional programs from polymorphic refinement type specifications. The system leverages novel local liquid type checking and a greatest-fixpoint Horn solver (MUSFIX) to achieve modular verification and early error pruning, successfully synthesizing complex data structure operations like red-black tree insertion while significantly outperforming prior formal synthesis approaches in both scope and efficiency.

Key insights

  • Polymorphic refinement types offer a balance of expressive power and decidability, enabling precise specification of non-trivial program properties (e.g., sortedness, length invariants) with automated verification.
  • Modular decomposition of type-based specifications into independent sub-specifications for program components significantly reduces the search space, enabling scalable synthesis.
  • A custom type checking mechanism, combining top-down specification propagation with bottom-up inference (round-trip checking) and incremental unification, is critical for effectively guiding the synthesis process and pruning early.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.