Scala to the Power of Z3: Integrating SMT and Programming

被引:0
|
作者
Koeksal, Ali Sinan [1 ]
Kuncak, Viktor [1 ]
Suter, Philippe [1 ]
机构
[1] Ecole Polytech Fed Lausanne, Lausanne, Switzerland
来源
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We describe a system that integrates the SMT solver Z3 with the Scala programming language. The system supports the use of the SMT solver for checking satisfiability, unsatisfiability, as well as solution enumeration. The embedding of formula trees into Scala uses the host type system of Scala to prevent the construction of certain ill-typed constraints. The solution enumeration feature integrates into the iteration constructions of Scala and supports writing non-deterministic programs. Using Z3's mechanism of theory extensions, our system also helps users construct custom constraint solvers where the interpretation of predicates and functions is given as Scala code. The resulting system preserves the productivity advantages of Scala while simplifying tasks such as combinatorial search.
引用
收藏
页码:400 / 406
页数:7
相关论文
共 50 条
  • [21] Toward the Z3*-theorem
    Toborg, Imke
    Waldecker, Rebecca
    COMMUNICATIONS IN ALGEBRA, 2021, 49 (07) : 2851 - 2889
  • [22] New Z3 strings
    Kneipp, Marco A. C.
    Liebgott, Paulo J.
    PHYSICS LETTERS B, 2016, 763 : 186 - 189
  • [23] Platonic solids in Z3
    Ionascu, Eugen J.
    Markov, Andrei
    JOURNAL OF NUMBER THEORY, 2011, 131 (01) : 138 - 145
  • [24] Z3 CORRECTION TO THE STOPPING POWER OF IONS IN AN ELECTRON-GAS
    HU, CD
    ZAREMBA, E
    PHYSICAL REVIEW B, 1988, 37 (16) : 9268 - 9277
  • [26] ON THE STEINHAUS TILING PROBLEM FOR Z3
    Goldstein, Daniel
    Mauldin, R. Daniel
    QUARTERLY JOURNAL OF MATHEMATICS, 2014, 65 (02): : 339 - 347
  • [27] BMW Z3: Nice, but not perfect
    Anon
    Design News (Boston), 2002, 56 (24):
  • [28] PUNCTURED INTERVALS TILE Z3
    Cambie, Stijn
    MATHEMATIKA, 2021, 67 (02) : 489 - 497
  • [29] A characterization of regular tetrahedra in Z3
    Ionascu, Eugen J.
    JOURNAL OF NUMBER THEORY, 2009, 129 (05) : 1066 - 1074
  • [30] Schur rings over Z x Z3
    Chen, Gang
    He, Jiawei
    COMMUNICATIONS IN ALGEBRA, 2021, 49 (10) : 4434 - 4446