Skip to main content

Efficiently Grounding FOL Using Bit Vectors

  • Conference paper
  • First Online:
Logic Programming and Nonmonotonic Reasoning (LPNMR 2024)

Abstract

Several paradigms for declarative problem solving start from a specification in a high-level language, which is then transformed to a low-level language, such as SAT or SMT. Often, this transformation includes a “grounding” step to remove first-order quantification. To reduce the time and size of the grounding, it can be useful to simplify formulas along the way, e.g., by taking into account the interpretation of symbols that are already known. In this paper, we investigate the use of bit vectors to efficiently simplify formulas, thereby taking advantage of the fact that, on modern hardware, logical operations on bit vectors can be executed extremely fast. We conduct an experimental analysis, which shows that bit vectors are indeed fast for certain problems, but also have limitations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://gitlab.com/EAVISE/sli/SLI.

  2. 2.

    https://gitlab.com/EAVISE/sli/vectorized_interpretation_benchmark.

References

  1. Alviano, M., et al.: The fourth answer set programming competition: preliminary report. In: Cabalar, P., Son, T.C. (eds.) LPNMR 2013. LNCS (LNAI), vol. 8148, pp. 42–53. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-40564-8_5

    Chapter  MATH  Google Scholar 

  2. Carbonnelle, P., Vandevelde, S., Vennekens, J., Denecker, M.: IDP-Z3: a reasoning engine for FO (.). arXiv preprint arXiv:2202.00343 (2022)

  3. Gebser, M., Kaminski, R., Kaufmann, B., Schaub, T.: Multi-shot ASP solving with clingo (2017)

    Google Scholar 

  4. Van Laer, L., Vandevelde, S., Vennekens, J.: Efficiently grounding FOL using bit vectors (2024). https://arxiv.org/abs/2408.07980

Download references

Acknowledgements

This research received funding from the Flemish Government under the “Onderzoeksprogramma Artificiële Intelligentie (AI) Vlaanderen” programme and by Flanders Innovation & Entrepreneurship (HBC.2022.0071, Tetra-project). We would also like to thank Bart Bogaerts and Jo Devriendt.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lucas Van Laer .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Van Laer, L., Vandevelde, S., Vennekens, J. (2025). Efficiently Grounding FOL Using Bit Vectors. In: Dodaro, C., Gupta, G., Martinez, M.V. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2024. Lecture Notes in Computer Science(), vol 15245. Springer, Cham. https://doi.org/10.1007/978-3-031-74209-5_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-74209-5_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-74208-8

  • Online ISBN: 978-3-031-74209-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics