Qiana: A First-Order Formalism to Quantify over Contexts and Formulas with Temporality

Simon Coumes, Pierre-Henri Paris, François Schwarzentruber, Fabian M. Suchanek

Introduction

In classical logic, statements are typically evaluated as true or false within a single, universal reality. However, human reasoning is inherently contextual. A statement might be true within a specific belief system, a fictional narrative, or at a particular point in time, while being false elsewhere. John McCarthy introduced the concept of contextual reasoning in the 1980s using the ist(c, p) predicate—meaning "it is true in context c that p." Despite its intuitive appeal, formalizing this has historically faced a trade-off between expressivity and computational feasibility.

The Challenge of Contextual Reasoning

Existing logical frameworks often struggle to balance two requirements:

  1. Expressivity: The ability to quantify over formulas and contexts (e.g., "Alice believes everything Bob says").
  2. Computability: Maintaining semi-decidability so that automated theorem provers can reliably find proofs.

Many systems that allow for self-referential truth or high-level quantification fall into paradoxes (like the Liar's Paradox) or become computationally undecidable. Qiana is designed to occupy the "sweet spot" in this landscape, providing high expressivity while remaining compatible with standard first-order logic (FOL) tools.

Comparison of Qiana with existing logical formalisms across key capabilities.

As shown in the comparison table, Qiana is unique in supporting both formula and context quantification while remaining semi-decidable, filling a gap left by previous formalisms.

The Qiana Framework

Qiana achieves this balance by building upon standard FOL with several specialized mechanisms:

  • Quoting ($\mu$): To treat a formula as an object for quantification, Qiana "quotes" it, transforming a formula $P(x)$ into a term $\underline{P}(\underline{x})$.
  • The ist Predicate: This links a context c to a quoted formula p.
  • The Truth Predicate ($T$): This predicate bridges quoted formulas back to reality ($T(\underline{\phi}) \leftrightarrow \phi$). To prevent paradoxes, the $T$ predicate itself cannot be quoted.
  • The Escape Operator ($Q$): This allows for nested quotations, enabling reasoning about nested contexts (e.g., "Alice believes that Bob believes...").
Structural relationships between the original language and its quoted counterparts in Qiana.

A critical contribution of Qiana is its finite axiomatization. The authors proved that the infinite set of potential Qiana rules can be represented by a finite set of axioms. This allows Qiana theories to be translated into TPTP syntax and processed by high-performance automated theorem provers like Vampire.

Applications and Results

Qiana's versatility allows it to unify disparate reasoning tasks:

  • Paraconsistency: Qiana can handle contexts containing contradictions (e.g., conflicting character beliefs) without the "principle of explosion" affecting the entire system.
  • Temporality: By treating time points as contexts, Qiana can represent the Event Calculus, allowing it to reason about change over time using the same mechanisms it uses for beliefs.
  • Modal Logic: Qiana can emulate standard modal logic systems (K, T, S4, S5, and D), serving as a universal framework for such reasoning.

To test the system, the authors modeled the final scene of Shakespeare’s Romeo and Juliet, capturing the characters' conflicting beliefs and the tragic sequence of events. Using the Vampire theorem prover, Qiana deduced the outcome in just 0.05 seconds on a standard laptop, demonstrating both its correctness and its efficiency.

Conclusion

Qiana provides a robust, first-order foundation for reasoning across contexts, formulas, and time. By ensuring semi-decidability and finite axiomatization, it bridges the gap between highly expressive theoretical logics and practical automated reasoning tools. Future work will focus on relaxing current constraints on quotable variables and developing tools to translate natural language directly into Qiana formulas, potentially opening new doors for interpretable and context-aware AI.

Summary updated

BibTeX
@inproceedings{coumes2024qiana,
  author = {Simon Coumes and Pierre-Henri Paris and François Schwarzentruber and Fabian M. Suchanek},
  title = {{Qiana: A First-Order Formalism to Quantify over Contexts and Formulas with Temporality}},
  booktitle = {Kr},
  year = {2024},
  doi = {10.24963/kr.2024/28},
}
Figure