Abstract
Software engineering has long struggled with the "software crisis"—a persistent trend of projects exceeding budgets and failing to meet user requirements. This paper proposes a shift in perspective, moving away from viewing software development as a manufacturing process and toward a formal scientific framework based on "common knowledge." By applying formal language theory to model the interaction between clients and developers, the authors establish mathematical preconditions for project success, proving that the outcome is fundamentally limited by the collective knowledge of the participants.
Introduction
In traditional industries, manufacturing follows a predictable path from design to product. However, software development is notoriously volatile, primarily due to the complexities of requirements analysis. Many practitioners treat this phase as an "art" or a matter of soft skills. This paper challenges that notion by asking: Under what conditions can we theoretically guarantee the success of a software project, assuming cost is not an obstacle?
To answer this, the authors model requirements analysis as a process of reaching "common knowledge" between two agents: Side A (the demander/client) and Side B (the developer/team).
Theoretical Framework: Point Sets of Knowledge
The authors employ formal language theory to represent the software specification as a set of "basic facts," denoted as $P$. Each participant enters the project with their own initial set of known facts:
- $P_1$: The knowledge held by the client.
- $P_2$: The knowledge held by the developer.
The goal of requirements analysis is to ensure that the final specification is not just known by both parties, but becomes Common Knowledge. Borrowing from game theory and distributed systems research (notably the work of Aumann and Halpern), common knowledge is defined as a recursive state: A knows $x$, B knows $x$, A knows that B knows $x$, B knows that A knows that B knows $x$, and so on, infinitely.
Two Models of Intelligence
The paper distinguishes between two ways agents process information during communication:
- The Communication Model (Low Intelligence): In this model, agents can pass messages but lack the capacity to "understand" the deeper implications of those messages beyond their literal content. They cannot infer new facts from the messages received.
- The Fully Understanding Model (High Intelligence): In this model, agents possess the cognitive or technical capacity to perfectly infer underlying facts and implications from the messages they receive.
The Mathematical Limits of Success
Using these models, the authors derive two pivotal theorems that define the "borderline of success" for any software project.
The Communication Constraint (Theorem 4.5)
In the "low intelligence" model, the authors prove that a project can only succeed if both the client and the developer already fully possess the requirement specification individually before the project begins.
Mathematically, this implies that for success, $P_1 = P$ and $P_2 = P$. Since it is rare for a developer to know a client's specific needs perfectly at the outset, this theorem provides a scientific explanation for why "pure communication"—the mere exchange of documents and messages without deep domain understanding—frequently leads to project failure.
The Collective Knowledge Bound (Theorem 5.1)
In the "fully understanding" model, the requirements for success are relaxed but still strictly bounded. The authors prove that even with perfect understanding and inference, a project can only succeed if the union of the participants' knowledge covers the entire specification.
If $P_1 \cup P_2$ does not contain all the facts in $P$, no amount of communication or intelligence can bridge the gap. You cannot communicate your way out of a fundamental lack of expertise. If the client doesn't know what they want and the developer doesn't have the domain knowledge to fill those gaps, the project is mathematically destined to fail.
Implications for Software Management
The qualitative takeaway from this research is a shift in how we diagnose project failure. It is often not a failure of "communication" in the sense of message volume, but a "knowledge gap."
For software managers, these results suggest that simply adding more people to a project (inflating the team size) may be less effective than ensuring the completeness of knowledge. Success depends on bringing in experts who can ensure that the union of the team's knowledge ($P_1 \cup P_2$) actually covers the required specification ($P$).
Limitations and Future Directions
While providing a rigorous foundation, the model currently operates under several simplifications:
- Two-Agent Limit: Real-world projects involve complex networks of stakeholders, requiring an $N$-agent model.
- Static Requirements: The model treats the specification $P$ as a fixed set, whereas in practice, requirements often evolve or are discovered iteratively.
- Cost and Time: The proofs assume success is possible "regardless of cost," ignoring the efficiency of reaching common knowledge.
Future work may expand these theorems to dynamic environments where knowledge is not just shared, but created during the development process.
Summary updated