In classical logic and standard computational analysis, facts and resources are treated as infinite or strictly cumulative. If you know a fact is true, you can use it as many times as you like without it vanishing—a property known as idempotence. Similarly, when analyzing a program's execution time, the resource (time) is monotonic; it only ever increases, meaning you can calculate total consumption by simply summing up the costs of individual steps.
However, real-world assets do not behave this way. Physical objects are consumed, money is spent, and memory is allocated and subsequently freed. To reason accurately about these domains, researchers have developed frameworks that reject idempotence and monotonicity, treating resources as finite, fluctuating entities.
Breaking Idempotence to Model Consumption
To understand why classical logic struggles with physical resources, consider a simple planning scenario: you have a dollar, and a candy bar costs a dollar. In classical logic, if $A$ represents "having a dollar," then $A$ implies $A \land A$. You could buy the candy bar and still possess the dollar.
To fix this, resource-sensitive frameworks enforce non-idempotence, meaning a fact is spent and no longer available once used. Wolfgang Bibel formalized this in Let's Plan It Deductively! by introducing Transition Logic (TL). By treating state changes as processes that explicitly consume initial facts to produce new ones, TL inherently tracks state persistence. As highlighted by Margaret A. Boden in Creativity and Artificial Intelligence, this approach elegantly resolves the classic "frame problem" in AI planning. Because state persistence is the default behavior for any fact not explicitly consumed by a transition rule, there is no need for complex, explicit axioms to describe what remains unchanged.
This perspective shifts program execution from abstract truth maintenance to physical asset management. For instance, Bertram Fronhöfer developed PLANLOG: A Language Framework for the Integration of Procedural and Logical Programming, which maps program execution to linear proof generation, treating logical literals as consumable resources to handle side effects without contaminating the underlying logic.
Beyond planning, this mechanism underpins strategic multi-agent environments. Nicolas Troquard introduced "Resource Games" in Nash Equilibria and Their Elimination in Resource Games, utilizing resource-sensitive logics like Linear Logic to ensure that every strategic move incurs a tangible consumption cost. In subsequent work on Rich Coalitional Resource Games (Rich Coalitional Resource Games), Nicolas Troquard demonstrated how linear logic connectives can differentiate between the simultaneous availability of items, choices between resources, and the transformation of one asset into another.
Even when goals cannot be fully met, resource-sensitive logics provide a metric for failure. Yakoub Salhi leveraged intuitionistic affine logic in Quantification of Resource Production Incompleteness to mathematically quantify the gap between an agent's desires and what available resources can actually produce. Similarly, the authors of Syntactic Labelled Tableaux for Łukasiewicz Fuzzy ALC noted that the non-idempotent nature of fuzzy logics can be exploited as a resource-aware feature to prevent the invalid combination of weak degrees of knowledge.
The Challenge of Non-Monotonic Resources
While logic programming handles consumption by destroying facts, software and cyber-physical systems introduce a different complication: resources that fluctuate up and down.
When analyzing a program's execution time, the resource is monotonic. If loop $A$ takes 10 seconds and loop $B$ takes 10 seconds, the total time is 20 seconds. But consider heap memory, stack space, or network buffers. A program can allocate 10 megabytes, deallocate it, and then allocate another 10 megabytes. The total memory required at any one time is 10 megabytes, not 20.
As Sumit Gulwani explains in SPEED: Symbolic Complexity Bound Analysis, this lack of monotonicity makes standard symbolic analysis techniques fail. Because resources can be reclaimed, computing worst-case performance requires tracking the maximum usage peak—the "high-water mark"—rather than just accumulating total operations. Quentin Carbonneaux et al. echo this distinction in Bounded Expectations: Resource Analysis for Probabilistic Programs, pointing out that traditional static analysis frameworks are fundamentally unsuited for non-monotone resources like heap memory because they lack the logical machinery to account for deallocation and reuse.
Monotonic Resource (e.g., Time)
Level: /\____/\____/\____ (Always Accumulating)
Non-Monotonic Resource (e.g., Memory)
Level: /\__ /\__ /\ (Fluctuating / Reclaimed)
\__/ \__/
[Peak Usage / High-Water Mark]
Tracking the High-Water Mark
To automatically derive bounds for non-monotonic resources, verification frameworks must track how resource levels at the end of a state transition depend on initial levels and elapsed time.
One approach is to combine compositional weakest-precondition logics with Automatic Amortized Resource Analysis (AARA). As demonstrated by Quentin Carbonneaux et al. in Bounded Expectations: Resource Analysis for Probabilistic Programs, this combination allows complex probabilistic reasoning about fluctuating memory states to be reduced to off-the-shelf linear programming, effectively tracking potential resource credits across execution paths.
In the domain of cyber-physical systems, the goal shifts from finding a peak bound to synthesizing infinite, safe schedules where resources are neither completely exhausted nor overfilled. Pieter J. L. Cuijpers et al. addressed this in Safe and Infinite Resource Scheduling Using Energy Timed Automata by modeling resource changes across system paths as binary relations using first-order logic. Their work reveals that when multiple non-monotonic resources interact continuously over time, the boundaries separating safe schedules from unsafe ones cease to be linear, forming complex geometric shapes like circular limit sets.
Whether implemented via proof-theoretic constraints in linear logic or invariant generation in static analysis, the core mechanism remains the same: by moving away from classical assumptions of persistence and monotonicity, these frameworks force computer systems to respect the finite, consumable nature of the real world.
Key Foundational Work
Let's Plan It Deductively! (1997) — contributed 3 concept elements to this direction.
Creativity and Artificial Intelligence (1997) — contributed 3 concept elements to this direction.
PLANLOG: A Language Framework for the Integration of Procedural and Logical Programming (1987) — contributed 1 concept elements to this direction.