1 Introduction

1.1 Aim and methodological choices

This work concerns the possibility of using operational semantical frameworks for modeling the structure and dynamics of legal systems.

Operational semantics is a traditional approach to the formal modeling of various types of information-processing systems (Wegner 1968; Plotkin 1981), and in this work we adopt the general principles of the transition systems approach to operational semantics (Plotkin 1981), to model the structure and dynamics of situated legal systems.

We take H. Kelsen’s Pure Theory of Law (Kelsen 2009), and its notion of legal systems, as the theoretical basis of the work.Footnote 1 This allows us to concentrate on the structural and operational aspects of legal systems, while leaving aside “political” or “sociological” issues concerning the contents of the legal systems (e,g., the issue of the imports of morality or natural rights). Also, in a crucial way, we leave aside issues related to the legal reasoning and legal decision-making processes, which usually tend to lead the analysis away from the structural and operational aspects of legal systems, toward the logical aspects related to their contents.

To support such separation of concerns, and to justify the approach taken in the work, we argue in the paper that the formal modeling of the latter issues, which are tightly related to the scope of discretion of legal organs,Footnote 2 should proceed within semantical frameworks that are functionally orthogonal to the structural and operational one introduced here (orthogonality which, we claim, is precisely the idea underlying Kelsen’s conception of a pure theory of law Kelsen 2009).

Regarding motivations, the following two issues motivated the present work:

  1. 1.

    The research area of Multiagent Systems has advanced constantly, since the 1980s, to clarify the possible ways to use the notion of organization in the specification, design and operation of agent systems, but as we argued elsewhere (Costa 2014a, b, c), it seems that that work has restricted itself just to the intra-organizational level of concerns, having left almost untouched the inter-organizational level. This seems to have prevented a deeper exploration of the notion of agent society, in a more encompassing, sociological sense, as envisaged in the present work. We think that one of the reasons for the lack of attention to such inter-organizational (and other higher-level) issues may be the lack of a suitable formal notion of legal system for agent societies. Kelsen’s notion of legal system seems to fulfill such purpose, when construed as a situated legal system, as proposed in the present paper.

  2. 2.

    However, Kelsen’s theory of legal system has constantly been contested by rival theories, most notably those by R. Dworkin and H. Hart, but also the one by J. Raz. We also intend the paper, then, to show how the formalization introduced here may help both to clearly present the main concepts of Kelsen’s theory and to explain away some of the main issues raised in those contestations. For such purpose, the paper goes into some close analysis of certain central aspects of those rival theories.

1.2 Structure of the paper

The paper is structured as follows. Section 2 summarizes the concept of agent society that we use to situate legal systems.

Section 3 summarizes Kelsen’s informal concept of legal system.

Section 4 introduces informally the concept of situated legal system.

Section 5 presents our formalization of Kelsen’s concept of legal system.

Section 6 formally introduces the general features of the operational semantical framework that we later adopt to characterize the operational aspects of situated legal systems.

On the basis of the formalization of Kelsen’s concept of legal system (presented in Sect. 5) and of the general features of the operational semantical framework (presented in Sect. 6), Sect. 7 presents our formal concept of situated legal system.

Section 8 introduces, then, the operational semantical framework for situated legal systems.

Section 9 shows how the operational semantical framework introduced in Sect. 8 exposes (and supports the proof of) some of the main formal properties that situated legal systems inherit from Kelsen’s concept of legal system, namely: the action-based nature of the dynamics of legal systems; the orthogonality between structural and operational features, and the processes of legal reasoning and decision-making; the validity of norms; and the completeness of legal systems.

Section 10 briefly discusses certain misunderstandings that usually arise, concerning Kelsen’s notion of legal system, often motivated by confrontations with rival conceptions of legal systems, such as those by R. Dworkin and H. Hart (themselves self-declared to be “opposed” to each other).

Section 11 discusses those two rival conceptions in more detail, and also J. Raz’s meta-theoretical conception of what a theory of law should be.

Section 12 considers very briefly three complementary topics, relevant for the subject of the situated legal systems, namely, the issue of the formalization of history-savvy situated legal systems, the research on normativity in the Muiltiagent Systems area, adn the possibility of formalizing Kelsen’s concept of legal system in terms of the concepts developed in the theories of processes.

Section 13 illustrates the use of the proposed operational semantical framework in the context of agent-based social simulation studies.

Section 14 brings the Conclusion, and some prospects for the proposed notion of situated legal systems and for the proposed approach to their operational semantics.

1.3 A Caveat

This paper takes Kelsen’s concept of legal system “as is” [meaning, essentially as first presented in Kelsen (2009)], and attempts to give it a formalization that, to the best of our ability, is faithful to its original, informal presentation.

Thus, it is not the purpose of the present paper neither to “defend” Kelsen’s theory of law and the concept of legal system that it embeds, from the list of criticisms that have been raised against it, nor to “improve” it according to any more recently proposed conceptions (formal or informal).

That is, if any of those criticisms really apply to any of Kelsen’s theory, clearly it sould continue to apply to that theory when it is presented formally, for formalization is no salvation.

What we claim in this paper, and hope to have shown, even if preliminarily, in a sound way, is precisely that, in spite of whatever weaknesses it may have, Kelsen’s theory is strong enough to allow for a formal operational theory of legal systems, based on situating them in agent societies.

Thus, when “hunting faults” in the present paper, care should be taken to distinguish between faults in Kelsen’s theory (which are, of course, of Kelsen’s own responsibility, not ours) and faults in the proposed formalization (which are, of course, of our own exclusive responsibility, not Kelsen’s).

2 Agent societies

2.1 Tfhe concept of agent society

In the Multiagent Systems research area, the term organization seems to have been introduced by taking as a conceptual basis the seminal work by Fox (1979), who proposed that complex software systems be thought of in “organizational terms”, that is, in terms of the concepts of Organization Theory.

However, comparative theoretical social studies, like that by Burrell and Morgan (1979), have shown that there is a strong correlation between the conceptual paradigms that have traditionally been used in Sociology (i.e., the study of modern human societies) and in Organization Theory (i.e., the study of corporate organizations, typical of modern human societies).

Thus, it is no surprise that the study of the organization of multiagent systems has been loosely and indistinguishably phrased both in terms of agent organizations and in terms of agent societies, as any quick browse of the literature of the area can show.

In the former case, one can say that a multiagent system is construed as a corporation of agents, aiming to achieve a definite set of corporate goals, often stated from the point of view of the users of such agent corporation.

In the latter case, on the other hand, one can say that a multiagent system is construed as a society of agents, aiming to empower both the individual agents and the agent corporations that inhabit it, toward the achievement of their individual goals.

In our work (Costa and Dimuro 2009; Costa et al. 1994; Demazeau and Costa 1996) , we have engaged on the latter trend, and have tried to consistently use the term agent society with the following definite meaning (which, in connection to the architectural style presented in the next subsection, tries to capture the sense of the term “society” as it is commonly used in sociology Turner 2010):

An agent society is a multiagent agent system that is:

  • open: the agents can enter and leave the system freely;

  • organized: the working of the society is performed by articulated (possibly, hierarchically structured) organizational units (social groups, corporations, etc.), so that each agent may (potentially) distinguish between the individual processes and the social processes occurring in the society (i.e., between the processes performed by single agents and processes performed by sets of agents, e.g., organizational units);

  • persistent: the organizational forms of the organizational units that perform social processes, and the organizational form of the society as a whole, are able to persist in time, independently of which agents enter or leave the society (possibly, subject to a requirement of minimal population size);

  • situated: the agents operate in a definite (real or simulated) environment, whose objects may be involved in the individual and social processes of the society.

2.2 An architectural style for agent societies

Figure 1 illustrates an architectural style for agent societies Costa (2014c),Footnote 3 appropriate for formally situating legal systems, as explained below.

Fig. 1
figure 1

An architectural style for agent societies

There are four main architectural components in this style of architecture for agent societies: the populational structure, the organizational structure, the material environment, and the ideological structure.

The main features of these components are:

  1. 1.

    The populational structure, denoted by \({ Pop }\), encompasses the individual agents that inhabit the society, together with their behaviors, interactions, and personal cognitive structures.

  2. 2.

    The organizational structure, denoted by \({ Org }\), includes three organizational levels:

    1. (a)

      the micro-organizational level, denoted by \({ Org }_\omega\), which encompasses the social roles that the individual agents may enact, when operating in the organizational units of the meso-organizational level;

    2. (b)

      the meso-organizational level, denoted by \({ Org }_\mu\), which encompasses the organizational units that structure social roles in functional ways, some of which constitute the social groups, corporations, etc., of the agent society;

    3. (c)

      the macro-organizational level, denoted by \({ Org }_\Omega\), which encompasses social systems that structure organizational units in functional ways.

    So that \({ Org } = ({ Org }_\omega ,{ Org }_\mu ,{ Org }_\Omega )\).

  3. 3.

    A set of implementation relations between the components of the different levels, denoted by \({ Imp }\), which determine:

    1. (a)

      how components (and their behaviors and interactions) at each organizational level, participate in the implementation of the components (and their behaviors and interactions), at the next higher organizational level;

    2. (b)

      how individual agents (and their behaviors and interactions) participate in the implementation of the social roles (and their behaviors and interactions), at the micro-organizational level.

  4. 4.

    The material environment, denoted by \({ Env }\), which encompasses the set of material objects (and their causal interconnections) available for use in the material actions of the agents of the society.Footnote 4

  5. 5.

    The ideological structure, denoted by \({ Ideo }\), which encompasses beliefs, values, norms, and customs that are collectively established, and that the individual agents and organizational units may adopt (either individually or collectively), when inhabiting the society.

In the present work, we take this architectural style for agent societies, but in its time-variant version (Costa and Dimuro 2009). Thus, an agent society is taken here to be a time-indexed structure

$$\begin{aligned} { AgSoc } = ({ Pop }^t,{ Org }^t,{ Imp }^t, { Env }^t,{ Ideo }^t)_{t \in T} \end{aligned}$$

such that the contents of the components of the agent society vary with time (e.g., \({ Pop }^t\) is the populational structure at time \(t \in T\), where \(T\) is the time-structure, see Sect. 5).

2.3 Core operational structure of an agent society

In Fig. 1, one may note what we call the core operational structure of an agent society, namely, the set of processes (behaviors and interactions) occurring both within each organizational level (micro, meso, macro), and between these different organizational levels.

Such processes constitute the core operational structure of an agent society, in the sense that they are the processes that organizationally support the accesses of the individual agents and organizational units to the public ideological structure, and to the material environment.

2.4 Connection with situated legal systems

Notice that, regarding the structure of the situated legal systems introduced in Sect. 7, the set of legal norms (i.e., the legal order \({\textit{LOrd}}^t\)) belongs to the ideological structure of the agent society where the legal system is situated.

The set of social roles and organizational units involved in the operation of the legal system, the set of so-called legal organs (\({\textit{LOrg}}^t\)), as well as the legal system itself, taken as a functional system of the agent society, belong to the core operational structure of that society.

The record of legal facts (\({\textit{LFact}}^t\)), as an auxiliary component that is internal to the legal system, and that (in principle) should be functionally accessible only to the legal organs, may also be taken to belong (in the form of, e.g., an organizational artifact Hübner et al. 2010) to the core operational structure of the agent society.

3 A summary of Kelsen’s concept of legal system

We take as the main reference for the concept of a legal system situated in an agent society the general concept of legal system proposed by Kelsen (2009) (see also Costa 2014d), who states that a legal system is a structure that, at each instant of time, encompasses:

  • a set of valid legal norms (called a legal order), i.e., a set of statements validly determining obligations, prohibitions, permissions, and authorizations of conducts for its legal subjects Footnote 5;

  • a set of legal subjects, i.e., a set of agents that are subject to the legal norms of the legal system;

  • a set of possible legal acts, i.e., a set of acts legally performed, and through which the set of valid legal norms may evolve in time (through norm creations and derogations), and the sanctions enforcing the valid legal norms may be performed;

  • a set of legal organs, i.e., the subset of legal subjects that are legally authorized to perform legal acts.

The basic form of a legal norm, which Kelsen calls an imputation (Kelsen 2009), is one where the norm indicates both:

  • a material sphere of validity, i.e., a conduct (or, respectively, an omission of a conduct) that ought not be performed by the legal subjects of the legal system;

  • a sanction, which ought to be executed by a legal organ, in case a legal subject does perform the conduct (or, respectively, does perform the omission of the conduct).

The understanding of the notion of imputation is crucial for the proper understanding of Kelsen’s conception of law.Footnote 6 What he aims with this notion is the determination of a distinction between two ways of presenting legal normsFootnote 7:

  • the usual way of presenting legal norms, namely, through texts written in standard natural language;

  • the formal way of presenting legal norms, namely, through legal norms construed as imputations.

One can try to understand such distinction in analogy with the distinction introduced by N. Chomsky in the realm of linguistics (Chomsky 2002), between the surface structure of a linguistic expression (the one that people ordinarily employ in their conversations) and the deep structure of the linguistic expression (the one that the linguist makes use of to analyse that linguistic expression).Footnote 8

Kelsen’s notion of imputation is the operational means he has found to allow for the presentation of the deep structure of legal norms.

As a simple example: any two laws presented in the concrete form

  • \(L_1\): It is forbidden to perform a conduct of type \(C_1\).

  • \(L_2\): Any conduct not complying with law \(L_1\) is liable to be sanctioned by a conduct of type \(C_2\).

may be expressed, in an abstract form, by a single imputation that, in the formal notation introduced in Sect. 5, is given byFootnote 9: \(C_1 \Downarrow C_2\).

4 The informal concept of situated legal system

In this section, we deal with the concept of sjituated legal system in a preliminary, informal way, reserving the development of the formal presentation for the next sections.

We call situated legal system any legal system operationally coupled to the core operational structure of an agent society, and through the latter to the individual and social processes performed by the individual agents and organizational units that inhabit that society.

The essential requirement of the operational coupling of a legal system to the core operational structure of a target agent society is that there are enough individual agents and organizational units in the agent society capable of performing the behaviors and interactions required by the legal organs of the legal system, so that those individual agents and organizational units can implement the legal functions performed by those legal organs.

In particular, such functional implementation Footnote 10 should allow for the performance of the legal monitoring processes (through which the legal organs of the legal system monitor the conducts of the legal subjects) and of the legal enforcement processes (through which those legal organs act on the legal subjects and their conducts).

Fig. 2
figure 2

Basic structure of a situated legal system

Figure 2 illustrates the main components and interactions of a situated legal system.

More specifically, the figure shows:

  • the legal system \({ LS }\);

  • the agent society \({ AgSoc }\) and its social agents (individuals and organizational units), which constitute the set of legal subjects of \({ LS }\);

  • the social interactions between the social agents;

  • the legal order \({\textit{LOrd}}\) and set of legal organs \({\textit{LOrg}}\);

  • the record of legal facts \({\textit{RLFact}}\) Footnote 11;

  • the reading and writing processes that the legal organs may perform to manage the set of recorded legal facts;

  • the legal monitoring processes and the legal enforcement processes.

Other important, but secondary, components of a situated legal system are not shown in Fig. 2:

  • a way for the legal subjects to have reading access to the legal order \({\textit{LOrd}}\) and to the record of legal facts \({ RLFact }\);

  • given the fact that legal organs may have to abide by legal norms concerned with their official conducts, a way to allow some legal organs to monitor the conducts of other legal organs, to check such abiding.

Such secondary components are not shown in the figure because they are relevant only for the reasoning and decision-making processes of the (social or legal) individual agents or social groups, or for complementary features of the operation of situated legal systems, not for their basic mode operation, which is the one we are concerned here.

The record of legal facts \({ RLFact }\) is essential for the transition systems approach adopted in the present work, because it is in the form of legal facts that the legal organs keep a record of the evolution of the operational state of the situated legal system, and of its legal processes.Footnote 12

In the next section, we present our formalization of Kelsen’s concept of legal system (Kelsen 2009), on which we base our definition of the structural aspects of situated legal systems. The operational aspects of situated legal systems are defined in Sect. 8.

5 A formal presentation of Kelsen’s concept of legal system

The formalization of Kelsen’s concept of legal system, presented below,Footnote 13 allows us to construe legal systems as action systems (with legal acts and social acts taken as actions), and core operational structures of agent societies as operational semantical domains for legal systems (see Sect. 8).

For simplicity, we take into account, in the present section, only the personal and material spheres of validity of legal norms. The temporal and spatial spheres are taken into account only in the illustrative case presented in Sect. 13.

The formal definition of legal systems proceeds through the following steps:

  • basic concepts: the universes, variables and operations used in the definition;

  • basic constructs: imputations and authorizations;

  • legal norms

  • legal orders, legal organs, legal acts, and legal facts

  • concept of legal system

  • temporal evolution of legal systems

5.1 Basic concepts

  1. 1.

    Universes of basic elements:

    • Agents (both individuals and organizational units): \({\mathbf {Ag}}\).

    • Conducts: \({\mathbf {Cd}}\).

    • Legal acts: \({\mathbf {LAct}}\).

    • Legal norms: \({\mathbf {LNrm}}\).

    • Legal orders: \({\mathbf {LOrd}}\).

    • Systems of legal organs: \({\mathbf {LOrg}}\).

    • Legal systems: \({\mathbf {LSys}}\).

    • Legal facts: \({\mathbf {LFact}}\).

    • Records of legal facts: \({\mathbf {RLFact}}\).

    • Authorizations: \({\mathbf {Auth}}\).

    • Basic imputations: \({\mathbf {BasImpt}}\).

    • Addressed imputations: \({\mathbf {AdImpt}}\).

    • Individualized imputations: \({\mathbf {IndImpt}}\).

    • General imputations: \({\mathbf {Impt}} = {\mathbf {BasImpt}} \cup {\mathbf {AdImpt}} \cup {\mathbf {IndImpt}}\).

    • States of agent societies: \({\mathbf {StAgSoc}}\).

    • Time: \(T = \{0, 1, 2, \ldots \}\) (linearly ordered).

  2. 2.

    Universes of types Footnote 14:

    • Agent types: \(\wp ({\mathbf {Ag}})\).

    • Conduct types: \(\wp ({\mathbf {Cd}})\).

  3. 3.

    Variables running on universes and types:

    • Agents: \(ag \in {\mathbf {Ag}}\).

    • Agent types: \({ Ag } \in \wp ({\mathbf {Ag}})\).

    • Legal acts: \({ lact } \in {\mathbf {LAct}}\).

    • Conducts: \(c \in {\mathbf {Cd}}\).

    • Conduct types: \({ Ct } \in \wp ({\mathbf {Cd}})\).

    • Legal orders: \({\textit{LOrd}} \in {\mathbf {LOrd}}\).

    • Systems of legal organs: \({\textit{LOrg}} \in {\mathbf {LOrg}}\).

    • Legal systems: \({ LS } \in {\mathbf {LSys}}\).

    • Legal facts: \({\textit{LFact}} \in {\mathbf {LFact}}\).

    • Sets of legal facts: \({\textit{LFact}} \in \wp ({\mathbf {LFact}})\)

    • Records of legal facts: \({ RLFact } \in {\mathbf {RLFact}}\).

    • States of agent societies: \({\mathrm {StAgSoc}} \in {\mathbf {StAgSoc}}\).

    • Time instants: \(t \in T\).

  4. 4.

    Operations on universes:

    • Omission of conduct:

      An operation \(\overline{^{\ }} : {\mathbf {Cd}} \rightarrow {\mathbf {Cd}}\) such that conduct \(\overline{c}\) is the omission of the conduct \(c \in {\mathbf {Cd}}\).Footnote 15 In particular, it is assumed that \(\overline{\overline{c}} = c\). Also, we state that \(\overline{{ Ct }}={{\mathbf {Cd}}}-{ Ct }\) is the type of omitted conducts of type \({ Ct }\).

5.2 Basic constructs

In Kelsen’s theory of norms (Kelsen 2009), legal norms are formally construed as imputations.Footnote 16 Authorizations, on the other hand, are construed as legal acts (implicitly or explicitly) performed through the issuing of legal norms.Footnote 17

5.2.1 Authorizations

An (explicit) authorization is a construct of the form \(({ Ag },{ Ct }) \in \wp ({{\mathbf {Ag}}}) \times \wp ({\mathbf {Cd}})\) which states that agents of type \({ Ag }\) are authorized to perform conducts of type \({ Ct }\).

The universe of all authorizations is denoted by \({\mathbf {Auth}}\). We denote \(({ Ag },{ Ct }) \in {{\mathbf {Auth}}}\) by \({ Auth }({ Ag },{ Ct })\).

Remark the difference of treatment between the operational and the legal conditions for the efficacy of authorizations. The construct above is the operationally unconditional form of the authorization construct, which captures acts of authorization that are operationally efficacious in an unconditional way. Operationally conditional authorizations may be defined by extending the construct thus: \({ Auth }({ Ag },{ Ct },{ Cond })\), where \({[ Cond }\) indicates the operational condition under which the act of authorizing \({ Ag }\) to perform conducts of type \({ Ct }\) can be operationally efficacious. The legal conditions of the efficacy of authorizations, on the other hand, are determined by the (conditional or unconditional) character of the legal norms from which such authorizations derive.

In the operational semantical framework introduced below (Sect. 8), the performance of an act of authorization may have to be recorded as a legal fact, in the record of legal facts \({\mathrm {RLFact}}\) that is part of the configuration of the legal system, as it is modeled by the framework. We use, then, the same construct, \({ Auth }({ Ag },{ Ct })\), to denote such recorded legal fact.

5.2.2 Imputations

Imputations may be basic, addressed, or individualized.

  • \({\mathbf {BasImpt}}\) is the set of basic imputations.

    A basic imputation is a pair of types of conducts \({ impt } \in \wp ({\mathbf {Cd}}) \times \wp ({\mathbf {Cd}})\), so that if \({ impt } = ( Ct _1,{ Ct }_2)\) one says that \({ impt }\) establishes the type of conducts \({ Ct }_1\) as the type of its condition, and the type of conducts \({ Ct }_2\) as the type of its consequence.

    Whenever \({ impt } = ({ Ct }_1,{ Ct }_2)\) we denote \({ impt }\) by \(Ct _1 \Downarrow { Ct }_2\).Footnote 18

    The legal reading of \({ Ct }_1 \Downarrow { Ct }_2\) is: The performance of a conduct of type \({ Ct }_1\) by a legal subject has, as a consequence, that a conduct of type \({ Ct }_2\) ought to be performed, by a legal organ, as a sanction for that performance.Footnote 19

  • \({\mathbf {AdImpt}}\) is the set of addressed imputations.

    An addressed imputation is a tuple \({\textit{adimpt}} \in \wp ({\mathbf {Cd}}) \times \wp ({\mathbf {Cd}}) \times \wp ({\mathbf {Ag}}) \times \wp ({\mathbf {Ag}})\), so that if \({\textit{ adimpt }}=({ Ct }_1,{ Ct }_2,{ Ag }_1,{ Ag }_2)\) we say that the basic imputation \({\textit{ Ct }}_1 \Downarrow { Ct }_2\) is addressed to agents of type \({ Ag }_1\) and \({ Ag }_2\).

    That means: if \({\textit{ adimpt }}=({ Ct }_1,{ Ct }_2,{ Ag }_1,{ Ag }_2)\) then a conduct of type \({ Ct }_1\) is a condition for the addressed imputation \({\textit{ adimpt }}\) only if it is performed by an agent of type \({ Ag }_1\), and a conduct \({ Ct }_2\) is a consequence of the addressed imputation \({\textit{ adimpt }}\) only if it is performed by an agent of type \({ Ag }_2\).

    The legal reading is: If a legal subject of type \({ Ag }_1\) performs a conduct of type \({ Ct }_1\), then a legal organ of type \({ Ag }_2\) ought to perform a conduct of type \({ Ct }_2\), as a sanction for that performance.

    If \({\textit{ adimpt }} = ({ Ct }_1,{ Ct }_2,{ Ag }_1,{ Ag }_2)\) we denote \({\textit{adimpt}}\) by \(({ Ag }_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2)\).

  • \({\mathbf {IndImpt}}\) is the set of individualized addressed imputations.

    To individualize an addressed imputation is to instantiate at least one of its addressees to an individual agent (or, individual organizational unit) of the corresponding type.

    An imputation, thus, may be individualized either in its condition, or in its consequence, or in both its condition and its consequence. An imputation individualized in both its addressees is called a completely individualized imputation.

    For example, the addressed imputation \(({ Ag }_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2)\) may be individualized either as \((ag_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2)\), or as \(({ Ag }_1,{ Ct }_1) \Downarrow (ag_2,{ Ct }_2)\), or else as \((ag_1,{ Ct }_1) \Downarrow (ag_2,{ Ct }_2)\), for \(ag_1 \in { Ag }_1\) and \(ag_2 \in { Ag }_1\).

5.2.3 Addressing and individualization as operations

The following operations may be defined, for convenience:

The operation of addressing a basic imputation is the operation \({\mathrm {addr}} : {\mathbf {Impt}} \times \wp ({\mathbf {Ag}}) \times \wp ({\mathbf {Ag}}) \rightarrow {\mathbf {AdImpt}}\), given by \({\mathrm {addr}}({ Ct }_1 \Downarrow { Ct }_2,{ Ag }_1,{ Ag }_2)=({ Ag }_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2)\).

The operation of complete individualization of an addressed imputation is the operation \({\mathrm {indiv}} : {\mathbf {AdImpt}} \times {\mathbf {Ag}} \times {\mathbf {Ag}} \rightarrow {\mathbf {IndImpt}}\), given by \({\mathrm {indiv}}(({ Ag }_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2),ag_1,ag_2)=(ag_1,{ Ct }_1) \Downarrow (ag_2,{ Ct }_2)\), for \(ag_1 \in { Ag }_1\) and \(ag_2 \in { Ag }_2\).

Analogous operations can be defined for the partial individualization of addressed imputations.

An operation of individualization of authorizations may also be defined.

5.3 Legal norms

We make use of the basic constructs as means for the definition of legal norms. In particular, legal norms are based on addressed imputations (Kelsen 2009).

5.3.1 General form of legal norms

In the process of construing combinations of basic constructs as legal norms, the notion of imputation goes through a slight specialization, essential to Kelsen’s concept of legal norm (Kelsen 2009): for an addressed imputation of the form \(({ Ag }_1,{ Ct }_1) \Downarrow ({ Ag }_2,{ Ct }_2)\) to be taken as a legal norm, its consequence should be construed as an authorization for an agent of type \({ Ag }_2\) (to be individualized at the moment of the application of the legal norm) to perform a conduct of type \({ Ct }_2\).

We thus write the general form of legal norms as imputations of the form

$$\begin{aligned} ({ Ag }_1,{ Ct }_1) \Downarrow { Auth }({ Ag }_2,{ Ct }_2) \end{aligned}$$

for some authorization \({ Auth }({ Ag }_2,{ Ct }_2) \in {\mathbf {Auth}}\).

The legal reading of such a formula is: A performance of a conduct of type \({ Ct }_1\) by a legal subject of type \({ Ag }_1\) has as a consequence that a legal organ of type \({ Ag }_2\) ought to be authorized to perform a conduct of type \({ Ct }_2\), as a sanction for that performance.

This general form of legal norms indicates a very important and typical characteristic of Kelsen’s view of law: a legal norm should be seen not as the statement of a prohibition or an obligation, directly addressed to the legal subjects whose behaviors it intends to control, but as an authorization addressed to a legal organ, namely, an authorization to apply, as a sanction, a conduct of the type specified as the consequence of the imputation that formally represents the legal norm.

That is, from Kelsen’s point of view, a legal system is a social control system that operates by controling directly, through the authorizations stipulated in the legal norms, the system of legal organs responsible for its operation, to the effect that it controls only indirectly, through the possibility of sanctions by those legal organs, the system of social agents legally subject to it.Footnote 20

5.3.2 Main forms of legal norms

There are three main specific forms that legal norms may assume in legal systems: prohibition, imposition, and strong permission. A fourth specific form, weak permission, is defined by the non-existence of any legal norm of any kind involving the concerned conduct. Obligations are defined on the basis of impositions (Kelsen 2009).

Only prohibitions and impositions, however, can be defined independently of a definite notion of validity of legal norms. Strong and weak permissions can only be defined in the context of such a definite notion. So, this sub-section limits itself to prohibitions and impositions. Strong an weak permissions are defined only after a notion of validity of legal norms is presented, in the next sub-section.

  • A prohibition is a legal norm of the form \(({ Ag }_1,{ Ct }_1) \Downarrow { Auth }({ Ag }_2,{ Ct }_2)\) in which the consequence should be understood as an authorization for a legal organ of type \({ Ag }_2\) (to be properly individualized at the moment of the application of the legal norm) to perform a conduct of type \({ Ct }_2\), as a sanction for the performance of a conduct of type \({ Ct }_1\) (taken then as a prohibited conduct) by a legal subject of type \({ Ag }_1\).

    Clearly, prohibitions are the essential meaning of imputations.

  • The imposition of a conduct is the prohibition of the omission of the conduct: an imposition is a legal norm of the form \(({ Ag }_1,\overline{ Ct _1}) \Downarrow { Auth }({ Ag }_2,{ Ct }_2)\), meaning that a legal organ of type \({ Ag }_2\) (to be properly individualized at the moment of the application of the norm) ought to be authorized to perform a conduct of type \({ Ct }_2\) as a sanction for the performance of a conduct of type \(\overline{ Ct _1}\) (that is, for an omission of the performance of a conduct of type \({ Ct }_1\)) by a legal subject of type \({ Ag }_1\).

    In general, if conducts of type \({ Ct }\) are imposed on legal subjects of type \({ Ag }\), one says that the performance of conducts of type \({ Ct }\) is a legal obligation of the legal subjects of type \({ Ag }\).

We illustrate the use of the formal notions of prohitions and impositions by formalizing the distinction between fines and taxes.

A fine is a sanction, in the form of the charge of an amount of money, applied to a legal subject for his/her performance of a prohibited type of conduct. Thus, a legal norm determining a fine of value \(v\) for the performance of a conduct of type \(C\) can be formalized, in a schematic way, as the prohibition: \(({ Ag }_1,C) \Downarrow { Auth }({ Ag }_2,{ fine }(v))\).

On the other hand, a tax is an amount of money, charged from a legal subject, for some good he has (or, service he performs or receives), but with such possession or performance not taken to be legally prohibited, so that the charging of the tax should not be taken as a sanction.

As the charging of a tax usually happens to be efficacious, however, only if a sanction is determined for the avoidance of the payment of the tax, we need to express a legal norm determining the payment of a tax of value \(v\), regarding a good or service \(g\), subject to a sanction \(S\) in case of evation, as: \(( Ag _1,\overline{ tax (v,g)}) \Downarrow Auth ( Ag _2,S)\).

The formal difference between the two imputations

$$\begin{aligned} ( Ag _1,C) \Downarrow Auth ( Ag _2, fine (v)) \;\;\; \text{ and } \;\;\; ( Ag _1,\overline{ tax (v,g)}) \Downarrow Auth ( Ag _1,S) \end{aligned}$$

illustrates not only the legal difference between the sanctioning through a fine and the charging of a tax,Footnote 21 but also the general idea of how the formal notion of imputation may be used to clarify concepts involving legal norms.

5.3.3 Conditional legal norms

The above forms of legal norms are unconditional forms. Often, legal norms are defined to be applicable only under certain definite conditions (either regarding the underlying agent society or regarding the legal system itself).

We adopt the following schematic form, to denote conditional legal norms:

figure a

where \({\textit{ Cond }}_1,\ldots ,{\textit{ Cond }}_n\) are the conditions to which the legal norm is subject.

5.4 Legal orders, legal organs, legal acts, and the record of legal facts

5.4.1 Legal orders

A legal order is a time-indexed family of sets of legal norms, that is, \({\textit{LOrd}} : T \rightarrow \wp ({\mathbf {LNrm}})\). For any legal order \({\textit{LOrd}} \in {\mathbf {LOrd}}\), \({\textit{LOrd}} ^t \in \wp ({\mathbf {LNrm}})\) denotes the set of legal norms of the legal order \({\textit{LOrd}}\), at the time \(t\).

The set of legal norms \(LOrd ^t\) that belong to a legal order \({\textit{LOrd}}\) at a given time \(t\) is the set of legal norms that are said to be valid, at that time.

5.4.2 Spheres of validity of legal norms

In this section, we have omitted the specification of the spheres of validity space and time, in the forms of legal norms that we have defined above.

They can be be seamlessly introduced in those forms, however, by introducing temporal and spatial parameters in the formulation of norms. For instance, we may define the time \(t\) and space \(s\) of validity of a prohibition by

$$\begin{aligned} ( Ag _1, Ct _1) \Downarrow ^{t,s} Auth ( Ag _2, Ct _2) \end{aligned}$$

5.4.3 Legal organs

Legal organs are agents that are authorized by valid legal acts of authorization to perform certain legal acts.

A system of legal organs is a time-indexed family of sets of legal organs \({\textit{LOrg}} : T \rightarrow \wp ({\mathbf {Ag}})\). For any system of legal organs \({\textit{LOrg}} \in {\mathbf {LOrg}}\), \({\textit{LOrg}} ^t\) denotes the set of legal organs of \({\textit{LOrg}}\) at the time \(t\).

The definition of the set of legal organs of a given legal system, at any time, depends on what legal authorizations are valid in that legal system at that time. Thus, it happens that \(ag \in {\textit{LOrg}} ^t\) if and only if there is, at time \(t\), a valid individualized authorization \({\textit{Auth}} (ag,Ct)\), for some type of conduct \(Ct\).

Formally: \(ag \in {\textit{LOrg}} ^t\) if and only if \({\textit{Auth}} (ag,Ct) \in RLFact ^t\), that is, if and only if \({\textit{Auth}} (ag,Ct)\) is a legal fact at time \(t\) (see item (d), below).

5.4.4 Legal acts and the record of legal facts

A legal act is a conduct for which there is a valid authorization authorizing an agent (then said to be a legal organ) to perform it.

Thus, the performance of a conduct of type \(Ct\) at the time \(t\), by an agent \(ag\) is the performance of a legal act if and only an individualized authorization \({\textit{Auth}} ( ag , Ct )\) is a legal fact at time \(t\), that is, \({\textit{Auth}} ( ag , Ct ) \in RLFact ^t\).

There are two general types of conducts that may be authorized as legal acts (see Sect. 7):

  • External conducts:

    • That is, conducts impacting the agent society where the legal system is situated, including the performance of sanctions.

  • Internal conducts:

    • That is, conducts impacting the internal structure and operation of the legal system itself, including the creation and derogation of legal norms,Footnote 22 creation and cancellation of legal authorizations, and the recording and deletion of legal facts.

As will be seen below, the creation and cancellation of authorizations, including the creation and cancellation of authorizations to perform authorizations, are treated as special cases of creation and deletion of legal facts.

We focus, first, on the two main types of internal conducts, namely, creation and derogation of legal norms:

  • Creation of a legal norm in a legal order \({\textit{LOrd}}\) is the operation that includes a legal norm in the given legal order, at a given time. Creation of a legal norm at a time \(t\) is, thus, the operation \(createlnrm : {\mathbf {LNrm}} \times {\mathbf {LOrd}} \rightarrow {\mathbf {LOrd}}\) defined by \({\textit{createlnrm}} ( nrm , {\textit{LOrd}} ^t)= {\textit{LOrd}} ^t \cup \{ nrm \}\), for any legal norm \(nrm \in {\mathbf {LNrm}}\), such that \(nrm \not \in LOrd ^t\).

    An important condition for the validity of the legal norms of a given legal system, at a given time \(t\), is that legal norms be created (i.e., added to the legal order) only in a legal way, that is, through legal acts. Thus, if it happens that a legal norm \(nrm\) and a legal order \({\textit{LOrd}}\) are such that \(nrm \not \in LOrd ^{t''}\) but \(nrm \in LOrd ^t\), for some \(t^{\prime\prime} < t\), then it must have happened a legal act of creation \({\textit{createlnrm}} ( nrm , {\textit{LOrd}} ^{t'})\), at some time \(t'\), with \(t^{\prime\prime} \le t' < t\), and it must have occured no derogation of \(nrm\) between \(t'\) and \(t\).

  • Derogation of a legal norm is the operation that removes a legal norm from a given legal order, at a given time. Derogation of a legal norm from a legal order \({\textit{LOrd}}\), at a time \(t\), is the operation \({\textit{deroglnrm}} : {\mathbf {LNrm}} \times {\mathbf {LOrd}}\rightarrow {\mathbf {LOrd}}\) defined by \({\textit{deroglnrm}} ( nrm , {\textit{LOrd}} ^t)= {\textit{LOrd}} ^t - \{ nrm \}\), for any legal norm \(nrm \in {\textit{LNrm}}\), such that \(nrm \in {\textit{LOrd}} ^t\).

    An important condition for the valid derogation of valid legal norms is that valid legal norms be derogated from legal orders in a legal way, that is, through legal acts. Thus, if it happens that a legal norm \(nrm\) and a legal order \({\textit{LOrd}}\) are such that \(nrm \in {\textit{LOrd}} ^{t''}\), but \(nrm \not \in {\textit{LOrd}} ^t\), for some \(t'' < t\), then it must have happened a legal act of derogation \({\textit{deroglnrm}} ( nrm , {\textit{LOrd}} ^{t'})\) at some time \(t'\), with \(t'' \le t' < t\), and it must have occurred no creation of \(nrm\) between \(t'\) and \(t\).

  • As a consequence, a legal norm \(N \in {\mathbf {LNrm}}\) is valid in a legal order \({\textit{LOrd}}\), at a given time \(t\), if and only \(N \in {\textit{LOrd}} ^t\). Thus, given a legal order \({\textit{LOrd}}\), we say that \({\textit{LOrd}} ^t\) is the set of valid legal norms of \({\textit{LOrd}}\), at time \(t\).

We focus, next, on the auxiliary internal conducts of creation and deletion of legal facts:

  • A record of legal facts is a time-indexed family of sets \({\textit{RLFact}} : T \rightarrow \wp ({\mathbf {LFact}})\), so that for any \(t \in T\), \({\textit{RLFact}} ^t\) is the set of legal facts that are recorded in \({\textit{RLFact}}\), at time \(t\).

  • We denote each operation of recording and deletion of legal facts in (from) \({\textit{RLFact}}\) by \({\textit{recordlfct}} : {\textit{LFact}} \times \wp ({\mathbf {LFact}}) \rightarrow \wp ({\mathbf {LFact}})\) and \({\textit{deletelfct}} : {\textit{LFact}} \times \wp ({\mathbf {LFact}}) \rightarrow \wp ({\mathbf {LFact}})\), so that \({\textit{recordlfct}} (lfact, {\textit{RLFact}} ^t) = {\textit{RLFact}} ^t \cup \{lfact\}\), whenever \(lfact \not \in RLFact ^t\), and \(deletelfct (lfact, RLFact ^t) = RLFact ^t - \{lfact\}\), whenever \(lfact \in RLFact ^t\), for any time \(t\).

  • Often, the recording and deletion of legal facts are implict consequences of a legal act, so that the operations \(recordlfct\) and \(deletelfct\) need not always be explicitly indicated.

  • The record of legal facts \(RLFact\) is an auxiliary device introduced in the formalization of Kelsen’s concept of legal system to allow the presentation of the dynamics of such systems in terms of transition systems.Footnote 23 The justification of our using of transition systems for the formalization of Kelsen’s concept of legal system, and the possibility of formalizing it in an alternative way, in terms of process-based models, where events are taken as the basic notions, is briefly discussed in Sect. 12.

  • We determine no specific syntactical requirements for the denotation of legal facts, except for the requirement that such denotation should accomodate constructs equivalent to those used in the present paper, for the types of legal facts that it mentions.

Finally, we focus on the internal conducts of creation and cancellation of authorizations:

  • Creation of an authorization is the operation that includes an authorization into a given record of legal facts. Creation of an authorization is thus the operation \(createlauth : {\mathbf {Auth}} \times \wp ({\mathbf {LFact}}) \rightarrow \wp ({\mathbf {LFact}})\) defined, for the time \(t\) and record of legal facts \(RLFact\), by \(createlauth ( auth , RLFact ^t) = record ( auth , RLFact ^t)\).

  • Cancellation of authorization is the operation that removes an authorization from a given record of legal facts. Cancellation of an authorization is thus the operation \(cancellauth : {\mathbf {Auth}} \times \wp ({\mathbf {LFact}}) \rightarrow \wp ({\mathbf {LFact}})\) defined, for the time \(t\) and record of legal facts \(RLFact\), by \(cancellauth ( auth , RLFact ^t) = delete ( auth , RLFact ^t)\).

  • An authorization created in a legal way is a legal authorization. Similarly with the case of the creation and derogation of valid legal norms, then, an important condition for the creation and cancellation of legal authorizations is that they occur in a legal way, that is, under the condition of being legally authorized.

  • If necessary, one may define the set of legal authorizations of a given legal system, at a time \(t\), by \(LAuth ^t=\{ Auth (ag,Ct) \mid Auth (ag,Ct) \in RLFact ^t\}\).

5.5 Permissions and subjective rights

In this section, we present the difference between strong and weak permissions, which was delayed to this point due to its dependence on the definition of the validity of legal norms. In addition, we present the notion of subjective right, which also depends on the notion of validity of legal norms.

5.5.1 Strong permissions and weak permissions

Given the definition of the set of valid legal norms of a given legal order at a given time, we can now define the two special types of legal norms, whose definitions we have postponed: strong permissions and weak permissions (Kelsen 2009).

  • The strong permission of a conduct is the partial derogation of an existent prohibition of the conduct, so that the conduct becomes permitted for a particular subtype of agents after that partial derogation occurs.

    Formally: a conduct of type \(Ct _1 \in \wp ({\mathbf {Cd}})\) is strongly permitted in a legal order \(LOrd\) at the time \(t\) for the type of agents \(Ag '_1\) if and only if it happens that:

    • at time \(t'' < t\), \(Ct _1\) is prohibited for a class of agents \(Ag _1\) that is a super-class of \(Ag '_1\), i.e.: \(Ag '_1 \subseteq Ag _1\) and \(( Ag _1, Ct _1) \Downarrow Auth ( Ag _2, Ct _2) \in LOrd ^{t''}\), for some type of agents \(Ag _2\) and conduct \(Ct _2\);

    • at time \(t'\), with \(t''\,< t'\,< t\), there is a derogation \(deroglnrm (( Ag _1, Ct _1) \Downarrow Auth ( Ag _2, Ct _2), LOrd ^{t'})\), and at the same time \(t'\) a creation operation \(createlnrm (( Ag _1 - Ag '_1, Ct _1) \Downarrow Auth ( Ag _2, Ct _2), LOrd ^{t'})\), which together reduce the scope of the prohibition of \(Ct _1\) to the agents of type \(Ag _1 - Ag '_1\), i.e.: so that \(( Ag _1- Ag '_1, Ct _1) \Downarrow Auth ( Ag _2, Ct _2) \in LOrd ^{t'+1}\);

    • no other creation or derogation operation concerning \(Ct _1\) and \(Ag '_1\) (or its subclasses) occurs between \(t'\) and \(t\).

  • The weak permission of a conduct is the lack of any authorization, prohibition, imposition, or strong permission, involving that conduct.

5.5.2 Subjective rights

Whenever an imposition \(( Ag _1,\overline{ Ct _1}) \Downarrow Auth ( Ag _2, Ct _2)\) is valid in a legal order, at a time \(t\), so that the performance of conducts of type \(Ct _1\) is an obligation of the agents of type \(Ag _1\), at time \(t\), one says that the performance of conducts of type \(Ct _2\) is a subjective right of the agents of type \(Ag _2\), at time \(t\).

A typical example would be: the right to sue a merchant for not delivering a good that has been paid.

5.6 Concept of legal system

Formally, we state that a legal system over the universes of legal norms \({\mathbf {LNrm}}\), agents \({\mathbf {Ag}}\), and conducts \({\mathbf {Cd}}\), is a time-indexed structure Footnote 24 \(LS = (\{ LOrd ^t\}_{t \in T},\{ LOrg ^t\}_{t \in T}, \{ RLFact ^t\}_{t \in T}, createlnrm , deroglnrm , createlauth , cancellauth , recordlfct , deletelfct )\) where:

  • \(LOrd ^t\) is the legal order at time \(t\);

  • \(LOrg ^t\) is the system of legal organs at time \(t\);

  • \(RLFact ^t\) is the record of legal facts at time \(t\);

  • \(LOrd ^0 \ne \emptyset \ne LOrg ^0\) [a requirement emphasized by Raz (1970)];

  • \(createlnrm\), \(deroglnrm\), \(createlauth\), \(cancellauth\),\(recordlfct\) and \(deletelfct\) are as defined above.

5.7 Temporal evolution of legal systems

A legal system functions, at each time \(t\), through the performance of legal acts by the legal organs that exist in the system at that time \(t\).

The temporal evolution of a legal system is given by the temporal evolution of its legal state (i.e., the structure composed of its legal order, system of legal organs, and record of legal facts), according to the legal acts validly performed, at each time \(t\), by the legal organs that exist in the system at that time \(t\).

We write \(LS ^t = ( LOrd ^t, LOrg ^t, RLFact ^t)\) for the legal state of a legal system \(LS\) at time \(t\), so that the temporal evolution of the legal system \(LS\) is given by the sequence of legal states

$$\begin{aligned} LS = LS ^0, LS ^1,\ldots \end{aligned}$$

that is,

$$\begin{aligned} LS =( LOrd ^0, LOrg ^0, RLFact ^0), ( LOrd ^1, LOrg ^1, RLFact ^1),\ldots \end{aligned}$$

where legal orders evolve according to the legal performance of legal acts, under the constraint that:

$$\begin{aligned} LOrd ^{t+1}= & {} \,createlnrm ( LOrd ^{t+1} - LOrd ^{t}, deroglnrm ( LOrd ^{t} - LOrd ^{t+1}, LOrd ^{t}))\\= & {}\, deroglnrm ( LOrd ^{t} - LOrd ^{t+1}, createlnrm ( LOrd ^{t+1} - LOrd ^{t}, LOrd ^{t})) \end{aligned}$$

and similarly for \(LOrg ^{t+1}\) and \(RLFact ^{t+1}\).

The temporal evolution of the system of legal organs is determined by the temporal evolution of the set of legal authorizations in the legal system, in the sense that:

$$\begin{aligned} LOrg ^t = \{ag \in {\mathbf {Ag}} \mid \exists Auth (ag,Ct) \in LFact ^t\} \end{aligned}$$

so that an agent is a legal organ, at a time \(t\) if and only if it is legally authorized to perform some specific conduct (thus, not by any statement that explicitly declares it to be a legal organ, but does not authorize it to perform any specific conduct).

5.8 An aside: why legal norms are not recorded as legal facts?

A quick comparison of the definitions of the operations of creation and derogation of legal norms with the operations of recording and deletion of legal facts (including the operations of creation and cancellation of legal authorizations) will show an isomorphism between the operatory structures they determine on the sets they respectively operate (legal norms, legal facts, and legal authorizations).

The question then arises: Why not consider that legal systems are endowed with one single record of legal facts, where valid legal norms, legal authorizations, and all other sorts of legal facts are seamlessly recorded, so that we could formally say that “the validity of a legal norms is determined by the issuing of the norm being recorded as a legal fact”?

Although such formal possibility exists, we prefered to keep separate the legal order (i.e., the set of valid legal norms) and the record of legal facts (legal authorizations, included), to keep visible the distinction between them.

6 Main features of the adopted approach to operational semantics

We take operational semantics as a reference for our semantics of situated legal systems.

We format our operational semantical framework following the general principles of the transition systems-based approach to operational semantics introduced in Plotkin (1981).

In this section, we summarize the main ideas of the transition systems-based approach to operational semantics, and we apply them to situated legal systems in the next sections.

6.1 Operational interpretation of action systems

A transition system is a structure \({\mathrm {S}}=(\varGamma ,\longrightarrow ,D_{\mathrm {S}})\), whereFootnote 25:

  • \(\varGamma\) is the set of all configurations that the system may possibly assume, at each instant of time;

  • the set \(\varGamma\) is structured by the transition relation \(\longrightarrow \; \subseteq \varGamma \times \varGamma\), determining how each configuration \(\gamma \in \varGamma\) may evolve toward other(s) configuration(s) \(\gamma '\), with \((\gamma ,\gamma ') \in \; \longrightarrow\) denoted by \(\gamma \longrightarrow \gamma '\);

  • \(D_{\mathrm {S}}\) is the set of all possible sequences of configurations, where \(\gamma _0, \gamma _1,\ldots , \gamma _i, \gamma _{i+1},\ldots \in D_{\mathrm {S}}\) if and only if \(\gamma _i \longrightarrow \gamma _{i+1}\), for all \(i=0,1,2,\ldots\).

    Also, we construe the idea of an action system as a structure \({\mathrm {A}}=( Act ,D_{\mathrm {A}})\) where:

  • \(Act\) is a set of actions;

  • \(D_{\mathrm {A}} \subseteq T \rightarrow \wp ( Act )\) is the set of possible processes of \({\mathrm {A}}\), where each process is a function \(d:T \rightarrow \wp ( Act )\).

  • each process \(d \in D_{\mathrm {A}}\), with \(d(0)=A_0\), \(d(1)=A_1,\ldots\), for \(A_i \in \wp ( A )\), is denoted by \(d = A_0,A_1,\dots\).

We say that an operational interpretation of an action system \({\mathrm {A}}=( Act ,D_{\mathrm {A}})\) over a transition system \({\mathrm {S}}=(\varGamma ,\longrightarrow ,D_{\mathrm {S}})\) is a function \(\rho : \wp ( Act ) \rightarrow \wp (\longrightarrow )\), where we denote each possible configuration transition \((\gamma ,\gamma ') \in \rho (A)\) by \(\gamma \mathop {\longrightarrow }\limits ^{A} \gamma '\), for all sets of actions \(A \in \wp ( Act )\).

Note that for any set of actions \(A \in \wp ( Act )\), the operational interpretation \(\rho (A)\) is a set of possible transitions, meaning that \(A\) may be put to operate in different systems configurations, including the possibility of non-deterministic configuration transitions.

We say that the transition system \({\mathrm {S}}\) is an operational semantical domain for the action system \({\mathrm {A}}\) whenever it is possible to define an operational interpretation \(\rho\) for \({\mathrm {A}}\) over \({\mathrm {S}}\).

The operational semantics of \({\mathrm {A}}\) over \({\mathrm {S}}\) is, thus, characterized by the pair \((\rho ,\longrightarrow )\), given by configuration transitions of the form \(\gamma \mathop {\longrightarrow }\limits ^{A} \gamma '\).

A process \(d\) is said to be sequential if \(d=\{\alpha _0\},\{\alpha _1\},\ldots\), for \(\alpha _i \in Act\). We may also denote it by \(d=\alpha _0,\alpha _1,\ldots\) , so that we may take it be a function \(d: T \rightarrow Act\).

Clearly, action systems that have only sequential processes, may have their operational intepretations over transition systems characterized by configuration transitions of the form \(\gamma \mathop {\longrightarrow }\limits ^{\alpha } \gamma '\).

For simplicity, we restrict ourselves to action systems with only sequential processes, in the operational semantics of legal systems introduced below.

6.2 Validity of configuration transitions in operational semantics

A configuration transition \(\gamma \mathop {\longrightarrow }\limits ^{A} \gamma '\) is said to be a valid configuration transition in an operational interpretation \(\rho : D_A \rightarrow \wp (D_S)\) of an action system \({\mathrm {A}}=({ Act },D_{\mathrm {A}})\)

over a transition system \({\mathrm {S}}=(\varGamma ,\longrightarrow ,D_{\mathrm {S}})\) if and only if \((\gamma ,\gamma ) \in \rho (A)\).

One may want to have, for any given interpretation of an action system over a given transition system, a means to determine, through a systematic process, the validity of any given configuration transition. One may use derivation systems for such purpose (Plotkin 1981).

A derivation system for the validation of configuration transitions is a set of two types of derivation rules:

  1. 1.

    Unconditional rules:  

    figure b

    where \(R\) is the rule name, and the action \(\alpha\) transforms the pre-configuration \(\gamma\) into the post-configuration \(\gamma '\).

  2. 2.

    Conditional rules:  

    figure c

    where the conditions \(Cond _i\), in the premiss part of the rule, are said to be the enabling conditions of the action \(\alpha\), and should be true of the pre-configuration \(\gamma\), if the configuration transition determined by the action \(\alpha\) is to occur.

We say that a configuration transition \(\gamma _t \mathop {\longrightarrow }\limits ^{\alpha _t} \gamma _{t+1}\), occurring at time \(t \in T\) in the dynamics of a given action system, operationally interpreted over a given transition system, is a valid configuration transition if and only if the temporal evolution of the action system over the transition system (i.e., the combined sequences of actions and configurations) is a validating history for that configuration transition.

That is, if and only if the temporal evolution can be given as a sequence of the form

$$\begin{aligned} \gamma _0 \mathop {\longrightarrow }\limits ^{a_0} \gamma _1 \mathop {\longrightarrow }\limits ^{a_1} \gamma _2 \mathop {\longrightarrow }\limits ^{a_2} \ldots \gamma _{t} \mathop {\longrightarrow }\limits ^{a_{t}} \gamma _{t+1} \end{aligned}$$

where, at each time \(i \in T\), the transition \(\gamma _i \mathop {\longrightarrow }\limits ^{a_i} \gamma _{i+1}\) transforms the pre-configuration \(\gamma _i\) into the post-configuration \(\gamma _{i+1}\), according to a derivation rule of the derivation system.

The operational semantical framework introduced in Sect. 8 allows for the definition of derivation systems that can support the formal determination of the validity of the legal acts performed along the temporal evolution of situated legal systems.Footnote 26

6.3 Operational couplings between action systems and transition systems

Whenever there is an operational interpretation for an action system over a transition system, we say that there is an operational coupling between the action system and the transition system, and that the action system is operationally coupled to the transition system through that operational interpretation.

7 Formal concept of situated legal system

In this section, situated legal systems are defined on the bases of operational couplings between legal systems (taken as action systems, with legal actions as the system’s actions), and core operational structures of agent societies (taken as transitions systems, with combinations of states of agent societies and states of legal systems as configurations).

Thus, we say that a legal system \(LS\) is situated in an agent society \(AgSoc\) whenever an operational interpretation \((\rho ,\longrightarrow )\) has been defined for \(LS\) over the core operational structure of \(AgSoc\).

That is, a situated legal system is a structure

$$\begin{aligned} LS _ AgSoc = ( LS , AgSoc , ag _0,\rho ,\longrightarrow ) \end{aligned}$$

where:

  • \(LS = (\{ LOrd ^t\}_{t \in T},\{ LOrg ^t\}_{t \in T},\{ LFact ^t\}_{t \in T}, createlnrm , deroglnrm , createlauth , cancellauth , recordlfct , deletelfct , ag _0)\) is a legal system;

  • \(AgSoc = ( Pop ^t, Org ^t, Imp ^t, Env ^t, Ideo ^t)\) is an agent society;

  • \(ag _0 \in {\mathbf {Ag}}\) is the said to be the founder agent of the legal system;

  • \((\rho ,\longrightarrow )\) is an operational interpretation of \(LS\) over \(AgSoc\), whose formal definition is given in terms of the operational semantical framework introduced in Sect. 8.

We note that, from the point of view of the architectural style for agent societies presented in Sect. 2, situated legal systems should be construed as social systems, located within the macro-organizational level of agent societies, for they are systems of legal organs, each legal organ architecturally being either a social role (at the micro-organizational level) or an organizational unit (at the meso-organizational level).Footnote 27

The location of a situated legal system within an agent society is exemplified in the schema of Fig. 1 by the dotted trapezoid, which delimits the organizational units and social roles that constitute the legal organs of the hypothetical legal system.

On the other hand, note that an operational semantics for a situated legal system allows for the placement of only the legal organs of the legal system within the core operational structure of the underlying agent society.

The other main structural components of the situated legal system, namely, the legal order and the record of legal facts, are to be located in other parts of the structure of the society:

  • the legal order, in the ideological structure (as the legal order is, in general, presumed to be for public access, both for the legal organs and the social agents, either individual agents or organizational units);

  • the record of legal facts, in the private stores of the legal organs (as the record of legal facts is, in general, presumed to be of restricted access, only for legal organs).

8 An operational semantical framework for situated legal systems

We introduce here a framework for giving the transition systems-based semantics of situated legal systems, that is, of legal systems operationally coupled to agent societies.

The framework is given in terms of (example patterns for) derivation rules, each derivation rule determining the (internal or external) effect of the (legal or social) act that it envolves and, at the same type, in case the act is a the legal act, determining the conditions for its validity.

The definition of the framework proceeds according to the following steps:

  • general features of the semantical framework;

  • derivation rules (rule parameters may require adaptation, in concrete applications):

    • a derivation rule for the basic norm;

    • a set of derivation rules for the performance of internal legal acts: creation of authorization, derogation of norm, cancellation of authorization, imputation of a sanction, registration of legal fact by legal organ, deletion of legal fact by legal organ;

    • a derivation rule for the performance of external legal acts (in particular, performance of sanctions);

    • a derivation rule for social acts.

8.1 General features

8.1.1 Configurations of situated legal systems

For any situated legal system \(LS _ AgSoc = ( LS , AgSoc , ag _0\rho ,\longrightarrow )\), the configurations operated by the derivation rules are called legal configurations, and are taken to have the form \(\langle {\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}},{\mathrm {StAgSoc}}\rangle\) where:

  • \(({\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}})\) is the state of the legal system \(LS\) at that configuration, with:

    • \({\mathrm {LOrd}}\), the set of valid legal norms of \(LS\);

    • \({\mathrm {LOrg}}\), the set of legal organs of \(LS\);

    • \({\mathrm {RLFact}}\), the set of legal facts of \(LS\);

  • \({\mathrm {StAgSoc}}\) is the state of the agent society \(AgSoc\) at that configuration.

8.1.2 Functional types of conducts

We distinguish the following functional types of conducts (functional acts):Footnote 28 legal (internal and external), and social.

The set of legal acts is a set \({\mathbf {LAct}}\) such that \({\mathbf {ILAct}} \subseteq {\mathbf {LAct}}\), where \({\mathbf {ILAct}}\) is the set of internal legal acts (legal acts whose effects are internal to the legal system), given by \({\mathbf {ILAct}} = \{ fndAct , createlnrm , createlauth , recordlfct deroglnrm , cancellauth , deletelfct \}\).

The set \({\mathbf {EAct}} = {\mathbf {LAct}} - {\mathbf {ILAct}}\) is the set of external legal acts, which refer to legal acts that have effects that are external to the legal system, i.e., acts performed by the legal organs (usually in the form of sanctions) that affect the society where the legal system is situated.

Any act in \({\mathbf {Act}} - {\mathbf {LAct}}\) is said to be a social act, that is, an act performed by a social agent, that is, an agent (individual agent or organizational unit) that is not functioning as a legal organ, when performing that act.

8.1.3 Notation for the performance of a conduct by an agent

We use expressions of the form \(ag \in Ag\,\rhd\,c \in Ct\) to denote that the agent \(ag\), of type \(Ag\), performs the conduct \(c\), of type \(Ct\). We often omit the type information, writing simply \(ag\,\rhd\,c\).

8.2 Derivation rules

8.2.1 The basic norm

The following is the derivation rule that gives an operational account of the legal validity of the founding act, which is performed by the founder agent of the legal system:

  • Rule Basic Norm:

figure d

where:

  • \({\mathrm {ag}}_0 \in {\mathbf {Ag}}\) is the founder agent of the legal system;

  • \(fndAct \in {\mathbf {LAct}}\) is the founding act, determining the initial legal order \({\mathrm {LOrd}}_0\), the initial set of legal organs \({\mathrm {LOrg}}_0\), and the initial record of legal facts \({\mathrm {RLFact}}_0\), with \(fndAct \in {\mathrm {RLFact}}_0\).

Notice how the basic norm of a legal system states that a founder agent \(ag _0\) is authorized in an (for the semantical framework) unconditional way to create the legal system.

The founder agent \(ag _0\) freely creates, at time \(t=0\), a non-empty set of the legal norms, a non-empty set of legal organs, and a non-empty sect of legal facts (including legal authorizations), which then respectively become, at time \(t\), the initial set of valid legal norms \(LOrd ^1={\mathrm {LOrd}}_0\), the initial set of legal organs \(LOrg ^1={\mathrm {LOrg}}_0\), and the initial set of legal facts \(RLfact ^1={\mathrm {RLFact}}_0\) (including the initial set of legal authorizations, in particular \(fndAct\), see Sect. 10).

This is so, because Kelsen’s idea about the founding act is that the effective support for the realization of the founding act is a set of subjective facts (political, moral, ideological, etc.; see Sects. 10 and 11), not positive legal facts (i.e., facts legally recorded in \({\mathrm {RLFact}}\)), since the legal system is yet to be created, when the founding act is performed.

Thus, such subjective conditions, not being legal ones, should not be taken into account in the legal characterization of the founding act (and, so, neither in the conditions of the derivation rule, which aims to capture the idea of the basic norm).

The net result is, from the point of view of the operational semantics, that the legal effects of the founding act have to be incorporated into the situated legal system in an unconditional way, as exposed by the rule.

Notice, finally, that no requirement of adequacy Footnote 29 is imposed neither on the contents of the various initial sets defined by the founding agent, nor on the relations implied by such contents.

In other words, the initial adequacy of the legal system is taken to be the sole responsibility of the founder agent \(ag _0\), while the subsequent adequacy of the legal system is, of course, the responsibility of the legal organs that the legal system gets along its history.

8.2.2 Internal legal acts

The following are the derivation rules that give the operational semantics of the legal acts that affect the legal order, the system of legal organs, and the record of legal authorizations:

  1. (a)

    Rule Creation of Norm:

figure e

where:

  • \({\mathrm {LOrd}}' = {\mathrm {LOrd}} \cup \{nrm\}\);

  1. (b)

    Rule Creation of Authorization:

figure f

where:

  • \(ag' \in Ag'\);

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{ Auth (ag',Ct)\}\);

  • \({\mathrm {LOrg}}' = {\mathrm {LOrg}} \cup \{ag'\}\), if \(Ct\) is a legal act;

  • \(= {\mathrm {LOrg}}\), otherwise.

  1. (c)

    Rule Derogation of Norm:

figure g

where:

  • \({\mathrm {LOrd}}' = {\mathrm {LOrd}} - \{nrm\}\).

  1. (d)

    Rule Cancellation of Authorization:

figure h

where:

  • \(ag' \in Ag'\);

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} - \{ Auth (ag',Ct)\}\);

  • \({\mathrm {LOrg}}' = {\mathrm {LOrg}} - \{ag'\}\) if \(onlylauth (ag', Auth (ag',Ct))\);

  • \(= {\mathrm {LOrg}}\), otherwise.

where \(onlylauth (ag', Auth (ag',Ct) )\) is true only if the legal organ \(ag'\) has the cancelled authorization as its only legal authorization (so that it should be excluded from the set of legal organs, when \(Auth (Ag',Ct)\) is cancelled).

  1. (e)

    Rule Imputation of Sanction:

figure i

where:

  • \(ag \in Ag\)

  • \(c \in Ct\)

  • \(ag'' \in Ag''\)

  • \(Auth (ag'',Ct'') \not \in {\mathrm {RLFact}}\)

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{{ Auth }(ag'',Ct'')\}\)

which is the rule by which, given the legal fact that an agent \(ag\) of type \(Ag\) has performed a conduct \(c\) of type \(Ct\), an agent of type \(Ag''\) may be authorized by an agent \(ag'\) of type \(Ag'\), to perform a conduct of type \(Ct''\), as a sanction for the performance of \(c\).

Notice the essential role played by the legal organ of type \(Ag '\), which has the authorization to authorize the legal organ of type \(Ag ''\) to perform the sanction, if the performance of the conduct of type \(Ct\) is determined as a legal fact. The mere validity of the legal norm \((Ag,Ct) \Downarrow Auth (Ag'',Ct'')\) is not enough, by itself, to authorize the legal organ of type \(Ag ''\) to perform the sanction. It must be explicitly authorized to do that, by a legal organ legally authorized to authorize it.

In a typical situation, the legal organ of type \(Ag '\) would be a judge, the legal organ of type \(Ag ''\) would be a sanction executor.

The essential kelsenian idea, here, is that legal norms may “validate” acts (i.e., authorize them, determining them as legal), but may not directly “cause” legal acts: legal acts can be “legally caused” only by other legal acts, through the creation of legal authorizations, not by the mere validity of legal norms.Footnote 30

8.2.3 Legal facts

The following are rules giving the operational semantics of legal acts that explictly affect the record of legal facts Footnote 31:

  1. (a)

    Rule Registration of Legal Fact by Legal Organ:

figure j

where:

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{ lfact \}\)

  1. (b)

    Rule Deletion of Legal Fact by Legal Organ:

figure k

where:

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} - \{ lfact \}\)

8.2.4 External legal acts

The following is the rule that gives the operational semantics of external legal acts, that is, legal acts that (as, e.g., the performance of a sanction) affect the state of the society:

  1. (a)

    Rule Execution of External Legal Act by Legal Organ:

figure l

where:

  • \({\mathrm {StAgSoc}}' = { apply }(c,{\mathrm {StAgSoc}})\)

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{did(ag,c)\}\)

8.2.5 Social acts

The following is the rule giving the operational semantics of a social act, that is, an act that is not a legal act (so that no agent is required to have a legal authorization to perform it):

  1. (a)

    Rule Execution of Social Act:

figure m

where:

  • \({\mathrm {StAgSoc}}' = apply (c,{\mathrm {StAgSoc}} )\)

9 Some properties of situated legal systems, exposed by the operational semantics

In this section, we look at the main formal properties that situated legal systems inherit from Kelsen’s concept of legal system.

9.1 Action-based dynamics

The operational semantics introduced above builds on the idea that legal systems operate under an action-based dynamics, that is, that the configuration transitions are determined by the performance of actions by the legal organs and legal subjects of the legal system.

That is the idea expressed by the above rules, which define the pre-conditions for the realization of configuration transitions \(\gamma \mathop {\rightarrow }\limits ^{ag\, \triangleright \, \alpha } \gamma '\).

Notice that the operational rules only indicate conditions for the legal enabling of the execution of configuration transitions, not their inevitability.

That is, the derivation rules leave to the discretion of the agents responsible for the execution of the actions, the deliberation about their execution, or not, in each circumstance.Footnote 32

9.2 Separation of concerns between the operational rules of the legal systems and the reasoning rules of their legal organs

The fact that legal norms (and the derivation rules that capture them operationally) determine just the legal enabling of conducts, not their inevitability, establishes the relative independence between the rules that drive the dynamics of the legal system, and the rules (if any) that drive the legal reasonings and deliberations of the legal organs.

This is reflected in an important characteristic of Kelsen’s Pure Theory of Law (Kelsen 2009), namely, that it focuses on the overall structure and operation of legal systems, taken as a whole, not on the contents of their norms, nor on the rules for the individual reasoning and decision-making of the system’s legal organs (which support their deliberations concerning the way the system should operate, given their own interests and the contents of the legal norms).

This separation of concerns is one of the central ideas in Kelsen’s theory of law, and is possible only because of the relative independence between those two types of aspects of the legal systems.

We say that the relative independence of the contents of those two types of rules (dynamical and deliberative rules) generate two orthogonal types of processes in the legal system: macro-level processes, encompassing the overall structure and operation of the legal system, and meso and micro-level processes, in and between the legal organs, concerning their interactions, reasonings and deliberations.

We call point of discretion, any point in the dynamics of the legal system where a legal organ can exercise its discretion, regarding a legal act that it may perform at that point. Points of discretion are associated, in the derivation rules, with the places where the “\(\triangleright\)” symbol appears, in expressions of the form \(ag \triangleright \alpha\).

Such symbol gives no indication, however, either about the motivation that may lead \(ag\) to decide to perform (or, not to perform) the action \(\alpha\), or about the legal argument that \(ag\) may use to justify that decision, so that such deliberation and argument rest, in the dynamics of the system, as a processes that are internal to the legal organ.

We picture in Fig. 3, in a general way,Footnote 33 how the orthogonality between the two types of processes articulates the sequence of configuration transitions, at the macro-level of a situated legal system, with the corresponding sequence of deliberation processes, at the meso and micro-levels of the system.

Fig. 3
figure 3

The articulation of the sequence of configuration transitions \(\gamma _0 \rightarrow \gamma _1,\gamma _1 \rightarrow \gamma _2,\gamma _2 \rightarrow \gamma _3,\ldots\) with the sequence of deliberation processes \(D_0,D_1,D_2,\ldots\), of the legal organs \(ag_0, ag_1, ag_2,\ldots\)

Clearly, then, it is only natural that the formal expression of the deliberation processes of the legal organs requires a style of formal system (say, some for of logical or decision-theoretic formalism), different from the dynamical system-theoretic formalism that we are studying in the present paper.

In addition, one may see that the separation of concerns (between the dynamics of the system and the internal operation of the legal organs), allowed by the orthogonality of their operational interrelation, should be closely related to the highly debated issue of the possible connections between law and morality (Kelsen 1991), or law and politics Kelsen (2009) (see also Hart 1958; Dworkin 1977), as discussed in Sect. 11.

9.3 Discretion in the imputation and execution of sanctions

To make more concrete the above discussion about points of discretion and deliberation processes, we analyse here their presence inside processes of imputation and execution of sanctions, as allowed by the derivation rules.

The delibaration processes of legal organs, concerning the imputation and execution of sanctions, do not need to have the form of logical deductions, because deliberations about the imputation of sanctions, and about the execution of sanctions, are discretionary, as is any other legal reasoning and legal decision-making process (Kelsen 2009).

Clearly, if one takes the operational rule for the imputation of sanctions, given above:

figure n

One can see that the main condition for a legal organ of type \(Ag'\) to perform the imputation of a sanction of type \(Ct''\) for the performance of a conduct of type \(Ct'\) by the agent \(ag\), is an authorization for the agent of type \(Ag'\) to authorize an agent of type \(Ag''\) to perform the sanction of type \(Ct''\), and that this authorization is precisely that: an authorization, not an obligation, to authorize the performance of the sanction.

In addition, one also sees that, when the imputation of the sanction is performed, the agent of type \(Ag''\) is also just legally authorized to perform the sanction \(Ct''\), not obliged to do it.

That is, both the agents involved in the application of the sanction (namely, the agent of type \(Ag'\) that authorizes the performance of the sanction, and the agent of type \(Ag''\) that performs the sanction) are just authorized, not obliged, to do what the rules specify (if no sanctions are applicable, of course, but even then the agents may deliberate not to comply with the obligations).

Thus, to deliberate on the realization of their respective actions (authorization of the sanction and execution of the sanction), a reasoning has to be performed by each of those legal organs, a reasoning that, as we have already mentioned, is of a “practical”, discretionary character [Kelsen’s term is “political character” (Kelsen 2009)], not of a purely “deductive” character.

The following scheme shows the articulation between the deliberation processes of the involved legal organs (denoted by \(D_1\) and \(D_2\)), and the configuration transitions that the deliberated actions may give rise to (denoted by \(C_0 \rightarrow C_1\) and \(C_2 \rightarrow C_3\)):

figure o
  • The first deliberation process, \(D_1\), concerns the action \(createlauth ( Auth (ag'',Ct''))\), which causes the transition from the configuration \(C_0\) (that allows both the determination of the ocasion for the sanction of type \(Ct''\) and the availability of the authorization for the agent of type \(Ag'\) to authorize the sanction) to the configuration \(C_1\) (where it is recorded as a legal fact that the agent \(ag''\), of type \(Ag''\), has been authorized to execute the sanction).

  • The second point of discretion, \(D_2\), concerns the action \(ag'' \triangleright c''\), which causes the transition from the configuration \(C_2\) (a configuration that may be the configuration \(C_1\) itself, or some later configuration, but that is such that the authorization for \(ag''\) has not been cancelled) to the configuration \(C_3\) (where it is recorded as a legal fact that the sanction \(c''\), of type \(Ct''\), has been executed).

One sees that the points of discretion embedded in the process of imputation and execution of sanctions dwell on at least the following four different deliberations that the agents \(ag'\) and \(ag''\) have to take, when performing the reasonings that “fill the dots” in the figure:

  1. 1.

    The first, within \(D_1\), concerns the deliberation about the ascertainment (or denial) that \(ag \in Ag\) and that \(c \in Ct\), thus the possibility of justifying (or not) the deliberation about the issuing (or not) of the authorization for \(ag''\) to perform the sanction \(c''\).Footnote 34

  2. 2.

    The second, still within \(D_1\), concerns how long \(ag'\) wil take to issue (if it happens that \(ag'\) has really deliberated to issue) the authorization for \(ag''\) to perform the sanction \(c''\).

  3. 3.

    The third, within \(D_2\), concerns how long \(ag''\) will take to decide to execute the sanction \(c''\), and to effectively execute it.

  4. 4.

    The fourth, still within \(D_2\), concerns the specific way in which \(ag''\) will execute \(c''\) (crucial if the specification of the type \(Ct''\) is a loose one).

In addition, previously to the configuration \(C_0\) (thus, previously to the application of the rule of imputation of sanction, but relating to the pre-conditions for its application), at least two additional points of discretion exist, for the legal organ that is responsible for the determination of the truth of those pre-conditions:

  • The first concerns the acceptance of \(did(ag,c)\) as a legal fact, acceptance that is usually subject to a debatable proof, thus usually subject to the discretionary acceptation by the legal organ responsible for its registration as a legal fact.

  • The second concerns the choice of the norm to be taken into account in the process (shown as \(Ag:Ct \Downarrow Ag'':Ct''\), in the above scheme), which is usually subject to the discretionary choice of the legal organ responsible for determining both if the conduct \(c\) was a delict and, in the positive case, which should be the corresponding sanction. Such choice is specially discretionary if there are different norms that, even with the same material sphere of validity, specify different additional pre-conditions (e.g., concerning details of the performance of the conduct \(c\)) and, on that account, different types of sanctions for the performance of that same conduct.

9.4 Validity of legal norms

As explained in Sect. 5, validity is a property that legal norms inherit through the valid execution of norm creation operations.

That is, validity is an inductively inherited property:

Validity Property: For any time \(t\), the legal order \(LOrd^t\) is a set of valid legal norms.

Proof

  • Basis: \(LOrd^0\) is a set of valid legal norms.

    Proof: \(LOrd^0\) is created by the founder legal organ \(ag_0\). By the basic norm

    figure p

    \(ag_0\) is assumed to be legally authorized, in an unconditional way, to create \(LOrd^0={\mathrm {LOrd}}\). So, \(LOrd^0\) is a set of valid legal norms.

  • Induction Step: Assume that \(LOrd^t = {\mathrm {LOrd}}\) is a set of valid legal norms. One notes that the only way to have \(LOrd^{t+1}= LOrd ^t \cup \{nrm\}\) is through the Norm Creation Rule:

    figure q

    where \(LOrd^{t+1}={\mathrm {LOrd}}'={\mathrm {LOrd}} \cup \{nrm\} = {\textit{LOrd}}^t \cup \{nrm\}\), where \(nrm\) is created by a legal organ legally authorized to created it, being, thus, a valid legal norm. So, \(LOrd^{t+1}\) is a set of valid legal norms.

    The only other operation that may affect \(LOrd ^t\), namely, \(deroglnrm\), can only remove legal norms from \(LOrd ^t\), so that it also can only make of \(LOrd ^{t+1}\) a set of valid legal norms.

  • Conclusion:

    For any time \(t\), the set \(LOrd^t\) is a set of valid legal norms.

9.5 Completeness of legal orders

9.5.1 Completeness in Kelsen’s concept of legal systems

Completeness of a legal order (the property that legal orders have no “gaps” Kelsen 2009) is the property according to which for each conduct (social or legal) brought to trial by a legal organ, there remains no doubt as to whether a legal act should be perfomed, or not, as a sanction for the occurrence of the conduct being tried.

Kelsen’s position about the property of completeness is clear: legal systems are complete, for completeness means that:

  • either there is a legal norm such that the conditions of the case satisfy the condition of the legal norm and, then, the sanction determined by the legal norm ougth to be applied;

  • or, there is no legal norm that applies to the case in a straightforward way, but the legal organ responsible for the trial has a legal authorization to create a new legal norm, to deal with the case: the case may, then, be tried on the basis of this new legal norm, created specifically to deal with it;

  • or else, both there is no legal norm that applies to the case in a straightforward way and the legal organ responsible for the trial has no legal authorization to create a new legal norm to deal with such case: the case should, then, be dismissed, due to the lack of a legal norm straightforwardly applicable to it and to the legal impossibility of creating a specific legal norm.

Whatever the case, one sees that the completeness property guarantees that the case being tried has a definite legal solution.

The issue of the completeness of legal systems, and the problem of the so-called hard cases,Footnote 35 which usually rise such issue, is a highly debatable one, as will be discussed in Sect. 11.

9.5.2 Completeness of legal orders in situated legal systems

Completeness property For any time \(t\), any agent \(ag\), and any conduct \(c\), an occurrence of which was registered as a legal fact (i.e., \(did(ag,c) \in {\mathrm {RLFact}}^t\)), either the occurrence of the conduct \(c\) ought to be sanctioned or the occurrence of the action \(c\) ought not to be sanctioned.

Proof

  • In the operational semantics, completeness can be verified by analyzing the rule for the imputation of a sanction:

    figure r

    in which one notice that, for each imputation \((Ag:Ct \Downarrow Ag'':Ct'')\) that one can take into consideration:

    • either the conduct \(c\) that is being judged is of the type \(Ct\) of conducts sanctioned by the norm;

    • or the conduct \(c\) being confronted is not of the type \(Ct\) of conducts sanctioned by the norm.

  • Thus, we see that whenever an occurrence of conduct \(c\) is registered as a legal fact, at any time \(t\), if there is at least one imputation \((Ag:Ct \Downarrow Ag'':Ct'')\) for which \(c\) is of the type \(Ct\), then there is a derivation rule that can be applied to the case, and the occurrence of the conduct \(c\) ought to be sanctioned. Otherwise, the occurrence of the conduct \(c\) ought not to be sanctioned.

    Notice, however, that it is often subject to debate if the conduct \(c\) is (or, is not) of the type of conduct \(Ct\) indicated as a condition of a given imputation. Thus, the mere recording of the legal fact \(did(ag,c) \in {\mathrm {RLFact}}\) is no guarantee that a single conclusion can be achieved, as if by deduction, about the applicability or not of some sanction to the performance of that conduct.

    That is, the issue of the mechanical undecidability of the legal typification of conducts preserves a space for the discretion of the legal organs, in that respect.

    But that mechanical undecidability does not obviate the property of completeness, for whatever the solution the debate may find for the issue of the applicability of the derivation rule, either the derivation rule will be determined as applicable, and the sanction authorized, or the derivation rule will be determined as non applicable, and the sanction not authorized, so that the case, in either alternative, will have a definite solution.

    On the other hand, in a situation where there is no imputation \(Ag:Ct \Downarrow Ag'':Ct''\) straightforwardly applicable to the conduct \(c\), and no debate can determine its applicability (and, thus, no derivation rule is determined as applicable), but a legal organ is legally authorized to create a new legal norm, specifically applicable to the case (and, thus, a new derivation rule), the situation turns out to become like the first one, for then the creation of the new imputation (and derivation rule) fulfills what is required by the completeness property, namely, that the case has a definite solution.

    In a similar way, the requirement for the completeness property is fulfilled if the no imputation (and no derivation rule) is straightforwardly applicable to \(c\), and no debate can determine its applicability, and no legal organ is legally authorized to create a new imputation (new rule) specifically applicable to \(c\), for then the rule can not be applied, and no sanction can be authorized, so that again the case has a definite legal solution.

10 Recurring misunderstandings

In this section, we briefly treat some of the misunderstandings about Kelsen’s theory of law, which have recurrently appeared since its formulation in Kelsen (2009). The reason for dealing with such issues in the present paper (given that, in strict sense, they are unrelated to our work) is prophylactic: to try to avoid that they plague the notion of situated legal systems that we are introducing here.

This will help us, also, to put into proper perspective, in the next section, some of the attacks that Kelsen’s concept of legal system has suffered, from rival theories, and which may also end up by turning upon situated legal systems.

10.1 Kelsen’s “positivism”

The most common misunderstanding about the “positivist” stance adopted by Kelsen is to interpret his “positivism” strictly in the sense that the term usually has in the philosophy of science, that is, as the point of view that admits the possibility of a purely “descriptive” scientific attitude toward an object of study, which a scientist could take in neat separation from any voluntary “evaluative” attitude toward that object (Ladyman 2001).

Clearly, Kelsen is a “positivist”, in this sense (as is also Hart 2012, see the confrontation in Sect. 11).

A strong version of this positivistic stance, however, would also imply a refuse of the possibility of a scientic treatment of the (then called) “subjective”, “metaphysical”, “speculative” or “qualitative” aspects of the object being studied, accepting as the only aspects amenable to science those that, in some sense, can be “measured” or “formalized”.

To such strict point of view, however, Kelsen should not be associated: it should be clear from all exempt reading of Kelsen (2007, 2009), that he does not refuse the possibility of the scientific treatment of the non-positive aspects of law (political, ideological, moral, etc.), but just that he considers them to be non pertinent to a pure theory of law.

But, then, Kelsen should be considered a “positivist” also in this other, more specialized and crucial sense: that he considers that the pure the theory of law should concentrate just on the positive aspects of law, and leave the non-positive aspects to their corresponding specialized sciences (political science, sociology, etc.).

This second sense of Kelsen’s “positivism” is the one that should be put in frontal opposition to, e.g., Dworkin’s point of view (Dworkin 1977, 1986), that the core of the theory of law should be interpretive of those non-positive aspects, and thus also evaluative and justificatory of them (see Sect. 11).

From the misunderstanding about this second, more specific sense of Kelsen’s “positivism”, seems to follow all the other misunderstandings about Kelsen’s theory of law, some of which we examine presently.

10.2 The “non-sense” of the basic norm

In Sect. 8, we stated the derivation rule for basic norm as follows:  

figure s

where:

  • \({\mathrm {ag}}_0 \in {\mathbf {Ag}}\) is the founder agent of the legal system;

  • \(fndAct \in {\mathbf {LAct}}\) is the founding act.

Two common misunderstandings about the idea of the basic norm are the following.

First, that the basic norm is the constitution, not a separate, specific norm: in fact, the constitution should be considered to be just the initial part of the legislation, the part directly issued by the founder agent, but it is not the basic norm, which is a norm assumed to be legally valid in order to allow for the legal validity of that initial part of the legislation (the constitution).

Second, that the basic norm is no more than a fiction of Kelsen’s mind, since in no legal order one can find a positive formulation of the basic norm: in fact, the basic norm can not be a positive part of the legal order, for it is precisely the norm that, assumed to be valid previously to the creation of the legal order, allows for its establishment as a set of legally valid norms.

Thus, it should be no surprise that, in no legal order \(LS \,=\, (\{ LOrd ^t\}_{t \in T},\{ LOrg ^t\}_{t \in T}, \{ LFact ^t\}_{t \in T}, createlnrm , deroglnrm , createlauth , cancellauth , recordlfct , deletelfct , ag _0)\), one can find a time \(t \in T\) for which there is a norm \(nrm \in LOrd ^t\) that is the basic norm of \(LS\).

In case one insists in having, in the notation we are using, a formal expression for the basic norm of a legal system, even if acknowledging that it is not a norm pertaining to the legal order of the legal system, one could try this:

$$\begin{aligned} circ_0 \Downarrow Auth ({\mathrm {ag}}_0, fndAct ) \end{aligned}$$

where \(circ_0\) indicates the initial circumstance, for which no particular conduct is specified as a condition for the imputation, but which represents the circumstance where the decision to create the legal system is taken.

This formulation makes explicit the peculiar situation in which the founder agent \({\mathrm {ag}}_0\) finds itself: in need of receiving a legal authorization for the performance of the founding act, but an authorization that can not be given through a legal act in the legal system (precisely because the legal system has not been founded yet).

Which means that the “triggering” act, providing the initial authorization, required by the founder agent, has to be of a different nature. Clearly, it can only be a political authorization.

To articulate an appropriate formal solution to this peculiar situation (the need of giving legal validity, in the legal system being created, to a political act performed before the creation of the system) is that the basic norm is assumed to be legally valid.

More specifically: to allow that the political authorization for the founder agent to found the legal system, be construed also as a legal authorization for the founder agent to determine the initial legal configuration of the legal system that is being founded, so that such initial configuration can occur, from the start, as legally valid in the legal system being created.Footnote 36

As a consequence, in any situated legal system one should find that the initial legal configuration, resulting from the (in itself, just political) founding act, can only be a configuration

$$\begin{aligned} \langle {\mathrm {LOrd}}_0,{\mathrm {LOrg}}_0, {\mathrm {RLFact}}_0,{\mathrm {StAgSoc}}_0 \rangle \end{aligned}$$

where the initial record of legal facts is such that \(Auth ({\mathrm {ag}}_0, fndAct ) \in {\mathrm {RLFact}}_0\).

One can clearly see this effect in a classical constitutional example: in the legal system of the United States,

the initial legal fact, legally authorizing the founder agent to found the legal system, which we formally denote, in our abstract syntax, by

$$\begin{aligned} Auth ({\mathrm {ag}}_0, fndAct ) \in {\mathrm {RLFact}}_0 \end{aligned}$$

is concretely recorded, in the beginning of the Preamble to the Constitution, as:

We the People of the United States, in Order to form [...], do ordain and establish this Constitution for the United States of America.

clearly indicating the (representatives of) the People of the United States as the founder agent \(ag _0\), determining that the ordainment of the Constitution is, at the same time, the (then, legally authorized) establishment (founding act) of the legal system, as well as nominating United States of America the corresponding country and its state.

10.3 The “philosophical poverty” of the positivist theory of law

Another misunderstanding about Kelsen’s “positivism” concerns not the coherence of his conception, but a fear that a certain “philosophical impoverishment” will be imposed on the theory of law by that conception. A fear that may be expressed by questions such as:

  • Isn’t it conceptually too restrictive to say that “political” issues as central as, e.g., the political and moral origin of the right of the founder agent to found the legal system, should not be treated by the theory of law?

  • Isn’t the theory of law giving up to other fields of knowledge a subject as essential to law as this?

  • Isn’t the theory of law impoverishing itself too much by saying “this is not a subject that should concern us”?

Kelsen’s point of view seems to be: Yes, it is conceptually impoverishing to keep such issues outside the scope of the theory of law, but this is the price to be payed to have a minimally “positive” theory of law, that is, one that is minimally resistant to become overtaken by subjective (and, thus, ideologically debatable) principles.

10.4 The “reducibility” of authorizations to coercive norms

The misunderstanding about the issue of authorizations concerns the way that they are related to imputations, which are a basic form of coercive norms: Is it possible to reduce authorizations to coercive norms? Are they to be treated as two distinct types of legal norms? Are authorizations legal norms?

As is well known, it is a point strongly made by Hart (2012), that authorizations and coercive norms are two different types of norms.

Unfortunately, while argumenting in favor of such difference, Hart states that Kelsen’s view is that authorizations are reducible to coercive norms, and this “reading” of Kelsen seems to have propagated there on.

Hart’s reading of Kelsen, though, seems not to be a correct reading. In fact, what Kelsen says (Kelsen 2009) is the following.

An expression like “authorized conduct” should be taken in the technical sense of “conduct allowed by a legal norm to be considered as a condition or a consequence of an imputation”.

In other words, the expression “authorization” should be understood in one of two senses: either in the sense of an explicit authorization (i.e., the determination of the legality of the result of the conduct, be such result a new legal norm, or a loss or injury caused by a sanction), or in an implicit sense (i.e., the determination that certain conduct is “authorized” to be sanctioned).Footnote 37

Thus, if a legal norm prohibits that certain individuals perform a certain conduct, that conduct should be considered as “authorized” by that legal norm, in the specific technical sense of being a conduct “authorized” to be sanctioned.

One sees, then, that the reading of Kelsen that attributes to him the idea of reducing authorizations to “coercive norms” (i.e., imputations) is not a correct one.

In fact, for Kelsen, authorizations are not imputations, and to him there is no sense in trying to reduce them to imputations. From his point of view, the correct statement is that both conditional and unconditional authorizations are established, not directly in the form of norms, but indirectly, through imputations, either explictly (as consequences of imputations) or implictly (as conditions of imputations).

Thus, Kelsen’s point of view about expressions like authorizing norm, competence norm, or power confering norm (that Hart takes as a central aspect of his own theory Hart 2012), is that they should be considered as part of the surface structure of the legal discourse, not part of its deep structure.

In the formalization that we are giving in the present paper, we introduce formal denotations just for authorizations taken in the explicit sense, through expressions of the form \(Auth (Ag,Ct)\). Authorizations, taken in the implict sense are not explicitly represented, in our formalization.

10.5 The “logic” of legal reasoning

Another misunderstanding is that “positivism” implies the idea that legal reasoning is a plain deductive process.

This idea is clearly refused by Kelsen (2009), the most emphatic refusal concerning the idea that the validity of legal norms can be determined by purely logical means.Footnote 38

As discussed above, the idea that the validity of norms can be determined by purely deductive means should be refused for the simple reason that any operation of creation of legal norms is based on a decision by a legal organ, and any decision involves the discretion of the legal organ, which can not be treated in any plain logical way, so that no pure deduction (which disconsiders the discretion of the legal organs responsible for the creation of legal norms) can determine the set of logical norms that are valid in a legal order, at any given time.

By the same token, the idea of the logical deductibility of the validity of an application of a legal norm should be refused, for such application also involves the discretion of the legal organ that applies the law.

In other words, legal reasoning [as strongly emphasized, e.g., by Dworkin (1986), see Sect.11] is not a plain deductive process, and Kelsen readily agrees with that (Kelsen 2009; Kelsen and Klug 1981).

Clearly, however, this rejection of the possibility of a plain logical treatment of legal reasoning does not imply that legal reasoning can not be formally presented by means of non-standard logical formalisms (like non-monotonic, defeasible, etc).

The fact that legal systems have a dynamic structure, determined by the presence of norm-changing norms that give to legal reasoning a non-standard logical form (to include the effects of norm derogation and norm conflicts), implies that, as shown in Governatori and Rotolo (2010), the temporal structure necessary for modeling the dynamics of legal reasoning in an adequate non-standard logical way may happen to be different from the usual, and more convenient, linear time structure (which is enough for modeling the dynamics of the situated legal system as an organized whole, as shown in the present paper).

This makes clear, thus, another advantage of the separation of concerns supported by Kelsen’s theory of law: the dynamics of a situated legal system (its temporal evolution, together with the temporal evolution of the agent society in which it is situated), may be formalized in a way (e.g., with an operational semantical model, based on a single, linear time structure, as in the present paper) that is independent of the ways in which are formalized the legal reasoning processes performed by the legal organs that are acting within that situated legal system.

Such possibility allows, for instance, that different logical models of legal reasoning be used, by different legal organs, in their legal working, while the semantical model of the situated legal system, which may be common to all the agents of the society, is kept one and the same for all legal organs, independently of the logic model they use for their individual legal reasonings.

That should be contrasted with alternatives like, e.g., Governatori and Rotolo (2010), where a double time structure was required to support, integrated in one single model (based on Defeasible Logic), both the formalization of the dynamics of the legal system and one particular legal reasoning model, which is, thus, required to be adopted by all legal organs operating in the society.

10.6 Discretion and the institutional appropriation of social facts as legal facts, through counts-as rules

Finally, an interesting issue to be clarified concerns the distinction between approaches, like Kelsen’s, that take discretion as the basis for the operation of legal (or, more generally, institutional) appropriation of social facts, and their recording as legal (and institutional) facts, and approaches, like that in Governatori and Rotolo (2008), that follow J. Searle’s proposal (Searle 1995), of basing such kind of institutional appropriation on institutional rules of the form \(X \,counts-as\, Y \,in\,C\) (that is, in Searle’s terms, “brute fact \(X\) counts as institutional fact \(Y\) in the context \(C\)”).

Regarding legal systems, the discretion-based approach, adopted by Kelsen, presents the advantage, over the “counts-as”-based approach, of allowing for the individualization of the legal decision-making about the appropriation of social facts as legal facts, giving space for the legal organs responsible for such type of decision to take into account values, maxims, and inclinations that are not explicitly acknowledged in the legal order, when deliberating if a “brute fact” should, or should not, be appropriated as a legal fact.

In oposition to that, the “institutional rules”-based approach (the approach based on “counts-as” rules) provides an impersonal frame of reference, which, if taken as exclusive, provides a picture that seems not to correspond to the real practice of legal reasoning and decision-making, as it has often been characterized [e.g., by Dworkin (1977), see Sect. 11 for more details].

Analogous argument applies, concerning the determination of which norms are legally valid in a legal system, when considering the notion proposed by Hart, of the “rule of recognition” (see also Sect. 11 for more on this): if the “rule of recognition” is, contrary to Hart’s idea, taken to be an impersonal “count-as” rule, the account of the legal system misses the discretion inherent in the deliberation about what is, or is not, a valid legal norm (which, as Hart agrees, is a debatable issue, in general).

11 Confrontation with Dworkin, Hart, and Raz

To illustrate the usefulness of the formalization introduced in the paper for the critical analysis of the confrontation between positivist and non-positivist theories of law, we do include, in the present section, a brief discussion of an important and most influential non-positivist theory of law, highly antagonist to the positivist ones, namely, that by Dworkin (1977). In addition, we consider, also in a brief way, Raz’s (1970) general meta-theoretical criteria for theories of legal systems, and his criticisms to the Kelsenian concept of legal system.

While analysing such rival theories and points of view, we further the presentation of the reading of Kelsen’s theory of law that guided the elaboration of the operational semantical framework introduced in the present paper.

Clearly, however, the scholarship about Kelsen’s approach to law, and the variety of readings that his works allow, is vast (see, e.g., Paulson and Paulson 2007), and as such its appraisal is beyond the limited purpose of the present work.

Thus, the choice we have made, to stick to Kelsen’s first widely circulated presentation of the Pure Theory of Law (Kelsen 2009), is bound to a simple reason: we just needed a fix theoretical framework for the formalization we were working out.

But this choice does not imply that the operational semantical approach proposed here is limited to that particular presentation of the notion of legal system.

In fact, we claim that the approach is general enough to deal with any “positive” notion of law, amenable to acknowledge the above characterized orthogonality between the formal and political principles of legal systems (as is the case of H. Hart’s concept of law Hart 2012, for instance, which we also consider in a critical way, in the following).

11.1 Hart

Hart’s theory (Hart 2012) draws two main distinctions between legal rules:

  1. 1.

    a distinction between two types of legal rules, namely:

    • primary rules, which regulate the behaviors of the legal subjects;

    • and secondary rules, which regulate the way primary rules are created, applied, modified, and identified as pertaining to a given legal system.;

  2. 2.

    a distinction between two ways for legal rules to become binding, namely:

    • through their acceptance by those that are subject to them, but in such a way that the criteria to determine such acceptance need not be explictly stated, but may just be implicit in the social practices of the legal subjects;

    • and by their becoming valid, by virtue of a secondary rule, specifically accepted for the purpose of determining such validity, the rule of recognition.

Hart (2012), then defines a legal system as a system of primary and secondary rules, where the belonging of a rule to the legal system is determined by the particular rule of recognition of that legal system.

Hart states that, since the rule of recognition can not be valid, for that (as stated in the above distinctions) would imply the need for another secondary rule, to recognize it, and so on (in an infinte regression), the rule of recognition can only be binding by virtue of its acceptance (which allows that the rule of recognition needs not be explictly and formally stated).

Thus, there is a clear structural difference between Hart’s concept of law, and that of Kelsen, and such difference implies a crucial foundational difference between them, namely, that concerning the source of validity of legal norms.

Kelsen’s conception of the source of validity of legal norms, the basic norm, supports the “pure” nature of his theory by clearly separating factual issues (like the social practices of the subjects of the legal norms) and normative isues (like that of the validity of legal norms), in a way that the normative features do not derive from the factual ones (even when the factual features are external to the legal system, like the social practices of the legal subjects).

That is, Kelsen carefully avoids to infringe the (undoubtedly, highly debated—see, e.g., Porter 1968) Hume’s law, and to commit the related naturalistic fallacy (that is, the adoption of the idea that normative elements may be derived from factual ones), a precaution that Hart seems not to have cared about, when he took the factual, psycho-sociological disposition of acceptance of the rule of recognition by the law’s subjects and legal organs as the source of the normative property of validity of the legal rules.

We remark, however, that Hart’s “rule” of recognition is, in fact, a “procedure” of recognition, that is (as Hart himself states Hart 2012), a “complex practice” adopted by courts and legal subjects, in order to be able to determine which are, and which are not, the valid legal norms of a legal system.

Thus, it seems that Hart’s notion of rule of recognition is not, in effect, totally incompatible with Kelsen’s notion of basic norm, for the latter is assumed to exist in the normative realm of the legal system (i.e., in connection to its legal order) while the former is determined to exist in the operational realm of the system (i.e., in connection to the way of operation of the legal organs).

In fact, concerning situated legal systems, it seems that one can take Hart’s notion of the rule of recognition as a conceptualization of the procedural means by which the legal organs determine the legal validity (or, non-validity) of a given legal norm, while having as a formal basis for such determination the assumed validity of the basic norm.Footnote 39

Another crucial difference, distinguishing Hart’s point of view from Kelsen’s, is that concerning the importance of a specific minimum content for law.

Again, in this respect, their points of view are not strictly antagonic to each other, but—on the contrary—unrelated to each other. For, while Hart’s point of view stresses the indispensability, for any system of norms, to have a minimum content (protection for persons, property, and promises), for the system to merit to be called a “legal system,” for Kelsen the issue is not about what content (minimum or not) a system of norms should have, in order to merit to be called a “legal system”, but simply that such content is not a relevant matter for the theory of law (which should, thus, be kept “free” of non-formal issues).

In other words, while Hart is concerned with looking for the set of “essential” set of coercive functions that any legal system should perform for the society where it operates (Hart 2012), Kelsen is just concerned with the coercive function of law in its most general sense (thus, not with any specific type of coercive functions, such as those included by Hart in his notion of minimum content of law).

In the same sense, on the other hand, one sees that Kelsen’s point of view does not fall under what Hart tersely classified as “positivism”, namely, the point of view that “law may have any content” (Hart 2012).

For, Kelsen’s idea (Kelsen 2009) (see also Kelsen 2007) is not that “law may have any content” (in the sense that it is enough for a legal system to be correctly structured from the formal point of view, to be considered a “good” legal system, whatever its content), but just that the problem of what specific content a legal system “must have”, in each particular society, at each particular moment, is not an issue to be decided by the theory of law, but by other theories (political, moral, ideological, etc.), if any.Footnote 40

Thus, here also, one sees that no incompatibility prevents the idea of a situated legal system whose legal order satisfies Hart’s requirements for a minimum content.

11.2 Dworkin

Dworkin’s theory of law has been highly influential since the late 1970s, having presented itself as an alternative to “positivism and utilitarianism” (Dworkin 1977).

A direct confrontation between Dworkin’s and Kelsen’s theories of law is somewhat problematic to establish, however, since Dworkin never mentioned Kelsen explicitly, in any of his major books (Dworkin 1977, 1985, 1986) (probably, because Dworkin took Hart’s theory Hart (2012), not Kelsen’s, as the most “powerful” version of “legal positivism”).

Notwithstanding that, one may consider the following analysis as one possible way to relate Dworkin’s theory of law to Kelsen’s, and to find a possible place, in situated legal systems, for at least an important part of Dworkin’s conceptions.

In Dworkin (1977), Dworkin presents his concept of a general theory of law as a theory that has to be “normative as well as conceptual”, the conceptual part determining “what the law is”, the normative part determining “what the law should be” .

Thus, in opposition to Kelsen, which considers that the determination of the type of “content” of the legal systems is not a matter of concern for the theory of law (but of concern to political, moral, ideological,, etc. theories),

Dworkin states that the normative part of the theory of law should be “embedded in a more general political and moral philosophy”. In the particular case of the theory of law that he proposes, the contents required from legal systems are to have a politically “liberal” orientation, having at their core certain “pre-legal” (thus, political and moral) types of individual rights (Dworkin 1977).

Three particular normative theories should be encompassed by the normative part of such general theory of law, namely, a theory of legislation, a theory of adjudication, and a theory of compliance.

In Dworkin’s characterization of those particular normative theories, one may identify two types of goals that each should meet: to morally and politically guide the deliberation processes of the legal organs involved in the operation of law, and to define the operational conditions under which such deliberation processes should be realized.

Table 1 Normative part of a “general theory of law”, according to Dworkin (Dworkin 1977)

This is shown in Table 1, which indicates the two main aspects of each one of the particular normative theories identified by Dworkin.

One clearly notices, from Dworkin’s explanation of those particular theories (Dworkin 1977), that the “operative parts” of the theories may be reduced to what Kelsen called authorizations, because authorizations involve determinations not only of the legal actions that they authorize to be performed, and the determination of their corresponding legal performers, but also the spatial, temporal, and instrumental conditions for their realization.

On the other hand, the “deliberative” parts of the theories, which purport to morally and politically guide the legal organs, concern precisely what Kelsen’s theory assigns to the discretion of those legal organs. That is, apparently only the deliberative parts of the particular normative theories encompassed in Dworkin’s conception of general theory of law are not reducible to elements of Kelsen’s theory of law.

Thus, as we see it, Dworkin’s conception of law seems to relate to that of Kelsen in a way similar to that with which Hart’s conception relates to Kelsen’s, that is, more as a possible operational complement (dealing with principles for the determination of the contents of legal norms, and of methods for legal reasoning and decision-making) than as a full-fledged theoretical alternative to it.

Thhis point of view seems to be neatly in consonance with the role that Kelsen’s theory of law reserves for the (political, moral, ideological, etc.) points of view in the construction and evolution of legal systems, namely, the driving of the legal system toward certain directions, regarding its “content”.

Moreover, this point of view seems also to be in neat consonance with Hart’s own point of view about Dworkin’s theory, which Hart exposed in the Postscript to Hart (2012), stating that it was “not obvious why there should be or indeed could be any significant conflict” between his and Dowrkin’s theories (Hart 2012).Footnote 41

On the other hand, one should acknowledge the foundational difference between the two theories being confronted here, namely, the difference in the way each of them determines the source of the validity of legal norms.

For, while Kelsen plainly puts that source of validity of legal norms inside the legal order proper, in its basic norm (so that his notion of validity of legal norms is kept “pure”, i.e., exempt of components external to the legal order), Dworkin puts the source of validity of legal norms outside the legal order, in the principles (Dworkin’s terms are: “principles, policies, and other sorts of standards” Dworkin 1977, Chap. 2) that determine the practice of the legal organs of the legal system.

In other words, while Kelsen purports to present a pure foundation for law, in an almost transcendental kantian sense (Paulson and Paulson 2007), Dworkin seems to aim at a more concrete and specific social, or cultural, foundation, seeking support for the validity of legal norms in certain “liberal” moral, political, and economical principles (having the individual rights as their core): such principles would be responsible for determing both certain standards of behaviors for the legal organs, and certain standards of content for the legal norms.Footnote 42

However, the crucial conceptual difference between the two approaches to law concerns Dworkin’s idea that individual rights can “pre-exist any form of legislation” (Dworkin 1977).

Dworkin states in the following way his basic conception of individual right, taking the notion of a collective social goal as a reference (Dworkin 1977):

Individuals have rights when, for some reason, a collective goal is not a sufficient justification for denying them what they wish, as individuals, to have or to do, or not a sufficient justification for imposing some loss or injury upon them.

We focus here on the first type of right, relative to wishes to do or have something. We use the following expression, in standard logical notation and with an intuitive reading, as our formalization of Dworkin’s conception of such type of right (\(ag\) is an agent, \(r\) is a right, and \(g,g'\) are goals):

$$\begin{aligned} \begin{array}{l} \qquad \forall ag, r:\\ \qquad \qquad hasIndividualRight (ag,r) \Leftrightarrow \\ \qquad \qquad \qquad \qquad \qquad \qquad\exists g ( hasGoal (ag,g) \wedge \lnot \exists g' ( collectiveGoal (g') \wedge justifDenial (g',g))) \end{array} \end{aligned}$$

Notice, firstly, that Dworkin acknowledges that only a legal system can bind all the legal subjects of a society to the predicate \(hasIndividualRight\), given the possible variety of opinions of the legal subjects about the relative strengths of the different collective and individual goals that may be taken into consideration.

For, Dworkin’s conception is not that \(hasIndividualRight\) would be binding previously to the existence of any legal system, as would be the case if his notion of individual right were a variation of the classical notion of natural right. His conception is, rather, that \(hasIndividualRight\) can be binding previously to the existence of any pertinent legislation concerning the object \(g\) (in confrontation with \(g'\)) of the presumed right.

That is, the issue concerns not the way the predicate \(hasIndividualRight\) can become binding in general, but the way an individual instance of it, \(hasIndividualRight (ag,r)\), can be determined to be binding in a given hard case, for, then, the legal validity of that \(hasIndividualRight (ag,r)\), so determined, may serve as a principled guidance for solving the hard case being tried.

For Dworkin, the determination of the validity of an individual right, in a given hard case, should result from a judge “discovering” the “pre-existence” of that individual right, in that case (Dworkin 1977).

Given the non-applicability of a pertinent legislation, that “discovery” has, then, to be guided by certain moral and political principles (that Dworkin exposes Dworkin 1977), which would serve also the purpose of supporting the argument for the validity of the thus “discovered”, “pre-existent” individual right.

However, that seems to imply that for Dworkin (in opposition to Kelsen’s notion of authentic intepretation Kelsen 2009 Footnote 43) there is no space for innovations in the interpretation of law, in the sense that legal organs are never allowed to provide solutions to legal cases on bases that are new to the legal system and to its social context, but should always look for, and make use of, standards that are already established in the culture of the society.Footnote 44

Thus, Kelsen’s understanding of the solutions to hard cases seems to be not in complete opposition to that of Dworkin: the difference seems to be just that, for Kelsen, the theory of law should not be concerned with guiding the conduct of the legal organs, when dealing with such hard cases, while for Dworkin, that guidance should be taken as a legitimate concern for that theory.Footnote 45

11.3 Raz’s meta-theoretical requirements for theories of legal systems

Joseph Raz’s thesis (Raz 1970), written under the supervision of Hart, presents an interesting attempt to produce a systematic and encompassing analytical framework for theories of legal systems, including criteria for the analysis of existant theories and for the development of new ones.

Raz construes the idea of a theory of legal systems as any theory aiming to solve four main problems:

  1. 1.

    The problem of the existence of legal systems: What are the criteria to determine if a legal system exists, or not, in a given location and time?

  2. 2.

    The problem of the identity of legal systems (and the correlate problem of the membership to legal systems): What are the criteria to determine to what legal system belongs a given norm, and the set of laws that belong to a given legal system?

  3. 3.

    The problem of the structure of legal systems: Is there a structure that is common to all legal systems? Are there different types of legal systems?

  4. 4.

    The problem of the content of legal systems: Is there a content that is common to all legal systems? Are there different sets of contents, characteristic of different types of legal systems?

Concerning the problem of the existence of legal systems,Footnote 46 Raz states a distinction between theories that are based on material and on formal criteria for determining the identity of legal systems (Raz 1971): the first ones try to determine the identity of legal systems on the basis of their content, the latter on the basis of their form. One may say, in that sense, that Dworkin’s theory is of the first kind, while Kelsen’s and Hart’s are of the second kind.

Concerning the problem of the identity of (membership to) legal systems, one may say that Dworkin seeks to determine it on the basis of principles and policies, Kelsen on the basis of the basic norm, and Hart on the basis of the rule of recognition.

Concerning the problem of the structure of legal systems, one may say that all the three theories that we have examined adopt the idea that there is a general structure common to all legal systems, but that those general structures are different for each theory, although both Hart’s and Dworkin’s theories refer to law as it presents itself in its “surface” structure, while only Kelsen’s theory aims to explicitly reach its “deep” structure. Raz’s theory attempts that only implicitly, regarding what he calls the problem of the individuation of norms, see below.

Concerning the problem of the content of legal systems, it becomes clear that Dworkin is explicitly concerned with such issue (even though he provides an answer restricted to just one particular type of content, the politically liberal one), while Kelsen states that such issue does not concern explicitly the pure theory of legal systems (the only one he provides), and Hart provides important remarks about the separation (and systematic connections) between law and morals in general, and determines a minimum content for law (protection for persons, property, and promises).

Raz’s own theory of legal systems, in the final part of Raz (1970), aims at an “improvement” of Kelsen’s theory of legal systems, through the incorporation of contributions found in Bentham and Hart, with the core “improvement” being an alternative formulation of the source of the validity of legal norms, allowing the suppression of the “doctrine of the basic norm”. The detailed analysis of such theory, however, falls out of the scope of the present paper.

We remark, however, an important part of Raz’s work, namely, his methodological effort to establish principles for solving what he calls the problem of the individuation of legal norms. That is, an effort to establish a method for determining the deep structure that underlies the surface structure of the set of legal texts of a legal system, a methodological concern to which Kelsen gave no explicit attention.

12 Complementary topics

We treat in this section, in a very brief way, three complementary topics, which are relevant for the subject of situated legal systems.

12.1 Formalization of history-savvy situated legal systems

The concept of legal system adopted in the present paper, being based on Kelsen (2009), concerns Kelsen’s account of statutory law, not customary law, which he considered only later, in Kelsen (2007).

From the operational point of view, the formalization of customary law, with its creation and derogation (i.e., desuetude) of norms on the basis of the evolution of social customs, introduces the particular difficulty of providing a formal account of such type of system evolution.

That difficulty is similar to the one that should be overcome in the treatment of an issue that we have not treated in our formalization, namely, the issue of the efficacy of legal systems.

As is well know in legal theory, and Kelsen stresses it adequately (Kelsen 2009), a necessary condition of the validity of the legal norms of a legal system is that of the efficacy of the system’s norms: legal norms whose enforcement can not have a minimal level of efficacy in the social system where the legal system operates, should be considered non-valid.

In both cases (the formalization of customs and the formalization of the efficacy of legal norms), an explicit formal model should be provided for history-savvy situated legal systems, something that is only implicit in the formalization we gave here.

12.2 Normativity in multiagent systems

Normativity is by now an established subject of research in the Multiagent Systems area (Boella et al. 2006), with the usual approach being to tackle legal issues through formalizations based on deontic logic, or on other specific types of logics (defeasible, input-output, etc.), as surveyed, e.g., in Grossi and Rotolo (2011).

However, most of the work carried out following this direction seems to have been concerned only with the logical aspects of the legal reasoning and decision-making processes of legal organs (see, e.g., Governatori and Sartor 2011, or Grossi and Rotolo 2011), not with legal systems as functional systems situated in given agent societies, as we have aimed here.

12.3 Process-based models of legal systems

In this paper, we have introduced a formalization of Kelsen’s concept of legal systems in terms of an operational semantical framework based on the model of transition systems, whose general principles were first introduced in Plotkin (1981).

Since, from an operational point of view, an imputation is a relation between two events (that is, two occurrences of actions), an alternative formalization may possibily be given (perhaps in a more direct, simpler, and abstract way than we have done here), in terms of process-based models, à laHoare (1985) or Milner (1980).

As a first step toward the formal capturing of the structural and operational features of legal systems, however, we believe that the transistion systems approach that we have adopted is more convenient, due to its being more concrete, and apparently more intuitive.Footnote 47

13 An illustrative example

In this section, we illustrate the use of the proposed operational semantical framework to derive the validity of legal decisions in a sample situated legal system, viewed from the perspective of agent-based social simulation studies (Gilbert and Trotzsch 2005). The example concerns the application of a fine to a delict, regarding a public policy that regulates fishing activity in Brazil. In the example, one can see the use of the \({\mathrm {StAgSoc}}\) component of the legal configuration of situated legal systems as a source of social facts for the semantical derivation rules.

13.1 Situated legal systems and the modeling of public policy processes

For the application of legal systems and their operational semantics to the agent-tebased modeling and simulation of the execution phase of public policy processes, the framework depicted in Fig. 4 should be useful (Costa and Santos 2012).

The central feature of the framework is the structure of the public policies themselves, which are cast as sets of norms and plans.

Public policies are assumed to be emitted by an issuer agent (the Government, in Fig. 4), and government agencies are taken to act as detectors and effectors (for both norms and plans), following the architecture for public policy systems proposed in Hood (1983) (see also the location of legal systems in agent societies, shown in Fig. 1).

The framework is not only agent-based, but also artifact-based, meaning that the concept of artifact (Ricci et al. 2006) is used to computationally model the structural components of the legal systems (in particular, the plans and norms that constitute the public policies), which are cast as the so-called legal artifacts (Costa and Santos 2012).

Besides design patterns for legal artifacts, the framework also defines design patterns for the behaviors that the agents, both social and legal, may have toward the public policies norms and plans (both to comply and to not comply with those norms and plans).

Fig. 4
figure 4

A framework for the agent-based modeling of the execution phase of public policy processes (Costa and Santos 2012)

13.2 The public policy for the Defeso

In Brazil, the activity of fishing is regulated by IBAMA (Brazilian Institute for the Environment and Renewable Natural Resources),Footnote 48 which annually decrees specific regulations for each region in the country, with special attention to the restrictions on fishing activities during the spawning period, called the defeso.Footnote 49

The typical content of a regulation decree for a defeso, in a given area, can be summarized as follows:

  • This year, the defeso period in the area runs from October 15th to February 28th.

  • During the defeso:

    1. 1.

      Fishing in the area is allowed only for the subsistence of native people (max. of 03 kg per fisher per day, for local consumption) and for scientific research.

    2. 2.

      Fishing boats are strictly forbidden in the rivers of the area.

    3. 3.

      Fishing can only be performed with hand-held fishing sticks or hand-held fishing lines, with natural or artificial baits.

    4. 4.

      It is strictly forbidden to use baits that are exotic to the area.

    5. 5.

      Lines with multiple hooks are only allowed with artificial baits.

    6. 6.

      Native fishers are required to obtain a special license before they start their activity.

    7. 7.

      Industrialization and transportation of industrially processed fish is prohibited in the area, except in the case of farm raised fishes, in which case the farm should be specifically licensed.

    8. 8.

      A certificate of controlled origin is required for transportation of industrially processed fish, in the latter case.

    9. 9.

      Incompliance with this regulation implies liability to fines, retention of fishing equipment and boats, and administrative penalties by the IBAMA inspectors.

    10. 10.

      Surveillance of rivers and roads will be active in the area, and inspectors are formally authorized to inspect fishing equipment, boats, and road vehicles.

13.3 Formal presentation of the public policy

13.3.1 Some of the basic concepts

  • Agent types:

    • \(RegulationAgency\)

    • \(Inspector\)

    • \(Fisher\), with \(Fisher = NativeFisher \cup \overline{ NativeFisher }\)

  • Action types:

    • \(fine\)—impose a fine

    • \(fish3kg\)—fish more than 3 kg of fishes in a given day

    • \(boat\)—use fishing boat

    • \(boatret\)—retention of fishing boat

    • \(license\)—have a license

  • Corporate Agents:

    • \(IBAMA \in RegulationAgency\)

  • Legal norms: (concerning regulations 1, 2, 6, and 9)

    • \(( NativeFisher , fish3kg ) \Downarrow ( Inspector , fine )\)

    • \((\overline{ NativeFisher },fish) \Downarrow ( Inspector , fine )\)

    • \(( NativeFisher ,\overline{ license }) \Downarrow ( Inspector , fine )\)

    • \(( Fisher , boat ) \Downarrow ( Inspector , boatret )\)

  • Authorizations:

    • \(Auth ( IBAMA , createlnrm ( fnrm ))\), for any fishing norm \(fnrm\)

    • \(Auth ( Inspector , fine )\)

    • \(Auth ( Inspector , boatret )\)

13.3.2 Some of the derivation rules

  • Registration of legal fact about fishing more than 3 kg of fishes:

    For the defeso regulation, the rule \(R_1\)

    figure t

    where:

    • \(did( nf , fish3kg ) \in {\mathrm {StAgSoc}}\) means that \(did( nf , fish3kg )\) is a social fact in \({\mathrm {StAgSoc}}\)

    • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{did( nf , fish3kg )\}\)

    holds for any native fisher \(nf \in NativeFisher\) and any inspector \(insp \in Inspector\).

  • Imposition of fine for fishing more than 3 kg of fishes:

    For the defeso regulation, the rule \(R_2\)

    figure u

    where:

    • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{ fine ( nf )\}\) where, for the sake of space, \(fine ( nf )\) encodes an authorization \(Auth (lo, charge ( nf , fv3kg ))\) for \(lo\) to charge the fine value fv3kg from \(nf\).

    holds for any native fisher \(nf \in NativeFisher\), any legal organ \(lo \in {\mathrm {LOrg}}\), and any inspector \(insp \in Inspector\).

13.4 Derivation of a legally valid authorization to sanction

To illustrate the use of the proposed operational semantical framework in determining the validity of a legal authorization to sanction, we provide here an example derivation of a legally valid authorization to fine a fisherman for irregular fishing.

This can be obtained, in the context of the formal presentation of the public policy for the defeso, by a simple sequential application of the two rules, \(R_1\) and \(R_2\):

$$\begin{aligned} \begin{array}{c} \langle {\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}},{\mathrm {StAgSoc}} \rangle \\ \mathop {\longrightarrow }\limits ^{R_1}\\ \langle {\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}}',{\mathrm {StAgSoc}} \rangle \\ \mathop {\longrightarrow }\limits ^{R_2}\\ \langle {\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}}'',{\mathrm {StAgSoc}} \rangle \end{array} \end{aligned}$$

where:

  • \({\mathrm {RLFact}}' = {\mathrm {RLFact}} \cup \{did( nf fish3kg )\}\)

  • \({\mathrm {RLFact}}'' = {\mathrm {RLFact}}' \cup \{ Auth (lo, charge ( nf , fv3kg ))\}\)

This composition formally realizes one of the operational intents of the joint regulations one and nine of the public policy for the defeso, namely: to enable the charging of a fine from any native fisher that fishes more than 3 kg of fishes in a given day.

At the same time, the composition formally guarantees the legal validity of that enabling, in the context of the given legislation for the defeso, and the concrete situation found in \(\langle {\mathrm {LOrd}},{\mathrm {LOrg}},{\mathrm {RLFact}},{\mathrm {StAgSoc}} \rangle\).Footnote 50

14 Conclusion, and the way ahead

From the perspective of our work, the main idea we derived from Kelsen’s theory of legal systems, and from his conception of law as a social technology Kelsen (2009), is that (in the terms of the architectural style of agent societies presented in Sect. 2) legal systems are open, dynamic social systems that normatively perform coercive regulation functions in the agent societies where they are put to operate.

Such idea stimulated us to show, in the present paper, that the deep structure of law can be cast in operational terms, through an action-based semantical framework whose essential actions are legal acts performed by legal organs.Footnote 51

Even though we haved focused, here, almost exclusively on the internal operation of legal systems (as Kelsen himself did), the operational semantics that we have introduced is also capable to support the formal modeling of the way legal systems operate externally, that is, is capable to model the way the dynamics of a situated legal system couples with the dynamics of its underlying agent society (cf., e.g., (Costa and Dimuro 2009)), a subject that we should tackle in a future work.

In doing that, we will be able to relate our approach, of situating legal systems in agent societies, to two other systemic approaches to legal systems, namely, the institutional approach, by MacCormick and Weinberger (2010), which presents a renewed positivist conception of law, and the autopoietic approach, by Luhmann (2008), where the notion of “structural coupling” between legal systems and societies is of central importance.

Similarly to the present work, those two approaches also aim to present legal systems as operational structures that are simultaneously normative and functional, in the societies where they are situated.