arXiv:2610.34327cs.LOOct 2026

Manuscript Offprint

arXiv:2610.34327

Vector space embeddings of modal logic formulas: theory and application

Pietro Casavecchia, Alberto Paparella, Leonardo Serrentino

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Pietro Casavecchia 1^{1}[0009-0000-9117-234X], Alberto Paparella 1^{1}[0009-0007-1653-3660], and Leonardo Serrentino 1^{1}[0009-0004-9884-0194]

University of Ferrara, Ferrara, Italy

{pietro.casavecchia, alberto.paparella, leonardo.serrentino}@unife.it

Abstract. Reasoning tasks over modal logics are notoriously difficult, comprising problems which are often semi-decidable. Hence, it is not rare for applications leveraging such tasks to exploit heuristic approaches able to give results in an acceptable amount of time, at the cost of some inaccuracies. Some approaches may benefit from vector embeddings, allowing for instance to involve neural networks and machine learning models in the reasoning process. This work aims at providing a new way to provide such embeddings specifically for the modal case, aiming for faster reasoning through both mathematical and learning techniques.

Keywords: Modal logic · Vector embeddings · Automated reasoning.

1 Introduction

Vector space embeddings of logic formulas aim to represent symbolic logic as vectors. This enables, for example, neural networks and machine learning models to perform reasoning over logic-based representations [9]. Such embeddings can be given [8] or learned from data [6,12]. More recently, embeddings have also been leveraged for neurosymbolic tasks [5,10,1]. However, there seems to be no literature about embeddings of modal logics. Therefore, a formal framework for vector space embeddings of modal formulas would be of great value, providing an essential tool for faster reasoning.

This work describes a novel approach to embed modal logic formulas over a vector space, with the key idea of interpreting a set of representative modal logic models as dimensions and hence providing a binary encoding of formulas based on the models that satisfy them. This shares some ideas with [2], however following different goals: while the latter aims at describing the semantic meaning of propositions, this work focuses on finding a set of non-equivalent representative models that describes the entire universe of all possible Kripke structures. Furthermore, some examples of both theoretical and applicative interest are described, solving classical problems in a heuristic way somewhat similar

Presented at the Student Session of the 36th European Summer School in Logic, Language and Information (ESSLLI 2025), Bochum, 28 July to 8 August 2025. An extended version appeared as Semantic Embeddings for Modal Logic (Extended Abstract), Proceedings of ICTCS 2026, CEUR-WS Vol-4269, pp. 30–35.

P. Casavecchia et al.

Figure

Fig. 1. On the left: example of a semantic entailment φ1⊨eφ2\varphi_1 \models_e \varphi_2 in a 3-dimensional vector space; φ1\varphi_1 is the projection of φ2\varphi_2 on the (hyper)-plane formed by the models satisfying φ1\varphi_1. On the right: abstract representation of a high-dimensional vector space; formulas in the gray region are considered similar to φ′\varphi'.

to [3,4,7,11]. Finally, we provide an open-source implementation, also describing how one can get more insightful embeddings.