Skip to main content

2016 | OriginalPaper | Buchkapitel

Writing Declarative Specifications for Clauses

verfasst von : Martin Gebser, Tomi Janhunen, Roland Kaminski, Torsten Schaub, Shahab Tasharrofi

Erschienen in: Logics in Artificial Intelligence

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Modern satisfiability (SAT) solvers provide an efficient implementation of classical propositional logic. Their input language, however, is based on the conjunctive normal form (CNF) of propositional formulas. To use SAT solver technology in practice, a user must create the input clauses in one way or another. A typical approach is to write a procedural program that generates formulas on the basis of some input data relevant for the problem domain and translates them into CNF. In this paper, we propose a declarative approach where the intended clauses are specified in terms of rules in analogy to answer set programming (ASP). This allows the user to write first-order specifications for intended clauses in a schematic way by exploiting term variables. We develop a formal framework required to define the semantics of such specifications. Moreover, we provide an implementation harnessing state-of-the-art ASP grounders to accomplish the grounding step of clauses. As a result, we obtain a general-purpose clause-level grounding approach for SAT solvers. Finally, we illustrate the capabilities of our specification methodology in terms of combinatorial and application problems.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
Classical models can be encoded in ASP, e.g., using choice rules and integrity constraints [19].
 
Literatur
1.
Zurück zum Zitat Biere, A., Heule, M., van Maaren, H., Walsh, T.: Handbook of Satisfiability. IOS Press, Amsterdam (2009)MATH Biere, A., Heule, M., van Maaren, H., Walsh, T.: Handbook of Satisfiability. IOS Press, Amsterdam (2009)MATH
2.
Zurück zum Zitat Aavani, A., Wu, X.N., Tasharrofi, S., Ternovska, E., Mitchell, D.: Enfragmo: a system for modelling and solving search problems with logic. In: Bjørner, N., Voronkov, A. (eds.) LPAR 2012. LNCS, vol. 7180, pp. 15–22. Springer, Heidelberg (2012). doi:10.1007/978-3-642-28717-6_4 CrossRef Aavani, A., Wu, X.N., Tasharrofi, S., Ternovska, E., Mitchell, D.: Enfragmo: a system for modelling and solving search problems with logic. In: Bjørner, N., Voronkov, A. (eds.) LPAR 2012. LNCS, vol. 7180, pp. 15–22. Springer, Heidelberg (2012). doi:10.​1007/​978-3-642-28717-6_​4 CrossRef
3.
Zurück zum Zitat Navarro, J.A., Voronkov, A.: Proof systems for effectively propositional logic. In: Armando, A., Baumgartner, P., Dowek, G. (eds.) IJCAR 2008. LNCS (LNAI), vol. 5195, pp. 426–440. Springer, Heidelberg (2008). doi:10.1007/978-3-540-71070-7_36 CrossRef Navarro, J.A., Voronkov, A.: Proof systems for effectively propositional logic. In: Armando, A., Baumgartner, P., Dowek, G. (eds.) IJCAR 2008. LNCS (LNAI), vol. 5195, pp. 426–440. Springer, Heidelberg (2008). doi:10.​1007/​978-3-540-71070-7_​36 CrossRef
4.
5.
Zurück zum Zitat Schulz, S.: A comparison of different techniques for grounding near-propositional CNF formulae. In: Proceedings of FLAIRS 2002, pp. 72–76. AAAI Press (2002) Schulz, S.: A comparison of different techniques for grounding near-propositional CNF formulae. In: Proceedings of FLAIRS 2002, pp. 72–76. AAAI Press (2002)
6.
Zurück zum Zitat Wittocx, J., Mariën, M., Denecker, M.: Grounding FO and FO(ID) with bounds. J. Artif. Intell. Res. 38, 223–269 (2010)MathSciNetMATH Wittocx, J., Mariën, M., Denecker, M.: Grounding FO and FO(ID) with bounds. J. Artif. Intell. Res. 38, 223–269 (2010)MathSciNetMATH
7.
Zurück zum Zitat Brewka, G., Eiter, T., Truszczyński, M.: Answer set programming at a glance. Commun. ACM 54, 92–103 (2011)CrossRef Brewka, G., Eiter, T., Truszczyński, M.: Answer set programming at a glance. Commun. ACM 54, 92–103 (2011)CrossRef
8.
Zurück zum Zitat Asín, R., Nieuwenhuis, R., Oliveras, A., Rodríguez-Carbonell, E.: Cardinality networks: a theoretical and empirical study. Constraints 16(2), 195–221 (2011)MathSciNetCrossRefMATH Asín, R., Nieuwenhuis, R., Oliveras, A., Rodríguez-Carbonell, E.: Cardinality networks: a theoretical and empirical study. Constraints 16(2), 195–221 (2011)MathSciNetCrossRefMATH
9.
Zurück zum Zitat Audemard, G., Katsirelos, G., Simon, L.: A restriction of extended resolution for clause learning SAT solvers. In: Proceedings of AAAI 2010, pp. 15–20. AAAI Press (2010) Audemard, G., Katsirelos, G., Simon, L.: A restriction of extended resolution for clause learning SAT solvers. In: Proceedings of AAAI 2010, pp. 15–20. AAAI Press (2010)
11.
Zurück zum Zitat Gebser, M., Kaminski, R., Ostrowski, M., Schaub, T., Thiele, S.: On the input language of ASP grounder gringo. In: Erdem, E., Lin, F., Schaub, T. (eds.) LPNMR 2009. LNCS (LNAI), vol. 5753, pp. 502–508. Springer, Heidelberg (2009). doi:10.1007/978-3-642-04238-6_49 CrossRef Gebser, M., Kaminski, R., Ostrowski, M., Schaub, T., Thiele, S.: On the input language of ASP grounder gringo. In: Erdem, E., Lin, F., Schaub, T. (eds.) LPNMR 2009. LNCS (LNAI), vol. 5753, pp. 502–508. Springer, Heidelberg (2009). doi:10.​1007/​978-3-642-04238-6_​49 CrossRef
12.
Zurück zum Zitat Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., Scarcello, F.: The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Logic 7(3), 499–562 (2006)MathSciNetCrossRef Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., Scarcello, F.: The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Logic 7(3), 499–562 (2006)MathSciNetCrossRef
15.
Zurück zum Zitat Gebser, M., Kaminski, R., König, A., Schaub, T.: Advances in gringo series 3. In: Delgrande, J.P., Faber, W. (eds.) LPNMR 2011. LNCS (LNAI), vol. 6645, pp. 345–351. Springer, Heidelberg (2011). doi:10.1007/978-3-642-20895-9_39 CrossRef Gebser, M., Kaminski, R., König, A., Schaub, T.: Advances in gringo series 3. In: Delgrande, J.P., Faber, W. (eds.) LPNMR 2011. LNCS (LNAI), vol. 6645, pp. 345–351. Springer, Heidelberg (2011). doi:10.​1007/​978-3-642-20895-9_​39 CrossRef
16.
Zurück zum Zitat Van Gelder, A., Ross, K., Schlipf, J.: The well-founded semantics for general logic programs. J. ACM 38(3), 620–650 (1991)MathSciNetMATH Van Gelder, A., Ross, K., Schlipf, J.: The well-founded semantics for general logic programs. J. ACM 38(3), 620–650 (1991)MathSciNetMATH
17.
Zurück zum Zitat Ullman, J.: Principles of Database and Knowledge-Base Systems. CS Press, New York (1988) Ullman, J.: Principles of Database and Knowledge-Base Systems. CS Press, New York (1988)
18.
Zurück zum Zitat Gelfond, M., Lifschitz, V.: Classical negation in logic programs and disjunctive databases. New Gener. Comput. 9(3–4), 365–386 (1991)CrossRefMATH Gelfond, M., Lifschitz, V.: Classical negation in logic programs and disjunctive databases. New Gener. Comput. 9(3–4), 365–386 (1991)CrossRefMATH
19.
Zurück zum Zitat Simons, P., Niemelä, I., Soininen, T.: Extending and implementing the stable model semantics. Artif. Intell. 138(1–2), 181–234 (2002)MathSciNetCrossRefMATH Simons, P., Niemelä, I., Soininen, T.: Extending and implementing the stable model semantics. Artif. Intell. 138(1–2), 181–234 (2002)MathSciNetCrossRefMATH
20.
Zurück zum Zitat Gebser, M., Janhunen, T., Rintanen, J.: Answer set programming as SAT modulo acyclicity. In: Proceedings of ECAI 2014, pp. 351–356. IOS Press (2014) Gebser, M., Janhunen, T., Rintanen, J.: Answer set programming as SAT modulo acyclicity. In: Proceedings of ECAI 2014, pp. 351–356. IOS Press (2014)
21.
Zurück zum Zitat Gebser, M., Janhunen, T., Rintanen, J.: SAT modulo graphs: acyclicity. In: Fermé, E., Leite, J. (eds.) JELIA 2014. LNCS (LNAI), vol. 8761, pp. 137–151. Springer, Heidelberg (2014). doi:10.1007/978-3-319-11558-0_10 Gebser, M., Janhunen, T., Rintanen, J.: SAT modulo graphs: acyclicity. In: Fermé, E., Leite, J. (eds.) JELIA 2014. LNCS (LNAI), vol. 8761, pp. 137–151. Springer, Heidelberg (2014). doi:10.​1007/​978-3-319-11558-0_​10
22.
Zurück zum Zitat Graça, A., Marques-Silva, J., Lynce, I., Oliveira, A.L.: Efficient haplotype inference with combined CP and OR techniques. In: Perron, L., Trick, M.A. (eds.) CPAIOR 2008. LNCS, vol. 5015, pp. 308–312. Springer, Heidelberg (2008). doi:10.1007/978-3-540-68155-7_28 CrossRef Graça, A., Marques-Silva, J., Lynce, I., Oliveira, A.L.: Efficient haplotype inference with combined CP and OR techniques. In: Perron, L., Trick, M.A. (eds.) CPAIOR 2008. LNCS, vol. 5015, pp. 308–312. Springer, Heidelberg (2008). doi:10.​1007/​978-3-540-68155-7_​28 CrossRef
23.
Zurück zum Zitat Graça, A., Marques-Silva, J., Lynce, I., Oliveira, A.L.: Efficient haplotype inference with pseudo-Boolean optimization. In: Anai, H., Horimoto, K., Kutsia, T. (eds.) AB 2007. LNCS, vol. 4545, pp. 125–139. Springer, Heidelberg (2007). doi:10.1007/978-3-540-73433-8_10 CrossRef Graça, A., Marques-Silva, J., Lynce, I., Oliveira, A.L.: Efficient haplotype inference with pseudo-Boolean optimization. In: Anai, H., Horimoto, K., Kutsia, T. (eds.) AB 2007. LNCS, vol. 4545, pp. 125–139. Springer, Heidelberg (2007). doi:10.​1007/​978-3-540-73433-8_​10 CrossRef
24.
Zurück zum Zitat Eén, N., Sörensson, N.: Translating pseudo-Boolean constraints into SAT. J. Satisfiability Boolean Model. Comput. 2, 1–26 (2006)MATH Eén, N., Sörensson, N.: Translating pseudo-Boolean constraints into SAT. J. Satisfiability Boolean Model. Comput. 2, 1–26 (2006)MATH
25.
Zurück zum Zitat Andres, B., Kaufmann, B., Matheis, O., Schaub, T.: Unsatisfiability-based optimization in clasp. In: Technical Communications of ICLP 2012, pp. 212–221. LIPIcs (2012) Andres, B., Kaufmann, B., Matheis, O., Schaub, T.: Unsatisfiability-based optimization in clasp. In: Technical Communications of ICLP 2012, pp. 212–221. LIPIcs (2012)
26.
Zurück zum Zitat East, D., Iakhiaev, M., Mikitiuk, A., Truszczyński, M.: Tools for modeling and solving search problems. AI Commun. 19(4), 301–312 (2006)MathSciNetMATH East, D., Iakhiaev, M., Mikitiuk, A., Truszczyński, M.: Tools for modeling and solving search problems. AI Commun. 19(4), 301–312 (2006)MathSciNetMATH
27.
Zurück zum Zitat Blockeel, H., Bogaerts, B., Bruynooghe, M., De Cat, B., De Pooter, S., Denecker, M., Labarre, A., Ramon, J., Verwer, S.: Modeling machine learning and data mining problems with FO(.). In: Technical Communications of ICLP 2012, pp. 14–25. LIPIcs (2012) Blockeel, H., Bogaerts, B., Bruynooghe, M., De Cat, B., De Pooter, S., Denecker, M., Labarre, A., Ramon, J., Verwer, S.: Modeling machine learning and data mining problems with FO(.). In: Technical Communications of ICLP 2012, pp. 14–25. LIPIcs (2012)
28.
Zurück zum Zitat Jansen, J., Dasseville, I., Devriendt, J., Janssens, G.: Experimental evaluation of a state-of-the-art grounder. In: Proceedings of PPDP 2014, pp. 249–258. ACM Press (2014) Jansen, J., Dasseville, I., Devriendt, J., Janssens, G.: Experimental evaluation of a state-of-the-art grounder. In: Proceedings of PPDP 2014, pp. 249–258. ACM Press (2014)
29.
Zurück zum Zitat Jansen, J., Jorissen, A., Janssens, G.: Compiling input* FO(.) inductive definitions into tabled prolog rules for IDP3. Theor. Pract. Logic Program. 13(4–5), 691–704 (2013)MathSciNetCrossRefMATH Jansen, J., Jorissen, A., Janssens, G.: Compiling input* FO(.) inductive definitions into tabled prolog rules for IDP3. Theor. Pract. Logic Program. 13(4–5), 691–704 (2013)MathSciNetCrossRefMATH
31.
Zurück zum Zitat Stuckey, P., Feydy, T., Schutt, A., Tack, G., Fischer, J.: The MiniZinc challenge 2008–2013. AI Mag. 35(2), 55–60 (2014) Stuckey, P., Feydy, T., Schutt, A., Tack, G., Fischer, J.: The MiniZinc challenge 2008–2013. AI Mag. 35(2), 55–60 (2014)
32.
Zurück zum Zitat Gebser, M., Janhunen, T., Kaminski, R., Schaub, T., Tasharrofi, S.: Writing declarative specifications for clauses. In: Proceedings of GTTV (2015) Gebser, M., Janhunen, T., Kaminski, R., Schaub, T., Tasharrofi, S.: Writing declarative specifications for clauses. In: Proceedings of GTTV (2015)
33.
Zurück zum Zitat Janhunen, T., Tasharrofi, S., Ternovska, E.: SAT-to-SAT: declarative extension of SAT solvers with new propagators. In: Proceedings of AAAI 2016, pp. 978–984. AAAI Press (2016) Janhunen, T., Tasharrofi, S., Ternovska, E.: SAT-to-SAT: declarative extension of SAT solvers with new propagators. In: Proceedings of AAAI 2016, pp. 978–984. AAAI Press (2016)
35.
Zurück zum Zitat Bogaerts, B., Janhunen, T., Tasharrofi, S.: Declarative solver development: case studies. In: Proceedings of KR 2016, pp. 74–83. AAAI Press (2016) Bogaerts, B., Janhunen, T., Tasharrofi, S.: Declarative solver development: case studies. In: Proceedings of KR 2016, pp. 74–83. AAAI Press (2016)
36.
Zurück zum Zitat Bogaerts, B., Janhunen, T., Tasharrofi, S.: Stable-unstable semantics: beyond NP with normal logic programs. Theory and Practice of Logic Programming (2016, to appear) Bogaerts, B., Janhunen, T., Tasharrofi, S.: Stable-unstable semantics: beyond NP with normal logic programs. Theory and Practice of Logic Programming (2016, to appear)
37.
Zurück zum Zitat Janhunen, T.: Some (in)translatability results for normal logic programs and propositional theories. J. Appl. Non-Class. Logics 16(1–2), 35–86 (2006)MathSciNetCrossRefMATH Janhunen, T.: Some (in)translatability results for normal logic programs and propositional theories. J. Appl. Non-Class. Logics 16(1–2), 35–86 (2006)MathSciNetCrossRefMATH
Metadaten
Titel
Writing Declarative Specifications for Clauses
verfasst von
Martin Gebser
Tomi Janhunen
Roland Kaminski
Torsten Schaub
Shahab Tasharrofi
Copyright-Jahr
2016
DOI
https://doi.org/10.1007/978-3-319-48758-8_17

Premium Partner