An SMT-Based Approach to the Verification of Knowledge-Based Programs
Abstract
1 Introduction & Preliminaries
1.1 Our Contributions
1.2 Presenting These Results
1.3 Preliminaries & Background
2 Program-Epistemic Languages
2.1 Logics Syntax
2.2 Programs Syntax
2.3 Logics Semantics
2.3.1 States and the Truth of \(\mathcal {L}_{QF}\) Formulas.
2.3.2 Epistemic Models.
2.3.3 Truth of an \(\mathcal {L}^m_{\mathit {DK}}\) Formula.
2.3.4 On the Semantics of the Dynamic Modality \(\square _P\).
2.3.5 On the Semantics of Universal Quantification.
2.4 Programs Relational Semantics
2.5 Programs’ Weakest Precondition Semantics
2.6 Equivalence between Program Relational Semantics and Weakest Semantics
3 Reduction to First-Order Validity
4 Implementation
4.1 Mechanisation of Our \(\mathcal {L}^m_{\mathit {DK}}\)-to-FO Translation
4.2 Case Study 1: Dining Cryptographers’ Protocol [10]
Formula \(\beta _{1}\) | Formula \(\beta _2\) | Formula \(\beta _3\) | Formula \(\gamma\) | ||||||
---|---|---|---|---|---|---|---|---|---|
n | \(\tau _{{\it wp}}\)+Z3 | \(\tau _{{\it SP}}\)+Z3 | \(\tau _{{\it wp}}\)+CVC5 | \(\tau _{{\it wp}}\)+Z3 | \(\tau _{{\it SP}}\)+Z3 | \(\tau _{{\it wp}}\)+Z3 | \(\tau _{{\it SP}}\)+Z3 | \(\tau _{{\it wp}}\)+Z3 | \(\tau _{{\it SP}}\)+Z3 |
10 | 0.05 s | 4.86 s | 0.01 s | 0.01 s | 0.01 s | 0.01 s | 0.01 s | 0.01 s | N/A |
50 | 31 s | t.o. | 0.41 s | 0.05 s | 0.06 s | 0.03 s | 0.02 s | 0.03 s | N/A |
100 | t.o. | t.o. | 3.59 s | 0.15 s | 0.16 s | 0.07 s | 0.06 s | 0.07 s | N/A |
200 | t.o. | t.o. | 41.90 s | 1.27 s | 0.71 s | 0.30 s | 0.20 s | 0.30 s | N/A |
4.3 Case Study 2: Cheryl’s Birthday Puzzle [39]
4.3.1 Experiments & Results.
4.4 Case Study 3: The Pit Card Game
4.4.1 Simple Cards Swap.
4.4.2 Nondeterministic Swap.
4.4.3 Nondeterministic Visible Swap.
4.4.4 Experiments & Results.
5 Related Work
5.1 On SMT-based Verification of Epistemic Properties of Programs
[5] | [18] | this work | |
---|---|---|---|
1. | \(K\) possible before \(\square _P\), only one agent | \(K\) possible only after \(\square _P\), only one agent | \(K\) possible before \(\square _P\), multiple agents, using disjoint choice |
2. | unknown if program is public | unknown if program is public | program is public |
3. | no announcements | no announcements | public announcements |
4. | multiple assignments via substitutions | multiple assignments | single assignment |
5. | asymptotic complexity drop into \(O(2^x)\), due to \(K\) possible before \(\square _P\) | asymptotic complexity in \(O(x)\) | asymptotic complexity kept in \(O(x)\), via single assignment |
, |
5.2 On Verification of Information Flow with Program Algebra
5.3 On Dynamic Epistemic Logics
5.4 On Other Aspects
6 Conclusions
Footnotes
A Lemmas
B Equivalence between the Relational Semantics
References
Index Terms
- An SMT-Based Approach to the Verification of Knowledge-Based Programs
Recommendations
Inductive Completeness of Logics of Programs
We propose a new approach to delineating logics of programs, based directly on inductive definition of program semantics. The ingredients are elementary and well-known, but their fusion yields a simple yet powerful approach, surprisingly overlooked for ...
Reasoning about ignorance and contradiction: many-valued logics versus epistemic logic
This paper tries to reinterpret three- and four-valued logics of partial ignorance and contradiction in the light of epistemic logic. First, we try to cast Kleene three-valued logic in the setting of a simplified form of epistemic logic. It is a two-...
Labelled Sequent Calculi for Inquisitive Modal Logics
Logic, Language, Information, and ComputationAbstractWe present cut-free labelled sequent calculi for various systems of inquisitive modal logic, including inquisitive epistemic logic and inquisitive doxastic logic. Inquisitive modal logic extends the framework of standard modal logic with a ...
Comments
Information & Contributors
Information
Published In
Publisher
Association for Computing Machinery
New York, NY, United States
Publication History
Check for updates
Author Tags
Qualifiers
- Research-article
Contributors
Other Metrics
Bibliometrics & Citations
Bibliometrics
Article Metrics
- 0Total Citations
- 85Total Downloads
- Downloads (Last 12 months)85
- Downloads (Last 6 weeks)25
Other Metrics
Citations
View Options
Login options
Check if you have access through your login credentials or your institution to get full access on this article.
Sign in