Desiree: a Refinement Calculus for Requirements Problems

Feng-Lin Li, Alexander Borgida, Giancarlo Guizzardi, Jennifer Horkoff, Lin Liu, John MylopoulosarXiv 2016

Abstract

Bridging the gap between informal stakeholder "wants" and precise system specifications remains a fundamental challenge in software engineering. This paper introduces Desiree, a formal requirements calculus designed to transform messy, informal needs into machine-testable specifications. By integrating a comprehensive requirements ontology with a set of logical operators grounded in set theory and Description Logic (DL), Desiree allows engineers to systematically refine requirements while leveraging automated reasoners to identify contradictions early in the process.

Introduction

The "Requirements Problem" stems from the inherent gap between stakeholder language—often ambiguous, incomplete, or contradictory—and the formal rigor required for system implementation. Traditional goal modeling tools (e.g., $i^*$ or KAOS) provide visual structures but often lack the underlying logic to prove that a design satisfies the original intent. Desiree addresses this by treating requirements engineering as a series of formal logical transformations.

The Desiree Framework

Desiree is built upon three primary pillars: a specialized ontology, a refinement calculus, and an automated toolset.

1. Requirements Ontology

Desiree categorizes requirements into specific concepts rather than treating them as generic goals. These include Functional Goals (system actions), Quality Goals (performance characteristics), and Domain Assumptions (environmental facts). This categorization provides the necessary structure for formal reasoning.

The Desiree Requirements Ontology illustrating the relationships between goals, constraints, and assumptions.

2. Refinement Calculus

The core innovation of Desiree is its set of formal operators, such as Reduce, Scale, Focus, and Resolve. These operators possess formal semantics based on Set Theory. In this view, a requirement represents the set of all possible system behaviors that satisfy it. Strengthening a requirement corresponds to shrinking this set, while weakening it enlarges it.

Summary of Desiree's Requirements Operators for refinement and operationalization.

3. The Desiree Tool

The framework includes a prototype GUI featuring a textual editor using frame-based syntax (e.g., Backup <object: Data> <when: Weekday>). The tool translates these frames into OWL2 (Web Ontology Language), enabling off-the-shelf reasoners like HermiT to automatically detect logical inconsistencies.

Evaluation and Results

The authors evaluated Desiree using the PROMISE requirements dataset, specifically focusing on the Meeting Scheduler (MS) project. This case study involved 74 stakeholder requirements (27 functional and 47 non-functional).

Key findings from the evaluation include:

  • Formalization Power: The 74 informal requirements were successfully transformed into a formal specification of 143 elements (including 58 functions and 54 quality constraints).
  • Error Detection: The framework identified three major inconsistencies in the standard MS requirements that had previously gone unnoticed, such as the conflation of physical entities (e.g., a "meeting room") with their digital database representations.
  • Ontological Clarity: Desiree helped resolve "user" ambiguity, where stakeholders used the same term to refer to different concepts (e.g., a person vs. a data record).

Discussion and Future Work

While Desiree provides significant rigor, it introduces a learning curve; controlled experiments suggest approximately two hours of training are required for proficiency. Current limitations include the manual definition of "slots" (attributes), which the authors hope to automate via natural language processing ("slot mining"). Additionally, while OWL2 is powerful, it struggles with complex nested universal quantifiers. Future research will focus on automated impact analysis to track how changes in one requirement ripple through the entire specification.

Conclusion

Desiree offers a robust path toward "eligible" specifications by providing the logical machinery to bridge the gap between human intent and machine-readable code. By treating requirements as sets and applying a formal calculus, it brings a new level of automation and verification to the earliest stages of the software development lifecycle.

Summary updated

BibTeX
@misc{li2016desiree,
  author = {Feng-Lin Li and Alexander Borgida and Giancarlo Guizzardi and Jennifer Horkoff and Lin Liu and John Mylopoulos},
  title = {{Desiree: a Refinement Calculus for Requirements Problems}},
  year = {2016},
  eprint = {1605.02263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.02263},
}
Figure