{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T00:06:11Z","timestamp":1794787571580,"version":"4.9.1"},"publisher-location":"Cham","reference-count":45,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783031711763","type":"print"},{"value":"9783031711770","type":"electronic"}],"license":[{"start":{"date-parts":[[2024,9,13]],"date-time":"2024-09-13T00:00:00Z","timestamp":1726185600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,9,13]],"date-time":"2024-09-13T00:00:00Z","timestamp":1726185600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>We present a new SAT backend for the B-Method to enable new applications of formal methods. The new backend interleaves low-level SAT solving with high-level constraint solving. It provides a \u201cbare metal\u201d access to SAT solving, while pre- and post-calculations can be done in the full B language, with access to higher-order or even infinite data values. The backend is integrated into ProB, not as a general purpose backend, but as a dedicated backend for solving hard constraint satisfaction and optimisation problems on complex data. In the article we present the approach, its origin in the proof of Cook\u2019s theorem, and illustrate and evaluate it on a few novel applications of formal methods, ranging from biology to railway applications.<\/jats:p>","DOI":"10.1007\/978-3-031-71177-0_9","type":"book-chapter","created":{"date-parts":[[2024,9,12]],"date-time":"2024-09-12T02:10:51Z","timestamp":1726107051000},"page":"122-139","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["B2SAT: A Bare-Metal Reduction of\u00a0B to\u00a0SAT"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4595-1518","authenticated-orcid":false,"given":"Michael","family":"Leuschel","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2024,9,13]]},"reference":[{"key":"9_CR1","doi-asserted-by":"crossref","unstructured":"Abrial, J.-R.: The B-Book. Cambridge University Press (1996)","DOI":"10.1017\/CBO9780511624162"},{"key":"9_CR2","doi-asserted-by":"crossref","unstructured":"Abrial, J.-R.: Modeling in Event-B: System and Software Engineering. Cambridge University Press (2010)","DOI":"10.1017\/CBO9781139195881"},{"key":"9_CR3","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"7","DOI":"10.1007\/3-540-63166-6_3","volume-title":"Computer Aided Verification","author":"A Bor\u00e4lv","year":"1997","unstructured":"Bor\u00e4lv, A.: The industrial success of verification tools based on st\u00e5lmarck\u2019s method. In: Grumberg, O. (ed.) CAV 1997. LNCS, vol. 1254, pp. 7\u201310. Springer, Heidelberg (1997). https:\/\/doi.org\/10.1007\/3-540-63166-6_3"},{"issue":"4","key":"9_CR4","doi-asserted-by":"publisher","first-page":"338","DOI":"10.1007\/s001650050021","volume":"10","author":"A Bor\u00e4lv","year":"1998","unstructured":"Bor\u00e4lv, A.: Case study: formal verification of a computerized railway interlocking. Formal Aspects Comput. 10(4), 338\u2013360 (1998)","journal-title":"Formal Aspects Comput."},{"key":"9_CR5","first-page":"231","volume":"2016","author":"N Breton","year":"2016","unstructured":"Breton, N., Fonteneau, Y.: S3: proving the safety of critical systems. In Proceedings RSSRail 2016, 231\u2013242 (2016)","journal-title":"In Proceedings RSSRail"},{"key":"9_CR6","unstructured":"Carbonnelle, P.,\u00a0Vandevelde, S.,\u00a0Vennekens, J.,\u00a0Denecker, M.: IDP-Z3: a reasoning engine for FO(.). CoRR, abs\/2202.00343 (2022)"},{"issue":"1","key":"9_CR7","doi-asserted-by":"publisher","first-page":"121","DOI":"10.1017\/S1471068407003146","volume":"8","author":"M Codish","year":"2008","unstructured":"Codish, M., Lagoon, V., Stuckey, P.J.: Logic programming with satisfiability. Theory Pract. Logic Program. 8(1), 121\u2013128 (2008)","journal-title":"Theory Pract. Logic Program."},{"key":"9_CR8","doi-asserted-by":"crossref","unstructured":"Cook, S.A.: The complexity of theorem-proving procedures. In: Proceedings of the Third Annual ACM Symposium on Theory of Computing, STOC 1971, pp. 151\u2013158, New York, NY, USA (1971). Association for Computing Machinery","DOI":"10.1145\/800157.805047"},{"key":"9_CR9","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"337","DOI":"10.1007\/978-3-540-78800-3_24","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"L de Moura","year":"2008","unstructured":"de Moura, L., Bj\u00f8rner, N.: Z3: an efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J. (eds.) TACAS 2008. LNCS, vol. 4963, pp. 337\u2013340. Springer, Heidelberg (2008). https:\/\/doi.org\/10.1007\/978-3-540-78800-3_24"},{"key":"9_CR10","unstructured":"Dudeney, H.E.: Amusements in Mathematics (1917). https:\/\/www.gutenberg.org\/ebooks\/16713"},{"issue":"3","key":"9_CR11","first-page":"53","volume":"37","author":"E Erdem","year":"2016","unstructured":"Erdem, E., Gelfond, M., Leone, N.: Applications of answer set programming. AI Mag. 37(3), 53\u201368 (2016)","journal-title":"AI Mag."},{"key":"9_CR12","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"260","DOI":"10.1007\/11955757_24","volume-title":"B 2007: Formal Specification and Development in B","author":"N Evans","year":"2006","unstructured":"Evans, N., Ifill, W.: Hardware verification and beyond: using B at AWE. In: Julliand, J., Kouchnarenko, O. (eds.) B 2007. LNCS, vol. 4355, pp. 260\u2013261. Springer, Heidelberg (2006). https:\/\/doi.org\/10.1007\/11955757_24"},{"issue":"4","key":"9_CR13","doi-asserted-by":"publisher","first-page":"423","DOI":"10.1007\/s10009-017-0475-0","volume":"20","author":"N Ge","year":"2018","unstructured":"Ge, N., Jenn, E., Breton, N., Fonteneau, Y.: Integrated formal verification of safety-critical software. Int. J. Softw. Tools Technol. Transf. 20(4), 423\u2013440 (2018)","journal-title":"Int. J. Softw. Tools Technol. Transf."},{"key":"9_CR14","doi-asserted-by":"crossref","unstructured":"Gebser, M., Leone, N., Maratea, M., Perri, S., Ricca, F., Schaub, T.: Evaluation techniques and systems for answer set programming: a survey. In:\u00a0Lang, J. (ed.) Proceedings IJCAI 2018, pp. 5450\u20135456 (2018). https:\/\/www.ijcai.org\/","DOI":"10.24963\/ijcai.2018\/769"},{"key":"9_CR15","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"248","DOI":"10.1007\/978-3-030-48077-6_19","volume-title":"Rigorous State-Based Methods","author":"D Gele\u00dfus","year":"2020","unstructured":"Gele\u00dfus, D., Leuschel, M.: ProB and Jupyter for logic, set theory, theoretical computer science and formal methods. In: Raschke, A., M\u00e9ry, D., Houdek, F. (eds.) ABZ 2020. LNCS, vol. 12071, pp. 248\u2013254. Springer, Cham (2020). https:\/\/doi.org\/10.1007\/978-3-030-48077-6_19"},{"key":"9_CR16","doi-asserted-by":"publisher","unstructured":"Gruteser, J.,\u00a0Leuschel, M.: Validation of railML using ProB. In: Proceedings ICECCS 2024, LNCS (June 2024). https:\/\/doi.org\/10.1007\/978-3-031-66456-4_13","DOI":"10.1007\/978-3-031-66456-4_13"},{"key":"9_CR17","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"680","DOI":"10.1007\/978-3-319-08867-9_45","volume-title":"Computer Aided Verification","author":"L Hadarean","year":"2014","unstructured":"Hadarean, L., Bansal, K., Jovanovi\u0107, D., Barrett, C., Tinelli, C.: A tale of two solvers: eager and lazy approaches to bit-vectors. In: Biere, A., Bloem, R. (eds.) CAV 2014. LNCS, vol. 8559, pp. 680\u2013695. Springer, Cham (2014). https:\/\/doi.org\/10.1007\/978-3-319-08867-9_45"},{"issue":"4\u20135","key":"9_CR18","doi-asserted-by":"publisher","first-page":"767","DOI":"10.1017\/S1471068411000299","volume":"11","author":"S Hallerstede","year":"2011","unstructured":"Hallerstede, S., Leuschel, M.: Constraint-based deadlock checking of high-level specifications. Theory Pract. Log. Program. 11(4\u20135), 767\u2013782 (2011)","journal-title":"Theory Pract. Log. Program."},{"key":"9_CR19","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"165","DOI":"10.1007\/978-3-642-12251-4_13","volume-title":"Functional and Logic Programming","author":"JM Howe","year":"2010","unstructured":"Howe, J.M., King, A.: A pearl on SAT solving in prolog. In: Blume, M., Kobayashi, N., Vidal, G. (eds.) FLOPS 2010. LNCS, vol. 6009, pp. 165\u2013174. Springer, Heidelberg (2010). https:\/\/doi.org\/10.1007\/978-3-642-12251-4_13"},{"key":"9_CR20","doi-asserted-by":"publisher","first-page":"43","DOI":"10.1016\/j.tcs.2012.02.024","volume":"435","author":"JM Howe","year":"2012","unstructured":"Howe, J.M., King, A.: A pearl on SAT and SMT solving in Prolog. Theor. Comput. Sci. 435, 43\u201355 (2012)","journal-title":"Theor. Comput. Sci."},{"key":"9_CR21","doi-asserted-by":"publisher","first-page":"256","DOI":"10.1145\/505145.505149","volume":"11","author":"D Jackson","year":"2002","unstructured":"Jackson, D.: Alloy: a lightweight object modelling notation. ACM Trans. Softw. Eng. Methodol. 11, 256\u2013290 (2002)","journal-title":"ACM Trans. Softw. Eng. Methodol."},{"key":"9_CR22","unstructured":"Knuth, D.: The Art of Computer Programming, Volume 3. Addison-Wesley (1983)"},{"key":"9_CR23","unstructured":"Knuth, D.: The Art of Computer Programming, Volume 4, Fascicle 6: Satsfiability. Addison-Wesley (2015)"},{"key":"9_CR24","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"280","DOI":"10.1007\/978-3-030-80223-3_20","volume-title":"Theory and Applications of Satisfiability Testing \u2013 SAT 2021","author":"S Kochemazov","year":"2021","unstructured":"Kochemazov, S., Ignatiev, A., Marques-Silva, J.: Assessing progress in SAT solvers through the lens of incremental SAT. In: Li, C.-M., Many\u00e0, F. (eds.) SAT 2021. LNCS, vol. 12831, pp. 280\u2013298. Springer, Cham (2021). https:\/\/doi.org\/10.1007\/978-3-030-80223-3_20"},{"key":"9_CR25","doi-asserted-by":"crossref","unstructured":"Konnov, I.,\u00a0Kukovec, J.,\u00a0Tran,T.: TLA+ model checking made symbolic. Proc. ACM Program. Lang., 3(OOPSLA), 123:1\u2013123:30 (2019)","DOI":"10.1145\/3360549"},{"key":"9_CR26","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"63","DOI":"10.1007\/978-3-319-73305-0_5","volume-title":"Practical Aspects of Declarative Languages","author":"S Krings","year":"2018","unstructured":"Krings, S., Leuschel, M., K\u00f6rner, P., Hallerstede, S., Hasanagi\u0107, M.: Three Is a crowd: SAT, SMT and CLP on a chessboard. In: Calimeri, F., Hamlen, K., Leone, N. (eds.) PADL 2018. LNCS, vol. 10702, pp. 63\u201379. Springer, Cham (2018). https:\/\/doi.org\/10.1007\/978-3-319-73305-0_5"},{"key":"9_CR27","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2020.102524","volume":"199","author":"T Lecomte","year":"2020","unstructured":"Lecomte, T., D\u00e9harbe, D., Fournier, P., Oliveira, M.: The CLEARSY safety platform: 5 years of research, development and deployment. Sci. Comput. Program. 199, 102524 (2020)","journal-title":"Sci. Comput. Program."},{"key":"9_CR28","doi-asserted-by":"publisher","unstructured":"Leuschel, M.: ProB: Harnessing the power of Prolog to bring formal models and mathematics to life. Warren, D.S., Dahl, V., Eiter, T., Hermenegildo, M.V., Kowalski, R., Rossi, F. (eds.) Prolog: The Next 50 Years, LNCS 13900, vol. 13900, pp. 239\u2013247. Springer, Cham (2023). https:\/\/doi.org\/10.1007\/978-3-031-35254-6_19","DOI":"10.1007\/978-3-031-35254-6_19"},{"key":"9_CR29","doi-asserted-by":"publisher","unstructured":"Araki, K., Gnesi, S., Mandrioli, D. (eds.) FME 2003. LNCS, vol. 2805. Springer, Heidelberg (2003). https:\/\/doi.org\/10.1007\/b13229","DOI":"10.1007\/b13229"},{"issue":"6","key":"9_CR30","doi-asserted-by":"publisher","first-page":"683","DOI":"10.1007\/s00165-010-0172-1","volume":"23","author":"M Leuschel","year":"2011","unstructured":"Leuschel, M., Falampin, J., Fritz, F., Plagge, D.: Automated property verification for large scale B models with ProB. Formal Asp. Comput. 23(6), 683\u2013709 (2011). https:\/\/doi.org\/10.1007\/s00165-010-0172-1","journal-title":"Formal Asp. Comput."},{"issue":"3","key":"9_CR31","doi-asserted-by":"publisher","first-page":"2331","DOI":"10.1109\/TITS.2023.3317256","volume":"25","author":"MN Men\u00e9ndez","year":"2024","unstructured":"Men\u00e9ndez, M.N., Germino, S., D\u00edaz-Charris, L.D., Lutenberg, A.: Automatic railway signaling generation for railways systems described on railway markup language (railML). IEEE Trans. Intell. Transp. Syst. 25(3), 2331\u20132341 (2024)","journal-title":"IEEE Trans. Intell. Transp. Syst."},{"key":"9_CR32","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"140","DOI":"10.1007\/3-540-45648-1_8","volume-title":"ZB 2002:Formal Specification and Development in Z and B","author":"L Mikhailov","year":"2002","unstructured":"Mikhailov, L., Butler, M.: An approach to combining B and alloy. In: Bert, D., Bowen, J.P., Henson, M.C., Robinson, K. (eds.) ZB 2002. LNCS, vol. 2272, pp. 140\u2013161. Springer, Heidelberg (2002). https:\/\/doi.org\/10.1007\/3-540-45648-1_8"},{"key":"9_CR33","doi-asserted-by":"publisher","unstructured":"Milicevic, A., Efrati, I., Jackson, D.: $$\\alpha $$rby - an embedding of alloy in ruby. In: Ait Ameur, Y., Schewe, KD. (eds.) Proceedings ABZ, vol. 8477, pp. 56\u201371 (2014). https:\/\/doi.org\/10.1007\/978-3-662-43652-3_5","DOI":"10.1007\/978-3-662-43652-3_5"},{"key":"9_CR34","unstructured":"Papadimitriou, C.H.: Cook\u2019s NP-completeness paper and the dawn of the new theory. In: Kapron, B.M. (ed.) Logic, Automata, and Computational Complexity: The Works of Stephen A. Cook, ACM Books, vol.\u00a043, pp. 73\u201382. ACM (2023)"},{"key":"9_CR35","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"372","DOI":"10.1007\/978-3-642-32759-9_31","volume-title":"FM 2012: Formal Methods","author":"D Plagge","year":"2012","unstructured":"Plagge, D., Leuschel, M.: Validating B,Z and TLA\u2009+\u2009 using ProB\u00a0and kodkod. In: Giannakopoulou, D., M\u00e9ry, D. (eds.) FM 2012. LNCS, vol. 7436, pp. 372\u2013386. Springer, Heidelberg (2012). https:\/\/doi.org\/10.1007\/978-3-642-32759-9_31"},{"key":"9_CR36","unstructured":"Rothe, J.: Theoretische informatik. Technical report, University of D\u00fcsseldorf (2000\u20132024)"},{"issue":"6","key":"9_CR37","doi-asserted-by":"publisher","first-page":"1043","DOI":"10.1007\/s10009-022-00682-y","volume":"24","author":"J Schmidt","year":"2022","unstructured":"Schmidt, J., Leuschel, M.: SMT solving for the validation of B and event-b models. Int. J. Softw. Tools Technol. Transf. 24(6), 1043\u20131077 (2022)","journal-title":"Int. J. Softw. Tools Technol. Transf."},{"issue":"5","key":"9_CR38","doi-asserted-by":"publisher","first-page":"545","DOI":"10.1007\/s00165-018-0461-7","volume":"30","author":"D Schneider","year":"2018","unstructured":"Schneider, D., Leuschel, M., Witt, T.: Model-based problem solving for university timetable validation and improvement. Formal Aspects Comput. 30(5), 545\u2013569 (2018)","journal-title":"Formal Aspects Comput."},{"key":"9_CR39","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"827","DOI":"10.1007\/11564751_73","volume-title":"Principles and Practice of Constraint Programming - CP 2005","author":"C Sinz","year":"2005","unstructured":"Sinz, C.: Towards an optimal CNF encoding of Boolean cardinality constraints. In: van Beek, P. (ed.) CP 2005. LNCS, vol. 3709, pp. 827\u2013831. Springer, Heidelberg (2005). https:\/\/doi.org\/10.1007\/11564751_73"},{"key":"9_CR40","unstructured":"Surlemont, M.: Solving connected dominating set variants using integer linear programming. Bachelor\u2019s thesis, Institut f\u00fcr Informatik, Universit\u00e4t D\u00fcsseldorf (2020)"},{"key":"9_CR41","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"632","DOI":"10.1007\/978-3-540-71209-1_49","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"E Torlak","year":"2007","unstructured":"Torlak, E., Jackson, D.: Kodkod: a relational model finder. In: Grumberg, O., Huth, M. (eds.) TACAS 2007. LNCS, vol. 4424, pp. 632\u2013647. Springer, Heidelberg (2007). https:\/\/doi.org\/10.1007\/978-3-540-71209-1_49"},{"issue":"2","key":"9_CR42","doi-asserted-by":"publisher","first-page":"67","DOI":"10.1007\/s10617-005-1184-6","volume":"9","author":"NS Voros","year":"2004","unstructured":"Voros, N.S., Snook, C.F., Hallerstede, S., Masselos, K.: Embedded system design using formal model refinement: an approach based on the combined use of UML and the B language. Design Autom. for Emb. Sys. 9(2), 67\u201399 (2004)","journal-title":"Design Autom. for Emb. Sys."},{"key":"9_CR43","doi-asserted-by":"publisher","first-page":"223","DOI":"10.1613\/jair.2980","volume":"38","author":"J Wittocx","year":"2010","unstructured":"Wittocx, J., Mari\u00ebn, M., Denecker, M.: Grounding FO and FO(ID) with bounds. J. Artif. Intell. Res. (JAIR) 38, 223\u2013269 (2010)","journal-title":"J. Artif. Intell. Res. (JAIR)"},{"key":"9_CR44","unstructured":"Wynn, E.: A comparison of encodings for cardinality constraints in a SAT solver. CoRR, abs\/1810.12975 (2018)"},{"key":"9_CR45","doi-asserted-by":"crossref","unstructured":"Zhou, N.: Modeling and solving graph synthesis problems using sat-encoded reachability constraints in picat. In:\u00a0Formisano, A., et al. (eds.) Proceedings ICLP 2021, EPTCS, vol. 345, pp. 165\u2013178 (2021)","DOI":"10.4204\/EPTCS.345.30"}],"container-title":["Lecture Notes in Computer Science","Formal Methods"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-031-71177-0_9","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,9,12]],"date-time":"2024-09-12T02:12:14Z","timestamp":1726107134000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-031-71177-0_9"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,13]]},"ISBN":["9783031711763","9783031711770"],"references-count":45,"URL":"https:\/\/doi.org\/10.1007\/978-3-031-71177-0_9","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-031-71177-0","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,13]]},"assertion":[{"value":"13 September 2024","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"FM","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Symposium on Formal Methods","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Milan","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Italy","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2024","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"9 September 2024","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"13 September 2024","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"26","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"fm2024","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/www.fm24.polimi.it\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}