Resource Sensitive Reasoning in Formal Systems

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 217 papers32 conceptsfrozen 2026-10-04

In classical logic, truth is persistent. If you know that $A$ is true, you can use that fact as many times as you like to prove other things. In the language of logic, this is called idempotency: $A \land A$ is exactly the same as $A$.

However, this property makes classical logic a poor fit for the physical world. If $A$ represents "one dollar," having $A \land A$ is very different from having just $A$. If you spend that dollar to buy a coffee, the dollar is gone. To model systems where actions have costs—whether those are dollars, battery life, memory buffers, or chemical reactants—we need a logic that treats propositions not as eternal truths, but as finite, consumable resources.

The Problem of Persistence

The fundamental limitation of classical logic in planning and state-oriented programming is the "Frame Problem." When an agent performs an action, how do we formally describe what doesn't change? In traditional systems, you need explicit axioms to state that moving a book doesn't change the color of the walls.

As Wolfgang Bibel argues in Let's Plan It Deductively!, resource-sensitive frameworks like Transition Logic (TL) solve this by making consumption the default. In these systems, a fact is a token. If a rule consumes a token to produce a new state, any token not mentioned in the rule simply remains. This "resource-conscious" approach, also explored by Bertram Fronhöfer in the PLANLOG framework, allows state changes to be modeled as linear proof generation, where facts are transformed rather than just accumulated.

Linear Logic as a Resource Calculus

The most influential formalization of this idea is Linear Logic. In this setting, the standard logical connectives are split to handle resource management. For example, we distinguish between:

  • Multiplicative conjunction: Having both resource A and resource B simultaneously.
  • Additive conjunction: Having a choice between resource A or resource B.

Nicolas Troquard applies this to game theory in Rich Coalitional Resource Games, showing that linear logic can model how agents trade and transform assets. Unlike classical games, where strategies are abstract choices, these games require agents to possess the literal "formulas" (resources) needed to achieve their goals. Similarly, Yakoub Salhi uses Intuitionistic Affine Logic to quantify "resource production incompleteness," measuring exactly how far an agent's current resources fall short of their desired goal.

Tracking the High-Water Mark

While some resources like "time" or "energy spent" are monotonic (they only ever increase), others like "memory" or "stack depth" are non-monotonic. They can be allocated and later de-allocated.

This creates a challenge for static analysis: the final state of a program doesn't tell you if it crashed due to a memory spike in the middle. Sumit Gulwani notes in the SPEED project that bounding non-monotonic resources requires tracking the high-water mark—the peak usage during execution.

To formalize this, Ziyue Jin and colleagues developed a program logic that uses a backward-oriented formulation to prove lower bounds on worst-case consumption. By focusing on reachability, they can verify that a program will hit a specific peak resource requirement, even if it cleans up after itself before termination. This is echoed in the work of Jan Hoffmann, who combines weakest-precondition logic with amortized analysis to derive polynomial bounds on the expected resource usage of probabilistic programs.

From Truth to Inference

The shift toward resource sensitivity also changes how we define the "meaning" of logic itself. Traditional semantics are based on truth in a model. However, Alexander V. Gheorghiu and David Pym propose an inferentialist view in Inferentialist Resource Semantics.

In their framework, the meaning of a logical statement is defined by how it is used in an inference. By replacing sets of assumptions with multisets of atomic resources, they ensure that every premise must be accounted for. This allows them to unify different resource views—like the "number-of-uses" view in Linear Logic and the "sharing vs. separation" view in the Logic of Bunched Implications—into a single language for reasoning about distributed systems and access control.

Practical Constraints and Complexity

Treating logic as a resource management problem is powerful, but it comes with a computational cost. Jochen Dörre demonstrated that even in linguistics, using resource-conscious systems like Semidirectional Lambek Grammar to model sentence structure is NP-complete. The flexibility to account for every "gap" or "resource" in a sequence essentially turns parsing into a complex search problem.

Despite this complexity, the move toward resource-sensitive types is gaining traction in mainstream programming. Jean-Philippe Bernardy and others have introduced Linear Constraints to languages like Haskell, allowing the type system to verify that a file handle or a network socket is used exactly once, preventing leaks and double-frees by construction. By baking the laws of physics—consumption, transformation, and scarcity—directly into the logic of our systems, we create software and models that are inherently more robust.

Papers in this version

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 10 papers
  2. Version 1 · 2026-10-04 · 17 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_non_monotonic_resource_analysis_5adaa9ef,
  title = {non-monotonic resource analysis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-monotonic-resource-analysis/rdr_5adaa9ef340b4a2a9184701256258aa8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_resource_sensitive_reasoning_in_formal_s_5adaa9ef_v1,
  title = {Resource Sensitive Reasoning in Formal Systems},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/resource-sensitive-reasoning-in-formal-systems/rdr_5adaa9ef340b4a2a9184701256258aa8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}