This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Knowing How to Plan

Yanjun Li College of Philosophy,
Nankai University, Tianjin, China Department of Philosophy,
Peking University, Beijing, China
   Yanjing Wang Corresponding author. Yanjing Wang thanks the support of NSSF grant 19BZX135. Department of Philosophy,
Peking University, Beijing, China
Abstract

Various planning-based know-how logics have been studied in the recent literature. In this paper, we use such a logic to do know-how-based planning via model checking. In particular, we can handle the higher-order epistemic planning involving know-how formulas as the goal, e.g., find a plan to make sure pp such that the adversary does not know how to make pp false in the future. We give a PTIME algorithm for the model checking problem over finite epistemic transition systems and axiomatize the logic under the assumption of perfect recall.

1 Introduction

Standard Epistemic Logic (EL) mainly studies reasoning patterns of knowing that φ\varphi, despite early contributions by Hintikka on formulating other know-wh expressions such as knowing who and why using first-order and higher-order modal logic. In recent years, there is a resurgence of interest on epistemic logics of know-wh powered by the new techniques for fragments of first-order modal logic based on the so-called bundle modalities packing a quantifier and a normal epistemic modality together [27, 25, 22]. Within the varieties of logics of know-wh, the logics of know-how received the most attention in AI (cf. e.g., [26, 9, 21, 17]).

Besides the inspirations from philosophy and linguistics (e.g., [24]), the idea of automated planning in AI also plays an important role in the developments of various logics of know-how. The core idea is (roughly) to interpret knowing how to achieve φ\varphi as a de re statement of knowledge: “there is a plan such that you know that this plan will ensure φ\varphi”. Here, depending on the exact notion of plans and how much we want to “ensure” that the plan works, there can be different semantics based on ideas from conformant planning and contingent planning in AI. However, as shown by Li and Wang [17], there is a logic core which is independent from the exact notions of plans underlying all these notions of know-how. We can actually unify different planning-based approaches in a powerful framework.

In this paper, we show that the connection between planning and know-how is not merely one way in terms of planning-based know-how, it also makes perfect sense to do know-how-based planning which generalizes the notion of planning to incorporate know-how based goals to be explained in the next subsection. As observed in [17], the typical epistemic planning problem given explicit models can be viewed as model checking problems in our framework with the know-how modality 𝖪𝗁\mathsf{Kh} in the language. For example, 𝖪𝗁_1(𝖪_2φ¬𝖪_3𝖪_2φ)\mathsf{Kh}_{\_}1(\mathsf{K}_{\_}2\varphi\land\neg\mathsf{K}_{\_}3\mathsf{K}_{\_}2\varphi) captures the epistemic planning problem for agent 1 to ensure that agent 2 knows that φ\varphi and keep it a secret from agent 3. Such epistemic planning can also be done in other epistemic approaches, for example, by using dynamic epistemic logic (cf. e.g., [4, 6, 5, 8]). However, we can do much more with the 𝖪𝗁\mathsf{Kh} modality in hand, as explained below.

1.1 Higher-order epistemic planning

A distinct feature of modal logic is that we can bring some notions of the meta-language to the object-language. This is not merely formalizing the existing meta-language concepts more precisely since the object language can open new possibilities. Consider the following multi-agent epistemic language of know-that and know-how:

φ::=p¬φ(φφ)𝖪_iφ𝖪𝗁_iφ\varphi::=\top\mid p\mid\neg\varphi\mid(\varphi\land\varphi)\mid\mathsf{K}_{\_}i\varphi\mid\mathsf{Kh}_{\_}i\varphi

Since we have the know-how operators 𝖪𝗁_i\mathsf{Kh}_{\_}i in the fully compositional logical language, the goal of planning can involve the (Boolean combinations and nestings of) know-how formulas as well, and we call such planning problems higher-order epistemic planning, i.e., planning about planning. By higher-order we do not mean higher-order logic or higher-order epistemic goals in terms of nested know-that formulas.

Although in the single-agent scenario, 𝖪𝗁_1𝖪𝗁_1φ\mathsf{Kh}_{\_}1\mathsf{Kh}_{\_}1\varphi is equivalent to 𝖪𝗁_1φ\mathsf{Kh}_{\_}1\varphi under reasonable conditions as shown in [9, 17], it still makes sense to do higher-order planning. For example, the planning problem to achieve φ\varphi with the future control to turn it off is expressed by 𝖪𝗁_1(φ𝖪𝗁_1¬φ)\mathsf{Kh}_{\_}1(\varphi\land\mathsf{Kh}_{\_}1\neg\varphi), which is not reducible to a formula without the nesting of 𝖪𝗁_1\mathsf{Kh}_{\_}1.111In contrast to normal modal logic, (𝖪𝗁_iφ𝖪𝗁_iψ)𝖪𝗁_i(φψ)(\mathsf{Kh}_{\_}i\varphi\land\mathsf{Kh}_{\_}i\psi)\leftrightarrow\mathsf{Kh}_{\_}i(\varphi\land\psi) is invalid thus 𝖪𝗁_i𝖪𝗁_iφ𝖪𝗁_iφ\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}i\varphi\leftrightarrow\mathsf{Kh}_{\_}i\varphi cannot be applied, cf. e.g., [17].

In a multi-agent setting, given that different agent may have different abilities, the importance of higher-order planning is self-evident. Actually, it is a characteristic human instinct to plan in such a higher-order way. A one-year-old baby girl may not know how to open a bottle but she knows how to use her parents’ knowledge-how to achieve her goal.222As new fathers, both authors know this well and sometimes it can be tiring to be a fully cooperative parent. At the same time, the parents are eager to know how to let their children acquire relevant knowledge-how as early as possible. As a more concrete example about academic collaborations, it often happens that both researchers do not know how to prove a theorem independently, but one knows how to show a critical lemma which can simplify the original problem and thus enable the other to prove the final theorem using her expertise about the simplified statement. In our language, the situation can be expressed as ¬𝖪𝗁_1φ¬𝖪𝗁_2φ𝖪𝗁_1𝖪𝗁_2φ.\neg\mathsf{Kh}_{\_}1\varphi\land\neg\mathsf{Kh}_{\_}2\varphi\land\mathsf{Kh}_{\_}1\mathsf{Kh}_{\_}2\varphi. Of course, it depends on the cooperation of agent 2 to finally ensure the goal φ\varphi of agent 1. The nesting of know-how can go arbitrarily deep and also be interactive such as 𝖪𝗁_1𝖪𝗁_2𝖪𝗁_1𝖪𝗁_2φ\mathsf{Kh}_{\_}1\mathsf{Kh}_{\_}2\mathsf{Kh}_{\_}1\mathsf{Kh}_{\_}2\varphi. Such planning based on others’ knowledge-how is at the core of the arts of leadership and management in general.

Higher-order planning also makes perfect sense in non-cooperative settings. For example, it is sometimes important to ensure not only the goal φ\varphi but also that the adversary cannot spoil it in the future. This is expressed by 𝖪𝗁_1(φ¬𝖪𝗁_2¬φ)\mathsf{Kh}_{\_}1(\varphi\land\neg\mathsf{Kh}_{\_}2\neg\varphi) in our language of knowing how. It is also interesting to have mixed goals with both 𝖪\mathsf{K} and 𝖪𝗁\mathsf{Kh}, such as showing a commitment by achieving φ\varphi while letting the other know you will not be able to change it afterwards: 𝖪𝗁_1𝖪_2(φ¬𝖪𝗁_1¬φ)\mathsf{Kh}_{\_}1\mathsf{K}_{\_}2(\varphi\land\neg\mathsf{Kh}_{\_}1\neg\varphi). In the more interactive game-like scenarios, 𝖪𝗁_1¬𝖪𝗁_2¬𝖪𝗁_1φ\mathsf{Kh}_{\_}1\neg\mathsf{Kh}_{\_}2\neg\mathsf{Kh}_{\_}1\varphi describe a winning strategy-like plan. We will come back to the related work using Alternating-time Temporal Logic (ATL)-like logics at the end of this introduction. Let us first see a concrete example.

Example 1

Suppose a patient is experiencing some rare symptom pp. To know the cause (qq or ¬q\neg q), Doctor 1 in the local hospital suggests the patient first take a special fMRI scan (aa) which is only available in the local hospital at the moment, and bring the result to Doctor 2 in a hospital in another city, who is more experienced in examining the result from the scanner. Then Doctor 2 will then know the cause, depending on which different treatments (bb or cc) should be performed by Doctor 2 to cure the patient. Intuitively, Doctor 1 knows how to let Doctor 2 know how to cure the patient although neither Doctor 1 nor Doctor 2 knows how to cure it without the help of the other. The situation is depicted below as a model with both epistemic relations (dotted lines labelled by 1,21,2) and action relations (solid lines labelled by a,b,ca,b,c). Note that only 11 can execute action aa and only 2 can perform bb or cc. Reflexive epistemic arrows are omitted.

s_1:p\textstyle{s_{\_}1:p\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}1,2\scriptstyle{1,2}a\scriptstyle{a}s_3:p\textstyle{s_{\_}3:p\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}1\scriptstyle{1}b\scriptstyle{b}c\scriptstyle{c}s_5:\textstyle{s_{\_}5:}s_2:p,q\textstyle{s_{\_}2:p,q\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}a\scriptstyle{a}s_4:p,q\textstyle{s_{\_}4:p,q\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}c\scriptstyle{c}b\scriptstyle{b}s_6:p,q\textstyle{s_{\_}6:p,q}

We would like to have ¬𝖪𝗁_1¬p¬𝖪𝗁_2¬p𝖪𝗁_1((𝖪_2q𝖪_2¬q)𝖪𝗁_2¬p)\neg\mathsf{Kh}_{\_}1\neg p\land\neg\mathsf{Kh}_{\_}2\neg p\land\mathsf{Kh}_{\_}1((\mathsf{K}_{\_}2q\lor\mathsf{K}_{\_}2\neg q)\land\mathsf{Kh}_{\_}2\neg p) hold at s_1s_{\_}1 according to the semantics to be introduced.

In this paper, to facilitate such higher-order planning using model checking, we extend the single-agent framework in [17] to a genuine multi-agent setting and study the model checking complexity in details. Technical and computational complications arise due to the introduction of multiple agents with different abilities and knowledge to base their own plans. To stay as close as the intended application of automated planning, we will restrict ourselves to finite models with perfect recall.333cf. [17] for the discussions on the implicit assumption of perfect recall in epistemic planning and the technical difficulty of capturing it by axioms. The model checking algorithm is based on a correspondence between execution trees in the models and the syntactically specified knowledge-based plans. It turns out that this correspondence result also enables us to significantly simplify the proofs of the soundness and completeness of the proof system compared with the method in [9, 17].

We summarize our contributions below.

  • A multi-agent framework of logic of knowing how, which can handle the diversity of agents’ abilities and formally specified plans based on each agent’s own knowledge.

  • A PTIME model checking algorithm for the full language.

  • A complete axiomatization over finite models with perfect recall to ensure the semantics works as desired.444Axiomatizations can also help us to do abstract syntactic reasoning about know-how without fixing a model.

1.2 Related work

Doing automated planning using model checking techniques is not a new idea (cf. e.g., [11]). The most distinctive feature of our framework, compared to other approaches to (epistemic) planning such as [6], is that we can express the planning problem in the object language and incorporate higher-order epistemic planning. Following [10], we base our framework on explicit-state models to lay out the theoretical foundation, instead of using more practical compact representations of models and actions which can generate the explicit-state models with certain properties (cf. [16, 17] for the discussions on the technical connections of the two). In contrast to the informal, model-dependent notions of plans such as policies, we use a plan specification language to formalize knowledge-based plans inspired by [14, 15, 28], but with more expressive branching conditions and more general constructors. Instead of the general structural operational semantics in [17], we give a more intuitive semantics for our knowledge-based plans in this paper.

Comparing to the coalition-based know-how approaches such as [21], we do not have any group know-how modality, but use a much more general notion of plans than the single-step joint action there. Besides the axiomatizations, which are the main focus in the previous work on the logic of know-how, we study the model checking complexity that is crucial for the application of our work to planning. A second-order know-how modality H_CDH_{\_}C^{D} was proposed in [20], where H_CDφH_{\_}C^{D}\varphi says the coalition CC knows how coalition DD can ensure φ\varphi by a single-step joint action, though DD may not know how themselves. Note that H_{i}{j}φH_{\_}{\{i\}}^{\{j\}}\varphi is neither 𝖪𝗁_i𝖪𝗁_jφ\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}j\varphi nor 𝖪_i𝖪𝗁_jφ\mathsf{K}_{\_}i\mathsf{Kh}_{\_}j\varphi in our setting, where ii may not know the plan that others may use to reach the goal.

The 𝖪𝗁_i\mathsf{Kh}_{\_}i operator is clearly also related to the strategy-based de re variants of the (single-agent) ATL operator <<i>><\!\!<i>\!\!> under imperfect information (cf. e.g., [23, 13]). In the setting of concurrent games of ATL, the strategies are functions from finite histories (or epistemic equivalence classes of them) to available actions, which induce the resulting plays of the given game that are usually infinite histories, on which temporal properties can be verified. This “global” notion of strategies leads to the problem of revocability of the strategies when nesting the <<i>><\!\!<i>\!\!> operators: can you change the strategy when evaluating <<i>>φ<\!\!<i>\!\!>\varphi in the scope of another such operator [12, 2]? In contrast, it is crucial that our witness plans for know-how are not global and always terminate, and there is no controversy in the nested form of 𝖪𝗁_i\mathsf{Kh}_{\_}i operators in our setting. It is also crucial that the plans are executed sequentially in our setting, e.g., 𝖪𝗁_i𝖪𝗁_jφ\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}j\varphi simply means agent ii knows how to make sure agent jj knows how to make sure φ\varphi after agent ii finishes executing the witness plan for its know-how. Moreover, while the de re variants of ATL are useful in reasoning about (imperfect information) concurrent games (cf. e.g., [19, 18]), our framework is closer to the standard automated planning in AI over transition systems. We leave it to the full version of the paper for a detailed technical comparison.

Structure of the paper

In the rest of the paper, we first introduce briefly an epistemic language in Section 2 to be used to specify the branching conditions of our plan specification language in Section 3. In Section 4 we introduce the semantics of our know-how language and give a PTIME model checking algorithm. Finally, we obtain a complete axiomatization in Section 5 and conclude with future directions in Section 6.

Due to the strict space limitation, we have to omit some proofs.

2 Preliminaries

To specify the knowledge-based plans, we need the following formal language EAL to express the knowledge conditions.

Definition 2 (EAL Language)

Let 𝐏\mathbf{P} be a set of propositional letters, 𝐈\mathbf{I} be a set of agents, and 𝐀\mathbf{A} be a set of atomic actions. The language of Epistemic Action Logic (EAL_𝐀𝐈\textsf{EAL}^{\mathbf{A}}_{\_}\mathbf{I}) is defined as follows:

φ::=p¬φ(φφ)𝖪_iφ[a]φ\begin{array}[]{r@{\quad::= \quad}l}\varphi&\top\mid p\mid\neg\varphi\mid(\varphi\land\varphi)\mid\mathsf{K}_{\_}i\varphi\mid[a]\varphi\\ \end{array}

where p𝐏p\in\mathbf{P}, i𝐈i\in\mathbf{I}, and a𝐀a\in\mathbf{A}.

The auxiliary connectives and modalities ,,a\to,\lor,\langle a\rangle are defined as abbreviations as usual.

The semantics of EAL formulas is defined on finite models with both epistemic relations and transitions labelled by atomic actions, which will also be used for the know-how logic. In contrast with the single-agent model of [17], for each agent ii we have a special set of actions 𝐀_i\mathbf{A}_{\_}i that are executable by ii. Note that an action may be executable by multiple agents. Moreover, we implicitly assume each agent is aware of all the actions, even for those not executable by itself.

Definition 3 (Model)

An Epistemic Transition System (i.e., a model) \mathcal{M} is a tuple

W,{_ii𝐈},{𝐀_ii𝐈},{Q(a)a_i𝐈𝐀_i},V\langle W,\{\sim_{\_}i\mid i\in\mathbf{I}\},\{\mathbf{A}_{\_}i\mid i\in\mathbf{I}\},\{Q{(a)}\mid a\in\bigcup_{\_}{i\in\mathbf{I}}\mathbf{A}_{\_}i\},V\rangle

where: WW is a non-empty set; 𝐀_i\mathbf{A}_{\_}i is a set of actions for each i𝐈i\in\mathbf{I}; _iW×W\sim_{\_}i\subseteq{W\times W} is an equivalence relation for each i𝐈i\in\mathbf{I}; Q(a)W×WQ{(a)}\ \subseteq{W\times W} is a binary relation for each a_i𝐈𝐀_ia\in\bigcup_{\_}{i\in\mathbf{I}}\mathbf{A}_{\_}i; V:W2𝐏V:W\to 2^{\mathbf{P}} is a valuation. A frame is a model without the valuation function.

Notations

In the rest of the paper, we use 𝐀\mathbf{A} to denote _i𝐈𝐀_i\bigcup_{\_}{i\in\mathbf{I}}\mathbf{A}_{\_}i for notational simplicity. We use [s]i[s]^{i} to denote the set {tWs_it}\{t\in W\mid s\sim_{\_}it\} and [W]i[W]^{i} to denote the set {[s]isW}\{[s]^{i}\mid s\in W\}. We sometimes call the equivalence class [s]i[s]^{i} an ii-belief-state. A model captures the agents’ abilities to act and the uncertainty about the states.

EAL_𝐀𝐈{\textsf{EAL}}^{\mathbf{A}}_{\_}\mathbf{I} formulas are given truth values on pointed epistemic transition systems.

Definition 4 (Semantics)

Given a pointed model (,s)(\mathcal{M},s) where =W,{_ii𝐈},{𝐀_ii𝐈},{Q(a)a𝐀},V\mathcal{M}=\langle W,\{\sim_{\_}i\mid i\in\mathbf{I}\},\{\mathbf{A}_{\_}i\mid i\in\mathbf{I}\},\{Q{(a)}\mid a\in\mathbf{A}\},V\rangle and a formula φEAL_𝐀𝐈\varphi\in{\textsf{EAL}}^{\mathbf{A}}_{\_}\mathbf{I}, the semantics is given below:

,salways,sps𝒱(p),s¬φ,sφ,s(φψ),sφ and ,sψ,s𝖪_iφfor all t, if s_it then ,tφ,s[a]φfor all t, if (s,t)Q(a) then ,tφ\begin{array}[]{|rll|}\hline\cr\mathcal{M},s\vDash\top&\Leftrightarrow&\textit{always}\\ \mathcal{M},s\vDash p&\Leftrightarrow&s\in\mathcal{V}(p)\\ \mathcal{M},s\vDash\neg\varphi&\Leftrightarrow&\mathcal{M},s\nvDash\varphi\\ \mathcal{M},s\vDash(\varphi\wedge\psi)&\Leftrightarrow&\mathcal{M},s\vDash\varphi\text{ and }\mathcal{M},s\vDash\psi\\ \mathcal{M},s\vDash\mathsf{K}_{\_}i\varphi&\Leftrightarrow&\text{for all }t,\text{ if }s\sim_{\_}it\text{ then }\mathcal{M},t\vDash\varphi\\ \mathcal{M},s\vDash[a]\varphi&\Leftrightarrow&\text{for all }t,\text{ if }(s,t)\in Q(a)\text{ then }\mathcal{M},t\vDash\varphi\\ \hline\cr\end{array}

A formula is valid on a frame if it is true on all the pointed models based on that frame.

Let XX be a set of states. We sometimes use ,Xφ\mathcal{M},X\vDash\varphi to denote that ,sφ\mathcal{M},s\vDash\varphi for all sXs\in X. Thus ,Xφ\mathcal{M},X\nvDash\varphi denotes that ,sφ\mathcal{M},s\nvDash\varphi for some sXs\in X, e.g., we may write ,[s]i𝖪_iφ\mathcal{M},[s]^{i}\vDash\mathsf{K}_{\_}i\varphi or ,[s]i𝖪_iφ\mathcal{M},[s]^{i}\nvDash\mathsf{K}_{\_}i\varphi.

Here are some standard results about bisimulation that will be useful in the later technical discussion (cf. e.g., [3]).

Definition 5 (Bisimulation)

Given a model =W,{_ii𝐈},{𝐀_ii𝐈},{Q(a)a_i𝐈𝐀_i},V\mathcal{M}=\langle W,\{\sim_{\_}i\mid i\in\mathbf{I}\},\{\mathbf{A}_{\_}i\mid i\in\mathbf{I}\},\{Q{(a)}\mid a\in\bigcup_{\_}{i\in\mathbf{I}}\mathbf{A}_{\_}i\},V\rangle, a non-empty symmetric binary relation ZZ on the domain of \mathcal{M} is called a bisimulation iff whenever (w,v)Z(w,v)\in Z the following conditions are satisfied:

  • (1).

    For any p𝐏:pV(w)pV(v)p\in\mathbf{P}:p\in V(w)\iff p\in V(v).

  • (2).

    for any i𝐈i\in\mathbf{I}, if w_iww\sim_{\_}iw^{\prime} for some wWw^{\prime}\in W then there exists a vWv^{\prime}\in W such that v_ivv\sim_{\_}iv^{\prime} and wZvw^{\prime}Zv^{\prime}.

  • (3).

    for any a𝐀_ia\in\bigcup\mathbf{A}_{\_}i, if (w,w)Q(a)(w,w^{\prime})\in Q(a) for some wWw^{\prime}\in W then there exists a vWv^{\prime}\in W such that (v,v)Q(a)(v,v^{\prime})\in Q(a) and wZvw^{\prime}Zv^{\prime}.

The pointed models (,w)(\mathcal{M},w) and (,v)(\mathcal{M},v) are said to be bisimilar (,w¯,v\mathcal{M},w\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},v) if there is a bisimulation ZZ such that (w,v)Z.(w,v)\in Z.

We use ,[s]i¯,[s]i\mathcal{M},[s]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},[s^{\prime}]^{i} to denote that for each t[s]it^{\prime}\in[s^{\prime}]^{i}, there exists t[s]it\in[s]^{i} such that ,t¯,t\mathcal{M},t\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},t^{\prime} and vice versa. Given two pointed models (,s)(\mathcal{M},s) and (,s)(\mathcal{M},s^{\prime}), we use ,s_EAL_𝐈𝐀,s\mathcal{M},s\equiv_{\_}{{\textsf{EAL}}_{\_}\mathbf{I}^{\mathbf{A}}}\mathcal{M},s^{\prime} to denote that for each φEAL_𝐈𝐀\varphi\in{\textsf{EAL}}_{\_}\mathbf{I}^{\mathbf{A}}, ,sφ\mathcal{M},s\vDash\varphi if and only if ,sφ\mathcal{M},s^{\prime}\vDash\varphi. Similarly, ,s_EAL_𝐈𝐀|_𝖪_i,s\mathcal{M},s\equiv_{\_}{\textsf{EAL}_{\_}\mathbf{I}^{\mathbf{A}}|_{\_}{\mathsf{K}_{\_}i}}\mathcal{M},s^{\prime} denotes that for each 𝖪_iφEAL_𝐈𝐀\mathsf{K}_{\_}i\varphi\in\textsf{EAL}_{\_}\mathbf{I}^{\mathbf{A}}, ,s𝖪_iφ\mathcal{M},s\vDash\mathsf{K}_{\_}i\varphi if and only if ,s𝖪_iφ\mathcal{M},s^{\prime}\vDash\mathsf{K}_{\_}i\varphi.

Please note that ,s¯,s\mathcal{M},s\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},s^{\prime} implies ,[s]i¯,[s]i\mathcal{M},[s]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},[s^{\prime}]^{i}, but the other way around does not work in general.

As an adaption of the Hennessy-Milner theorem for modal logic (cf. e.g., [3]), we have:

Proposition 6

Given a finite model \mathcal{M}, for each state ss in \mathcal{M}, we have that ,s_EAL_𝐈𝐀,s\mathcal{M},s\equiv_{\_}{\textsf{EAL}_{\_}\mathbf{I}^{\mathbf{A}}}\mathcal{M},s^{\prime} iff ,s¯,s\mathcal{M},s\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},s^{\prime}.

Moreover, if we only look at the 𝖪_iφ\mathsf{K}_{\_}i\varphi formulas, we have:

Proposition 7

Given a finite model \mathcal{M}, for each state ss in \mathcal{M}, we have that ,[s]i¯,[s]i\mathcal{M},[s]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},[s^{\prime}]^{i} iff ,s_EAL_𝐈𝐀|_𝖪_i,s\mathcal{M},s\equiv_{\_}{\textsf{EAL}_{\_}\mathbf{I}^{\mathbf{A}}|_{\_}{\mathsf{K}_{\_}i}}\mathcal{M},s^{\prime}.

Most approaches of epistemic planning implicitly assume the property of perfect recall (cf. [17, Sec. 6.5]), here we will also consider this extra property which will play a role in model checking.

Definition 8 (Perfect recall)

Given a model \mathcal{M}, for each i𝐈i\in\mathbf{I} and each a𝐀_ia\in\mathbf{A}_{\_}i, if (s_1,s_2)Q(a)(s_{\_}1,s_{\_}2)\in Q(a) and s_2_is_4s_{\_}2\sim_{\_}is_{\_}4 then there must exist a state s_3s_{\_}3 such that s_1_is_3s_{\_}1\sim_{\_}is_{\_}3 and (s_3,s_4)Q(a)(s_{\_}3,s_{\_}4)\in Q(a).

In words, if the agent cannot distinguish two states after doing aa then it could not distinguish them before. Perfect recall (PR) corresponds to the following property depicted below:

s_1\textstyle{{s_{\_}1}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}a\scriptstyle{a}s_2\textstyle{s_{\_}2\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}i\scriptstyle{i}s_4\textstyle{s_{\_}4}
𝙿𝚁(a)\xrightarrow{\mathtt{PR}(a)}
s_1\textstyle{{s_{\_}1}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}a\scriptstyle{a}i\scriptstyle{i}s_3\textstyle{s_{\_}3\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}a\scriptstyle{a}s_2\textstyle{s_{\_}2\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}i\scriptstyle{i}s_4\textstyle{s_{\_}4}

3 A specification language for knowledge-based plans

Inspired by [14], we only consider knowledge-based plans for each agent. We introduce the following specification language which is a multi-agent variant of a fragment of the programming language introduced in [17].

Definition 9 (Knowledge-based specification language 𝙺𝙱𝙿(i)\mathtt{KBP}(i))

Based on EAL_𝐀𝐈\textsf{EAL}^{\mathbf{A}}_{\_}\mathbf{I}, 𝙺𝙱𝙿(i)\mathtt{KBP}(i) is defined as follows:

π::=ϵa(π;π)𝚒𝚏𝖪_iφ𝚝𝚑𝚎𝚗π𝚎𝚕𝚜𝚎π\begin{array}[]{r@{\quad::= \quad}l}\pi&\epsilon\mid a\mid(\pi;\pi)\mid\mathtt{if}{\leavevmode\nobreak\ \mathsf{K}_{\_}i\varphi\leavevmode\nobreak\ }\mathtt{then}{\leavevmode\nobreak\ \pi\leavevmode\nobreak\ }\mathtt{else}{\leavevmode\nobreak\ \pi}\end{array}

where ϵ\epsilon is the empty plan, a𝐀_ia\in\mathbf{A}_{\_}i and φEAL_𝐀𝐈\varphi\in{\textsf{EAL}}^{\mathbf{A}}_{\_}\mathbf{I}.

Note that the atomic action aa in the above definition must belong to ii, but the condition 𝖪_iφ\mathsf{K}_{\_}i\varphi can contain epistemic modalities and actions of other agents, e.g., 𝖪_i¬𝖪_j[b]p\mathsf{K}_{\_}i\neg\mathsf{K}_{\_}j[b]p is a legitimate condition for a knowledge-based plan for ii even when b𝐀_ib\not\in\mathbf{A}_{\_}i.

We will abbreviate 𝚒𝚏𝖪_iφ𝚝𝚑𝚎𝚗π_1𝚎𝚕𝚜𝚎π_2\mathtt{if}{\leavevmode\nobreak\ \mathsf{K}_{\_}i\varphi\leavevmode\nobreak\ }\mathtt{then}{\leavevmode\nobreak\ \pi_{\_}1\leavevmode\nobreak\ }\mathtt{else}{\leavevmode\nobreak\ \pi_{\_}2} as 𝖪_iφ?π_1:π_2\mathsf{K}_{\_}i\varphi?\pi_{\_}1\!:\pi_{\_}2. We use πn\pi^{n} to denote the program π;;π_n\underbrace{\pi;\cdots;\pi}_{\_}{n}, and π0\pi^{0} is the empty program ϵ\epsilon.

Let \mathcal{M} be an epistemic transition system, ss be a state in \mathcal{M}, and π\pi be a program in 𝙺𝙱𝙿(i)\mathtt{KBP}(i). The state set Q(π)(s)Q(\pi)(s), which is the set of states on which executing π\pi on ss will terminate, is defined by induction on π\pi as follows:

Q(ϵ)(s)\displaystyle Q(\epsilon)(s) ={s}\displaystyle=\{s\}
Q(a)(s)\displaystyle Q(a)(s) ={t(s,t)Q(a)}\displaystyle=\{t\mid(s,t)\in Q(a)\}
Q(π_1;π_2)(s)\displaystyle Q(\pi_{\_}1;\pi_{\_}2)(s) ={vthere is tQ(π_1)(s):vQ(π_2)(t)}\displaystyle=\{v\mid\text{there is }t\in Q(\pi_{\_}1)(s):v\in Q(\pi_{\_}2)(t)\}
Q(𝖪_iφ?π_1:π_2)(s)\displaystyle Q(\mathsf{K}_{\_}i\varphi?\pi_{\_}1\!:\pi_{\_}2)(s) ={Q(π_1)(s),s𝖪_iφQ(π_2)(s),s𝖪_iφ\displaystyle=\begin{cases}Q(\pi_{\_}1)(s)&\mathcal{M},s\vDash\mathsf{K}_{\_}i\varphi\\ Q(\pi_{\_}2)(s)&\mathcal{M},s\nvDash\mathsf{K}_{\_}i\varphi\end{cases}

We use Q(π)([s]i)Q(\pi)([s]^{i}) to denote the set _s[s]iQ(π)(s)\bigcup_{\_}{s^{\prime}\in[s]^{i}}Q(\pi)(s^{\prime}). Given the property of perfect recall, the resulting states of a knowledge-based plan have a nice property.

Proposition 10

If \mathcal{M} has perfect recall and π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i), then Q(π)([s]i)Q(\pi)([s]^{i}) is closed over _i\sim_{\_}i.

Next we will define a notion of strong executability which is a generalized version of the one in [26].

Definition 11 (Strong executability)

We define a program π\pi to be strongly executable on a pointed model (,s)(\mathcal{M},s) by induction on π\pi as follows: (1)ϵ\epsilon is always strongly executable on ,s\mathcal{M},s; (2)aa is strongly executable on ,s\mathcal{M},s if Q(a)(s)Q(a)(s)\neq\emptyset; (3)π_1;π_2\pi_{\_}1;\pi_{\_}2 is strongly executable on ,s\mathcal{M},s if π_1\pi_{\_}1 is strongly executable on ,s\mathcal{M},s and π_2\pi_{\_}2 is strongly executable on each tQ(π_1)(s)t\in Q(\pi_{\_}1)(s); (4)𝖪_iφ?π_1:π_2\mathsf{K}_{\_}i\varphi?\pi_{\_}1\!:\pi_{\_}2 is strongly executable on ,s\mathcal{M},s if either ,s𝖪_iφ\mathcal{M},s\vDash\mathsf{K}_{\_}i\varphi and π_1\pi_{\_}1 is strongly executable on ,s\mathcal{M},s, or ,s𝖪_iφ\mathcal{M},s\nvDash\mathsf{K}_{\_}i\varphi and π_2\pi_{\_}2 is strongly executable on ,s\mathcal{M},s. We say that π\pi is strongly executable on a set XX of states if it is strongly executable on ,s\mathcal{M},s for each sXs\in X.

To define the model checking algorithm later, we need to construct the tree of possible executions of a plan where each node is essentially an epistemic equivalence class (usually called a belief state in automated planning).

Definition 12 (Execution tree)

Given a model \mathcal{M} and an agent i𝐈i\in\mathbf{I}, an execution tree of \mathcal{M} for ii is a labeled tree 𝒯=N,E,L\mathcal{T}=\langle N,E,L\rangle, where N,E\langle N,E\rangle is a tree consisting of a nonempty set NN of nodes and a set EE of edges and LL is a label function that labels each node in NN with an ii-belief-state and each edge in EE with an action a𝐀_ia\in\mathbf{A}_{\_}i, such that, for all (n,m)E(n,m)\in E, (1)L(n,m)L(n,m) is strongly executable on L(n)L(n); (2)L(n,m)=L(n,m)L(n,m)=L(n^{\prime},m^{\prime}) if (n,m)E(n^{\prime},m^{\prime})\in E and n=nn=n^{\prime}; (3)there exists tL(m)t\in L(m) such that tQ(L(n,m))(L(n))t\in Q(L(n,m))(L(n)); (4)for each tQ(L(n,m))(L(n))t\in Q(L(n,m))(L(n)), there exists kNk\in N such that (n,k)E(n,k)\in E and tL(k)t\in L(k).

We use r𝒯r^{\mathcal{T}} (or simply rr) to refer to the root node of the execution tree 𝒯\mathcal{T}. The following two propositions show the relations between execution trees and knowledge-based plans.

Proposition 13

Given a model \mathcal{M} and a program π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i), if π\pi is strongly executable on [s]i[s]^{i}, then there is a finite execution tree N,E,L\langle N,E,L\rangle of \mathcal{M} for ii such that L(r)=[s]iL(r)=[s]^{i} and that for each leaf node kk, L(k)Q(π)([s]i)L(k)\subseteq Q(\pi)([s]^{i}).

Proposition 14

Let 𝒯=N,E,L\mathcal{T}=\langle N,E,L\rangle be a finite execution tree of \mathcal{M} for ii. There exists π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on L(r)L(r) and that for each tQ(π)(L(r))t\in Q(\pi)(L(r)), there exists a leaf node kk such that ,[t]i¯,L(k)\mathcal{M},[t]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},L(k).

4 Model checking knowledge-how

Extending the work of [17], we introduce the multi-agent epistemic language of know-how and its semantics and study the model checking complexity in detail.

Definition 15 (ELKh Language)

Let 𝐏\mathbf{P} be a set of variables and 𝐈\mathbf{I} be a set of agents, the language of epistemic logic with the know-how operator (ELKh) is defined as follows:

φ::=p¬φ(φφ)𝖪_iφ𝖪𝗁_iφ\varphi::=\top\mid p\mid\neg\varphi\mid(\varphi\land\varphi)\mid\mathsf{K}_{\_}i\varphi\mid\mathsf{Kh}_{\_}i\varphi

where p𝐏p\in\mathbf{P} and i𝐈i\in\mathbf{I}.

Definition 16 (Semantics)

The truth conditions for basic propositions, Boolean connectives and the epistemic operator 𝖪_i\mathsf{K}_{\_}i are as before in the case of EAL.

,s𝖪𝗁_iφthere is a plan π𝙺𝙱𝙿(i) such that1.π is strongly executable on [s]i;2.,tφ for each tQ(π)([s]i).\begin{array}[]{|ll|}\hline\cr\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi\iff&\text{there is a plan }\pi\in\mathtt{KBP}(i)\text{ such that}\\ &1.\ \pi\text{ is strongly executable on }[s]^{i};\\ &2.\ \mathcal{M},t\vDash\varphi\textsf{ for each }t\in Q(\pi)([s]^{i}).\\ \hline\cr\end{array}

The readers can go back to Example 1 to verify the truth of the formula mentioned there.

We can show that ELKh is invariant under bisimualtion defined in Definition 5 which also match labelled transitions (cf. [17]).

Proposition 17

If ,s¯,u\mathcal{M},s\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},u then ,sφ\mathcal{M},s\vDash\varphi iff ,uφ\mathcal{M},u\vDash\varphi for all φELKh\varphi\in\textsf{ELKh}.

In the remainder of this section, we will propose a model checking algorithm for ELKh. The key part of the model checking algorithm is to check the 𝖪𝗁_i\mathsf{Kh}_{\_}i-formulas, and the problem of whether ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi depends on whether there is a good plan for 𝖪𝗁_iφ\mathsf{Kh}_{\_}i\varphi. Our strategy is to reduce the problem of whether there is a good plan for 𝖪𝗁_iφ\mathsf{Kh}_{\_}i\varphi to the nondeterministic planning problem in [7], which we will briefly introduce below.

Definition 18 (Planning problem [7])

Let T=D,𝐀,{𝑎a𝐀}T=\langle D,\mathbf{A},\{\xrightarrow{a}\mid a\in\mathbf{A}\}\rangle be a labeled transition system, where DD is a finite set, 𝐀\mathbf{A} is a set of actions, and 𝑎D×D\xrightarrow{a}\subseteq D\times D is a binary relation. A fully observable nondeterministic planning problem is a tuple P=T,s,GP=\langle T,s,G\rangle where sDs\in D is the initial state, and GDG\subseteq D is the goal set.

Given a labeled transition system TT (note that there is no epistemic relation), we often write (s,t)𝑎(s,t)\in\xrightarrow{a} as s𝑎ts\xrightarrow{a}t. The sequence s_0a_1s_1a_2s_ns_{\_}0\xrightarrow{a_{\_}1}s_{\_}1\xrightarrow{a_{\_}2}\cdots s_{\_}n is called an execution trace of TT from s_0s_{\_}0. A partial function f:D𝐀f:D\to\mathbf{A} is called a policy. An execution trace s_0a_1s_1a_2s_ns_{\_}0\xrightarrow{a_{\_}1}s_{\_}1\xrightarrow{a_{\_}2}\cdots s_{\_}n is induced by ff if f(s_k)=a_k+1f(s_{\_}k)=a_{\_}{k+1} for all 0k<n0\leq k<n. It is complete w.r.t. ff if s_ns_{\_}n is not in the domain of ff.

Definition 19 (Strong plan)

A policy ff is a strong plan for a planning problem P=T,s,GP=\langle T,s,G\rangle if each complete execution trace induced by ff from ss is finite and terminates in GG.

Proposition 20

Let 𝒯=D,𝐀,{𝑎a𝐀}\mathcal{T}=\langle D,\mathbf{A},\{\xrightarrow{a}\mid a\in\mathbf{A}\}\rangle. The existence of strong plans for a planning problem P=T,s,GP=\langle T,s,G\rangle is in PTIME in the size of TT.

Proof 4.21.

It is shown in [7] that the procedure presented in Algorithm 1 always terminates and is correct for whether PP has a strong plan. Moreover, the loop is executed at most |D|+1|D|+1 times. Therefore, the procedure is in PTIME.

Procedure StrongPlanExistence (T,s,GT,s,G):
       OldSA:=OldSA:= false;
       SA:=SA:=\emptyset;
       while OldSASAOldSA\neq SA and sGSTs(SA)s\not\in G\cup STs(SA) do /* STs(SA)STs(SA) is the state set {vD(v,a)SA\{v\in D\mid(v,a)\in SA for some a𝐀}a\in\mathbf{A}\}. */
             PreI:={(v,a)D×𝐀vGSTs(SA),vPreI:=\{(v,a)\in D\times\mathbf{A}\mid v\not\in G\cup STs(SA),v has aa-successors, and all aa-successors of vv are in GSTs(SA)}G\cup STs(SA)\};
             OldSA:=SAOldSA:=SA;
             SA:=SAPreISA:=SA\cup PreI;
            
      if sGSTs(SA)s\in G\cup STs(SA) then return true;
       return false;
      
Algorithm 1 A planning procedure

Now we define the nondeterministic planning problem that corresponds to ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi. Since the language of ELKh is a multi-agent one where different agents have different abilities, the corresponding nondeterministic planning problem must take the agent ii into account. This makes the reduction more complex than that of single-agent know-how logics.

Given a model =W,{_ii𝐈},{𝐀_ii𝐈},{Q(a)a𝐀},V\mathcal{M}=\langle W,\{\sim_{\_}i\mid i\in\mathbf{I}\},\{\mathbf{A}_{\_}i\mid i\in\mathbf{I}\},\{Q{(a)}\mid a\in\mathbf{A}\},V\rangle and an agent ii, a planning problem for ii is P(,i)=T(,i),[w]i,GP(\mathcal{M},i)=\langle T(\mathcal{M},i),[w]^{i},G\rangle where [w]i[w]^{i} is an ii-belief-state, GG is a set of ii-belief-states, and T(,i)=D,𝐀_i,{𝑎a𝐀_i}T(\mathcal{M},i)=\langle D,\mathbf{A}_{\_}i,\{\xrightarrow{a}\mid a\in\mathbf{A}_{\_}i\}\rangle is a labeled transition system where D=[W]iD=[W]^{i} and for each a𝐀_ia\in\mathbf{A}_{\_}i, [s]i𝑎[t]ia[s]^{i}\xrightarrow{a}[t]^{i}\iff a is strongly executable on [s]i[s]^{i}, and there exists t[t]i:tQ(a)([s]i)}t^{\prime}\in[t]^{i}:t^{\prime}\in Q(a)([s]^{i})\}.

We will show that the problem of whether ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi indeed can be reduced to a nondeterministic planning problem for ii (Lemma 4.24). Before that, we need two auxiliary propositions.

Proposition 4.22.

Given a model \mathcal{M} and an agent ii, if a program π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) is strongly executable on [s]i[s]^{i}, then the planning problem P=T(,i),[s]i,GP=\langle T(\mathcal{M},i),[s]^{i},G\rangle where G={[v]i,[v]i¯,[t]iG=\{[v]^{i}\mid\mathcal{M},[v]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},[t]^{i} for some tQ(π)([s]i)}t\in Q(\pi)([s]^{i})\} has a strong plan.

Proposition 4.23.

Given \mathcal{M} and ii, if a planning problem for ii, P(,i)=T(,i),[s]i,GP(\mathcal{M},i)=\langle T(\mathcal{M},i),[s]^{i},G\rangle, has a strong plan, then there exists π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on [s]i[s]^{i} and that for each tQ(a)([s]i)t\in Q(a)([s]^{i}), there exists [v]iG[v]^{i}\in G such that ,t¯,v\mathcal{M},t\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},v.

Lemma 4.24.

Given a model \mathcal{M}, we have that ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi iff the planning problem P(,i)=T(,i),[s]i,GP(\mathcal{M},i)=\langle T(\mathcal{M},i),[s]^{i},G\rangle where G={[t]i,[t]i𝖪_iφ}G=\{[t]^{i}\mid\mathcal{M},[t]^{i}\vDash\mathsf{K}_{\_}i\varphi\} has a strong plan.

Proof 4.25.

If ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi, it follows that there exists π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on [s]i[s]^{i} and that ,tφ\mathcal{M},t\vDash\varphi for each tQ(π)([s]i)t\in Q(\pi)([s]^{i}). By Proposition 10, it follows that ,[t]i𝖪_iφ\mathcal{M},[t]^{i}\vDash\mathsf{K}_{\_}i\varphi for each tQ(π)([s]i)t\in Q(\pi)([s]^{i}). Let GG^{\prime} be the set {[v]i,[v]i¯,[t]i\{[v]^{i}\mid\mathcal{M},[v]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},[t]^{i} for some tQ(π)([s]i)}t\in Q(\pi)([s]^{i})\}. By Proposition 17, we have that ,[v]i𝖪_iφ\mathcal{M},[v]^{i}\vDash\mathsf{K}_{\_}i\varphi for each [v]iG[v]^{i}\in G^{\prime}. It follows that GGG^{\prime}\subseteq G. Let PP^{\prime} be the planning problem T(,i),[s]i,G\langle T(\mathcal{M},i),[s]^{i},G^{\prime}\rangle. By Proposition 4.22, the planning problem PP^{\prime} has a strong plan. Since GGG^{\prime}\subseteq G, it follows that the planning problem P(,i)P(\mathcal{M},i) als has a strong plan.

If the planning problem P(,i)P(\mathcal{M},i) has a strong plan, by Proposition 4.23, it follows that there exists π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on [s]i[s]^{i} and that for each tQ(a)([s]i)t^{\prime}\in Q(a)([s]^{i}), there exists [t]iG[t]^{i}\in G such that ,t¯,t\mathcal{M},t^{\prime}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},t. Since ,tφ\mathcal{M},t\vDash\varphi for each [t]iG[t]^{i}\in G, by Proposition 17, it follows that ,tφ\mathcal{M},t^{\prime}\vDash\varphi for each tQ(a)([s]i)t^{\prime}\in Q(a)([s]^{i}). We then have that ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi.

Finally, we are ready to show the upper bound of model checking ELKh.

Theorem 4.26.

The model checking problem of ELKh is in PTIME in the size of models.

Proof 4.27.

Algorithm 2 presents the model checking algorithm MC for ELKh on epistemic transition systems with perfect recall. By Lemma 4.24, we call the procedure StrongPlanExistence presented in Algorithm 1 to check whether ,w𝖪𝗁_iφ\mathcal{M},w\vDash\mathsf{Kh}_{\_}i\varphi. Proposition 20 shows that the procedure StrongPlanExistence can be computed in PTIME of the size of T(,i)T(\mathcal{M},i). Since the size of TT^{\mathcal{M}} is bounded by the size of \mathcal{M}, it follows that Algorithm 1 is in PTIME in the size of \mathcal{M}.

Procedure MC(,w,φ\mathcal{M},w,\varphi): /* whether ,wφ\mathcal{M},w\vDash\varphi */
       switch φ\varphi do /* Boolean cases are omitted */
            
            case 𝖪_iφ\mathsf{K}_{\_}i\varphi do
                   foreach w[w]iw^{\prime}\in[w]^{i} do
                         if not MC(,w,φ\mathcal{M},w^{\prime},\varphi) then  return false ;
                        
                  return true;
                  
             case 𝖪𝗁_iφ\mathsf{Kh}_{\_}i\varphi do
                   G:=G:=\emptyset;
                   foreach [s]i[s]^{i} in T(,i)T(\mathcal{M},i) do
                         if MC (,s,𝖪_iφ\mathcal{M},s,\mathsf{K}_{\_}i\varphi) then  G:=G{[s]i}G:=G\cup\{[s]^{i}\} ;
                        
                  return StrongPlanExistence (T(,i),[w]i,GT(\mathcal{M},i),[w]^{i},G);
                  
            
      
Algorithm 2 A model checking procedure

5 Axiomatization

In this section, we axiomatize our logic of know-how over finite models with perfect recall. Note that we cannot apply the generic completeness result in [17] since our setting is not only multi-agent but also with an extra condition of perfect recall. It turns out the axiomatization is the multi-agent variant of the system in [9] which has an extra axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK} than the proof system in [17]. Note that although the proof system is similar, the semantics of the 𝖪𝗁\mathsf{Kh} in [9] is based on model-dependent functions from equivalence classes to actions instead of the syntactically specified plan in our work.

The proof system 𝕊𝕃𝕂\mathbb{SLKHC} is presented in Table 1.

Axioms
𝚃𝙰𝚄𝚃\mathtt{TAUT} all axioms of propositional logic
𝙳𝙸𝚂𝚃𝙺\mathtt{DISTK} 𝖪_ip𝖪_i(pq)𝖪_iq\mathsf{K}_{\_}ip\land\mathsf{K}_{\_}i(p\to q)\to\mathsf{K}_{\_}iq
𝚃\mathtt{T} 𝖪_ipp\mathsf{K}_{\_}ip\to p
𝟺\mathtt{4} 𝖪_ip𝖪_i𝖪_ip\mathsf{K}_{\_}ip\to\mathsf{K}_{\_}i\mathsf{K}_{\_}ip
𝟻\mathtt{5} ¬𝖪_ip𝖪_i¬𝖪_ip\neg\mathsf{K}_{\_}ip\to\mathsf{K}_{\_}i\neg\mathsf{K}_{\_}ip
𝙰𝚡𝙺𝚝𝚘𝙺𝚑\mathtt{AxKtoKh} 𝖪_ip𝖪𝗁_ip\mathsf{K}_{\_}ip\to\mathsf{Kh}_{\_}ip
𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK} 𝖪𝗁_ip𝖪𝗁_i𝖪_ip\mathsf{Kh}_{\_}ip\to\mathsf{Kh}_{\_}i\mathsf{K}_{\_}ip
𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝙺𝚑\mathtt{AxKhtoKKh} 𝖪𝗁_ip𝖪_i𝖪𝗁_ip\mathsf{Kh}_{\_}ip\to\mathsf{K}_{\_}i\mathsf{Kh}_{\_}ip
𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh} 𝖪𝗁_i𝖪𝗁_ip𝖪𝗁_ip\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}ip\to\mathsf{Kh}_{\_}ip
𝙰𝚡𝙺𝚑𝚋𝚘𝚝\mathtt{AxKhbot} ¬𝖪𝗁_i\neg\mathsf{Kh}_{\_}i\bot
Rules
𝙼𝙿\mathtt{MP} φ,φψψ\dfrac{\varphi,\varphi\to\psi}{\psi} 𝙽𝙴𝙲𝙺\mathtt{NECK} φ𝖪_iφ\dfrac{\varphi}{\mathsf{K}_{\_}i\varphi}
𝙼𝙾𝙽𝙾𝙺𝚑\mathtt{MONOKh} φψ𝖪𝗁_iφ𝖪𝗁_iψ\dfrac{\varphi\to\psi}{\mathsf{Kh}_{\_}i\varphi\to\mathsf{Kh}_{\_}i\psi} 𝚂𝚄𝙱\mathtt{SUB} φφ[ψ/p]\dfrac{\varphi}{\varphi[\psi/p]}
Table 1: 𝕊𝕃𝕂\mathbb{SLKHC}

The property of perfect recall is sufficient to guarantee the validity of 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK}, but the axiom cannot characterize the property, as it is shown in [17]. Moreover, the composition axiom 𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh} in 𝕊𝕃𝕂\mathbb{SLKHC} is a weaker version of the axiom 𝖪𝗁(φ𝖪𝗁ψ)𝖪𝗁(φψ)\mathsf{Kh}(\varphi\lor\mathsf{Kh}\psi)\to\mathsf{Kh}(\varphi\lor\psi) in [17].

Due to the axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝙺𝚑\mathtt{AxKhtoKKh}, the stronger composition axiom in [17] can be derived in 𝕊𝕃𝕂\mathbb{SLKHC} based on 𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh}.

Proposition 5.28.

𝖪𝗁_i(φ𝖪𝗁_iψ)𝖪𝗁_i(φψ)\vdash\mathsf{Kh}_{\_}i(\varphi\lor\mathsf{Kh}_{\_}i\psi)\to\mathsf{Kh}_{\_}i(\varphi\lor\psi).

Next, we will show that the proof system 𝕊𝕃𝕂\mathbb{SLKHC} is sound and complete over finite models with perfect recall. By Propositions 13 and 14, it follows that there is a correspondence between execution trees and plans. With this correspondence result, we can significantly simplify the proofs of the soundness and completeness of the proof system 𝕊𝕃𝕂\mathbb{SLKHC} than [9] and [17]. More specifically, the validity of Axiom 𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh}, which was highly non-trivial in [9], follows from the fact that two subsequent execution trees can be combined into one execution tree. (The detailed proof can be found in the following theorem of soundness.) For the completeness, the corresponding execution tree plays an important role in the proof of the truth lemma (Lemma 5.40).

Theorem 5.29 (Soundness).

The proof system 𝕊𝕃𝕂\mathbb{SLKHC} is sound over finite models with perfect recall.

Proof 5.30.

The validity of axioms 𝚃,𝟺,𝟻\mathtt{T},\mathtt{4},\mathtt{5} is due to the standard semantics for 𝖪_i\mathsf{K}_{\_}i.

The axiom 𝙰𝚡𝙺𝚝𝚘𝙺𝚑\mathtt{AxKtoKh} says if pp is known then you know how to achieve pp. Its validity is guaranteed the empty program. The axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK} is valid due to Proposition 10. The axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝙺𝚑\mathtt{AxKhtoKKh} is the positive introspection axiom for 𝖪𝗁_i\mathsf{Kh}_{\_}i whose validity is due to the semantics for 𝖪𝗁_i\mathsf{Kh}_{\_}i. The axiom 𝙰𝚡𝙺𝚑𝚋𝚘𝚝\mathtt{AxKhbot} says we cannot guarantee contradiction, which indirectly requires that the plan should terminate at someplace and is guaranteed by the condition (1) of the semantics for 𝖪𝗁_i\mathsf{Kh}_{\_}i.

Finally, we will show the validity of the axiom 𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh}, that is, ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi if ,s𝖪𝗁_i𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}i\varphi. If ,s𝖪𝗁_i𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}i\varphi, it follows that there is a program π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on [s]i[s]^{i} and that ,t𝖪𝗁_iφ\mathcal{M},t\vDash\mathsf{Kh}_{\_}i\varphi for each tQ(π)([s]i)t\in Q(\pi)([s]^{i}). By Proposition 13, there is a finite execution tree 𝒯\mathcal{T} of \mathcal{M} for ii such that L(r)=[s]iL(r)=[s]^{i} and that for each leaf node kk, L(k)Q(π)([s]i)L(k)\subseteq Q(\pi)([s]^{i}). It follows that ,L(k)𝖪𝗁_iφ\mathcal{M},L(k)\vDash\mathsf{Kh}_{\_}i\varphi for each leaf node kk. We then have that for each leaf node kk, there is a program π_k𝙺𝙱𝙿(i)\pi_{\_}k\in\mathtt{KBP}(i) such that π_k\pi_{\_}k is strongly executable on L(k)L(k) and that ,vφ\mathcal{M},v\vDash\varphi for all vQ(π_k)(L(k))v\in Q(\pi_{\_}k)(L(k)). By Proposition 13 again, for each leaf kk of 𝒯\mathcal{T}, there is a finite execution tree 𝒯_k\mathcal{T}_{\_}k of \mathcal{M} for ii such that L𝒯_k(r𝒯_k)=L(k)L^{\mathcal{T}_{\_}k}(r^{\mathcal{T}_{\_}k})=L(k) and that for each leaf node ll of 𝒯_k\mathcal{T}_{\_}k, L𝒯_k(l)Q(π_k)(L(k))L^{\mathcal{T}_{\_}k}(l)\subseteq Q(\pi_{\_}k)(L(k)). Moreover, since ,vφ\mathcal{M},v\vDash\varphi for all vQ(π_k)(L(k))v\in Q(\pi_{\_}k)(L(k)), it follows that ,L𝒯_k(l)𝖪_iφ\mathcal{M},L^{\mathcal{T}_{\_}k}(l)\vDash\mathsf{K}_{\_}i\varphi for each leaf node ll of 𝒯_k\mathcal{T}_{\_}k. We then construct an execution tree 𝒯\mathcal{T}^{\prime} of \mathcal{M} for ii by extending each leaf node kk of 𝒯\mathcal{T} with 𝒯_k\mathcal{T}_{\_}k. Since 𝒯\mathcal{T} and all 𝒯_k\mathcal{T}_{\_}k are finite, it follows that 𝒯\mathcal{T}^{\prime} is finite. Moreover, we have that the root of 𝒯\mathcal{T}^{\prime} is labeled with [s]i[s]^{i} and ,L𝒯(l)𝖪_iφ\mathcal{M},L^{\mathcal{T}^{\prime}}(l)\vDash\mathsf{K}_{\_}i\varphi for each leaf node ll of 𝒯\mathcal{T}^{\prime}. By Proposition 14, there is a program π𝙺𝙱𝙿(i)\pi^{\prime}\in\mathtt{KBP}(i) such that π\pi^{\prime} is strongly executable on [s]i[s]^{i} and that for each vQ(π)([s]i)v\in Q(\pi^{\prime})([s]^{i}), there exists a leaf node ll of 𝒯\mathcal{T}^{\prime} such that ,[v]i¯,L𝒯(l)\mathcal{M},[v]^{i}\mathrel{\mathchoice{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{1.29167pt}{$\,\underline{\makebox[6.99997pt]{$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}{\raisebox{0.86108pt}{$\,\underline{\makebox[5.0pt]{\scriptsize$\leftrightarrow$}}\,$}}}\mathcal{M},L^{\mathcal{T}^{\prime}}(l). Since ,L𝒯(l)𝖪_iφ\mathcal{M},L^{\mathcal{T}^{\prime}}(l)\vDash\mathsf{K}_{\_}i\varphi for each leaf node ll of 𝒯\mathcal{T}^{\prime}, by Proposition 17, we have that ,v𝖪_iφ\mathcal{M},v\vDash\mathsf{K}_{\_}i\varphi for all vQ(π)([s]i)v\in Q(\pi^{\prime})([s]^{i}). Thus, we have that ,s𝖪𝗁_iφ\mathcal{M},s\vDash\mathsf{Kh}_{\_}i\varphi.

Next, we will show the completeness of 𝕊𝕃𝕂\mathbb{SLKHC}. The key is to show that every consistent formula is satisfiable. We will construct a canonical model that consists of all atoms which are maximal consistent sets with respect to a closure set of formulas and show that every consistent formula is satisfied in the canonical model.

Given a set of formulas Δ\Delta, let: Δ|_𝖪_i={𝖪_iφ𝖪_iφΔ}\Delta|_{\_}{\mathsf{K}_{\_}i}=\{\mathsf{K}_{\_}i\varphi\mid\mathsf{K}_{\_}i\varphi\in\Delta\}, Δ|_¬𝖪_i={¬𝖪_iφ¬𝖪_iφΔ}\Delta|_{\_}{\neg\mathsf{K}_{\_}i}=\{\neg\mathsf{K}_{\_}i\varphi\mid\neg\mathsf{K}_{\_}i\varphi\in\Delta\}, Δ|_𝖪𝗁_i={𝖪𝗁_iφ𝖪𝗁_iφΔ}\Delta|_{\_}{\mathsf{Kh}_{\_}i}=\{\mathsf{Kh}_{\_}i\varphi\mid\mathsf{Kh}_{\_}i\varphi\in\Delta\}, Δ|_¬𝖪𝗁_i={¬𝖪𝗁_iφ¬𝖪𝗁_iφΔ}\Delta|_{\_}{\neg\mathsf{Kh}_{\_}i}=\{\neg\mathsf{Kh}_{\_}i\varphi\mid\neg\mathsf{Kh}_{\_}i\varphi\in\Delta\}. Let Φ\Phi be a subformula-closed set of ELKh-formulas that is finite.

Definition 5.31.

The closure cl(Φ)cl(\Phi) is defined as:

Φ{𝖪_iφ,¬𝖪_iφφΦ,i𝐈\Phi\cup\{\mathsf{K}_{\_}i\varphi,\neg\mathsf{K}_{\_}i\varphi\mid\varphi\in\Phi,i\in\mathbf{I} occurs in Φ}\Phi\}.

If Φ\Phi is finite, so is cl(Φ)cl(\Phi). Next, we will use it to build a canonical model with respect to Φ\Phi.

Definition 5.32 (Atom).

We enumerate the formulas in cl(Φ)cl(\Phi) by {ψ_0,,ψ_h}\{\psi_{\_}0,\cdots,\psi_{\_}h\} where hh\in\mathbb{N}. The formula set Δ={Y_kkh}\Delta=\{Y_{\_}k\mid k\leq h\} is an atom of cl(Φ)cl(\Phi) if

  • Y_k=ψ_kY_{\_}k=\psi_{\_}k or Y_k=¬ψ_kY_{\_}k=\neg\psi_{\_}k for each ψ_icl(Φ)\psi_{\_}i\in cl(\Phi);

  • Δ\Delta is consistent in 𝕊𝕃𝕂\mathbb{SLKHC}.

The following two propositions are similar with their single-agent versions in [9].

Proposition 5.33.

Let Δ\Delta be an atom of cl(Φ)cl(\Phi) and 𝖪_iφcl(Φ)\mathsf{K}_{\_}i\varphi\in cl(\Phi). If 𝖪_iφΔ\mathsf{K}_{\_}i\varphi\not\in\Delta then there exists Δ\Delta^{\prime} such that Δ|_𝖪_i=Δ|_𝖪_i\Delta^{\prime}|_{\_}{\mathsf{K}_{\_}i}=\Delta|_{\_}{\mathsf{K}_{\_}i} and ¬φΔ\neg\varphi\in\Delta^{\prime}.

Proposition 5.34.

Let Δ\Delta and Δ\Delta^{\prime} be two atoms of cl(Φ)cl(\Phi) such that Δ|_𝖪_i=Δ|_𝖪_i\Delta|_{\_}{\mathsf{K}_{\_}i}=\Delta^{\prime}|_{\_}{\mathsf{K}_{\_}i}. We have Δ|_𝖪𝗁_i=Δ|_𝖪𝗁_i\Delta|_{\_}{\mathsf{Kh}_{\_}i}=\Delta^{\prime}|_{\_}{\mathsf{Kh}_{\_}i}.

Definition 5.35 (Canonical model).

Given a subformula-closed set Φ\Phi, the canonical model Φ=W,{_ii𝐈},{𝐀_ii𝐈},{Q(a)a_i𝐈𝐀_i},V\mathcal{M}^{\Phi}=\langle W,\{\sim_{\_}i\mid i\in\mathbf{I}\},\{\mathbf{A}_{\_}i\mid i\in\mathbf{I}\},\{Q{(a)}\mid a\in\bigcup_{\_}{i\in\mathbf{I}}\mathbf{A}_{\_}i\},V\rangle is defined as:

  • W={ΔΔW=\{\Delta\mid\Delta is an atom of cl(Φ)}cl(\Phi)\};

  • for each i𝐈i\in\mathbf{I}, Δ_iΓΔ|_𝖪_i=Γ|_𝖪_i\Delta\sim_{\_}i\Gamma\iff\Delta|_{\_}{\mathsf{K}_{\_}i}=\Gamma|_{\_}{\mathsf{K}_{\_}i};

  • for each i𝐈i\in\mathbf{I}, 𝐀_i={(i,φ)𝖪𝗁_iφΦ}\mathbf{A}_{\_}i=\{(i,\varphi)\mid\mathsf{Kh}_{\_}i\varphi\in\Phi\};

  • for each (i,φ)𝐀_i(i,\varphi)\in\bigcup\mathbf{A}_{\_}i, we have that (Δ,Γ)Q(φ)𝖪𝗁_iφΔ(\Delta,\Gamma)\in Q(\varphi)\iff\mathsf{Kh}_{\_}i\varphi\in\Delta and 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma;

  • for each pΦp\in\Phi, pV(Δ)pΔp\in V(\Delta)\iff p\in\Delta.

Proposition 5.36.

If ΓQ(i,φ)(Δ)\Gamma\in Q(i,\varphi)(\Delta) and Γ[Γ]i\Gamma^{\prime}\in[\Gamma]^{i}, then ΓQ(i,φ)([Δ]i)\Gamma^{\prime}\in Q(i,\varphi)([\Delta]^{i}). In other words, the model Φ\mathcal{M}^{\Phi} has perfect recall.

Proof 5.37.

We only need to show that ΓQ(i,φ)(Δ)\Gamma^{\prime}\in Q(i,\varphi)(\Delta). Since ΓQ(i,φ)(Δ)\Gamma\in Q(i,\varphi)(\Delta), it follows that 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta and 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma. Since Γ[Γ]i\Gamma^{\prime}\in[\Gamma]^{i}, it follows that 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma^{\prime}. Thus, we have that ΓQ(i,φ)(Δ)\Gamma^{\prime}\in Q(i,\varphi)(\Delta).

Proposition 5.38.

Let Δ\Delta be a state in Φ\mathcal{M}^{\Phi} and (i,ψ)𝐀_i(i,\psi)\in\mathbf{A}_{\_}i be executable at Δ\Delta. If 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta^{\prime} for all ΔQ(i,ψ)(Δ)\Delta^{\prime}\in Q(i,\psi)(\Delta) then 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta.

Proof 5.39.

First, we show that 𝖪_iψ\mathsf{K}_{\_}i\psi is not consistent with ¬𝖪𝗁_iφ\neg\mathsf{Kh}_{\_}i\varphi. Since (i,ψ)𝐀_i(i,\psi)\in\mathbf{A}_{\_}i is executable at Δ\Delta, it follows that 𝖪𝗁_iψΔ\mathsf{Kh}_{\_}i\psi\in\Delta and that there is some state in Q(i,ψ)(Δ)Q(i,\psi)(\Delta) that contains 𝖪_iψ\mathsf{K}_{\_}i\psi. Moreover, it is obvious that 𝖪𝗁_iφcl(Φ)\mathsf{Kh}_{\_}i\varphi\in cl(\Phi). Assume that 𝖪_iψ\mathsf{K}_{\_}i\psi is consistent with ¬𝖪𝗁_iφ\neg\mathsf{Kh}_{\_}i\varphi. By a Lindenbaum argument, there exists an atom Γ\Gamma of cl(Φ)cl(\Phi) such that {𝖪_iψ,¬𝖪𝗁_iφ}Γ\{\mathsf{K}_{\_}i\psi,\neg\mathsf{Kh}_{\_}i\varphi\}\subseteq\Gamma. By the definition of Φ\mathcal{M}^{\Phi}, it follows that (Δ,Γ)Q(i,ψ)(\Delta,\Gamma)\in Q(i,\psi). Since we know that 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta^{\prime} for all ΔQ(i,ψ)(Δ)\Delta^{\prime}\in Q(i,\psi)(\Delta), it follows that 𝖪𝗁_iφΓ\mathsf{Kh}_{\_}i\varphi\in\Gamma. It is contradictory with the fact that Γ\Gamma is consistent. Thus, 𝖪_iψ\mathsf{K}_{\_}i\psi is not consistent with ¬𝖪𝗁_iφ\neg\mathsf{Kh}_{\_}i\varphi. Hence, we have that 𝖪_iψ𝖪𝗁_iφ\vdash\mathsf{K}_{\_}i\psi\to\mathsf{Kh}_{\_}i\varphi.

Since 𝖪_iψ𝖪𝗁_iφ\vdash\mathsf{K}_{\_}i\psi\to\mathsf{Kh}_{\_}i\varphi, it follows by Rule 𝙼𝙾𝙽𝙾𝙺𝚑\mathtt{MONOKh} and Axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK} that 𝖪𝗁_iψ𝖪𝗁_i𝖪𝗁_iφ\vdash\mathsf{Kh}_{\_}i\psi\to\mathsf{Kh}_{\_}i\mathsf{Kh}_{\_}i\varphi. Moreover, it follows by Axiom 𝙰𝚡𝙺𝚑𝙺𝚑\mathtt{AxKhKh} that 𝖪𝗁_iψ𝖪𝗁_iφ\vdash\mathsf{Kh}_{\_}i\psi\to\mathsf{Kh}_{\_}i\varphi. Since we have shown that 𝖪𝗁_iψΔ\mathsf{Kh}_{\_}i{\psi}\in\Delta, we have that 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta.

Lemma 5.40 (Truth Lemma).

For each φcl(Φ)\varphi\in cl(\Phi), Φ,Δφ\mathcal{M}^{\Phi},\Delta\vDash\varphi iff φΔ\varphi\in\Delta.

Proof 5.41.

We prove it by induction on φ\varphi. The atomic and Boolean cases are straightforward. The case of 𝖪_iφ\mathsf{K}_{\_}i\varphi can be proved by Proposition 5.33. Next, we only focus on the case of 𝖪𝗁_iφ\mathsf{Kh}_{\_}i\varphi.

Right to Left: If 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta, we will show Φ,Δ𝖪𝗁_iφ\mathcal{M}^{\Phi},\Delta\vDash\mathsf{Kh}_{\_}i\varphi. We first show that 𝖪_iφ\mathsf{K}_{\_}i\varphi is consistent. If not, namely 𝖪_iφ\vdash\mathsf{K}_{\_}i\varphi\to\bot, it follows by Rule 𝙼𝙾𝙽𝙾𝙺𝚑\mathtt{MONOKh} that 𝖪𝗁_i𝖪_iφ𝖪𝗁_i\vdash\mathsf{Kh}_{\_}i\mathsf{K}_{\_}i\varphi\to\mathsf{Kh}_{\_}i\bot. It follows by Axiom 𝙰𝚡𝙺𝚑𝚋𝚘𝚝\mathtt{AxKhbot} that 𝖪𝗁_i𝖪_iφ\vdash\mathsf{Kh}_{\_}i\mathsf{K}_{\_}i\varphi\to\bot. Since 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta, it follows by Axiom 𝙰𝚡𝙺𝚑𝚝𝚘𝙺𝚑𝙺\mathtt{AxKhtoKhK} that Δ\Delta\vdash\bot, which is in contradiction with the fact that Δ\Delta is consistent. Therefore, 𝖪_iφ\mathsf{K}_{\_}i\varphi is consistent.

By Lindenbaum’s Lemma, there exists an atom Γ\Gamma such that 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma. By the definition of Φ\mathcal{M}^{\Phi}, it follows that (i,φ)𝐀_i(i,\varphi)\in\mathbf{A}_{\_}i and that (Δ,Γ)Q(i,φ)(\Delta^{\prime},\Gamma)\in Q(i,\varphi) for each Δ[Δ]i\Delta^{\prime}\in[\Delta]^{i}. It means (i,φ)(i,\varphi) is strongly executable on [Δ]i[\Delta]^{i}. For each ΘQ(i,φ)([Δ]i)\Theta\in Q(i,\varphi)([\Delta]^{i}), by the definition of Φ\mathcal{M}^{\Phi}, it follows that 𝖪_iφΘ\mathsf{K}_{\_}i\varphi\in\Theta. By Axiom 𝚃\mathtt{T}, it follows that φΘ\varphi\in\Theta. By IH, we then have that Φ,Θφ\mathcal{M}^{\Phi},\Theta\vDash\varphi for each ΘQ(i,φ)([Δ]i)\Theta\in Q(i,\varphi)([\Delta]^{i}). Thus, we have that Φ,Δ𝖪𝗁_iφ\mathcal{M}^{\Phi},\Delta\vDash\mathsf{Kh}_{\_}i\varphi.

Left to Right: Suppose Φ,Δ𝖪𝗁_iφ\mathcal{M}^{\Phi},\Delta\vDash\mathsf{Kh}_{\_}i\varphi, we will show 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta. Since Φ,Δ𝖪𝗁_iφ\mathcal{M}^{\Phi},\Delta\vDash\mathsf{Kh}_{\_}i\varphi, it follows that there exists π𝙺𝙱𝙿(i)\pi\in\mathtt{KBP}(i) such that π\pi is strongly executable on [Δ]i[\Delta]^{i} and that Φ,Γφ\mathcal{M}^{\Phi},\Gamma\vDash\varphi for all ΓQ(π)([Δ]i)\Gamma\in Q(\pi)([\Delta]^{i}). By IH, we have that φΓ\varphi\in\Gamma for all ΓQ(π)([Δ]i)\Gamma\in Q(\pi)([\Delta]^{i}). Moreover, for each ΓQ(π)([Δ]i)\Gamma\in Q(\pi)([\Delta]^{i}), if Γ[Γ]i\Gamma^{\prime}\in[\Gamma]^{i}, by Proposition 5.36, it follows that ΓQ(π)([Δ]i)\Gamma^{\prime}\in Q(\pi)([\Delta]^{i}), and we then have that φΓ\varphi\in\Gamma^{\prime}. Moreover, with Proposition 5.33, it is easy to check that 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma for all ΓQ(π)([Δ]i)\Gamma\in Q(\pi)([\Delta]^{i}).

Since π\pi is strongly executable on [Δ]i[\Delta]^{i}, by Proposition 13, there is a finite execution tree 𝒯\mathcal{T} of Φ\mathcal{M}^{\Phi} for ii such that L(r)=[Δ]iL(r)=[\Delta]^{i} and that L(k)Q(π)([Δ]i)L(k)\subseteq Q(\pi)([\Delta]^{i}). Since we have shown that 𝖪_iφΓ\mathsf{K}_{\_}i\varphi\in\Gamma for all ΓQ(π)([Δ]i)\Gamma\in Q(\pi)([\Delta]^{i}), it follows that if kk is a leaf node then 𝖪_iφ\mathsf{K}_{\_}i\varphi is in all states in L(k)L(k). Next, we firstly show the following claim:

for each node k and each ΘL(k):𝖪𝗁_iφΘ.\text{for each node }k\text{ and each }\Theta\in L(k):\mathsf{Kh}_{\_}i\varphi\in\Theta.

Please note that the execution tree 𝒯\mathcal{T} is finite. We prove the claim above by induction on the height of nodes. If the height of kk is 0, it means that kk is a leaf node. It follows that 𝖪_iφΘ\mathsf{K}_{\_}i\varphi\in\Theta for each ΘL(k)\Theta\in L(k). By Axiom 𝙰𝚡𝙺𝚝𝚘𝙺𝚑\mathtt{AxKtoKh}, it follows that 𝖪𝗁_iφΘ\mathsf{Kh}_{\_}i\varphi\in\Theta for each ΘL(k)\Theta\in L(k). With the IH that the claim holds for each node whose height is less than hh, we will show that the claim holds for nodes whose height is h1h\geq 1. Given a node kk whose height is hh, since h1h\geq 1, it follows that there is a node kk^{\prime} such that (k,k)(k,k^{\prime}) is an edge in 𝒯\mathcal{T} and the height of kk^{\prime} is less than hh, in other words, kk^{\prime} is a child node of kk. Let L(k)=[Θ]iL(k)=[\Theta]^{i} and L(k,k)=(i,ψ)L(k,k^{\prime})=(i,\psi). Since 𝒯\mathcal{T} is an execution tree, it follows that (i,ψ)(i,\psi) is strongly executable on [Θ]i[\Theta]^{i}, and then (i,ψ)(i,\psi) is executable on Θ\Theta. For each ΘQ(i,ψ)(Θ)Q(L(k,k))(L(k))\Theta^{\prime}\in Q(i,\psi)(\Theta)\subseteq Q(L(k,k^{\prime}))(L(k)), by the definition of execution trees, it follows that there is a kk-child k′′k^{\prime\prime} such that ΘL(k′′)\Theta^{\prime}\in L(k^{\prime\prime}). Since k′′k^{\prime\prime} is a child of kk, by IH, it follows that 𝖪𝗁_iφΘ\mathsf{Kh}_{\_}i\varphi\in\Theta^{\prime}. Thus, we have shown that 𝖪𝗁_iφΘ\mathsf{Kh}_{\_}i\varphi\in\Theta^{\prime} for each ΘQ(i,ψ)(Θ)\Theta^{\prime}\in Q(i,\psi)(\Theta). By Proposition 5.38, it follows that 𝖪𝗁_iφΘ\mathsf{Kh}_{\_}i\varphi\in\Theta. Thus, we have shown the claim. Since the root is labeled with [Δ]i[\Delta]^{i}, we then have that 𝖪𝗁_iφΔ\mathsf{Kh}_{\_}i\varphi\in\Delta.

Let φ\varphi be a consistent formula. By Proposition 5.33, it follows that there is an atom Δ\Delta of cl(Φ)cl(\Phi) such that φΔ\varphi\in\Delta, where Φ\Phi is the set of subformulas of φ\varphi. By Proposition 5.36 and Lemma 5.40, it follows that φ\varphi is satisfiable over finite models with perfect recall. The completeness then follows:

Theorem 5.42 (Completeness).

The proof system 𝕊𝕃𝕂\mathbb{SLKHC} is complete over finite models with perfect recall.

From the construction of the canonical model Φ\mathcal{M}^{\Phi} in Definition 5.35, we can see that both the state set WW and the action set AA are bounded. This implies that the logic has a small model property. Moreover, by Theorem 4.26, the decidability then follows:

Theorem 5.43.

The logic ELKh is decidable.

6 Conclusion

In this paper, we propose the notion of higher-order epistemic planning by using an epistemic logic of knowing how. The planning problems can be encoded using model checking problems in the framework, which can be computed in PTIME in the size of the the model. We also axiomatize the logic over finite models with perfect recall.

As for future work, besides many theoretical questions about the knowing how logic as it is, we may extend its expressive power to capture conditional knowledge-how, which is very useful in reasoning about planning problems. For example, one may say I know how to achieve φ\varphi given ψ\psi. Note that it is very different from 𝖪𝗁_i(ψφ)\mathsf{Kh}_{\_}i(\psi\to\varphi) or 𝖪_iψ𝖪𝗁_iφ\mathsf{K}_{\_}i\psi\to\mathsf{Kh}_{\_}i\varphi. The important difference is that such conditional knowledge-how is global, compared to the current local semantics of 𝖪𝗁_i\mathsf{Kh}_{\_}i. This is similar to the binary global 𝖪𝗁_i\mathsf{Kh}_{\_}i operator introduced in [26]. It would be interesting to combine the two notations of know-how in the same framework. On the practical side, we can consider the model checking problems over compact representations of the actions and states using the techniques in [16, 17] connecting the explicit-state models with the compact representations.

References

  • [1]
  • [2] Thomas Ågotnes, Valentin Goranko & Wojciech Jamroga (2007): Alternating-time temporal logics with irrevocable strategies. In Dov Samet, editor: Proceedings of (TARK 2007), pp. 15–24, 10.1145/1324249.1324256.
  • [3] Patrick Blackburn, Maarten de Rijke & Yde Venema (2002): Modal Logic. Cambridge University Press, 10.1017/CBO9781107050884.
  • [4] Thomas Bolander & Mikkel Birkegaard Andersen (2011): Epistemic planning for single and multi-agent systems. Journal of Applied Non-Classical Logics 21(1), pp. 9–34, 10.3166/jancl.21.9-34.
  • [5] Thomas Bolander, Tristan Charrier, Sophie Pinchinat & François Schwarzentruber (2020): DEL-based epistemic planning: Decidability and complexity. Artificial Intelligence 287, p. 103304, 10.1016/j.artint.2020.103304.
  • [6] Thomas Bolander, Martin Holm Jensen & François Schwarzentruber (2015): Complexity Results in Epistemic Planning. In: Proceedings of IJCAI ’15, pp. 2791–2797. Available at http://ijcai.org/Abstract/15/395.
  • [7] A. Cimatti, M. Pistore, M. Roveri & P. Traverso (2003): Weak, Strong, and Strong Cyclic Planning via Symbolic Model Checking. Artificial Intelligence 147(1–2), p. 35–84, 10.1016/S0004-3702(02)00374-0.
  • [8] Thorsten Engesser, Robert Mattmüller, Bernhard Nebel & Michael Thielscher (2021): Game description language and dynamic epistemic logic compared. Artificial Intelligence 292, p. 103433, 10.1016/j.artint.2020.103433.
  • [9] Raul Fervari, Andreas Herzig, Yanjun Li & Yanjing Wang (2017): Strategically knowing how. In: Proceedings of IJCAI ’17, pp. 1031–1038, 10.24963/ijcai.2017/143.
  • [10] Malik Ghallab, Dana Nau & Paolo Traverso (2004): Automated planning: theory and practice. Elsevier.
  • [11] Fausto Giunchiglia & Paolo Traverso (2000): Planning as Model Checking, 10.1007/10720246_1.
  • [12] Andreas Herzig (2015): Logics of knowledge and action: critical analysis and challenges. Autonomous Agents and Multi-Agent Systems 29(5), pp. 719–753, 10.1007/s10458-014-9267-z.
  • [13] Wojciech Jamroga & Thomas Ågotnes (2007): Constructive knowledge: what agents can achieve under imperfect information. Journal of Applied Non-Classical Logics 17(4), pp. 423–475, 10.3166/jancl.17.423-475.
  • [14] Jérôme Lang & Bruno Zanuttini (2012): Knowledge-Based Programs as Plans - The Complexity of Plan Verification. In: ECAI ’12, pp. 504–509, 10.3233/978-1-61499-098-7-504.
  • [15] Jérôme Lang & Bruno Zanuttini (2013): Knowledge-Based Programs as Plans : Succinctness and the Complexity of Plan Existence (Extended Abstract). In: TARK ’13. Available at https://arxiv.org/abs/1310.6429.
  • [16] Yanjun Li & Yanjing Wang (2019): Multi-agent Knowing How via Multi-step Plans: A Dynamic Epistemic Planning Based Approach. In: Proceedings of LORI VII, pp. 126–139, 10.1007/978-3-662-60292-8_10.
  • [17] Yanjun Li & Yanjing Wang (2021): Planning-Based Knowing How: A Unified Approach. Artificial Intelligence 296, p. 103487, 10.1016/j.artint.2021.103487.
  • [18] Bastien Maubert, Aniello Murano, Sophie Pinchinat, François Schwarzentruber & Silvia Stranieri (2020): Dynamic Epistemic Logic Games with Epistemic Temporal Goals. In: Proceedings of ECAI 2020, IOS Press, pp. 155–162, 10.3233/FAIA200088.
  • [19] Bastien Maubert, Sophie Pinchinat, François Schwarzentruber & Silvia Stranieri (2020): Concurrent Games in Dynamic Epistemic Logic. In Christian Bessiere, editor: Proceedings of IJCAI 2020, ijcai.org, pp. 1877–1883, 10.24963/ijcai.2020/260.
  • [20] Pavel Naumov & Jia Tao (2018): Second-Order Know-How Strategies. In: Proceedings of AAMAS ’18, pp. 390–398, 10.5555/3237383.3237444.
  • [21] Pavel Naumov & Jia Tao (2018): Together we know how to achieve: An epistemic logic of know-how. Artificial Intelligence 262, pp. 279–300, 10.1016/j.artint.2018.06.007.
  • [22] Anantha Padmanabha, R. Ramanujam & Yanjing Wang (2018): Bundled fragments of first-order modal logic: (un)decidability. In: Proceedings of FSTTCS ’18, 10.4230/LIPIcs.FSTTCS.2018.43.
  • [23] Pierre-Yves Schobbens (2004): Alternating-time logic with imperfect recall. Electron. Notes Theor. Comput. Sci. 85(2), pp. 82–93, 10.1016/S1571-0661(05)82604-0.
  • [24] Jason Stanley & Timothy Williamson (2001): Knowing how. The Journal of Philosophy, pp. 411–444, 10.2307/2678403.
  • [25] Yanjing Wang (2017): A New Modal Framework for Epistemic Logic. In Jérôme Lang, editor: Proceedings of TARK ’17, EPTCS 251, pp. 515–534, 10.4204/EPTCS.251.38.
  • [26] Yanjing Wang (2018): A logic of goal-directed knowing how. Synthese 10, pp. 4419–4439, 10.1007/s11229-016-1272-0.
  • [27] Yanjing Wang (2018): Beyond knowing that: a new generation of epistemic logics. In: Jaakko Hintikka on knowledge and game theoretical semantics, Springer, Cham, pp. 499–533, 10.1007/978-3-319-62864-6_21.
  • [28] Bruno Zanuttini, Jérôme Lang, Abdallah Saffidine & François Schwarzentruber (2020): Knowledge-based programs as succinct policies for partially observable domains. Artificial Intelligence 288, p. 103365, 10.1016/j.artint.2020.103365.