The formal analysis of automated systems is an important and growing industry. This activity routinely requires new verification frameworks to be developed to tackle new programming features, or new considerations (bugs of interest). Often, one particular property can prove frustrating to establish: completeness of the logic with respect to the semantics. In this paper, we try and make such developments easier, with a particular attention on completeness. Towards that aim, we propose a formal (meta-)model of software analysis systems (SAS), the eponymous Representations. This model requires few assumptions on the SAS being modelled, and as such is able to capture a large class of such systems. We then show how our approach can be fruitful, both to understand how existing completeness proofs can be structured, and to leverage this structure to build new systems and prove their completeness.
- Paper ID: 2510.11419
- Title: Representations
- Author: Paul Brunet (EPISEN & LACL, Université Paris-Est Créteil Val de Marne)
- Classification: cs.LO (Logic in Computer Science)
- Publication Date: October 14, 2025 (arXiv version)
- Paper Link: https://arxiv.org/abs/2510.11419
Formal analysis of automated systems is an important and continuously evolving field. This activity typically requires developing new verification frameworks to handle new programming features or new considerations (bugs of interest). One particularly frustrating aspect is establishing the completeness of logics relative to semantics. In this paper, the author attempts to facilitate such development, with particular focus on completeness. To this end, the author proposes a formal (meta)model of Software Analysis Systems (SAS), namely "Representations" of the same name. This model makes minimal assumptions about the modeled SAS, thereby capturing a large class of such systems. The paper then demonstrates how this approach is productive both for understanding the structure of existing completeness proofs and for leveraging this structure to construct new systems and prove their completeness.
As automated systems undertake increasingly diverse tasks, formal analysis problems are growing in both importance and diversity. While the field was dominated not long ago primarily by research on critical systems and their potential failures, we now see issues such as quality of service also being addressed through formal analysis.
The correctness of Software Analysis Systems (SAS) depends on two properties:
- Soundness: Any valid judgment in the logic is satisfied by the semantics
- Completeness: Any semantically correct judgment can be established through the logic
Completeness is typically the difficult part of correctness proofs, because while soundness can be established by checking the soundness of individual logical rules, completeness requires the prover to produce derivations for every true semantic fact, and no universal method appears to apply.
The author wishes to provide a modular meta-system foundation capable of generating sound and complete SAS in a transparent manner. Such a tool would allow formal analysis techniques to be applied to a broader category of systems and a broader category of questions about them.
- Proposes a formal model of Representations: A general framework for describing software analysis systems with minimal assumptions
- Establishes categorical structure of representations: Defines homomorphisms between representations and proves the category of representations is Cartesian
- Provides a general template for completeness proofs: Through the concept of "reductions," provides a deductive completeness template for establishing completeness
- Develops higher-order representation theory: Through functors from the category of sets to the category of representations, characterizes parameterized representations
- Demonstrates practical utility of the theory: Validates the approach through multiple instances of Kleene algebras and their extensions
Definition 1 (Representation): A representation is a quadruple R=⟨T,E,∣=,≤⟩, where:
- T is a set of traces
- E is a set of expressions
- ∣=:T⇀E is the satisfaction relation
- ≤ is a preorder on E satisfying ∣=;≤⊆∣=
A representation is called exact when (∣=\∣=)⊆≤.
Using relational algebra, soundness and completeness can be expressed as:
- Soundness: ∣=;≤⊆∣= (Axiom 1)
- Completeness: ∣=\∣=⊆≤ (Axiom 2)
where ∣=\∣= denotes the semantic inclusion relation.
Definition 2 (Morphism): Given two representations R1 and R2, a morphism from the former to the latter is a pair ⟨ϕ,ψ⟩:R1→R2 satisfying:
- ϕ:E1→E2 is a function, ψ:T2⇀T1 is a relation
- ϕ preserves order: ϕ∗;≤1⊆≤2;ϕ∗
- Interpretation compatibility: ∣=2;ϕ∗=ψ;∣=1
Proposition 1: If R1 and R2 are both exact, then their product is also exact.
Definition 3 (Reduction): A reduction from representation R1 to R2 is a triple ⟨ϕ,τ,ψ⟩:R1⇝R2 satisfying:
- ϕ:E1→E2 and τ:E2→E1 are functions, ψ:T2⇀T1 is a relation
- τ preserves order: τ∗;≤2⊆≤1;τ∗
- Interpretation compatibility: ∣=2;ϕ∗=ψ;∣=1
- Equivalence: τ∗;ϕ∗⊆≤1 and ϕ∗;τ∗⊆≤1
Proposition 2: R1 is exact if and only if there exists an exact representation R2 and a reduction R1⇝R2.
Definition 9 (HOR): A higher-order representation is a structure R=⟨T,E,∣∣=,⪯⟩, where:
- E and T are endofunctors of the category of sets
- ∣∣=:T⇀E is a right-linear relation
- ⪯:E⇀E is a natural relation
- For each set A, RA=⟨TA,EA,∣∣=A,⪯A⟩ is a representation
Let Reg(A) be the set of regular expressions over alphabet A. The free Kleene algebra yields an exact representation:
KA(A):=⟨A∗,Reg(A),∣=KA,≤KA⟩
where w∣=KAe is defined as "w belongs to the rational language associated with e."
In the completeness proof for KAT, the author transforms each term p into a KAT-equivalent term p^ such that the set of guarded strings G(p^) equals the set of strings under regular expression interpretation R(p^). This constitutes a reduction from the KAT representation to the KA representation.
The completeness proof for SKA proceeds in two steps:
- Establish completeness for a subset of expressions
- Prove that every expression can be translated to this sub-syntax while preserving provable equivalence
Each step is an instance of a reduction, and the entire proof can be understood as a single reduction.
The paper validates the effectiveness of the theoretical framework through multiple instances of Kleene algebra extensions:
- KAT Reduction: ⟨^,id,1⟩ constitutes a reduction from KAT to KA
- SKA Reduction: The composed reduction ⟨^,id,Π∗⟩ establishes completeness
- CKA Reduction: Reduction is achieved through the syntactic closure function ↓
Lemma 1: Under the conditions of Definition 4, if additionally ≤2⊆≤1, ∣=2⊆∣=1, and R2 is exact, then for any function ↓:E→E, the following are equivalent:
- ⟨↓,id,1⟩ is a reduction
- ↓ is a syntactic closure
The paper demonstrates how to extend relational HOR as functors:
- PreOrd→Repr: Handles free monoids over preordered sets
- Repr→Repr: Produces representations parameterized by other representations
Institutions also encapsulate syntactic and semantic information in a unified structure, but institutions contain multiple reasoning systems, whereas representations attempt to capture a single reasoning system. The definition of institutions is more restrictive than representations, requiring both syntax and semantics to have categorical structure.
Specification theories introduced by Fahrenberg and Legay can be understood as structures ⟨T,E,χ,≤⟩, where χ:T→E maps traces to their characteristic expressions. They can be converted to representations by setting ∣==χ∗;≤, thus specification theories are special instances of representations.
- Representations provide a general and flexible framework for modeling software analysis systems
- Reduction theory provides a structured approach to completeness proofs
- Higher-order representations allow parameterized and modular system construction
- The theory has been effectively validated in Kleene algebras and their extensions
- Meta-theory Choice: Currently based on Set and Rel categories, but more general abstractions may exist
- Relational Algebra Fragment: Determining the "correct" fragment of relational algebra is needed
- Practical Application: More concrete applications to verification tasks are needed to validate practical utility
- Formal Verification: Formalize results in the Rocq proof system
- Categorical Study: Identify useful categories of representations
- Concrete Applications: Apply the theory to concrete verification tasks
- Meta-theory Abstraction: Define abstract structures capturing exact requirements without additional assumptions
- Theoretical Unification: Provides a unified framework for understanding different software analysis systems
- Completeness Focus: Particularly addresses completeness—a difficult problem—providing a systematic solution
- Modular Design: Achieves modular proofs and constructions through categorical methods
- Rich Examples: Validates the theory's applicability through multiple Kleene algebra extensions
- Mathematical Rigor: Provides strict mathematical foundations using relational algebra and category theory
- High Abstraction Level: The theoretical framework is quite abstract, potentially limiting intuitive understanding of practical applications
- Limited Examples: Main instances concentrate on Kleene algebra; applicability in other domains remains to be verified
- Lack of Implementation Details: Lacks discussion of concrete implementations or tool support
- Performance Considerations: Does not address computational complexity implications of the proposed methods
- Theoretical Contribution: Provides new theoretical tools for the formal methods community
- Methodological Value: May influence the structure and methodology of future completeness proofs
- Cross-domain Potential: The framework's generality enables potential application across multiple verification domains
- Educational Value: Provides a unified perspective for understanding relationships between different verification systems
- New Verification System Development: Provides theoretical guidance for developing new software analysis systems
- Completeness Proofs: Offers structured methods for establishing completeness of logical systems
- System Comparative Analysis: Provides unified foundations for comparing different verification frameworks
- Theoretical Research: Furnishes new tools for theoretical research in formal methods
The paper cites 18 important references covering multiple related fields including relational algebra, category theory, Kleene algebras and their extensions, providing a solid foundation for theoretical development.