University of Toronto
Reasoning with Constraints: Decision Procedures, Witnesses and Applications
Abstract
dc:description.abstractLogic, and constraint satisfiability are key ingredients in automated reasoning for solving real-world software engineering problems. A wide range of reasoning tasks such as model checking, verification, and synthesis can be encoded as constraint satisfaction problems in a suitable logic and solved with algorithms that efficiently decide their satisfiability. To enable the satisfiability-based approach to reason about a problem, some key questions need to be addressed: (1) What is a suitable logic to model the essence of the problem and how to decide its satisfiability? (2) How to trust correctness of the satisfiability result and explain its cause? and (3) How to encode reasoning tasks of interest as satisfiability problems in the logic? In this thesis, we investigate these questions, considering subsets of first-order logic and addressing problems of different complexities. First, we study the problem of reasoning about infinite state systems through the lens of a variance of FOL, first-order logic with quantifier over relational objects (FOL*). The logic introduces a novel concept: relational objects, to capture system operations of unbounded sizes with time and data from unbounded domains. We develop an efficient semi-decision procedure for FOL* satisfiability with incremental approximations. We also extend FOL* to support aggregation functions over relational objects to enable the specification and efficient reasoning about global properties. Next, we address the question of validating the correctness of satisfiability results. We propose approaches to support the proof of unsatisfiability (UNSAT) for FOL* and finite-domain monotonic theories (SMMT). To efficiently and soundly verify the unsatisfiability of FOL* and SMMT formulas, we formalize the theory semantics as a set of derivation rules and capture the reasoning towards unsatisfiability as derivation sequences. The correctness of the derivation can be verified on the premise that each derivation step can be efficiently checked against the derivation rules. By checking the UNSAT proof, we can establish a correctness guarantee for the unsatisfiability result and diagnose the causes of unsatisfiability. Then, we apply FOL* satisfiability to automatically reason about normative requirements written in domain-specific languages. We capture the semantics of requirements in FOL* and encode the tasks of checking the well-formedness properties into FOL* queries. We use the FOL* satisfiability result, including the satisfying solution, and UNSAT diagnosis to provide user-friendly diagnostics to pinpoint the causes of well-formedness issues. Finally, we conclude this thesis by discussing the limitations and future works.
Degree
thesis:*- Department dc:contributor.department
- Computer Science
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Feng, Nick
- Advisor dc:contributor.advisor
-
- Chechik, Marsha
Subjects
dc:subject × 2Rights
dc:rights- Statement dc:rights
-
- Attribution 4.0 International
- Licence dc:rights.uri
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1807/145047