Abstract
This paper introduces a novel approach for computing logic programming semantics based on multilinear algebra. First, a propositional Herbrand base is represented in a vector space and if-then rules in a program are encoded in a matrix. Then we provide methods of computing the least model of a Horn logic program, minimal models of a disjunctive logic program, and stable models of a normal logic program by algebraic manipulation of higher-order tensors. The result of this paper exploits a new connection between linear algebraic computation and symbolic computation, which has potential to realize logical inference in huge scale of knowledge bases.
This work is supported by NII Collaborative Research Program.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The operator \(T_P\) of [17] is applied to Horn programs by viewing each constraint as a rule with the head \(\bot \). In this setting, every atom in \(B_P\) is derived in \(T_P(I)\) if I is inconsistent, i.e., \(\bot \in I\). Note that \(\top \in T_P(I)\) by \((\top \leftarrow \top )\in P\).
- 2.
\(I=\{\top \}\) is semantically identified with \(I=\{\}\).
- 3.
Here we omit the row and the column representing \(\bot \). When a program contains no constraints, the row and the column representing \(\bot \) can be removed (see Sect. 4).
- 4.
Here we omit \(\top \) in each model.
References
Brewka, G., Eiter, T., Truszczynski, M. (eds.): Special issue on answer set programming. AI Mag. 37(3), 5–80 (2016)
Dowling, W.F., Gallier, J.H.: Linear-time algorithms for testing the satisfiability of propositional Horn formulae. J. Logic Program. 1(3), 267–284 (1984)
Fernandez, J.A., Lobo, J., Minker, J., Subrahmanian, V.S.: Disjunctive LP + integrity constraints = stable model semantic. Ann. Math. AI 8(3–4), 449–474 (1993)
Gelfond, M., Lifschitz, V.: The stable model semantics for logic programming. In: Proceedings of the 5th International Conference and Symposium on Logic Programming, pp. 1070–1080. MIT Press (1988)
Grefenstette, E.: Towards a formal distributional semantics: simulating logical calculi with tensors. In: Proceedings of the 2nd Joint Conference on Lexical and Computational Semantics, pp. 1–10 (2013)
Kolda, T.G., Bader, B.W.: Tensor decompositions and applications. SIAM Rev. 51(3), 455–500 (2009)
Lifschitz, V., Turner, H.: Splitting a logic program. In: Proceedings of the 5th International Conference on Logic Programming, pp. 23–37. MIT Press (1994)
Liu, G., Janhunen, T., Niemelä, I.: Answer set programming via mixed integer programming. In: Proceedings of the 13th International Conference on Knowledge Representation and Reasoning, pp. 32–42 (2012)
Lloyd, J.W.: Foundations of Logic Programming, 2nd edn. Springer, Heidelberg (1987)
Nickel, M., Murphy, K., Tresp, V., Gabrilovich, E.: A review of relational machine learning for knowledge graphs. Proc. IEEE 104(1), 11–33 (2016)
Rocktaschel, T., Bosnjak, M., Singh, S., Riedel, S.: Low-dimensional embeddings of logic. In: Proceedings of the ACL 2014 Workshop on Semantic Parsing, pp. 45–49 (2014)
Simons, P., Niemela, I., Soininen, T.: Extending and implementing the stable model semantics. Artif. Intell. 138, 181–234 (2002)
Saraswat, V.: Reasoning 2.0 or machine learning and logic-the beginnings of a new computer science. Data Science Day, Kista, Sweden (2016)
Sato, T.: Embedding Tarskian semantics in vector spaces. In: Proceedings of the AAAI-2017 Workshop on Symbolic Inference and Optimization (2017)
Sato, T.: A linear algebraic approach to Datalog evaluation. TPLP 17(3), 244–265 (2017)
Serafini, L., d’Avila Garcez, A.S.: Learning and reasoning with logic tensor networks. In: Adorni, G., Cagnoni, S., Gori, M., Maratea, M. (eds.) AI*IA 2016. LNCS, vol. 10037, pp. 334–348. Springer, Cham (2016). doi:10.1007/978-3-319-49130-1_25
van Emden, M.H., Kowalski, R.A.: The semantics of predicate logic as a programming language. JACM 23(4), 733–742 (1976)
Yang, B., Yih, W.-T., He, X., Gao, J., Deng, L.: Embedding entities and relations for learning and inference in knowledge bases. In: Proceedings of the International Conference on Learning Representations (2015)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Sakama, C., Inoue, K., Sato, T. (2017). Linear Algebraic Characterization of Logic Programs. In: Li, G., Ge, Y., Zhang, Z., Jin, Z., Blumenstein, M. (eds) Knowledge Science, Engineering and Management. KSEM 2017. Lecture Notes in Computer Science(), vol 10412. Springer, Cham. https://doi.org/10.1007/978-3-319-63558-3_44
Download citation
DOI: https://doi.org/10.1007/978-3-319-63558-3_44
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-63557-6
Online ISBN: 978-3-319-63558-3
eBook Packages: Computer ScienceComputer Science (R0)