Resource-driven Substructural Defeasible Logic
Abstract
Linear Logic and Defeasible Logic have been adopted to formalise different features relevant to agents: consumption of resources, and reasoning with exceptions. We propose a framework to combine sub-structural features, corresponding to the consumption of resources, with defeasibility aspects, and we discuss the design choices for the framework.
1 Introduction
Many different models of agency have been proposed over the years. In some of those understandings, agents are assumed to be rational entities capable to reason about the environment in which they are situated, and to deliberate about what actions to take to achieve some particular goals.
Many logic-based approaches have been proposed to account for the rational behaviour of an agent. For example, in the well known BDI architecture (and architectures inspired by it), agents first deliberate about the goals to achieve and, based on such goals, they select the plans to implement from their plan libraries. Finally, during or after the execution of the plans, the agents receive feedback from the environment, which can trigger the so-called reconsideration: the activity to determine whether the intended goals are still achievable with the selected plan and the current state of execution.
Most of the logic-based approaches take an idealised representation: the agents have unlimited reasoning power, complete knowledge of the environment and their capabilities, and unlimited resources. Over the years, a few approaches (using different logics) have been advanced to overcome some of these ideal (unrealistic) assumptions.
In [10, 14, 15], the authors propose the use of Linear Logic to model the notion of resource utilisation, and to generate which plans the agent adopts to achieve its goals. In the same spirit, [8, 7] address the problem of agents being able to take decisions from partial, incomplete, and possibly inconsistent knowledge bases, using (extensions of) Defeasible Logic (a computational and proof theoretic approach) to non-monotonic reasoning and reasoning with exceptions. While these last two approaches seem very far apart, they are both based on proof theory (where the key notion is on the idea of (logical) derivation), and both logics (for different reasons and different techniques) have been used for modelling business processes [9, 17, 2, 16, 13, 12, 4].
Formally, a business process can be understood as a compact representation of a set of traces, where a trace is a sequence of tasks. A business process is hence equivalent to a set of plans with possible choices. The idea behind the work mentioned above is to allow agents to use their deliberation phase to determine the business processes (instead of the plans) to execute.
In this paper, we discuss some design choices (and offer some results) about the combination of linear logic (or more in general, sub-structural logic) and a computationally oriented non-monotonic formalism. To the best of our knowledge, this is the first investigation in this area, but it combines two approaches that have proved useful for modelling some aspects of agency.
We expect this work to be foundational for further research in modelling agents and the way agents create their plans during the deliberation phase, taking into account the utilisation of resources and possible exceptions (or partial knowledge of the environment). Hereafter, we focus on introducing the key logical aspect to be examined in the paper.
Logic is often described as the “art” of reasoning, or in other terms, its subject matter is how to derive conclusions from given premises. Under this prospective we can distinguish rules (or sequents, or instances of a consequence relation) and inference (or derivation) rules. A rule specifies that some consequences follow from some premises, while a derivation rule provides a recipe to determine the valid steps in a proof or derivation. A classical example of a derivation rule is Modus Ponens (i.e., from ‘’ and to derive ). A rule can be understood as a pair
where and are collections of formulas in an underling language. In Classical Logic, and are sets of formulas and in Intuitionistic Logic is a singleton. Thus the rules
are the same rule. Where “,” in the antecedent is understood as conjunction and disjunction in the consequent . In substructural logics (e.g., Lambek Calculus, and the family of Linear Logics), and are assumed to have an internal structure, and they are considered as multi-sets or sequences. An interpretation of a rule is how to transform the premises in the conclusion. Thus the rule
can be taken to mean that we need two instances of with an instance of in between to produce an instance of . Derivation rules, on the other hand, tell us how to combine rules, to obtain new rules. For example, the derivation rule
establishes whether we have a derivation of from and a derivation of from , then we can combine the and , to obtain a derivation, where we have followed by and then . If the formulas denote activities (or tasks) and resources, then the consequent is a sequence of tasks describing the activities to be done (and the order in which they have to be executed) to produce an outcome (and also, what resources are needed). Thus, we can use the rules to model transformation in a business processes, and derivations as the traces of the process (or the ways in which the process can be executed or the runs of system).
A formalism that properly models processes should feature some key characteristics, and one of the most important ones is to identify which resources are consumed after a task has finished its execution. Consider the notorious vending machine scenario, where the dollar resource is spent to produce the can of cola. Trivially, once we get the cola, the dollar resource is no longer spendable (unless it can be, somehow, replenished). However, the specifications of a process may include thousands of rules to represent at their best all the various situations that may occur during the execution of the process itself: situations where the information at hand may be incomplete and, sometimes, even contradictory, and rules encoding possible exceptions. This means that we have to adopt a formalism that is able to represent and reason with exceptions, and partial information.
Defeasible Logic (DL) [11] is a non-monotonic rule based formalism, that has been used to model exceptions and processes. The starting point being that, while rules define a relation between premises and conclusion, DL takes the stance that multiple relations are possible, and it focuses on the “strength” of the relationships. Three relationships are identified: strict rules specifying that every time the antecedent holds the consequent hold; defeasible rules, when the antecedent holds then, normally, the consequent holds; and defeaters when the antecedent holds the opposite of the consequent might not hold. An example of rules with a baseline condition and exception is the scenario the outcome of inserting a dollar coin in a vending machine is that we get a can of cola, unless the machine is out of order, or the machine is switched off. Thus, we can represent this scenario with the rules11 1 is the name of rule , symbol denotes rules meant to derive defeasible conclusions, i.e. conclusions which may be defeated by contrary evidence. As it will be clear in Section 3, defeasible rules, defeaters, and the superiority relation represent the non-monotonic aspects of our framework.:
Based on the discussion so far, the motivation of the paper is twofold. From a technical point of view we want to combine, from a logic perspective, the mechanisms of defeasibility with mechanisms from substructural logic (to capture the order of resources, and the consumption of resources). It is clear that the resulting combination of logical machinery could provide a much better formalism for the representation of processes. Accordingly, we will use the point of view of business process modelling to illustrate the technical features we are going to define in the logic (or, to be more specific, for possible variants of substructural defeasible logics).
2 Desired properties
We dedicate this section to detailing which new features our logics need to implement and, for each of them, to justify their importance with respect to real life problems.
Ordered list of antecedents
Given the rule ‘’, the order in which we derive and is typically irrelevant for the derivation
of . As such, may indistinctively assume the form ‘’.
Consider a login procedure which requires a username and password.
Whether we insert one credential before the other does not affect a
successful login.
Nonetheless, sometimes it is meaningful to consider an ordered sequence of atoms in the head of a rule, instead of an unordered set of antecedents. Suppose we have the two activities ‘Check Creditworthiness’ and ‘Approve Loan’. Neither of them depends on the other. However, performing one activity before the other may affect the final result: if we approve the loan before creditworthiness has been checked and approved, then a loan may potentially be provided to someone who is not able to repay.
This allows us to capture the fact that some resources may be independent of each other from the derivational viewpoint (one does not derive the other), but are dependent from a temporal perspective (one must be obtained before the other). Naturally, in the same set/list of antecedents, combinations of unordered and ordered sequences of literals is possible. For instance,
represents a situation where, in order to obtain , we need to first obtain , then , then either or in any order, and lastly, only after both and are obtained, we need to obtain . The notation ‘;’ is used as a separator between elements in an ordered sequence, while ‘,’ separates unordered sequences.
Multi-occurrence/repetitions of literals
From these ideas, it follows that some literals may appear
in multiple instances, and that two rules such as
are semantically different. For instance, rule may describe a scenario where the order of a product may require two deposit payments followed by a full payment prior to delivery. Regarding , consider that is now ‘Add a tablespoon of ice sugar’ and is ‘Stir for 1 minute‘. A perfect frosting requires many repetitions of after after , for a specific number of repetitions.
Resources consumption
Assume we have two rules,
If we are able to derive , and , then and are subsequently obtained. Deducing both and is a typical problem of resource consumption.
Given the financial state of a customer (i.e., their pay cheque and their monthly spending), a finance approval is sent to the customer for the requested loan. However, that finance approval can only be used once, given the financial situation of that customer. That is, they cannot obtain another loan with the same finance approval. If the customer wants to apply for another loan, they are required to obtain a new finance approval first.
This example indicates that some literals represent resources that are consumed during the derivation process: if they appear in the antecedent of a rule, and such a rule produces its conclusion, then the other rules with the same literals in their antecedent can no longer fire (unless there are multiple occurrences).
Conversely, some resources are not consumed once used. For instance, a policy at a bank may dictate that a customer has to be below 65 years old to be eligible for a mortgage. A similar requirement may hold for a car loan. However, a customer may apply for both a mortgage and a car loan, as neither of these applications invalidate the fact that the customer is younger than 65 years old. That is, the information regarding the customers’ age is not consumed when used.
The discussion of when a resource has to be considered consumable/non-consumable is outside the scope of this paper. It is a duty of the knowledge engineer to decide whether to tag a resource as consumable, or non-consumable. For the remainder of this paper, we assume all literals to be consumable. The treatment/derivation of non-consumable literals is the same as in Standard Defeasible Logic (SDL), and thus something well known in the literature of SDL.
Concurrent production
Symmetrically, we consider two distinct rules having the same conclusion:
It now seems reasonable that, if both and are derived, then we conclude two instances of (whereas in classical logics we only know that holds true). For example, consider a family where it is tradition to have pizza on Friday evening. Last Friday, the parents were unable to communicate with each other during the day, and one baked the pizza while the other bought take-away on the way home.
However, there exists consistent cases where multiple rules for the same literal produce only one instance of the literal (even if they all fire). For example, both a digital or handwritten signature would provide permission to proceed with a request. The same request does not require permission twice: either it is permitted, or it is not.
Resource consumption: A team defeater perspective
Sceptical logics provide a means to decide which conclusion to draw in case of
contradicting information. Typically, a superiority relation is given among
rules for contrary conclusions: it is possible to derive a conclusion only if
there exists a single rule stronger than all the
rules for the opposite literal.
Defeasible Logic handles conflicts differently, and the idea here is that of team defeater. We do not look at whether there is a single rule prevailing over all the other rules, but rather whether there exists a team of rules which can jointly defeat the rules for the contrary conclusion. That is, suppose rules , and all conclude , whilst and are for . If and , then the team defeater made of is sufficient to prove .
The focus remains on resource consumption and production. As such, the questions we need to answer are, again, which resources are consumed, and how many instances of the conclusion are derived. We start by distinguishing the two scenarios where: (a) neither of the teams prevail, (b) one team wins. Consider
In case (a), e.g., when no superiority is given, we cannot conclude for either conclusion. Hence, the question is “Will any of the resources be consumed?”. In case (b), we assume and , and we conclude that . How many instances of are produced? One solution is to produce three instances of and, accordingly, , and are all consumed. We can instead consistently assume that we produce twice, through the two winning rules and only, but not via ; we thus consume and , but not .
Lastly, on the perspective of the defeated rules another relevant question is: Are and ever consumed? As clear, there is no unique answer. There are consistent scenarios where the literals in the defeated rules are consumed, and other cases where they are not. In Section 3, we provide different solutions to cover the various cases.
Consider the process of writing a scientific publication for a conference. If the paper is accepted, the manuscript resource is consumed, since it cannot be submitted again. On the contrary, if the paper is rejected, the manuscript resource is not consumed since it can be submitted again to other venues.
Multiple conclusions and resource preservation
Consider internet shopping. As soon as we pay for our online order, the bank
account balance decreases, the seller’s account increases. Both the seller
and the web site have the shipping address and, possibly, the credit card
number.
The conclusion of a rule is usually a single literal. The above example suggests that a single rule may produce more than one conclusion, which cannot be represented by multiple rules with the same set of antecedents. For example, consider the rules
In a propositional calculus, once the system derives and , by Modus Ponens, we obtain both and . However, when we consider resource consumption, then it is clear that only one rule can produce its conclusion, whilst the other cannot. We tackle this problem by allowing rules to have multiple conclusions. Thus, and can be merged into the single rule
Similar to our discussion on the ordering of antecedents, we may have any combination of ordered/unordered sequences of conclusions. In the previous example, only after we have provided the credit card credentials, our bank account decreases, whilst we can provide the shipping address before the credit card credentials, or the other way around.
The notion of multiple conclusions, along with the discussion on team defeaters, leads to another problem. Consider the two rules
where no superiority is given. Do we conclude that or ? Moreover, what happens if now we have ‘’ and we establish that is stronger then ? Do we conclude that and (meaning that only the derivation of has been blocked by ), or will the production of and be affected also?
Loops
The importance of being able to properly handle loops is evident: loops play a
fundamental role in many real life applications, from business processes to
manufacturing. Back to the login procedure, if one of the credentials is
wrong, the process loops back to a previous state, for instance, by asking
the user to re-enter both credentials.
Naturally, a system is able to properly handle loops when it can handle/recognise the so-called exit conditions, to prevent infinite repetition of the same set of events. For example, after three wrong login attempts, the login procedure may prevent the user from further attempts and require them to undergo a retrieve credential procedure.
3 Language and logical formalisation of RSDL
Before introducing the notation used throughout the remainder of this paper, we will first justify a number of implementation choices. In Section 2, we stated that there are two types of literals: consumable against non-consumable. In addition, we introduced the notion of ordered sequences of literals in the antecedents and conclusions, we stated that any combination of ordered or unordered sequences of literals is (theoretically) possible.
The logics presented here shall only consider: (i) consumable literals, and (ii) either multi-sets or ordered sequences of literals (but not their combination). Our motivation is that adding conditions to the proof tags (labels that describe how a literal can be derived) in order to deal with non-consumable literals and alternating ordered/unordered sequences is a trivial and pedant task. Their formalisation is exactly the same of that in Standard DL (SDL), and thus the process would not add any value (it will be done for the sake of completeness in future work).
Our logics deal with two types of derivations: strict and defeasible. Their underlying meaning is the same as those in SDL. Strict rules derive indisputable conclusions, i.e., conclusions that which are always true. Thus, if two strict rules have opposite conclusions, then the resulting logic is inconsistent. On the contrary, defeasible rules are to derive pieces of information that can be defeated by contrary evidence, like ‘Birds typically fly’ since we know that ‘Penguins are birds that do not fly’. Finally, defeaters are special type of rules whose only purpose is to block contrary evidence. They cannot be used to directly derive conclusions, but only to prevent other rules to conclude.
We have now passed through the conceptual basis of our logics and can move forward to introduce the language of Resource-driven Substructural Defeasible Logic (RSDL). We will use greek letters to denote propositional atoms, while roman letters , , are reserved to denote rule labels. In addition, and are reserved to denote lines and columns in a proof, while other roman letters are typically used as subscripts to denote the cardinality of sets/sequences; capital denotes the set of facts, capital the set of rules, the list of antecedents, and the set/list of conclusions of rule .
is the set of propositional atoms, the set denotes the set of literals. The complement of a literal is denoted by ; if is a positive literal , then is , and if is a negative literal , then is .
We adopt the standard DL definitions of strict rules, defeasible rules, and defeaters.
Definition 1
Let be a set of arbitrary labels. Every rule is of the type , where
- 1.
is a unique name.
- 2.
, the antecedent, or body, of the rule is a list of literals.
- 3.
An arrow denoting a strict rule, a defeasible rule, and a defeater, respectively;
- 4.
is the consequent, or head, of the rule. For the head, we consider three options:
- (a)
The head is a single literal ;
- (b)
The head is a list (to be understood as a multi-set);
- (c)
The head is a list (to be understood as a ordered list).
- (a)
With abuse of notation, we will often refer to as a set, and overload standard set theoretic notation. Given a set of rules , and a rule we use the following abbreviations for specific subsets of rules: (i) is the subset of strict rules, (ii) is the set of strict and defeasible rules, (iii) is the set of rules where appears at index in the consequent where the consequent is a list, (iv) when the consequent is a set containing .
Definition 2
A resource-driven substructural defeasible (rsd) theory is a tuple where: (i) are pieces of information denoting the (consumable) resources available at the beginning of the computation. This differs strikingly from SDL, where i) they denote always-true statements; (ii) is the set of rules; (iii) , the superiority relation, is a binary relation over .
A theory is finite if the set of facts and rules are finite. In SDL, a proof of length is a finite sequence of tagged literals of the type and . The idea is that, at every step of the derivation, a literal is either proven or disproven.
In our logic, we must be able to derive multiple conclusions in a single derivation step, and hence we require a mechanism to determine when premises have been used to derive conclusion. Accordingly, we modify the definition of proof to be a matrix.
Definition 3
A proof in RSDL is a finite matrix of tagged literals of the type , , , and .
We assume that facts are simultaneously true at the beginning of the computation. Notation , , denotes the fact that has been consumed. The distinctive notation for when a literal is proven and when it is consumed will play a key role to determine which rules are applicable.
The tagged literal means that is strictly proved/refuted in , and, symmetrically, means that is defeasibly proven/refuted. The set of positive and negative conclusions is called extension.
In SDL, given a set of facts, a set of rules and a superiority relation, the extension is unique. It is clear that this is not the case when resource consumption and ordered sequences are to be taken into account: depending on the order in which the rules are applied, (rather) different extensions can be obtained. In sub-structural defeasible logic every distinct derivation corresponds to an extension.
In SDL, derivations are based on the notions of a rule being applicable or discarded. Briefly, a rule is applicable when every literal in the antecedent has been proven at a previous step. We report hereafter a standard defeasible proof tag.
| If | then |
| (1) : is applicable and | |
| (2) | either |
| (2.1) is discarded or | |
| (2.2) | : is applicable and . |
A literal is defeasibly proven when there exists an applicable rule for such a conclusion and all the rules of the opposite are either discarded, or defeated by stronger rules. (Strict derivations only differ in that, when a rule is applicable, we do not care about contrary evidence, and the rule will always produce its conclusion nonetheless. As such, the consistency of the logics depends only on the strict part of the logics.)
As for SDL, we obtain variants of the logic by providing different definitions of being applicable and discarded. More specifically, for RSDL, definitions of applicability and discardability need to take into account (i) the number of times a literals appear in the body of a rule, (ii) how many times they have been derived22 2 Trivially, e.g., if literal has been derived twice, but it appears in the antecedent of three rules, only two of such rules can produce their conclusions., (iii) the order in which the literals occur in the body of a rule and in a derivation. In addition, we have to extend the structure of the proof conditions to include mechanisms or conditions to determine when literals/resources have been used to derive new literals/resources.
We shall proceed incrementally. First, we provide definitions for multi-sets. We then provide definitions for sequences. In both cases, we consider rules with a single literal for conclusion. Consequently, we end with the definitions to describe multiple conclusions.
Definition 4
A rule is -applicable, , at iff then . Moreover, we say that is -consumable iff is -applicable and such that .
A rule is consumable if it is applicable and, for every literal in its antecedent, there is an unused occurrence. (This can be done by checking the previous derivation step .) Discardability is obtained by applying the principle of the strong negation to the definition of applicability.
Definition 5
A rule is -discarded, , at iff such that Moreover, we say that is -non–consumable iff either is discarded, or , .
Lastly, we define the conditions describing when a literal is consumed.
Definition 6
Given rule , a literal is -consumed, , at , iff
- 1.
such that , and
- 2.
.
The following example illustrates how we use within the resource consumption mechanism.
Example 1
Consider , where
and (one of) the corresponding proof table(s):
Naturally, two mutually exclusive extensions are possible, based on whether is used by to derive , or by to derive . Table 1 shows the former case. At we obtain , instance that is consumed in deriving at . Thus, . Symmetric situation for activating at the third derivation step, which results in and . Now, at the fourth derivation step, is applicable but non-consumable, and hence we cannot derive .
Proof tags for multi-sets in the antecedent and single conclusion
We now present the proof tags, and we begin with: (1) the antecedent is a multi-set, (2) single literal in the conclusion. describes positive definitive (strict) derivations.
| : | If then |
| (1) | , or |
| (2) | (1) such that |
| (2) is -consumable and | |
| (3) , is -consumed. |
Literal is definitely provable if it either is a fact, or there is a strict, applicable rule for , whose antecedent literals can be consumed. Condition (2) actually consumes the literals by replacing with . Proof tag is as follows:
| : | If then |
| (1) | and |
| (2) | , is -non-consumable. |
Literal is definitely refuted if is not a fact, and every rule for is non-consumable. We can now turn our attention to the definition of the proof tags for defeasible conclusions. In particular, we provide proof conditions (corresponding to inference rules) for three types of conclusions: meaning that the current derivation proves ; meaning that the current derivation prevents the proof of , or in other terms that is refuted; and whose intuitive reading is that the would be derivable in the current proof if more (appropriate) resources are would be available. Alternatively, for indicates that there are applicable rules for , but the resources for such rules have been used to derive other conclusions.
| : | If , then |
| (1) | or |
| (2) | (1) and |
| (2) | -consumable and |
| (3) | either |
| (1) | is -discarded, or |
| (2) -consumable, , and | |
| (3) if -applicable, , then | |
| (1) | , is -consumed, otherwise |
| (2) , is -consumed. |
Condition (1) allows us to inherit a defeasible derivation from a definite derivation. Condition (2.1) ensures that the logic is sound (i.e., that it is not possible to derive and its negation as provable defeasible conclusions unless they are derivable from the strict part only. Condition (2.2) requires that there is rules that is triggered by previously proved literals that have not been used to trigger other conclusions. Clause (2.3.1) is the standard one of defeasible logic, meaning that to rebut an attacking argument, we can show that some of the premises of the argument/rule have been refuted. The second method to rebut the attacking arguments (rules for ) is to show that they are defeated, i.e., weaker than applicable rules for the conclusion we want to prove, similarly the antecedents of such rules must not have been used for other conclusions, clause (2.3.2). The final part is the mechanism to determine which resources are consumed by the derivation of . If there are no applicable rules for the resources are taken for the rule proposed as an argument, that is rule (2.3.3.2); if there are counter-argument, the resources are taken from each rule rebutting a counter-argument, for each possible applicable counterargument (2.3.3.1). Note, that in this way we capture the idea of team defeat (see Section 2.
For we use the strategy similar to that used in [1] to provide proof condition for the ambiguity propagating variant of SDL, that is, we make it easier to attack a rule (2.2.2). Also, for the derivation of literals tagged with does not require the consumption of resources. Resources are consumed only when we positively derive literals.
| : | If , then |
| (1) and | |
| (2) | (1) or |
| (2) | either |
| (1) is -discarded or | |
| (2) | such that |
| (1) is -applicable and | |
| (2) | either |
| (1) is -discarded or (2) not . |
The idea behind is that there are rules applicable for the consequent, irrespective whether the premises have been used or not. However, we have to check that the rule is not defeated by an applicable rule for the opposite (2.2).
| : | If then |
| (1) or | |
| (2) | such that |
| (1) is -applicable and | |
| (2) | either |
| (1) is -discarded or (2) not . |
Example 2
Consider , where
and the corresponding proof table:
Assume that, at the fourth derivation step, is taken into consideration; is actually consumable, but so is , and no superiority is given between and . There actually exists a consumable rule stronger than , . Accordingly, the team defeater allows us to prove , and only is consumed in this process. This implies that is still available, and can be used at the fifth derivation step to produce , via .
Proof tags for sequences in the antecedent and single conclusion
We can now move forward and consider sequences in the antecedent. Naturally, definitions of being applicable, discarded, and consumable must be revised.
A rule is sequence applicable when the derivation order reflects the order in which the literals appear in the antecedent, i.e., for every two literals in the antecedent, say and , such that appears before , there exists a derivation of before every derivation (for that occurrence33 3 In order to handle situations like (as illustrated in Example 3).) of .
Definition 7
A rule is -sequence applicable, , at iff for all :
- 1.
there exists such that , , and
- 2.
for all such that , then
- 3.
for all such that , then and .
We say that is -sequence consumable iff is -applicable and 4. .
A rule is sequence discarded when there exists a literal in the antecedent, which has been previously disproven, or there are two proven literals in the antecedent, say and , such that appears before , and one proof for is before every proof for .
Definition 8
A rule is -sequence discarded, , at iff for there exists such that either
- 1.
, or
- 2.
for all such that , , then
- •
there exists , with , such that
- •
there exists such that , , and , .
- •
The definition of a literal being -consumed remains the same as before. The proof tags for strict and defeasible conclusions with (i) sequences in the antecedent, and (ii) a single conclusion can be obtained by simply replacing
- •
-applicable with -sequence applicable;
- •
-consumable with -sequence consumable;
- •
-discarded with -sequence discarded.
Example 3
Consider , where .
Assume the rules are activated in this order: first , then , last . Thus, , , and . The derivation order between and the second occurrence of has not been complied with, and is sequence discarded. Same if the order is ‘, , ’, whilst ‘, , ’ is a legit order to let be sequence applicable.
Proof tags for sequences in both the antecedent and conclusion
Even when we consider sequences in the consequent, a literal’s strict provability or refutability depends only upon whether the strict rule (where the literal occurs) is sequence consumable or not. As such, given a strict rule , still ’s strict provability/refutability depends only upon whether is strictly sequence consumable or not. However, now we also have to verify that, if , we prove immediately after . The resulting new formalisation of is as follows:
| : | If then |
| (1) | , or |
| (2) | (1) such that |
| (2) is -sequence-consumable, | |
| (3) and , | |
| (4) , is -consumed. |
The positive, defeasible proof tag is as follows.
| : | If , then |
| (1) | or |
| (2) | (1) and |
| (2) | (1) -sequence-consumable and |
| (2) and | |
| (3) , and | |
| (3) | either |
| (1) | is -sequence-discarded, or |
| (2) -sequence-consumable, , and | |
| (3) if -sequence-applicable, , then | |
| (1) | , is -consumed, otherwise |
| (2) , is -consumed. |
Negative proof tags are trivial to deduce, and therefore omitted.
Example 4
Consider , where
At we prove , while ( is sequence-applicable and is not stronger than ). Therefore, cannot prove .
Proof tags for sequences in the antecedent and multi-sets in the conclusion
We lastly take into account multi-sets in the conclusion. When considering a ‘team defeater fight’, two scenarios are possible. In the former, we draw a conclusion only if there is a winning team defeater for each literal in the conclusion. In the latter, we limit the comparison on the individual literal (and thus the latter solution is less strict than the former).
Strict provability does not change with respect to the one described in the previous section, and is therefore omitted.
| : | If , then |
| (1) | or |
| (2) | (1) and |
| (2) -sequence-consumable and | |
| (3) | such that either |
| (1) | is -sequence-discarded, or |
| (2) -sequence-consumable, , and | |
| (3) if -sequence-applicable, , then | |
| (1) | , is -consumed, otherwise |
| (2) , is -consumed. |
Consider of Example 4, where this time . There is no rule stronger than , and thus no conclusion can be defeasibly proven.
| : | If , then |
| (1) | or |
| (2) | (1) and |
| (2) -sequence-consumable and | |
| (3) | either |
| (1) | is -sequence-discarded, or |
| (2) -sequence-consumable, , and | |
| (3) if -sequence-applicable, , then | |
| (1) | , is -consumed, otherwise |
| (2) , is -consumed. |
Consider of Example 4, again with . This time can prevent only to prove (and, analogously, prevents to conclude ), and thus we prove as well as .
4 Conclusions, related and further work
We have dealt with the problem of manipulating resource consumption in non-monotonic reasoning. The combination of linear and defeasible features in a logical system is a complete novelty in the community of computational logic and knowledge representation.
Variants of SDL have been investigated so far as a means for devising business process traces [13, 12, 4]. While the idea is closely related to outline in the Introduction that a derivation corresponds to a trace in a process, the approach based on variants of SDL are not able to handle loops and, in general, repetitions of tasks. These aspects are elegantly captured by the sub-structural aspects presented in the paper.
Studies on light linear logic versions, with specific aspects of linearity related to resource consumption have been devised such as light and soft linear logic [3, 5]. Applications of linear logic to problems indirectly related to business processes such as Petri Nets can be found in [9] and in [17, 2]. However, such approaches are not able to handle in a natural fashion the aspect of exceptions. The representation of exception would require complex rules and encyclopaedic knowledge of the scenarios described by the processes encoded by rules/sequents.
The most important properties we aim at proving for a logical non-monotonic system are consistency and coherence44 4 In DL, a theory is consistent if, for no literal , and ; is coherent if, for no literal , and , .. Although we cannot report a formal proof of consistency and coherence for the logical system so far, we have exhaustively determined the conditions for interference of the sub-structural and the non-monotonic aspects of RSDL, and the formalisation of these derives the aforementioned properties.
A logical system enjoys the finite model property when for every set of formulae, the associated meaning to each formula requires a finite set of elements in the semantics for every model of that set. In the case of RSDL, the semantics is determined by the derivations that are possible given a theory.
As a consequence of the aforementioned notions we shall prove one property that regards acyclic RSDL. The Atom Dependency Graph55 5 In the Atom Dependency Graph the atomic propositions are the nodes, and there is a directed edge between nodes if there is a rule containing the source or its negation in the body, and the target or its negation in the head. of a defeasible theory has been defined in many different contexts, specifically in the analysis of preferences, as in [6]. Acyclic RSDLs are theories in which no cycle appears in the Atom Dependency Graph. This means that when a rule is used to produce a conclusion, the resources in the antecedent of the rules cannot be replenished, and we reach nodes, literals, that can be produced by the theory only if they are given (node, with no incoming edges in the Atom Dependency Graph).
Theorem 4.1
Acyclic finite RSDL theories enjoy the Finite Model Property.
Proof
If there are no cycles in the Atom Dependency Graph, every time a rule is used to derive a positive conclusion (strict or defeasible), the number of available resources decreases. Accordingly, the maximum number of literals that can appear in a proof is bounded and proportional to the number of literals occurring in the head of rules in a given theory. Consequently, every derivation is finite. Hence, the theory has the Finite Model Property.
Note that the theory with as a fact and the rule can generate a derivation with infinitely many occurrences of . The acyclicity condition allows us to compute in finite time the extension of a theory. However, this is not the case for cyclic theory, where the computation is not guaranteed to terminate. Accordingly, we can state the following result.
Theorem 4.2
The problem of computing extensions of cyclic RSDL theories is semi-decidable.
For acyclic theories, we have the finite model property. Therefore, since acyclic theories can be checked for model existence in finite time, when the model does not exists, and by brute force methods (for instance by simply computing all the possible sequences of any finite length) we can trivially claim the following result.
Theorem 4.3
The problem of computing extensions of acyclic RSDL theories is decidable.
Generally speaking, the extension computation problem is likely to be decidable for larger classes of pure acyclic theories. In particular, when cycles are conservative (cycles that do not produce new instances of the same literal), or when a cycles are limited in the extension by some rules that consume the literals generated in the cycles themselves before such literals could be used to allow other rules fire, it is possible to guarantee the finite model property. This is a matter of future investigations.
DL has been introduced as a means for managing non-monotonic aspects of logical conclusion/derivation mechanisms. DL is efficient in terms of time and space, being the problem of computing the extension of a defeasible theory linear in the number of literals in the theory. This property, however, cannot be claimed for RSDL. In particular, we can show that RSDL can be used to represent classical 3-SAT problem, and therefore prove that the complexity of this problem cannot be polynomial on deterministic machines.
The basic idea of reducing 3-SAT is as follows. A 3-SAT problem is a clause representing a finite conjunction of triplets (), each formed by three literals (), that we assume to be conjuncted in the sub-clause, where we ask whether the clause is satisfiable, or not.
We map each literal appearing in the clause in a positive literal (with ), not appearing in the clause, and add one positive literal for every triplet, again not appearing in the triplets. Subsequently, we add one rule for each of the three values and three rules for each of the values . Finally, we add one fact for every literal . Conclusively, we have mapped every triplet in six RSDL rules. The resulting RSDL theory has a derivation containing at least one literal for each clause if and only if the original problem is a satisfiable clause. For example, consider the clause . Using and for the triplets, and for the elements in the triplets, the theory encoding the clause is:
In this paper we presented the general idea of how to develop a logic combining features for sub-structural logic and defeasible reasoning, and we provided some general results about meta-theoretic properties (e.g., decidability and computational complexity). More research is required to determine the correct boundary between decidable and undecidable problems for these types of hybrid combinations and to provide a full map of the computational complexity analysis of the various options. However, the outline we discussed in this section seems to indicate that this is not a straightforward task. In this paper, we did not address the issue of how to model the motivational attitudes of the agents, we left the investigation of how to extend the framework to integrate with the framework of [8, 7]. Related to this, we shall look at the problem of Business Process Compliance, in order to determine how to employ RSDL for marking up traces of processes corresponding to the execution of the a theory.
References
- [1] Antoniou, G., Billington, D., Governatori, G., Maher, M.J., Rock, A.: A family of defeasible reasoning logics and its implementation. In: Horn, W. (ed.) ECAI. pp. 459–463. IOS Press (2000)
- [2] Engberg, U., Winskel, G.: Completeness results for linear logic on petri nets. Ann. Pure Appl. Logic 86(2), 101–135 (1997)
- [3] Gaboardi, M., Marion, J.Y., Ronchi Della Rocca, S.: Soft linear logic and polynomial complexity classes. Electronic Notes in Theoretical Computer Science 205(C), 67–87 (2008)
- [4] Ghooshchi, N.G., van Beest, N., Governatori, G., Olivieri, F., Sattar, A.: Visualisation of compliant declarative business processes. In: EDOC 2017. pp. 89–94. IEEE Computer Society (2017)
- [5] Girard, J.Y.: Light linear logic. Information and Computation 143(2), 175–204 (1998)
- [6] Governatori, G., Olivieri, F., Scannapieco, S., Cristani, M.: Superiority based revision of defeasible theories. In: RuleML 2010. pp. 104–118. LNCS 6403, Springer (2010)
- [7] Governatori, G., Olivieri, F., Scannapieco, S., Rotolo, A., Cristani, M.: The rational behind the concept of goal. Theory and Practice of Logic Programming 16(3), 296–324 (2016)
- [8] Governatori, G., Rotolo, A.: BIO logical agents: Norms, beliefs, intentions in defeasible logic. Journal of Autonomous Agents and Multi Agent Systems 17(1), 36–69 (2008)
- [9] Kanovich, M., Ito, T.: Temporal linear logic specifications for concurrent processes. In: LICS 1997
- [10] Küngas, P., Matskin, M.: Linear logic, partial deduction and cooperative problem solving. In: DALT II. pp. 263–279. LNCS 3476, Springer (2004)
- [11] Nute, D.: Defeasible logic. In: Handbook of Logic in Artificial Intelligence and Logic Programming, vol. 3. Oxford University Press (1987)
- [12] Olivieri, F., Cristani, M., Governatori, G.: Compliant business processes with exclusive choices from agent specification. In: PRIMA 2015. pp. 603–612. LNCS 9387, Springer (2015)
- [13] Olivieri, F., Governatori, G., Scannapieco, S., Cristani, M.: Compliant business process design by declarative specifications. In: PRIMA 2013. pp. 213–228. LNCS 8291, Springer (2013)
- [14] Pham, D.Q., Harland, J.: Temporal linear logic as a basis for flexible agent interactions. In: AAMAS ’07. pp. 28:1–28:8. ACM (2007)
- [15] Pham, D.Q., Harland, J., Winikoff, M.: Modeling agents’ choices in temporal linear logic. In: DALT V. pp. 140–157. LNCS 5397, Springer (2008)
- [16] Rao, J., Küngas, P., Matskin, M.: Composition of semantic web services using linear logic theorem proving. Information Systems 31(4-5), 340–360 (2006)
- [17] Tanabe, M.: Timed petri nets and temporal linear logic. In: ICATPN 1997. pp. 156–174. LNCS 1248 (1997)