Synthesising Programs with Non-trivial Constants

被引:1
|
作者
Abate, Alessandro [1 ]
Barbosa, Haniel [2 ]
Barrett, Clark [3 ]
David, Cristina [4 ]
Kesseli, Pascal [5 ]
Kroening, Daniel [6 ]
Polgreen, Elizabeth [7 ]
Reynolds, Andrew [8 ]
Tinelli, Cesare [8 ]
机构
[1] Univ Oxford, Oxford, England
[2] Univ Fed Minas Gerais, Belo Horizonte, MG, Brazil
[3] Stanford Univ, Stanford, CA USA
[4] Univ Bristol, Bristol, Avon, England
[5] Lacework Ltd, Mountain View, CA USA
[6] Amazon Inc, Oxford, England
[7] Univ Edinburgh, Edinburgh, Midlothian, Scotland
[8] Univ Iowa, Iowa City, IA USA
基金
欧盟地平线“2020”;
关键词
Program synthesis; Automated reasoning; Satisfiability modulo theories; Counterexample guided inductive synthesis; SAT;
D O I
10.1007/s10817-023-09664-4
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Program synthesis is the mechanised construction of software. One of the main difficulties is the efficient exploration of the very large solution space, and tools often require a user provided syntactic restriction of the search space. While useful in general, such syntactic restrictions provide little help for the generation of programs that contain non-trivial constants, unless the user is able to provide the constants in advance. This is a fundamentally difficult task for state-of-the-art synthesisers. We propose a new approach to the synthesis of programs with non-trivial constants that combines the strengths of a counterexample-guided inductive synthesiser with those of a theory solver, exploring the solution space more efficiently without relying on user guidance. We call this approach CEGIS(T), where T is a first-order theory. We present two exemplars, one based on Fourier-Motzkin (FM) variable elimination and one based on first-order satisfiability. We demonstrate the practical value of CEGIS(T) by automatically synthesising programs for a set of intricate benchmarks. Additionally, we present a case study where we integrate CEGIS(T) within the mature synthesiser CVC4 and show that CEGIS(T) improves CVC4's results.
引用
收藏
页数:25
相关论文
共 50 条
  • [21] Non-trivial copies of N
    Dow, Alan
    TOPOLOGY AND ITS APPLICATIONS, 2024, 355
  • [22] SOME NON-TRIVIAL COCYCLES
    CHOJNACKI, W
    JOURNAL OF FUNCTIONAL ANALYSIS, 1988, 77 (01) : 9 - 31
  • [24] Classification of topological trivial matter with non-trivial defects
    Tsui, Lokman
    Li, Zi-Xiang
    Huang, Yen-Ta
    Louie, Steven G.
    Lee, Dung-Hai
    SCIENCE BULLETIN, 2019, 64 (09) : 575 - 579
  • [25] On trivial and non-trivial n-homogeneousC* algebras
    Anatoly Antonevich
    Naum Krupnik
    Integral Equations and Operator Theory, 2000, 38 : 172 - 189
  • [26] Classification of topological trivial matter with non-trivial defects
    Lokman Tsui
    Zi-Xiang Li
    Yen-Ta Huang
    Steven G. Louie
    Dung-Hai Lee
    Science Bulletin, 2019, 64 (09) : 575 - 579
  • [27] Sleep and wakefulness, trivial and non-trivial:: Which is which?
    Rial, Ruben V.
    Nicolau, Maria C.
    Gamundi, Antoni
    Akaarir, Mourad
    Aparicio, Sara
    Garau, Celia
    Tejada, Silvia
    Roca, Catalina
    Gene, Lluis
    Moranta, David
    Esteban, Susana
    SLEEP MEDICINE REVIEWS, 2007, 11 (05) : 411 - 417
  • [28] Trivial and Non-Trivial Supramolecular Assemblies Based on Nafion
    Kelarakis, Antonios
    Krysmann, Marta J.
    COLLOID AND INTERFACE SCIENCE COMMUNICATIONS, 2014, 1 : 31 - 34
  • [29] Non-trivial non weakly pseudocompact spaces
    Hernandez-Hernandez, F.
    Rojas-Hernandez, R.
    Tamariz-Mascarua, A.
    TOPOLOGY AND ITS APPLICATIONS, 2018, 247 : 1 - 8
  • [30] Non-Trivial Universes and Sequences of Universes
    Coghetto, Roland
    FORMALIZED MATHEMATICS, 2022, 30 (01): : 52 - 66