Lune

POPL2023Top-tier venue

Inductive Synthesis of Structurally Recursive Functional Programs from Non-recursive Expressions

Woosuk Lee, Hangyeol Cho

Abstract

We present a novel approach to synthesizing recursive functional programs from input-output examples. Synthesizing a recursive function is challenging because recursive subexpressions should be constructed while the target function has not been fully defined yet. We address this challenge by using a new technique we call block-based pruning. A block refers to a recursion- and conditional-free expression (i.e., straight-line code) that yields an output from a particular input. We first synthesize as many blocks as possible for each input-output example, and then we explore the space of recursive programs, pruning candidates that are inconsistent with the blocks. Our method is based on an efficient version space learning, thereby effectively dealing with a possibly enormous number of blocks. In addition, we present a method that uses sampled input-output behaviors of library functions to enable a goal-directed search for a recursive program using the library. We have implemented our approach in a system called Trio and evaluated it on synthesis tasks from prior work and on new tasks. Our experiments show that Trio outperforms prior work by synthesizing a solution to 98% of the benchmarks in our benchmark suite.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata cites Bottom-up synthesis of recursive functional programs using angelic execution
  • Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata cites Cyclic program synthesis
  • Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata cites Trace-Guided Inductive Synthesis of Recursive Functional Programs
  • Programming By Scaffolded Demonstration with Perpend cites Bottom-up synthesis of recursive functional programs using angelic execution
  • Programming By Scaffolded Demonstration with Perpend cites Recursive Program Synthesis using Paramorphisms
  • Programming By Scaffolded Demonstration with Perpend cites Trace-Guided Inductive Synthesis of Recursive Functional Programs
  • Bottom-up synthesis of recursive functional programs using angelic execution cites Combining the top-down propagation and bottom-up enumeration for inductive program synthesis
  • Bottom-up synthesis of recursive functional programs using angelic execution cites Cyclic program synthesis
  • Equivalence by Canonicalization for Synthesis-Backed Refactoring cites Bottom-up synthesis of recursive functional programs using angelic execution
  • Equivalence by Canonicalization for Synthesis-Backed Refactoring cites DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
  • Equivalence by Canonicalization for Synthesis-Backed Refactoring cites Counterexample-Guided Partial Bounding for Recursive Function Synthesis
  • Equivalence by Canonicalization for Synthesis-Backed Refactoring cites Trace-Guided Inductive Synthesis of Recursive Functional Programs
  • Recursive Program Synthesis using Paramorphisms cites Bottom-up synthesis of recursive functional programs using angelic execution
  • Recursive Program Synthesis using Paramorphisms cites Cyclic program synthesis
  • Recursive Program Synthesis using Paramorphisms cites Trace-Guided Inductive Synthesis of Recursive Functional Programs
  • Trace-Guided Inductive Synthesis of Recursive Functional Programs cites Combining the top-down propagation and bottom-up enumeration for inductive program synthesis
  • Trace-Guided Inductive Synthesis of Recursive Functional Programs cites Bottom-up synthesis of recursive functional programs using angelic execution
  • Trace-Guided Inductive Synthesis of Recursive Functional Programs cites Counterexample-Guided Partial Bounding for Recursive Function Synthesis
  • Trace-Guided Inductive Synthesis of Recursive Functional Programs cites Cyclic program synthesis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Trace-Guided Inductive Synthesis of Recursive Functional ProgramsYongwei Yuan, Arjun Radhakrishna, Roopsha SamantaPLDI 2023 · 17 citations
  2. Recursive Program Synthesis using ParamorphismsQiantan Hong, Alex AikenPLDI 2024 · 7 citations
  3. Relational Synthesis of Recursive Programs via Constraint Annotated Tree AutomataAnders Miltner, Ziteng Wang, Swarat Chaudhuri, Isil DilligCAV 2024 · 2 citations
  4. Programming By Scaffolded Demonstration with PerpendAngela Bi, Eric Rawn, Justin Lubin, Sarah E. ChasinsCHI 2026 · 2 citations
  5. Equivalence by Canonicalization for Synthesis-Backed RefactoringJustin Lubin, Jeremy Ferguson, Kevin Ye, Jacob Yim et al.PLDI 2024 · 2 citations

Builds on5

  1. DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learningKevin Ellis, Catherine Wong, Maxwell I. Nye, Mathias Sablé-Meyer et al.PLDI 2021 · 97 citations
  2. Bottom-up synthesis of recursive functional programs using angelic executionAnders Miltner, Adrian Trejo Nuñez, Ana Brendel, Swarat Chaudhuri et al.POPL 2022 · 38 citations
  3. Combining the top-down propagation and bottom-up enumeration for inductive program synthesisWoosuk LeePOPL 2021 · 34 citations
  4. Cyclic program synthesisShachar Itzhaky, Hila Peleg, Nadia Polikarpova, Reuben N. S. Rowe et al.PLDI 2021 · 26 citations
  5. Counterexample-Guided Partial Bounding for Recursive Function SynthesisAzadeh Farzan, Victor NicoletCAV 2021 · 13 citations

Related papers

  1. Distance-Guided Search in Program Synthesis with Imperfect LLM SolutionsHangyeol Cho, Jaehyung Lee, Woosuk LeeICSE 2026
  2. Inductive Program Synthesis via Iterative Forward-Backward Abstract InterpretationYongho Yoon, Woosuk Lee, Kwangkeun YiPLDI 2023 · 15 citations
  3. Inductive Program Synthesis Guided by Observational Program SimilarityJohn K. Feser, Isil Dillig, Armando Solar-LezamaOOPSLA 2023 · 6 citations
  4. Automating Pruning in Top-Down Enumeration for Program Synthesis Problems with Monotonic SemanticsKeith J. C. Johnson, Rahul Krishnan, Thomas W. Reps, Loris D'AntoniOOPSLA 2024 · 2 citations
  5. Combining Functional and Automata Synthesis to Discover Causal Reactive ProgramsRia Das, Joshua B. Tenenbaum, Armando Solar-Lezama, Zenna TavaresPOPL 2023 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines