Preprint
Article

This version is not peer-reviewed.

Logics of Statements in Context—Deduction in First-Order Logic

Submitted:

04 July 2026

Posted:

06 July 2026

You are already at the latest version

Abstract
Logics of Statements in Context (LoSiCs) have been proposed as a general framework to describe and relate, in a uniform and unifying way, a broad spectrum of logics and specification formalisms which also comprise \emph{open formulas}. Especially, it has been shown that we can define first-order logics in arbitrary categories. In the paper we demonstrate that traditional unsorted first-order logic can also be converted into a Logic of Statements in Context. We show that traditional first-order deduction can be described only relying on the LoSiC-concepts "context", "sketch" and "sketch implication". We analyze and formalize three different deduction calculi for traditional first-order logic - a Hilbert System H, a Gentzen System LJ and a corresponding Natural Deduction System ND. We elucidate the structural essence of reasoning in each of the systems and, thus, the crucial conceptual differences as well as their commonalities. Especially, we are able to formally and precisely grasp the different meanings of the turnstile symbol and the inference line, respectively. We reckon that the highlight of the paper, from the perspective of traditional first-order logic, is that the LoSiC-approach leads to the invention of "open sketch implications". This innovation enables us to syntactically represent the outcome of hypothetical proofs in Natural Deduction Calculi in a precise formal way and independent of the concrete hypothetical proof! Complementary, we demonstrate that open sketch implications give us "deduction rules in waiting position locally bound to a context" at hand. We show how those "locally bound deduction rules" can be employed in a semantical sound way. In summary, we somehow finally license hypothetical reasoning in traditional first-order logic as such.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Logics of Statements in Context (LoSiCs) have been introduced in [1] as a general framework enabling us to describe, analyze and relate a variety of diverse concepts, results and constructions from a broad spectrum of logics and other formalisms including First-Order Logic [2,3,4], Universal Algebra [5], Algebraic Specifications [6,7,8], Ehresmann Sketches [9], Generalized Sketches [10,11,12], Description Logic [13], Graph Transformations [14] and Software Modeling [15,16], for example.
When it comes to open formulas, we are faced with the strange situation that deduction in traditional first-order logic is, in fact, deduction of open formulas while open formulas have no "official meaning"! Nevertheless, the deduction calculi turn out to be sound and complete for closed formulas. Logics of Statements in Contexts propose a uniform way to define logics also comprising open formulas and to potentially resolve this paradoxical phenomenon in a precise formal way. As a first step, it has been shown in [1] that we can define arbitrary first-order open formulas and their semantics in arbitrary categories.
The crucial idea behind the concept of context is to establish an additional conceptual layer between syntax (signatures, constant symbols, variables, terms, formulas) and semantics (structures and their carriers). Especially, we want to offer a home for those entities, being around in logic, that neither properly belong to syntax nor to semantics.
Examples of contexts, we do have in mind, are sets of generators in Group Theory, sets of literals in PROLOG, sets of individual names (nominals, objects) in Description Logic, sets of Henkin constants, underlying graphs of Ehresmann sketches, underlying graph structures of Software Models and so on. Contexts can also accommodate Skolem constants as we will exemplify in Section 7 and Section 8.
An associated vision is, that contexts establish the "technological spaces" where deduction takes place, can be formalized and analyzed. Sets of (names for) elements in carriers, for example, can also take the role of contexts as outlined in the discussion of elementary diagrams in Section 5.1.
From the qualified perspective of traditional first-order logic the concept of LoSiCs boils down to the following principles and proposals:
1.
Instead of implicitly relying on sets of free variables syntactically appearing in open formulas, we propose to rather work with explicit declarations of sets of available free variables. This principle enables us to define arbitrary first-order open formulas in arbitrary categories and is especially relevant for many-sorted first-oder logic [17]!
2.
Treat open formulas as first-class citizens! This principle has, at least, three facets:
(a)
Any syntactic entity and, especially, any term and any open formula should have a semantics in any first-order structure. A term syntactically represents a derived operation build up from the basic operations, i.e., the semantics of the operation symbols (in a signature Σ ) fixed by the given Σ -structure U . Correspondingly, an open formula syntactically represents a derived predicate assembled, with help of the derived operations, from the basic predicates in U .
(b)
Introducing contexts implicates that the informal concept open formula splits into two formal concepts, namely expression and statement in context. Open formulas as such, i.e., only relying on free variables, are formalized as expressions. An expressions together with an embedding (binding) of its free variables into a context is called a statement in context.
(c)
The principle facilitates a shift of perspective: The actual subjects of first-order logic are not first-order structures as such but single (!) interpretations of contexts in structures. A closed formula simply is a statement in the empty context, i.e., a statement about the only interpretation of the empty context in a first-order structure, and thus a statement about the structure as a whole!
3.
The elements of contexts are, in principal, neither constant symbols nor variables nor elements of carrier sets. Or, to put it the other way around: Of course we can use one and the same entity in different roles, but we should always announce the corresponding role as well as changes of roles!
Ehresmann Sketches [9] and Generalized Sketches in the sense of Makkai [10] or Diskin [11,12] are two of the main historical roots of LoSiCs and provide paradigmatic examples (comprising, however, only atomic statements in context). Therefore, we decided to reuse in LoSiCs the term sketch to denote a pair consisting of a context and a set of arbitrary first-order statements in this context. In [1] we also adapted Makkai’s concept of sketch implication [10]. In LoSiCs a sketch implication is given by two sketches and a morphism between the two underlying contexts. In this paper we demonstrate, for the first time, how sketch implications also can be employed as rules to deduce new sketch implications from given ones in a sound way.
In view of LoSiCs, traditional notations in first-order logic are lazy in the sense that there are neither explicit variable declarations nor are contexts explicitly considered. Accordingly, there are no explicit bindings or context morphisms either. The only morphisms, implicitly present in traditional first-order logic, are inclusion maps.
By introducing explicit variable and context declarations as well as explicit inclusion maps, we are fortunately able to recast the traditional lazy approach to first-order logic in a LoSiC-compatible way based on a special kind of sketches, called Σ-specifications, and a special kind of sketch implications, called Σ-specification implications. The price, we have to pay to achieve this, is compliance with Barendregt’s variable convention [18].
After this has been settled, we are able to accomplish the main objective of the paper, namely to certify the LoSiC-approach, once more, by demonstrating that we can formalize and re-validate traditional first-order deduction only relying on the novel concepts context, Σ-specifications and Σ-specification implication. We analyze and formalize three different deduction calculi for traditional first-order logic - a Hilbert System H , a Gentzen’s system L J and a corresponding Natural Deduction System N D . We elucidate the structural essence of reasoning in each of the systems and, thus, the crucial conceptual differences as well as their commonalities. Especially, we are able to formally grasp the different meanings of the turnstile symbol ⊢ and the inference line, respectively.
We reckon that the highlight of the paper, from the perspective of traditional first-order logic, is that the LoSiC-approach leads to the invention of open Σ-specification implications. This innovation enables us to syntactically represent the outcome of hypothetical proofs in Natural Deduction Calculi in a precise formal way and independent of the concrete hypothetical proof! Complementary, we demonstrate that open Σ-specification implications give us "deduction rules in waiting position locally bound to a context" at hand. We show how those locally bound deduction rules can be employed in a semantical sound way. In summary, we somehow finally license hypothetical reasoning as such.
Triggered by an intensive and inspiring discussion with Nicolas Behr and his group in spring 2025, we decided to be this time, in contrast to [1] and [17], more rigorous and to fully back up our exposition by a hom-set based formalization of the semantics of quantification as elaborated in the Appendix A of the paper.
The paper is organized as follows. Section 2 recapitulates necessary concepts and constructions from category theory and fixes corresponding notational conventions.
Relying on hom-sets as categorical products, instead of Cartesian products, Section 3 gives a rigorous and novel description of basic concepts in unsorted first-order logic and their semantics – signatures, terms and expressions.
Section 4 demonstrates how to construct for any unsorted first-order signature Σ a corresponding institution FL Σ of Σ -statements in context not only comprising closed formulas, as it is traditionally the case [19,20], but also open formulas! In addition, we study syntax and semantics of substitutions and establish a corresponding satisfaction condition.
In Section 5 we introduce for any institution FL Σ corresponding Σ -sketches P = ( P , S t P ) and sketch arrows given by two sketches P , S and a map ψ : P C between the two underlying contexts. Sketch arrows are subject of two different, but dual, semantical conditions. First, any institution gives us a corresponding concept of presentation morphism at hand [19,20]. We discuss the corresponding morphism condition and, as a terminological sleight of hand, we use the term sketch morphism to indicate that a sketch arrow is subject of the morphism condition. The implication condition is the second semantical condition for sketch arrows and is addressed in [10]. We use the term sketch implication to indicate that a sketch arrow is subject of the implication condition. As a new result, we show in SubSection 5.3 that sketch implications can be applied, via sketch morphisms as matches, to deduce new sketch implications and we prove that this kind of deduction is sound.
Section 6 shows that traditional first-order logic can be equivalently described by restricting the institutions FL Σ to inclusion maps. As a suitable special kind of sketches we introduce Σ-specifications and also Σ-specification implications as a corresponding special kind of sketch implications. In Section 6.4 we prove that we can deduce Σ -specifications, in a sound way, by applying Σ -specification implications as rules via substitutions as matches.
In Section 7 we analyze and exhaustively re-validate a Hilbert System H and a Gentzen’s system L J relying on the concepts context, Σ-specifications and Σ-specification implication. In Section 8 we do the same for a corresponding Natural Deduction System N D and introduce the novel concept of open Σ-specification implication enabling us to finally license hypothetical reasoning in traditional first-order logic.
We conclude the paper with Section 9.

2. Notations and Preliminaries

The paper assumes some knowledge on category theory. We summarize in this section the basic concepts, constructions and results from category theory, utilized in the paper, and our corresponding notational conventions. We recommend [9] as an introduction into category theory for logicians and computer scientists.
Categories and Functors: | C | denotes the collection of objects of a category C and C M o r the collection of morphisms of C , respectively. C ( A , B ) is the collection of all morphisms from object A to object B in C . If the category C is clear from the context, we will often use the more compact notation B A instead of C ( A , B ) . We use the diagrammatic notation f ; g : A C for the composition of morphisms f : A B and g : B C in C .
Set denotes the category of all sets and all (total) maps. For any inclusion A B of sets there is a corresponding inclusion map i n A , B : A B with i n A , B ( a ) = a for all a A . The cardinality of a finite set A is denoted by | A | .
An object 0 in a category C is called initial if there exist for any object A in C exactly one morphism from 0 into A often denoted by ! A : 0 A and called initial morphism for A. The empty set is the initial object in Set while for any set A the corresponding initial morphism for A is simply the inclusion map ! A = i n A , B : A .
A category C is small if the collection C M o r , and thus also the collection | C | , is a set. Cat is the category of all small categories. Cat and Set are not small! A category C is locally small if C ( A , B ) is a set for all objects A and B in C . Cat and Set are locally small! CAT is the category with all small categories and categories like Cat and Set as objects.
For a category C we denote by g r ( C ) the underlying reflexive graph, i.e., in g r ( C ) we simply forget that there is a composition operation in C . Obviously, each functor F : C D comprises a corresponding reflexive graph homomorphism F : g r ( C ) g r ( D ) between the underlying reflexive graphs. Not every reflexive graph homomorphism G : g r ( C ) g r ( D ) establishes, however, also a functor G : C D because a reflexive graph homomorphism G : g r ( C ) g r ( D ) is not required to be compatible with composition.
We consider also reflexive graph homomorphisms from reflexive graphs H into the underlying reflexive graph g r ( D ) of categories D and denote them by F : H D (compare the concept of a model of a graph in a category in [9]). The traditional definition of natural transformations between functors can be reused to define natural transformations α : F G between those reflexive graph homomorphisms F , G : H D .
Natural Transformations: If α : F G : A B and β : G H : A B are natural transformations, the vertical composition of α and β is denoted α ; β : F H : A B such that for each A | A | , ( α ; β ) A : = α A ; β A .
Also, if F : A B , G , G : B C , H : C D are functors and α : G G : B C is a natural transfomation, the horizontal compositions of F with α , and α with H are represented as F α : F ; G F ; G : A C and α H : G ; H G ; H : B D such that for each C | C | , A | A | , ( F α ) C : = α F ( C ) whereas ( α H ) A : = H ( α A ) .
Preprints 221586 i001
The traditional definition of natural transformations α : F G : A B between functors can be reused to define natural transformations α : F G : g r ( A ) g r ( B ) for all (!) reflexive graph homomorphisms between the underlying reflexive graphs of categories (compare [9]).
Institutions: The concept of Institution introduced by Goguen and Burstall [19] formally captures the notion of logical systems. A similar proposal of an abstract concept of a logic had been given already by Barwise [21]. The following definition can be found in [19,20]: An institution I = ( Sig , Sen , Mod , ) is given by a category Sig of (abstract) signatures, a functor Sen : Sig Set , a functor Mod : Sig o p CAT and a | Sig | -indexed family Σ | Mod ( Σ ) | × | Sen ( Σ ) | of satisfaction relations such that for each morphism φ : Σ Σ in Sig , the Satisfaction Condition
M Σ Sen ( φ ) ( e ) i f a n d o n l y i f Mod ( φ ) ( M ) Σ e
holds for each (abstract) model M | Mod ( Σ ) | and (abstract) sentence e | Sen ( Σ ) | .
Name spaces: It is under-communicated that the definition of morphisms between concrete institutions often relies on the implicit assumption that the syntactic entities of both institutions are build upon the same stocks of symbol identifiers. We restrict ourselves to finitary syntactic entities. Therefore, we assume that all considered first-order institutions FL Σ are build upon a certain choice of three enumerable and disjoint name spaces:
  • A set N f u n of names for operation symbols.
  • A set N p r e d of names for predicate symbols.
  • A set N v a r of names for variables which is equipped with a fixed total order.
We choose N v a r to be the totally ordered set { x , x 1 , x 2 , , y , y 1 , y 2 , , z , z 1 , z 2 , } .
In the general LoSiC-terminology, introduced in [1], all institutions FL Σ share the same base category Base : = Set .

3. Basic Concepts and Constructions in First-Order Logic

Relying on hom-sets, instead of Cartesian products, we recast in this section the definitions of the basic syntactic and semantic concepts of unsorted first-order logic.

3.1. Signatures and Structures

In this paper about first-order logic we use the traditional term signature instead of the neologism footprint coined for the general setting in [1]. Since we will neither misuse constant symbols to encode variables nor to encode elements of carriers of first-order structures, we can restrict ourselves to finite signatures only.
To achieve category-independent definitions, we require in [1] that the arities of predicate and operation symbols are defined by means of "variable declarations". In LoSiC-terminology all FL Σ share the same category Var of "variable declarations". For unsorted first-order logic we simply define Var to be the set V a : r = f i n ( N v a r ) of all finite subsets of N v a r (considered as a discrete subcategory of Base = Set ). We will simply use the term set of variables, instead of "variable declaration", for those finite subsets X N v a r .
Definition 1
(Signature). Asignature Σ = ( P , F , a r , i n , o u t ) is given by
  • a finite set P N p r e d of predicate (relation) symbols,
  • a finite set F N f u n of operation (function) symbols, and
  • arity functions a r : P V a r , i n : F V a r , o u t : F V a r where o u t ( op ) is a singleton for all op F . We assume that i n ( op ) and o u t ( op ) are disjoint for all op F (compare [22]).
We intend to be as precise as possible concerning notations. Therefore, we include in the paper many remarks devoted to bridge the notational gap between the category-independent notations in [1] and the traditional notations in first-order logic. We tried our best, but still the notations may become too heavy at some places and we apologize for this. Another essential part of the many remarks is devoted to explain the new or modified concepts and to discuss their relationships to traditional concepts.
Remark 1
(Representation and Syntactification of Sets of Variables). Any set X of variables inherits a total order from N v a r . This allows us to represent X as an n-tuple ( v 1 X , , v n X ) of variables with n = | X | thecardinalityof X and v i X denoting the i-th variable in the totally ordered set X for all 1 i n .
In such a way, we also can syntactically encode the set X of variables by the string of symbols syn ( X ) : = [ v 1 X , , v n X ] . We use the delimiter signs … to indicate that the expression between the delimiters is a string of symbols. So, the delimiter signs are not constituents of syntatctic entities and we may just drop them if convenient.
Example 1
(Signature). We define a signature Σ = ( P , F , a r , i n , o u t ) to describe and reason about structures with an irreflexive order relation, constants zero and one as well as binary operations addition and multiplication as follows:
  • P = { less } with arity a r ( less ) = { x 1 , x 2 } ; and
  • F = { 0 ̲ , 1 ̲ , + ̲ , * ̲ } with input arities i n ( 0 ̲ ) = i n ( 1 ̲ ) = , i n ( + ̲ ) = i n ( * ̲ ) = { x 1 , x 2 } and output arities o u t ( 0 ̲ ) = o u t ( 1 ̲ ) = o u t ( + ̲ ) = o u t ( * ̲ ) = { y } .
In unsorted first-order logic we traditionally assume that all structures do have a non-empty carrier set! This is a crucial prerequisite to achieve soundness of the traditional lazy approach to first-order deduction that avoids, as much as possible, to explicitly handle (sets of) variables! So, in LoSiC-terminology all institutions FL Σ share the same category Carr : = Set { } of potential carriers of structures. After we this is clarified, we are going to define the category of structures for a given signature Σ .
Definition 2
(Structure). For a signature Σ = ( P , F , a r , i n , o u t ) a Σ -Structure U = ( U , P U , F U ) is given by
  • a set U, called thecarrierof U ,
  • a family P U = { p U p P } ofpredicates, i.e., subsets p U U a r ( p ) = Set ( a r ( p ) , U ) ofvalid assignmentsfor the predicate symbol p in U , and
  • a family F U = { op U op F } ofoperations (functions) op U : U i n ( op ) U o u t ( op ) in U .
Remark 2
(Notation of Structures). We draw attention to a notational subtlety: We denote a structure and its underlying carrier set with the same letter but in different fonts. For the Σ-structure we use the calligraphic font U and for the carrier set we are using the normal font U. Note, that the superscripts for the predicates and operations are therefore also calligraphic!
Remark 3
(Hom-set vs. Cartesian Product). Attention! We don’t follow the traditionally way to use Cartesian products to define predicates and operations. We use hom-sets Set ( X , U ) instead!
The category Set is small thus the hom-set Set ( X , U ) is a set and can be treated, in a "self-referential way", as an object in Set ! Besides many other specialties of Set , we do have that Set (X,U) can be considered to "be the same" as the set U X of all maps from X to U, which is, in turn, anexponential objectin Set . The exponential object U X is, however, also a (categorical) product in Set . Especially, it is isomorphic to the Cartesian product U n = U × × U with n = | X | !
For nearly any other category the equivalence between the concepts hom-set, exponential object, and (categorical) product vanishes! It took us a while to realize the disappearance of this "self-evident equivalence" in other categories and to find out, that only the hom-set perspective allows us to generalize first-order logic to arbitrary categories in the way it is outlined in [1].
Remark 4
(Representation of Variable Assignments). We consider a set X of variables with n = | X | . For a given set U, a map a : X U will be also called(variable) assignment of X in U.
There is a bijection between the set U X of all assignments of X in U and the Cartesian product U n . That is, anyassignment a : X U can equivalently be represented as an n-tuple a = ( a 1 , , a n ) U n with a i = a ( v i X ) for all 1 i n where the v i X are defined as in Remark 1.
We utilize both notations a : X U and a = ( a 1 , , a n ) synonymously. Note, that in case of the empty set X = the only element ! U : U in U is represented by theempty tuple ( ) .
Due to the hom-set perspective the translation of variable assignments along homomorphisms can be expressed by simple composition thus the homomorphism conditions appear in an unconventional but quite adequate form.
Definition 3
(Homomorphism). A Σ -homomorphism ς : U V between two Σ-structures U and V is given by a map ς : U V such that
1.
a p U implies a ; ς p V for all p P and all assignments a : a r ( p ) U , i.e., the post-composition map ( _ ; ς ) : U a r ( p ) V a r ( p ) , with ( _ ; ς ) ( a ) : = a ; ς for all a U a r ( p ) , restricts to a map ( _ ; ς ) : p U p V .Preprints 221586 i002
2.
op U ( a ) ; ς = op V ( a ; ς ) for all op F and all input assignments a : i n ( op ) U , i.e., op U ; ( _ ; ς ) = ( _ ; ς ) ; op V .
Preprints 221586 i003
Remark 5
(Notation of homomorphisms). The convention to denote a Σ-structure and its carrier set by the same letter but in differents fonts, allows us to distinguish as well between different kinds of morphisms: When we write ς : U V , we mean a map. When we write, however, ς : U V , we mean a Σ-homomorphism. In such a way, the notation ς : U V carries the implicit information/assumption that ς is not only a map but satisfies, in addition, the homomorphism conditions.
Example 2
(Structures and Homomorphisms). For the sample signature Σ = ( P , F , a r , i n , o u t ) in Example 1 with P = { less } , F = { 0 ̲ , 1 ̲ , + ̲ , * ̲ } we consider three Σ-structures:
1.
N = ( N , P N , F N ) with N the set of all natural numbers as carrier.
  • less N N { x 1 , x 2 } is the usual irreflexive order on N : a less N iff a ( x 1 ) < a ( x 2 ) .
  • 0 ̲ N : N N { y } is the natural number zero: 0 ̲ N ( ! N ) ( y ) : = 0 for the only element ! N N . 1 ̲ N : N N { y } is the natural number one: 1 ̲ N ( ! N ) ( y ) : = 1 .
  • + ̲ N : N { x 1 , x 2 } N { y } is addition of natural numbers, i.e., for all a N { x 1 , x 2 } we do have + ̲ N ( a ) ( y ) : = a ( x 1 ) + a ( x 2 ) . * ̲ N : N { x 1 , x 2 } N { y } is multiplication of natural numbers: * ̲ N ( a ) ( y ) : = a ( x 1 ) * a ( x 2 ) for all a N { x 1 , x 2 } .
2.
Q = ( Q , P Q , F Q ) with Q the set of all rational numbers as carrier.
  • less Q Q { x 1 , x 2 } is the usual irreflexive order on Q : a less Q iff a ( x 1 ) < a ( x 2 ) .
  • 0 ̲ Q : Q Q { y } is the rational number zero: 0 ̲ Q ( ! Q ) ( y ) : = 0 for the only element ! Q Q . 1 ̲ Q : Q N { y } is the rational number one: 1 ̲ Q ( ! Q ) ( y ) : = 1 .
  • + ̲ Q : Q { x 1 , x 2 } Q { y } is addition of rational numbers, i.e., for all a Q { x 1 , x 2 } we do have + ̲ Q ( a ) ( y ) : = a ( x 1 ) + a ( x 2 ) . * ̲ Q : Q { x 1 , x 2 } Q { y } is multiplication of rational numbers: * ̲ Q ( a ) ( y ) : = a ( x 1 ) * a ( x 2 ) for all a Q { x 1 , x 2 } .
3.
P = ( ( N ) , P P , F P ) with the power set ( N ) as carrier.
  • less P ( N ) { x 1 , x 2 } is the irreflexive inclusion order: a less P iff a ( x 1 ) a ( x 2 ) .
  • 0 ̲ P : ( N ) ( N ) { y } is the empty set: 0 ̲ P ( ! ( N ) ) ( y ) : = for the only element ! ( N ) ( N ) . 1 ̲ P : ( N ) ( N ) { y } is the set N : 1 ̲ P ( ! ( N ) ) ( y ) : = N .
  • + ̲ P : ( N ) { x 1 , x 2 } ( N ) { y } is union of sets, i.e., for all a ( N ) { x 1 , x 2 } we do have + ̲ P ( a ) ( y ) : = a ( x 1 ) a ( x 2 ) . * ̲ P : ( N ) { x 1 , x 2 } ( N ) { y } is intersection of sets: * ̲ P ( a ) ( y ) : = a ( x 1 ) a ( x 2 ) for all a ( N ) { x 1 , x 2 } .
The inclusion map i n N , Q : N Q obviously defines a Σ-homomorphism i n N , Q : N Q , while the embedding map { _ } : N ( N ) assigning to each natural number n N the singleton { n } does not provide a Σ-homomorphism from N to P .
For any Σ -structure U the identity map i d U : U U obviously establishes a Σ -homomorphism ς : U U . Moreover, it can easily be shown that for any Σ -homomorphisms ς : U V , ε : V W the composition ς ; ε : U W of the underlying maps becomes also a Σ -homomorphism ς ; ε : U W . Identity and associativity law for composition are inherited from the category Set , thus we obtain the category of all Σ -structures and all Σ -homomorphisms denoted by Str ( Σ ) .

3.2. Terms and First-Order Expressions: Syntax

We consider terms and first-order expressions as syntactic entities and define them as finite strings of symbols. To distinguish terms from meta-level expressions, such as op U ( a 1 , , a n ) , we will use angle bracket symbols " " , " " , instead of parenthesis " ( " , " ) " , to build terms. As discussed in Remark 1, we will use delimiter signs to indicate that the expression between the delimiters is a string of symbols.
The following is a traditional inductive definition of terms similar to [5,6,7] and relies on the notational conventions in Remark 4:
Definition 4
(Terms: Syntax). The set T Σ ( X ) of all Σ -termsover a set X of variables is the smallest set of strings of symbols such that
Variables:
x T Σ ( X ) for all x X ;
Constants:
c T Σ ( X ) for all c F with i n ( c ) = ;
Operations:
op t 1 , , t n T Σ ( X ) for all op F with n = | i n ( op ) | 1 and all assignments t = ( t 1 , , t n ) in T Σ ( X ) i n ( op ) .
Note that the assignments x x , assigning to each element in X the string constituted exactly of this single symbol, define an injective map η X : X T Σ ( X ) .
Note further, that each operation symbol op F with n = | i n ( op ) | 1 is reborn as the Σ -term op v 1 i n ( op ) , , v n i n ( op ) T Σ ( i n ( op ) ) s r t ( op ) with the v i i n ( op ) as in Remark 4.
Examples of terms can be found in Example 3 (Expressions: Syntax).
Remark 6
(Terms: Inclusions). We do have T Σ ( Y ) T Σ ( X ) whenever Y X . For a set X of variables not every Σ-term in T Σ ( X ) "syntactically contains" all the variables in X. The set f v ( t ) of all variables in X, "syntactically appearing" in a Σ-term t T Σ ( X ) , is the smallest subset Y X such that t T Σ ( Y ) . Inductively, we can define f v ( t ) as follows: f v ( x ) : = { x } , f v ( c ) : = and f v ( op t 1 , , t n ) : = f v ( t 1 ) f v ( t n ) .
Remark 7
(Syntactification of Substitutions). A variable assignment of the form t : X T Σ ( Y ) will be also called a Σ -substitution (declaration). Due to Remark 4, we can uniquely represent any Σ-substitution t : X T Σ ( Y ) by an n-tuple ( t 1 , , t n ) of terms where n = | X | .
What we implicitly did in Definition 4, is to introduce the correspondingsyntactic encoding syn ( t ) : = t 1 , , t n of the substitution t : X T Σ ( Y ) as a string of symbols.
For the injective map η X : X T Σ ( X ) we get syn ( η X ) : = v 1 X , , v n X with variables v i X due to Remark 1. In case of the empty set X = the only element ! T Σ ( Y ) : T Σ ( Y ) in T Σ ( Y ) is represented by theempty tuple ( ) thus we have syn ( ( ) ) = .
We introduce first-order expressions as the basic syntactic entities in our formalization of the informal concept of an "open formula". As syntactic entities we define them as strings of symbols relying on the notational conventions in Remark 1 concerning the syntactic representation of finite sets of variables and in Remark 7 concerning the syntactic representation of substitution declarations.
Definition 5
(Expressions: Syntax). For a signature Σ = ( P , F , a r , i n , o u t ) , we define inductively and in parallel a family F E Σ of sets F E Σ ( X ) of(first-order) Σ -expressions E x on X, X E x in symbols, where X varies over all sets of variables, i.e., all elements in V a r :
1.
Atomic expressions:
(a)
Equation: X ( t 1 = t 2 ) for any Σ-terms t 1 , t 2 T Σ ( X ) .
(b)
Relational Atom: X p syn ( t ) for any p P and any t : a r ( p ) T Σ ( X ) .
2.
Everything: X for any set X of variables.
3.
Void: X for any set X of variables.
4.
Conjunction: X ( E x 1 E x 2 ) for any expressions X E x 1 and X E x 2 .
5.
Disjunction: X ( E x 1 E x 2 ) for any expressions X E x 1 and X E x 2 .
6.
Implication: X ( E x 1 E x 2 ) for any expressions X E x 1 and X E x 2 .
7.
Negation: X ¬ E x for any expression X E x .
8.
Quantification: X ( syn ( Y X ) : E x ) and X ( syn ( Y X ) : E x ) for any expression Y E x and any proper inclusion X Y .
Remark 8
(Expressions: Indexed vs Fibred Syntax). We construct in Definition 5 a V a r -indexed family of sets, i.e., a map F E Σ : V a r | Set | . The elements of F E Σ ( X ) are expressions E x on X. Obviously, there are for any expression E x infinite many different sets X of variables such that E x F E Σ ( X ) ! The notation X E x simply encodes the "meta-level statement" E x F E Σ ( X ) and serves, at the same time, as a notational means to describe the disjoint union of all the sets F E Σ ( X ) as the set F E Σ : = { X E x X V a , r E x F E Σ ( X ) } .
So, the syntax of expressions is described in two equivalent versions - theindexed version F E Σ : V a r | Set | and thefibred versiongiven by F E Σ and the projection Π V : F E Σ V a r with Π V ( X E x ) : = X for all X E x F E Σ . We will utilize both versions in parallel!
Remark 9
(Syntax of expressions). Every predicate symbol p P is reborn as the Σ-expression a r ( p ) p v 1 a r ( p ) , , v n a r ( p ) since syn ( η a r ( p ) ) = v 1 a r ( p ) , , v n a r ( p ) with n = | a r ( p ) | according to Remark 7.
There are three changes/corrections compared to the category-independent Definition 8 of expressions in [1] where quantification is defined by means of morphisms since morphisms are the only ingredients we do have available in arbitrary categories.
First, we do not use arbitrary maps between sets of variables but only proper inclusion maps i n X , Y : X Y in quantifications. Second, these inclusion maps are not considered to be morphisms in the category Var of "variable declarations" for the institutions of statements FL Σ defined in Section 4.1. (This is a correction!) Third, we adapt the traditional notation for quantification, i.e., we represent the proper inclusion maps i n X , Y : X Y by the complements Y X in Set . Be aware, that the sets X, Y X are disjoint and that Y can be reconstructed as their union Y = X ( Y X ) .
Remark 10
(Free and Bound Variables). Relying on Definition 4 and 5, we can inductively define for any expression E x the set f v ( E x ) of allfree variables"syntactically appearing" in E x and the set b v ( E x ) of allbound variablesin E x . The basic case "Atomic expressions" is given by Remark 6 for free variables and the fact that terms do not have bound variables. Induction passes trivially through the con nectives. The essential deduction step is "Quantification".
f v ( ( syn ( Y X ) : E x ) ) = f v ( ( syn ( Y X ) : E x ) ) : = f v ( E x ) ( Y X )
b v ( ( syn ( Y X ) : E x ) ) = b v ( ( syn ( Y X ) : E x ) ) : = b v ( E x ) ( Y X )
Attention, the definition of quantification in Definition 5 ignores the free variables in E x . So, it may happen that none of the variables in Y X actually appears as a free variable in E x !
We witness here a kind of "methodological accident" in the sense that the instantiation of our category independent approach to quantification in [1] reinvents, in the special case of traditional first-order logic, a well-known principle.
Our approach, to explicitly declare first all the variables X , which are available, before actually constructing expressions using only the variables in X, together with our requirement X Y for quantification has a subtle but important consequence. If X E x then all the free variables in E x are contained in X, i.e., f v ( E x ) X , and none of the variables in X appears as a "bound variable" in E x , i.e., b v ( E x ) X = . Other variables than the ones in X can appear, however, multiple times as bound variables in E x but only in non-overlapping "sub-expressions". These restrictions correspond toBarendregt’s variable conventionfor the λ-calculus (see [18], p. 26):
  • bound variables are distinct from free variables, i.e., b v ( E x ) f v ( E x ) = , and
  • all binders bind variables not already in scope, i.e., ( Y X ) b v ( E x ) = in case of quantification with Y E x and X Y .
To say it the other way around: Any traditional "well-formed formula", in the sense of [4] for example, complying with Barendregt’s variable convention corresponds to an expression in the sense of Definition 5 since the convention ensures that we can unambiguously construct the proper inclusions X Y we need to define the case Quantification in Definition 5 (see also Remark (9)).
Compliance with Barendregt’s variable convention ensures that we can characterize f v ( E x ) as the smallest set Z of variables such that Z E x .
Lemma 1
(Reducing Variable Declarations). For any set X of variables and any Σ- expression E x F E Σ ( X ) , i.e., X E x , we also have E x F E Σ ( Z ) , i.e., Z E x , for all sets Z of variables with f v ( E x ) Z X .
Proof. 
By induction on expressions according to Definition 5. For atomic expressions the claim is obvious since t T Σ ( f v ( t ) ) T Σ ( Z ) T Σ ( X ) for any t T Σ ( X ) if f v ( t ) Z X , due to Remark 6. Induction passes trivially through the connectives.
In case of quantification X Q ( syn ( Y X ) : E x ) with Q { , } let Z be arbitrary with f v ( Q ( syn ( Y X ) : E x ) ) Z X . Due to Definition 5 and the definition of free variables in (1), we get f v ( E x ) Z ( Y X ) X ( Y X ) = Y with Z ( Y X ) = and thus ( Z ( Y X ) ) Z = Y X . By Induction Hypothesis, ( Z ( Y X ) ) E x and thus Z Q ( syn ( Y X ) : E x ) due to Definition 5. □
Remark 11
(Everything and Void). We consider ⊤ and ⊥ not aslogical constantsbut asbuilt-in nullary predicate symbols, i.e., a r ( ) = a r ( ) = . Therefore, we are not using traditional constant symbols likeTorF, for example. Built-in, means, especially, that ⊤ and ⊥ do have a fixed semantics for any Σ-structure U = ( U , P U , F U ) , namely U = and U = U = { ! U : U } . Be aware, that the string in X and X encodes the initial morphism ! T Σ ( X ) : T Σ ( X ) . Analogously, the equation symbol "=" represents a binary built-in predicate symbol with arity a r ( = ) = { x 1 , x 2 } and a fixed semantics in any Σ-structure. Finally, built-in means that none of the symbols = , , appears in any of the sets N p r e d , N f u n or N v a r .
Remark 12
(Closed expressions: Syntax). Σ-expressions of the form E x will be calledclosed Σ -expressions. They represent nullary derived predicates that can be either valid or not valid in a given Σ-structure (compare Remark 11 and Remark 16).
Example 3
(Expressions: Syntax). We discuss some Σ-expressions for our sample signature Σ = ( P , F , a r , i n , o u t ) with P = { < ̲ } , F = { 0 ̲ , 1 ̲ , + ̲ , * ̲ } in Example 1.
The following closed Σ-expression, which we identify by the "auxiliary name" madd ,
madd : = ( { x , y , z } : < ̲ x , y < ̲ + ̲ x , z , + ̲ y , z )
claims that the order relation is strict monoton w.r.t. addition. We can also express De Morgan laws
demo : = ( { x , y , z } : ( + ̲ x , * ̲ y , z = * ̲ + ̲ x , y , + x , z ̲ )
Our main methodological point is, however, to consider expressions as syntactic representations ofderived predicates,enabling us to denote properties in an anonymous way (analogously to "anonymous functions" in functional programming).
We may, for example, define the property "even" by the following Σ-expression
even : = { x } ( { y } : x = * ̲ y , + ̲ 1 ̲ , 1 ̲ ) ,
which we consider as a derived predicate with arity { x } and "auxiliary name" even . We may be also interested to define the property "minimum"
min : = { x } ( { y } : ( x = y ) < ̲ x , y )
and the property "local minimum"
lmin : = { x } ¬ ( ( { y } : < ̲ y , x ) ) .
Or, we want to have the concept "immediate successor" at hand
succ : = { x , y } ( < ̲ x , y ¬ ( ( { z } : < ̲ x , z < ̲ z , y ) ) ) .
We may be even interested to talk about "prime numbers"
prim : = { x } ( < ̲ ( 1 ̲ , x ) ( { y , z } : x = * ̲ y , z ( ( y = 1 ̲ z = x ) ( y = x z = 1 ̲ ) ) ) ) .
We may also introduce a tertiary predicate "sum" representing the graph of the addition operation
sum : = { x , y , z } ( + ̲ x , y = z ) .
Remark 13
(Role of Auxiliary Names). The auxiliary names madd , demo , even , min , lmin , succ , sum in Example 3 are not auxiliary predicate symbols! They are shorthands for Σ-expressions and live on the "meta-level". They are something likemacrosin assembly programming. The auxiliary names bring us closer to the praxis of "working mathematicians":
  • We define new properties/concepts and give them a name to be able to formulate our statements in a more natural language style, like "the sum of two even numbers is also even" for example.
  • To formally prove those statements, we have to unfold our definitions. In assembly programming they use the termmacro expansionfor this kind of unfolding.
  • On the other hand, we need a mechanism to "fold" our proofs into those natural language like statements.
A first variant of such a "folding of proofs" is discussed in Section 8.2.

3.3. Terms and First-Order Expressions: Semantics

As mentioned in Section 1, the semantics of a Σ -term in a given Σ -structure should be a derived operation. To define those operations, we consider the evaluation of Σ -terms in Σ -structures: Let a Σ -structure U = ( U , P U , F U ) be given. Based on Definition 4 and employing the fixed semantics op U of all operation symbols in F, we can inductively extend any assignment a : X U of a set X of variables in the carrier U to a map a : T Σ ( X ) U such that
Preprints 221586 i004
This allows us to define the semantics t U of a Σ -term t T Σ ( X ) in a Σ -structure U as the map t U : U X U defined by t U ( a ) : = a ( t ) for all a : X U . We call t U the derived operation in U represented by t. Each variable x T Σ ( X ) represents a projection x U : U X U . We can go even further: Any Σ -substitution t : Y T Σ ( X ) defines a derived operation t U : U X U Y in U (in the opposite direction!) with
t U ( a ) : = t ; a f o r a l l a U X .
Since U is a singleton, the inclusion map ! T Σ ( X ) : T Σ ( X ) represents a constant operation ! T Σ ( X ) U : U X U . Moreover, the canonical injective map η X : X T Σ ( X ) represents the identity map on U X :
η X U = i d U X : U X U X d u e t o ( ) s i n c e η X ; a = a .
Following a popular and convenient tradition in logic (see [3], p. 66) we define a satisfaction relation  ( a , U ) Σ X E x between assignments a : X U of a set X of variables in a Σ -structure U and Σ -expressions X E x on X. We say that " ( a , U ) is a valid assignments for X E x " or " X E x is valid for ( a , U ) ".
Given an inclusion X Y , we say that an assignment b : Y U is an extension of an assignment a : X U to Y if, and only if, i n X , Y ; b = a .
Preprints 221586 i005
Definition 6
(Satisfaction Relation: Assignments and Expressions). For a signature Σ = ( P , F , a r , i n , o u t ) , we define inductively and in parallel for an arbitrary, but fixed, a Σ-structure U asatisfaction relation ( a , U ) Σ X E x between assignments a U X of a set X of variables in U and Σ-expressions X E x on X. X varies over all sets of variables, i.e., all elements in V a r .
1.
Atomic expressions:
(a)
Equation: ( a , U ) Σ X ( t 1 = t 2 ) iff t 1 U ( a ) = t 2 U ( a ) for t 1 , t 2 T Σ ( X ) .
(b)
Relational Atom: ( a , U ) Σ X p syn ( t ) iff t U ( a ) p U for t : a r ( p ) T Σ ( X ) .
2.
Everything: ( a , U ) Σ X for all a U X
3.
Void: ( a , U ) Σ X for none a U X
4.
Conjunction: ( a , U ) Σ X ( E x 1 E x 2 ) iff ( a , U ) Σ X E x 1 and ( a , U ) Σ X E x 2
5.
Disjunction: ( a , U ) Σ X ( E x 1 E x 2 ) iff ( a , U ) Σ X E x 1 or ( a , U ) Σ X E x 2
6.
Implication: ( a , U ) Σ X ( E x 1 E x 2 ) iff ( a , U ) Σ X E x 1 implies ( a , U ) Σ X E x 2
7.
Negation: ( a , U ) Σ X ¬ E x iff not ( a , U ) Σ X E x
8.
Existential quantification: ( a , U ) Σ X ( syn ( Y X ) : E x ) iff there exists an extension b : Y U of a : X U to Y such that ( b , U ) Σ Y E x
Universal quantification: ( a , U ) Σ X ( syn ( Y X ) : E x ) iff for all extensions
b : Y U of a : X U to Y we have ( b , U ) Σ Y E x
We follow the "methodological imperative" that every syntactic entity should have a semantics in any structure. The semantics of a set X of variables in a Σ -structure U U = ( U , P U , F U ) is simply the set [ [ X ] ] U : = U X of all assignments of X in U.
We consider first-order Σ -expressions as syntactic representations of derived predicates, i.e., the semantics of a Σ -expression X E x in U should be a subset of [ [ X ] ] U . The satisfaction relation defined in Definition 6 can be equivalently represented by those subsets. For all sets X of variables, all Σ -structures U and all Σ -expressions X E x we set
[ [ X E x ] ] U = [ [ E x ] ] X U : = { a U X ( a , U ) Σ X E x } U X .
We can, however, also define the hom-set predicates [ [ E x ] ] X U U X = Set ( X , U ) independent of Definition 6, in a more compact and structured way, relying on the partial orders ( ( U X ) , ) , the respective Boolean algebras ( ( U X ) , , , 0 e x 1.5 e x _ 0 e x 1.5 e x ¯ , U X , ) and the monotone shift, existential and universal operators introduced and elaborated in Appendix A.
Definition 7
(Expressions: Semantics). The semantics of Σ-expressions in an arbitrary, but fixed, Σ-structure U = ( U , P U , F U ) is defined inductively:
1.
Atomic expressions:
(a)
Equation: [ [ t 1 = t 2 ] ] X U : = { a U X t 1 U ( a ) = t 2 U ( a ) } for t 1 , t 2 T Σ ( X ) is nothing but the equalizer of the derived operations t 1 U , t 2 U : U X U .
(b)
Relational Atom: [ [ p syn ( t ) ] ] X U : = t X ( p U ) = ( t U ) 1 ( p U ) for t : a r ( p ) T Σ ( X ) .
2.
Everything: [ [ ] ] X U : = [ [ X ] ] U = U X
3.
Void: [ [ ] ] X U : =
4.
Conjunction: [ [ ( E x 1 E x 2 ) ] ] X U : = [ [ E x 1 ] ] X U [ [ E x 2 ] ] X U
5.
Disjunction: [ [ ( E x 1 E x 2 ) ] ] X U : = [ [ E x 1 ] ] X U [ [ E x 2 ] ] X U
6.
Implication: [ [ E x 1 E x 2 ] ] X U : = [ [ E x 1 ] ] X U ¯ [ [ E x 2 ] ] X U
7.
Negation: [ [ ¬ E x ] ] X U : = [ [ E x ] ] X U ¯
8.
Existential quantification: [ [ ( syn ( Y X ) : E x ) ] ] X U : = i n X , Y U [ [ E x ] ] Y U
Universal quantification: [ [ ( syn ( Y X ) : E x ) ] ] X U : = i n X , Y U [ [ E x ] ] Y U .
Remark 14
(Expressions: Indexed vs Fibred Semantics). In view of Remark 8, we construct in Definition 7 an | Str Σ | -indexed family of "natural transformations". For each Σ-structure U we define a V a r -indexed family of maps [ [ _ ] ] X U : F E Σ ( X ) ( U X ) which establishes a "natural transformation" between the map F E Σ : V a r | Set | and the map ( Set ( _ , U ) ) : V a r | Set | assigning to each set X of variables the power set ( Set ( X , U ) ) = ( U X )
An equivalent, more fibred view is that the assignments X E x [ [ X E x ] ] U define for each Σ-structure U a map [ [ _ _ ] ] U from F E Σ into { ( U X ) X V a } r with Π V = [ [ _ _ ] ] U ; Π U where Π U is the projection from { ( U X ) X V a } r into V a r . Keep in mind that all the hom-sets in a category are assumed to be disjoint!
Remark 15
(Expressions: Semantics). As mentioned in Remark 9, every predicate symbol p P is reborn as the Σ-expression a r ( p ) p syn ( η a r ( p ) ) with η a r ( p ) : a r ( p ) T Σ ( a r ( p ) ) . Definition 6 or 7 and Equation (5) ensure that also their semantics coincides [ [ p syn ( η a r ( p ) ) ] ] a r ( p ) U = p U .
The universal quantification ( syn ( Y X ) : E x ) is trivially valid for a if there is no extension of a to Y at all, while the existential quantification ( syn ( Y X ) : E x ) is not valid, in this case.
Two expressions X E x 1 and X E x 2 aresemantical equivalent, X E x 1 E x 2 in symbols, if, and only if, [ [ E x 2 ] ] X U = [ [ E x 2 ] ] X U for all Σ-structures U . Definition 7 ensures that we do have the usual semantic equivalences available. In particular, conjunction and disjunction are associative; thus we can drop, for convenience, the corresponding parenthesis.
Remark 16
(Closed expressions: Semantics). We consider a closed expression E x (see Remark 12). [ [ ] ] U = U is a singleton with the initial morphism ! U : U as the only element. In such a way, we have either [ [ E x ] ] U = [ [ ] ] U = { ! U } , i.e., ( ! U , U ) Σ E x , or [ [ E x ] ] U = [ [ ] ] U = , i.e., ( ! U , U ) Σ E x .
Example 4
(Expressions: Semantics). For the sample signature Σ = ( P , F , a r , i n , o u t ) in Example 1 with P = { less } , F = { 0 ̲ , 1 ̲ , + ̲ , * ̲ } we consider the three Σ-structures N , Q and P in Example 2 and the derived predicates in Example 3.
For the closed Σ-expression madd = ( { x , y , z } : < ̲ x , y < ̲ + ̲ x , z , + ̲ y , z ) we do have [ [ madd ] ] N = { ! N } , [ [ madd ] ] Q = { ! Q } and [ [ madd ] ] P = , i.e., addition is strict monoton in N and Q but not in P .
Conversly, we have for demo = ( { x , y , z } : ( + ̲ x , * ̲ y , z = * ̲ + ̲ x , y , + x , z ̲ ) that [ [ madd ] ] N = , [ [ madd ] ] Q = and [ [ madd ] ] P = { ! ( N ) } , i.e., addition distributes over multiplication only in P .
For even = { x } ( { y } : x = * ̲ y , + ̲ 1 ̲ , 1 ̲ ) we do have [ [ even ] ] { x } Q = Q { x } , [ [ even ] ] { x } P = ( N ) { x } and [ [ even ] ] { x } N = { a N { x } a ( x ) i s e v e n } , . So in Q and P all elements are "even".
For min = { x } ( { y } : ( x = y ) < ̲ x , y ) and lmin = { x } ¬ ( ( { y } : < ̲ y , x ) ) we do have [ [ min ] ] { x } N = [ [ lmin ] ] { x } N = { ( x 0 ) } N { x } , [ [ min ] ] { x } Q = [ [ lmin ] ] { x } Q = and [ [ min ] ] { x } P = [ [ lmin ] ] { x } N = { ( x ) } ( N ) { x } .
For succ = { x , y } ( < ̲ x , y ¬ ( ( { z } : < ̲ x , z < ̲ z , y ) ) ) we do have [ [ succ ] ] { x , y } N = { a N { x , y } a ( y ) = a ( x ) + 1 } , [ [ succ ] ] { x , y } Q = and [ [ succ ] ] { x , y } P = { a ( N ) { x , y } a ( x ) a ( y ) a n d a ( y ) a ( x ) i s s i n g l e t o n } .
Moreover, we have [ [ ( + ̲ x , y = z ) ] ] { x , y , z } N = { a N { x , y , z } a ( x ) + a ( y ) = a ( z ) } , [ [ ( + ̲ x , y = z ) ] ] { x , y , z } Q = { a Q { x , y , z } a ( x ) + a ( y ) = a ( z ) } and [ [ ( + ̲ x , y = z ) ] ] { x , y , z } P = { a ( N ) { x , y , z } a ( x ) a ( y ) = a ( z ) } .

4. First-Order Logics of Statements in Context

We are not addressing signature morphisms in this paper thus we do not recapitulate the corresponding parts from [17]. To make the paper sufficiently self-contained and accessible, we adapt and revise, however, in this section those parts from Section 5 and 6 in [17] to the case of traditional unsorted first-order logic which are relevant for the analysis of deduction calculi. Compared to [1,17], we elaborate, moreover, in addition and in more detail the hom-set predicate perspective on definitions, constructions and results, as we already started it with Definition 6 versus Definition 7 (see Appendix A).

4.1. Institutions of Statements

In this subsection we construct for each signature Σ = ( P , F , a r , i n , o u t ) an institution of statements FL Σ = ( Cxt , Stm Σ , Int Σ , Σ ) . Compared to the general case in [1], we consider only the variant with the full spectrum F E Σ of first-order expressions and with the whole category Str ( Σ ) of Σ -structures as semantics Sem ( Σ ) . Therefore, we only need a simplified version of the construction of institution of statements as visualized in Figure 1.
Contexts are the (abstract) signatures in an institutions of statements. In the case of unsorted first-order logic all FL Σ share the same base category and the same category of contexts which simply are the category of sets: Base = Cxt : = Set . As common category Var of variable declarations we choose the set V a : r = f i n ( N v a r ) of all finite subsets of N v a r (considered as a discrete subcategory of Base = Set ).
The soundness of deduction calculi for traditional unsorted first-order logic relies on the assumption that all Σ -structure do have a non-empty carrier. Therefore, all institutions FL Σ share the same category Carr : = Set { } of potential carriers of structures.
Note, that the proper inclusions Var Cxt Carr reflect the intended role of contexts to establish a bridge between syntax and semantics.
Remark 17
(Contexts in the Wild). Contexts are meant to establish a bridge between meta-level syntax (signatures, constant symbols, variables, terms, expressions) and semantics (structures and their carriers). In addition, we want to offer a home for those entities, being around in logic, which neither properly belong to meta-level syntax nor to semantics.
Demonstrating the bridge feature, we will utilize in the Section 7 and Section 8 sets of variables in the role of contexts. On the other hand, sets of (names for) elements in carriers can also take the role of contexts as outlined in the discussion ofelementary diagramsin Section 5.1.
Other examples of contexts, we do have in mind, are sets G ofgeneratorsin Group Theory, sets O ofliteralsin PROLOG, sets N O ofindividual names (nominals, objects)in Description Logic [13], sets ofHenkin constantsand so on. Contexts can also accommodateSkolem constants.

4.1.1. Institutions of Statements: Sentence and Model Functor

Statements in context are the (abstract) sentences in an institutions of statements.
Definition 8
(Statement). A Σ -statement ( X E x , γ ) in a context K | Cxt | is given by a set X of variables, a Σ-expression E x F E Σ ( X ) and abinding map γ : X K . ( X E x , γ ) is calledatomicif E x is an atomic expression, i.e., an Equation or a Relational Atom.
By S t m Σ ( K ) , we denote the set of all Σ-statements in K and by Υ K : S t m Σ ( K ) V a r the obvious projection map. S t m Σ ( K ) ( X ) = Υ K 1 ( X ) S t m Σ ( K ) is the set of all Σ-statements ( X E x , γ ) in K for an arbitrary, but fixed, set X of variables.
Remark 18
(General statements and closed formulas). For any closed Σ-expression E x (see Remarks 12 and 16) there is a unique initial morphism γ = ! K : K ; thus, we have ( E x , ! K ) S t m Σ ( K ) ( ) S t m Σ ( K ) for any context K and all Σ-expressions E x F E Σ ( ) . We call ( E x , ! K ) ageneral statement in K.
From all the general statements ( E x , ! K ) sharing the same closed expression E x , only the general statement ( E x , i d ) in the empty context ∅ is the proper formal counterpart of traditionalclosed formulasin institutions of statements!
Example 5
(Context and Statement). For the sample signature Σ in Example 1, we define the contexts K : = { a , b , c , d , e } and G : = { n N 0 n 100 } . We can consider the elements in G as "number literals" in the sense of PROLOG or simply as elements of the carrier N of the Σ-structure N .
We adapt the encoding of assignments from Remark 4 and use for Σ-statements ( X E x , γ ) the shorthand notation E x ( γ 1 , , γ n ) . Instead of expressions E x , we will also use auxiliary names for expressions, as introduced in Example 3. If E x is a “reborn predicate symbol” (see Remark 9), we may use the traditional notation p ( γ 1 , , γ n ) instead of p v 1 a r ( p ) , , v n a r ( p ) ( γ 1 , , γ n ) .
< ̲ ( a , b ) and < ̲ + ̲ x , y , z ( a , b , e ) are Σ-statements in K with relational atoms. Σ-statements in K with equations are ( + ̲ x , y = z ) ( a , c , d ) , ( + ̲ x , y = z ) ( b , c , e ) , ( + ̲ x , 1 ̲ = y ) ( b , c ) , and Σ-statements in K with auxiliary names are, for example, even ( a ) , even ( c ) , succ ( b , c ) , ¬ min ( a ) .
Attention!We are not substituting variables by elements of contexts! Therefore, we can not write, for example, ( + ̲ b , 1 ̲ = c ) instead of ( + ̲ x , 1 ̲ = y ) ( b , c ) .
Remark 19
(Statements in the Wild). We continue Remark 17. In Group Theory a statement in context G is called adefining relationbetween the generators in G and is, in fact, an equation bound to G. In Logic Programming a statement in context O is an atomic relational statement and usually called afactabout the atoms in O. In Description Logics they use the termrole assertionfor statements in context.
The "binding trick" starts to pay off. It allows us to encapsulate the relatively intricate construction of first-order expressions in the sense that we don’t need "substitutions" to define the translation of statements.
Any morphism ψ : K G in Cxt induces a map Stm Σ ( ψ ) : S t m Σ ( K ) S t m Σ ( G ) defined by simple post-composition for all statements ( X E x , γ ) in K:
Stm Σ ( ψ ) ( X E x , γ ) : = ( X E x , γ ; ψ ) .
Preprints 221586 i006
We do have Υ K = Stm Σ ; Υ G and thus, equivalently said, that Stm Σ ( ψ ) restricts to a map Stm Σ ( ψ ) ( X ) : S t m Σ ( K ) ( X ) S t m Σ ( G ) ( X ) for every set X of variables.
Associativity of composition in Base = Set ensures that the assignments K S t m Σ ( K ) and ψ Stm Σ ( ψ ) define a functor Stm Σ : Cxt Set . This is the sentence functor of the institution FL Σ .
Example 6
(Translation of Statements). For the contexts G = { n N 0 n 100 } and K = { a , b , c , d , e } from Example 5, we consider the map ψ : K G given by the assignments a 2 , b 3 , c 4 , d 6 , e 7 .
The statements in K from Example 5 are simply translated by means of the map ψ : K G to the following statements in context G. < ̲ ( a , b ) translates to < ̲ ( 2 , 3 ) and < ̲ + ̲ x , y , z ( a , b , e ) to < ̲ + ̲ x , y , z ( 2 , 3 , 7 ) .
( + ̲ x , y = z ) ( a , c , d ) translates to ( + ̲ x , y = z ) ( 2 , 4 , 6 ) , ( + ̲ x , y = z ) ( b , c , e ) to ( + ̲ x , y = z ) ( 3 , 4 , 7 ) and ( + ̲ x , 1 ̲ = y ) ( b , c ) to ( + ̲ x , 1 ̲ = y ) ( 3 , 4 ) .
Finally, the Σ-statements in context K even ( a ) , even ( c ) , succ ( b , c ) and ¬ min ( a ) with auxiliary names, are translated to even ( 2 ) , even ( 4 ) , succ ( 3 , 4 ) and ¬ min ( 2 ) , respectively.
Interpretations of contexts are the (abstract) models in an institution of statements.
Definition 9
(Context interpretations). A Σ -interpretation ( ι , U ) of a context K | Cxt | is given by a Σ-structure U = ( U , P U , F U ) in Str ( Σ ) and a map ι : K U .
A morphism ς : ( ι , U ) ( ϑ , V ) between Σ-interpretations of K is given by a Σ-homomorphism ς : U V such that ι ; ς = ϑ for the underlying map ς : U V .Preprints 221586 i007
For any context K in Cxt , we denote by Int Σ ( K ) the category of all Σ-interpretations of K and all morphisms between them and by Π K : Int Σ ( K ) Str ( Σ ) the obvious projection functor.
Note, that Π : Int Σ ( ) Str ( Σ ) is an isomorphism and compare the later Remark 20. Any morphism ψ : K G in Cxt induces a functor Int Σ ( ψ ) : Int Σ ( G ) Int Σ ( K ) defined by simple pre-composition for all Σ -interpretations ( ϑ , V ) of G:
Int Σ ( ψ ) ( ϑ , V ) : = ( ψ ; ϑ , V ) .
Preprints 221586 i008
For any morphism ς : ( ι , U ) ( ϑ , V ) between two Σ -interpretations of G the same underlying map ς : U V establishes a morphism Int Σ ( ψ ) ( ς ) : = ς : ( ψ ; ι , U ) ( ψ ; ϑ , V ) between the corresponding two Σ -interpretations of K, thus we have
Int Σ ( ψ ) ; Π K = Π G : Int Σ ( G ) Str ( Σ ) ( s e e t h e d i a g r a m a b o v e o n t h e r i g h t ) .
Equivalently said, the functor Int Σ ( ψ ) : Int Σ ( G ) Int Σ ( K ) restricts to a functor Int Σ ( ψ ) ( U ) : Int Σ ( G ) ( U ) Int Σ ( K ) ( U ) with the pre-composition map ( ψ ; _ ) : U G U K as the underlying map on objects.
Associativity of composition in Set ensures that the assignments K Int Σ ( K ) and ψ Int Σ ( ψ ) define a functor Int Σ : Cxt o p CAT . This is the model functor of the institution FL Σ .

4.1.2. Institutions of Statements: Satisfaction Relation and Satisfaction Condition

The last two steps, in establishing an institution, are the definition of a satisfaction relation for interpretations and statements and the proof of the so-called satisfaction condition. The satisfaction relation is simply provided by the satisfaction relation for assignments and expressions, as defined in Definition 6.
Definition 10
(Satisfaction Relation: Interpretations and Statements). For any context K, any Σ-statement ( X E x , γ ) in K and any Σ-interpretation ( ι , U ) of context K we define:Preprints 221586 i009
If ( ι , U ) K Σ ( X E x , γ ) , we say that ι is avalid interpretationfor ( X E x , γ ) in U or that ( X E x , γ ) is valid for the interpretation ι in U .
Analogously to (6), the satisfaction relation in Definition 10 allows us to define the semantics of statements in Σ -structures. For all sets X of variables, all Σ -structures U and all Σ -statements ( X E x , γ ) in a context K we set
[ [ ( X E x , γ ) ] ] K U : = { ι U K ( ι , U ) K Σ ( X E x , γ ) } U K .
Definition 10 implicitly relies on pre-composition maps ( γ ; _ ) : U K U X thus we can define for all Σ -structures U the semantics of Σ -statements ( X E x , γ ) in a context K independent of Definition 10 by
[ [ ( X E x , γ ) ] ] K U = γ U [ [ X E x ] ] U U K
utilizing the shift operator γ U = ( γ ; _ ) 1 : ( U X ) ( U K ) according to Appendix A.2.
Remark 20
(Validity of General Statements). If X = K = , we do have for any Σ-structure U exactly one interpretation ( ! U , U ) thus for any "closed formula" ( E x , i d ) (see Remark 18) ( ! U , U ) Σ ( E x , i d ) means nothing but that the closed formula ( E x , i d ) isvalid in U in the traditional sense.
Moreover, the validity of general statements issemantically context independentin the following sense: For any context K, any Σ-structure U , any Σ-interpretation ( ι , U ) of K in U and any closed expressions E x , we have due to the uniqueness if intitial morphisms:
( ι , U ) K Σ ( E x , ! K ) i f f ! K ; ι = ! U = i d ; ! U [ [ E x ] ] U i f f ( ! U , U ) Σ ( E x , i d ) .
Example 7
(Interpretation and Satisfaction). The reader may check with help of Example 4, that the map ψ : K G in Example 6 is defined in such away that all the Σ-statements in context K = { a , b , c , d , e } from Example 6 are valid for the interpretation ψ ; i n G , N : K N of the context K in the Σ-structure N from Example 2!
In contrast, only the Σ-statements even ( a ) , even ( c ) and ¬ min ( a ) in K are valid for the interpretation ψ ; { _ } : K ( N ) in N where { _ } : G ( N ) assigns to each natural number n G the singleton { n } . Note, that the Satisfaction Condition in Corollary 1 allows us to show this claim by checking that the translated statements even ( 2 ) , even ( 4 ) , ¬ min ( 2 ) in context G are valid for the interpretation { _ } : G ( N ) of G in N .
After we developed everything in a systematic modular way, we obtain the satisfaction condition "for free", namely by associativity of composition in Set .
Corollary 1
(Satisfaction Condition). For any morphism ψ : K G in Cxt , any Σ-statement ( X E x , γ ) in context K and any interpretation ( ϑ , U ) of context G in a Σ-structure U , we have:
Int Σ ( ψ ) ( ϑ , U ) K Σ ( X E x , γ ) i f f ( ϑ , U ) G Σ Stm Σ ( ψ ) ( X E x , γ ) .
Preprints 221586 i010
Proof. 
Due to the definition of the functors Int Σ : Cxt S o p CAT and Stm Σ : Cxt S Set , we obtain the commutative diagram, above on the right, thus the satisfaction condition follows immediately from Definition 10 (Satisfaction Relation: Interpretations and Statements) and associativity of composition. in Set
We can also independently prove the satisfaction condition on the level of hom-sets. Exemplifying a general result about an equivalent characterizations of the satisfaction condition for institutions (see the concept institution frame in [23,24]) and due to the properties of the maps Stm Σ ( ψ ) and Int Σ ( ψ ) concerning restrictions (see (7)), the satisfaction condition in (13) is equivalent to the requirement that for any context morphism ψ : K G , any Σ -structure U and any set X of variables the diagram below on the right commutes.
Preprints 221586 i011
For any Σ -statement ( X E x , γ ) S t m Σ ( K ) ( X ) we get indeed
ψ U [ [ ( X E x , γ ) ] ] K U = ψ U ( γ U [ [ X E x ] ] U ) ( d e f i n i t i o n ( 12 ) ) = γ ; ψ U [ [ X E x ] ] U ( e q u a t i o n ( A 23 ) ) = [ [ ( X E x , γ ; ψ ) ] ] G U ( d e f i n i t i o n ( 12 ) ) = [ [ Stm Σ ( ψ ) ( X E x , γ ) ] ] G U ( d e f i n i t i o n ( 7 ) )
Summarizing all definitions and results, we obtain for each signature Σ the Institution of Σ -Statements in Context FL Σ = ( Cxt , Stm Σ , Int Σ , Σ ) not only comprising "closed formulas", as it is traditionally the case [19,20], but also "open formulas"!
Since we only consider, in the remaining part of the paper, one single arbitrary but fixed signature Σ we may drop the superscript in Σ whenever it is convenient.

4.2. Substitutions

Substitutions are not relevant for utilizing a logic as a specification formalism. As also mentioned in [20], substitutions are, however, an important logical device for deduction. In this section we investigate substitutions and develop corresponding extensions of constructions and results necessary and sufficient for deduction.

4.2.1. Categories of Substitutions

The simple natural idea is to extend the family V a r of sets of variables by substitutions. For any signature Σ = ( P , F , a r , i n , o u t ) the small category Var Σ is defined as follows:
Objects:
are all sets X of variables, i.e., | Var Σ | : = V a r ;
Morphisms:
t : X Y in Var Σ are given by Σ -substitutions t : X T Σ ( Y ) ;
Identities:
on sets X are given by the canonical maps η X : X T Σ ( X ) ; and the
Composition:
t ; Σ r : X Z of two morphisms t : X Y , r : Y Z in Var Σ is given by the Σ -substitution t ; r * : X T Σ ( Z ) where r * : T Σ ( Y ) T Σ ( Z ) is the inductive extension of r : Y T Σ ( Z ) such that Preprints 221586 i012
Note, that r * : T Σ ( Y ) T Σ ( Z ) describes nothing but the application of the Σ -substitution r : Y T Σ ( Z ) to all Σ -terms over Y! We can inductively prove that
η X * = i d T Σ ( X ) a n d ( t ; r * ) * = t * ; r *
thus the composition of substitutions is associative, and we get indeed a category.
Remark 21
(Lawvere Theories). The tentative reader may have realized that the categories Var Σ are nothing but so-calledsyntactic Lawvere theories[25,26,27]. We will, however, not walk further into the realm of "Categorical Algebra" and "Functorial Semantics". We will neither utilize the fact that the categories Var Σ are finite product categories nor reconstruct Str (Σ) as a subcategory of the functor category [ Var Σ Set ] in case of signatures Σ without predicate symbols!
Remark 22
(Kleisli Morphisms). It is a common practice to describe substitutions as morphisms of the Kleisli category of a "term algebra adjunction". In such a way, we would get the extension of assignments in (3) and the application of substitutions in (15) as well as their compatibility "for free". See the discussion of "internalization of terms" and of substitution calculi in [22].
To stay closer to traditional presentations of logics, we rely instead in this paper on explicit inductive definitions (located on the meta-level). Another reason is, that in the many-sorted case some of the necessary constructions and results, as the translation of terms along signature morphisms and the composition of term translations for example, can anyway not be obtained by means of term algebra adjunctions (see [17])!

4.2.2. Substitution Application for Expressions

Analogously to terms, we would also like to extend the map F E Σ : V a r | Set | , constructed in Definition 5, to a functor FE Σ : Var Σ Set . We can indeed define for all Σ -substitutions r : X T Σ ( Z ) a map r ¯ : F E Σ ( X ) F E Σ ( Z ) describing the application of the substitution to Σ -expressions on X. Due to the presence of quantification, the assignments r r ¯ will be, however, not functorial on the nose as we will discuss below.
There seems to be no way out! As long as we do not utilize something like de Bruijn indices [28] to avoid named bound variables, we have to deal, in one or another way, with the problem that substitution application may cause an unintended interaction between free and bound variables. One approach to avoid such an unintended interaction is to inductively define a binary meta-level predicate stating when a substitution is legal for a certain expression as it is done, for example, in [4]. We will, however, not adapt this approach, since we would end up with partial substitution maps .
Another approach is to use α-conversion, i.e., renaming of bound variables, in such a way, that we obtain total substitution maps. We will define the application of a substitution to expressions, according to the inductive definition of expressions in Definition 5, thereby establishing a stepwise inductive variant of an implicit α -conversion.
To meet the proper inclusion condition for Quantification in Definition 5, we must use non-symmetric sums when defining substitution application in case of Quantification. That is, for any two sets X 1 , X 2 V a r of variables we must choose a set X 1 + X 2 V a r which is a sum in Set such that the left injection κ 1 : X 1 X 1 + X 2 is an inclusion X 1 X 1 + X 2 .
General Assumption: If X 1 and X 2 are disjoint, we simply choose X 1 + X 2 : = X 1 X 2 .
Definition 11
(Substitution Application for Expressions). For any signature Σ the family of maps r ¯ : F E Σ ( X ) F E Σ ( Z ) with r : X T Σ ( Z ) a Σ-substitution is defined inductively and in parallel by the following assignments:
1.
Atomic expressions:
(a)
Equation: X ( t 1 = t 2 ) Z ( r * ( t 1 ) = r * ( t 2 ) ) for any t 1 , t 2 T Σ ( X ) with r * : T Σ ( X ) T Σ ( Z ) given by (15).
(b)
Relational Atom: X p syn ( t ) Z p syn ( t ; r * ) for any p P and any substitution t : a r ( p ) T Σ ( X ) with r * : T Σ ( X ) T Σ ( Z ) given by (15).
2.
Everything: X Z
3.
Void: X Z
4.
Conjunction: X ( E x 1 E x 2 ) Z ( r ¯ ( E x 1 ) r ¯ ( E x 2 ) )
5.
Disjunction: X ( E x 1 E x 2 ) Z ( r ¯ ( E x 1 ) r ¯ ( E x 2 ) )
6.
Implication: X ( E x 1 E x 2 ) Z ( r ¯ ( E x 1 ) r ¯ ( E x 2 ) )
7.
Negation: X ¬ E x Z ¬ r ¯ ( E x )
8.
Quantification: X ( syn ( Y X ) : E x ) Z ( syn ( W Z ) : [ r ; , κ 2 ; η W ] ¯ ( E x ) ) and X ( syn ( Y X ) : E x ) Z ( syn ( W Z ) : [ r ; , κ 2 ; η W ] ¯ ( E x ) ) for any expression Y E x and any proper inclusion X Y where W : = Z + ( Y X ) and thus Z W . The extended substitution [ r ; , κ 2 ; η W ] : Y T Σ ( W ) is constructed as a cotuple (by case distinction). Remind Remark 6 and that Y is the sum of X and Y X in Set since X Y .Preprints 221586 i013
There seems to be no choice of non-symmetric sums in V a r such that the assignments X F E Σ ( X ) and r r ¯ define a functor from Var Σ into Set since for any Σ -substitutions r 1 : X 1 T Σ ( X 2 ) , r 2 : X 2 T Σ ( X 3 ) the maps r 1 ¯ ; r 2 ¯ : F E Σ ( X 1 ) F E Σ ( X 3 ) and r 1 ; r 2 * ¯ : F E Σ ( X 1 ) F E Σ ( X 3 ) coincide, in general, only for Σ -expressions without quantifications. For a Σ -expression E x on X 1 containing quantifications, the two Σ -expressions r 1 ¯ ; r 2 ¯ ( E x ) and r 1 ; r 2 * ¯ ( E x ) may be syntactically different. They are, however, "the same up to α -conversion". Especially, it can be shown that they are semantically equivalent.
Lemma 2
(Semantic Equivalence). For Σ-substitutions r 1 : X 1 T Σ ( X 2 ) , r 2 : X 2 T Σ ( X 3 ) the maps r 1 ¯ ; r 2 ¯ : F E Σ ( X 1 ) F E Σ ( X 3 ) and r 1 ; r 2 * ¯ : F E Σ ( X 1 ) F E Σ ( X 3 ) are semantically equivalent in the sense that
[ [ r 1 ¯ ; r 2 ¯ ( E x ) ] ] X 3 U = [ [ r 1 ; r 2 * ¯ ( E x ) ] ] X 3 U f o r a l l E x F E Σ ( X 1 ) a n d a l l Σ s t r u c t u r e s U .
We will define and investigate α -conversion in Section 6.3. To describe deduction in first-order logic we will need α -conversion anyway, independent of the fact if the assignments X F E Σ ( X ) and r r ¯ define a functor from Var Σ into Set or not. So, let us formally grasp what we have at hand besides Lemma 2.
Due to the General Assumption concerning non-symmetric sums of sets of variables and (16), we obviously have η X ¯ = i d F E Σ ( X ) : F E Σ ( X ) F E Σ ( X ) for the canonical substitutions η X : X T Σ ( X ) , thus the assignments X F E Σ ( X ) and r r ¯ define a reflexive graph homomorphism FE Σ : g r ( Var Σ ) Set (see Section 2).

4.2.3. Substitution Application vs Derived Operations

According to (3) and (4), any Σ -substitution t : X T Σ ( Y ) represents for any Σ -structure U a derived operation t U : U Y U X in the opposite direction with t U ( a ) : = t ; a for all assignments a : Y U . For any Σ -substitution r : Y T Σ ( Z ) and any assignment b : Z U it can also inductively shown that
Preprints 221586 i014
This entails
( t ; Σ r ) U = ( t ; r * ) U = r U ; t U : U Z U X .
That is, composition in Var Σ syntactically represents the composition of derived operations! The equations (18) and (5) ensure that for any Σ -structure U the assignments X U X and t t U define a contra-variant functor Op Σ U : Var Σ o p Set as the semantic counterpart of the reflexive graph homomorphisms FE Σ : g r ( Var Σ ) Set .
Op Σ U and FE Σ are not fully matching the "original institution pattern". Nevertheless, we do have a corresponding satisfaction condition: For any Σ -substitution t : X T Σ ( Y ) , any Σ -expression X E x , any Σ -structure U and any assignment a U Y it holds that
( t U ( a ) , U ) Σ X E x i f f ( a , U ) Σ Y t ¯ ( E x ) .
This is our reconstruction of the statement in Proposition 5.8 in [20].
Once more, we can independently describe the traditional satisfaction condition in (19) by means of hom-sets. We extended the map F E Σ : V a r | Set | in Remark 8 to a reflexive graph homomorphism FE Σ : g r ( Var Σ ) Set . Correspondingly, we can extend for each Σ -structure U the map ( Set ( _ , U ) ) : V a r | Set | in Remark 14 to a functor Hom Σ U : Var Σ Set obtained by composing the contravariant functor Op Σ U : Var Σ o p Set with the contravariant powerset functor that relies on the formation of pre-images.
The satisfaction condition in (19) is then equivalent to the requirement that for any Σ -structure U the V a r -indexed family of maps [ [ _ ] ] X U : F E Σ ( X ) ( U X ) establishes a natural transformation [ [ _ ] ] U : FE Σ Hom Σ U : For any Σ -substitution and t : X T Σ ( Y ) , any Σ -expression X E x and any Σ -structure U it holds that
t U [ [ X E x ] ] U = t U [ [ E x ] ] X U = ( t U ) 1 [ [ E x ] ] X U = [ [ t ¯ ( E x ) ] ] Y U = [ [ Y t ¯ ( E x ) ] ] U .
Preprints 221586 i015

5. Sketches and Arrows between Sketches

Any institution gives us a corresponding category of presentations and an extension of the model functor of the institution to the category of presentations at hand [19,20]. We outline, adapt and extend this construction for Institutions of Statements.

5.1. Sketches and Diagrams

In the area of Algebraic Specifications those presentations are, for example, pairs of an algebraic signature and a set of (conditional) equations and are called specifications. [6,7,8]. In the different institutions of algebraic specifications and in the traditional institution of first-order logic [19,20] the "models" are whole structures.
In contrast, LoSiCs shift the perspective from whole structures to single interpretations of contexts in structures. Note, however, that this is not only a shift but also an enhancement of perspective since the "whole structure perspective" can be reconstructed by the restriction to empty contexts only (see Remark 20). Incarnations of this enhanced perspective are, for example, Ehresmann Sketches [9] and Generalized Sketches in the sense of Makkai [10] or in the sense of Diskin [11,12]. Generalized Sketches in the sense of Diskin have been shown to be an appropriate conceptual tool to formalize software models and to pave a way for a theoretical foundation of Model Driven Software Engineering [15,16]. To underline this enhanced perspective and the "historical roots" of LoSiCs, we use the term sketch, instead of presentation or specification.
Definition 12
(Sketch). For any signature Σ = ( P , F , a r , i n , o u t ) a Σ - sketch K = ( K , S ) t is given by a context K | Cxt | = | Set | and a set S t S t m Σ ( K ) of Σ-statements in context K. K = ( K , S ) t is calledatomicif all the Σ-statements ( X E x , γ ) in S t are atomic meaning that E x is an atomic expression, i.e., an equation or a relational atom according to Definition 5.
Remark 23
(Sketches in the Wild). We continue Remark 19. In Group Theory we meet sketches as pairs ( G , R ) of a set G of generators and a set R of defining relations between the generators in G. A sketch ( O , F ) in Logic Programming is given by a set O of atoms and a set F of facts about the atoms in O. Sometimes one may also meet the termlogical database.
Finally, we find sketches in Description Logics as pairs ( N O , A ) with N O a set of individual names (nominals, objects) and A a so-calledABoxof assertional axioms.
Definition 13
(Interpretations of Sketches). An interpretation ι : K U of context K in a Σ-structure U isa valid interpretationof the sketch K = ( K , S ) t in U , ( ι , U ) K Σ S t in symbols, if, and only if, ( ι , U ) K Σ ( X E x , γ ) , due to (10), for all Σ-statements ( X E x , γ ) in S t . Be aware that the Σ-statements in S t may have different sets X of variables!
Analogously to the semantics of statements in (11), we can define the semantics of a Σ -sketch K = ( K , S ) t in a Σ -structure U as the set of all valid interpretations of K in U :
[ [ K ] ] U = [ [ ( K , S ) t ] ] U = [ [ S ] t ] K U : = { ι U K ( ι , U ) K Σ S } t U K .
Relying on (11) or (12), we can obviously reformulate Definition 13, more abstractly, by
[ [ K ] ] U = [ [ ( K , S ) t ] ] U = [ [ S ] t ] K U : = { [ [ ( X E x , γ ) ] ] K U ( X E x , γ ) S } t U K .
For later references it is convenient to lift up the characterization of the satisfaction condition in (14) to arbitrary subsets of statements and, thus, to fully exemplify the concept of institution frame in [23,24]. For any context morphism ψ : K G and any Σ -structure U the diagram below commutes.
Preprints 221586 i016
For any set S t S t m Σ ( K ) of Σ -statements in context K we get indeed
[ [ Stm Σ ( ψ ) ( S ) t ] ] G U = { [ [ ( X E x , γ ; ψ ) ] ] G U ( X E x , γ ) S } t ( d e f i n i t i o n ( 22 ) ) = { ψ U [ [ ( X E x , γ ) ] ] K U ( X E x , γ ) S } t ( c o n d i t i o n ( 14 ) ) = ψ U ( { [ [ ( X E x , γ ) ] ] K U ( X E x , γ ) S } t ) ( ψ U d i s t r i b . o v e r ) = ψ U [ [ S ] t ] K U ( d e f i n i t i o n ( 22 ) )
(Elementary) diagrams play an essential role in completeness proofs. We will not address completeness proofs in this paper. We want, however, shortly outline and discuss this additional motivation for introducing contexts.
We became familiar with diagrams not via Model Theory [2,3,20] but as a technique used in the construction of free algebras [6,7,29]. From this perspective diagrams arise as syntactic representations of structures. To obtain such a representation, we need, first, a mechanism to syntactically represent the elements of a given structure.
A widely used mechanism is to add for a given Σ -structure U "copies" of all the elements in the carrier U of U as new auxiliary constant symbols to the signature Σ (thus blowing up Σ to an infinite entity in most cases) [2,6,20]. In contrast, Logics of Statements in Context generalize the approach in [7,29] which adapts the idea of generators and defining relations from Group Theory.
The elements of contexts are for us, in principal, neither constant symbols nor variables nor elements of carrier sets. Or, to put it the other way around: Of course we can use one and the same entity in different roles, but we should always be aware of the different roles and changes of roles! Contexts establish a bridge between syntax (constant symbols, variables) and semantics (elements of carrier sets), and we use them to define diagrams.
The first step in transforming a Σ -structure U into a Σ -sketch is to transform the carrier U of U into a context by introducing a syntactic duplicate for each element in U or by simply declaring that "we consider U in the role of a context".
In the literature we essentially find two variants of diagrams - an atomic variant [3,20] and a full variant [2]. Obviously, we can define two corresponding variants of sketch encodings of a Σ -structure U . The atomic variant is given by the Σ -sketch
S a t U : = ( U , S t a t U ) w i t h S t a t U : = { ( X E x , γ ) E x atomic , ( i d U , U ) U Σ ( X E x , γ ) }
for the canonical interpretation ( i d U , U ) of context the U in the Σ -structure U .
The full variant  S U = ( U , S t U ) of the Σ -sketch encoding of U is obtained by droping the restriction "atomic". The interest reader may have a look at [1] for more concepts and results around sketch encodings. Especially, we discuss there a universal property of the canonical interpretation which is strongly related to Proposition 4.10 in [20].

5.2. Arrows between Sketches

In this subsection we revisit, revise, adapt and extend the discussions, definitions and results of the Subsections 5.2.3, 5.2.4 and 5.2.5 in [1]. Each Σ -sketch has his own local context declaration thus arrows between sketches are established by context morphisms.
Definition 14
(Sketch Arrow). A Σ -sketch arrowbetween two Σ-sketches P = ( P , S t P ) and C = ( C , S t C ) is given by a context morphism ψ : P C and denoted by ψ : P @ . > C [ r ] . ψ : P @ . > C [ r ] isatomicif all the Σ-statements in S t P and S t C are atomic. The category of all Σ-sketches and all Σ-sketch arrows is denoted by Sk ( Σ ) .
A Σ-sketch arrow ψ : P @ . > C [ r ] is calledstrict, ψ : P C in symbols, if, and only if, S t C Stm Σ ( ψ ) ( S t P ) with the statement translation Stm Σ ( ψ ) defined in (7). Stm Σ : Cxt Set is a functor thus the strict Σ-sketch arrows constitute a subcategory Sks ( Σ ) of Sk ( Σ ) .
In case P = C and ψ = i d P , we simply write P @ . > C [ r ] and P C , respectively.

5.2.1. Sketch Morphisms

Sketch arrows are subject of two different, but dual, semantical conditions. First, any institution gives us a corresponding concept of presentation morphism at hand [19,20]. We discuss the corresponding morphism condition and, as a terminological sleight of hand, we will use the term sketch morphism and the notation P ψ C to indicate that a sketch arrow ψ : P @ . > C [ r ] is subject of the morphism condition.
Definition 15
(Satisfaction of Morphism Condition). A Σ-sketch arrow ψ : P @ . > C [ r ] satisfies themorphism conditionfor a Σ-structure U , U Σ P ψ C in symbols, if the "forgetful map" Int Σ ( ψ ) = ( ψ ; _ ) : U C U P in (14) restricts to a map ( ψ ; _ ) : [ [ C ] ] U [ [ P ] ] U , i.e., if ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U [ [ P ] ] U or, equivalently due to Corollary A4, if [ [ C ] ] U ψ U [ [ P ] ] U .
Identity Σ -sketch arrows trivially satisfy the morphism condition and satisfaction of the morphism condition for a Σ -structure U is, due to (A23) and the monotonicity of the operators ψ U , closed under composition in Sk ( Σ ) thus all Σ -sketch arrows satisfying the morphism condition for a Σ -structure U constitute a subcategory SkM ( Σ ) ( U ) of Sk ( Σ ) .
The syntactic strictness condition ensures the satisfaction of the morphism condition.
Corollary 2
(Morphism Condition by Strictness). We have Sks ( Σ ) SkM ( Σ ) ( U ) for any Σ-structure U , i.e., for any strict Σ-sketch arrow ψ : P C it holds that U Σ P ψ C .
Proof. 
For any strict Σ -sketch arrow ψ : P C and any Σ -structure U we get indeed
[ [ C ] ] U = { [ [ ( X E x , ρ ) ] ] C U ( X E x , ρ ) S t C } ( d e f i n i t i o n ( 22 ) ) { [ [ ( X E x , γ ; ψ ) ] ] C U ( X E x , γ ) S t P } ( a s s . S t C Stm Σ ( ψ ) ( S t P ) ) = { ψ U [ [ ( X E x , γ ) ] ] P U ( X E x , γ ) S t P } ( s a t i s f a c t i o n   c o n d i t i o n ( 14 ) ) = ψ U ( { [ [ ( X E x , γ ) ] ] P U ( X E x , γ ) S t P } ) ( ψ U d i s t r i b u t e s   o v e r ) = ψ U [ [ P ] ] P U ( d e f i n i t i o n ( 22 ) )

5.2.2. Sketch Implications

The implication condition is the second semantical condition for sketch arrows. To motivate and elucidate this second condition we informally discuss the paradigmatic specification framework of conditional equations. An analogous discussion applies to the specification framework of Horn clauses (PROLOG).
The first crucial methodological observation is that conditional equations ( X : t 1 = r 1 , , t n = r n t 0 = r 0 ) are not, and never have been, a lazy notation for closed formulas ( X : ( t 1 = r 1 t n = r n ) t = r ) ! Conditional equations have been introduced and utilized as a conceptual tool of its own independent of first-order logic! One of the many motivations to coin the concept of LoSiCs was to develop a conceptual framework enabling us to precisely grasp the particular nature of conditional equations. In LoSiC-terminology conditional equations are a special kind of atomic sketch arrows
i d X : ( X , { ( X ( t 1 = r 1 ) , i d X ) , ( X ( t n = r n ) , i d X ) } ) @ . > ( X , { ( X ( t 0 = r 0 ) , i d X ) } ) [ r ] .
A conditional equation is satisfied in a Σ -structure U if, and only if, each solution of the premise ( X , { ( X ( t 1 = r 1 ) , i d X ) , ( X ( t n = r n ) , i d X ) } ) in U also is a solution of the conclusion ( X , { ( X ( t 0 = r 0 ) , i d X ) } ) .
The second observation is that we do have, at least, three well distinguished (!) syntactic entities that one could call "equation".
Expression:
First, we do have atomic expressions Y ( t = r ) with their individual semantics in any Σ -structure U . This semantics is the set of all variable assignments a : Y U solving the equation ( t = r ) .
Statements in Context:
Second, there are for each atomic expression Y ( t = r ) infinite many single statements ( Y ( t = r ) , γ : Y K ) in contexts where the semantics of ( Y ( t = r ) , γ ) in a Σ -structure U is the set of all interpretations ι : K U such that γ ; ι : Y U solves the equation ( t = r ) .
Unconditional Assertion:
Third, we do have for each atomic expression Y ( t = r ) a sketch arrow ( Y , ) @ . > ( Y , { ( Y ( t = r ) , i d Y ) } ) [ r ] which is valid in a Σ -structure U if, and only if, each solution of the "empty premise" ( Y , ) , i.e., all variable assignments a : Y U , solve the equation ( t = r ) or, in other words, if t and r represent the same derived opperation t U = r U in U .
This conceptional triad "expression - statements in context - unconditional assertion" we do have in LoSiCs for any expression at hand!
Analogous to the morphism condition, we will use the term sketch implication and the notation P ψ C to indicate that a sketch arrow ψ : P @ . > C [ r ] is subject of the implication condition.
Definition 16
(Satisfaction of Implication Condition). A Σ-sketch arrow ψ : P @ . > C [ r ] satisfies theimplication conditionfor a Σ-structure U , U Σ P ψ C in symbols, if, and only if, for all interpretations ( ι , U ) of P in U it holds that ( ι , U ) P Σ S t P implies the existence of an interpretation ( ϑ , U ) of context C in U with ψ ; ϑ = ι such that ( ϑ , U ) C Σ S t C .
Preprints 221586 i017
Obviously, we trivially have U Σ P ψ C if there is no interpretation of context P in Σ -structure U at all. As discussed before, this may be the case in many-sorted logics due to the potential presence of empty sorts. In case P = C and ψ = i d P , we have U Σ P C if, and only if, each valid interpretation of the premise P is also a valid interpretation of the conclusion C .
By means of the existential operators from Appendix A.2, we can equivalently define the satisfaction of the implication condition as follows:
U Σ P ψ C i f f ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U [ [ P ] ] U i f f [ [ P ] ] U ¯ ψ U [ [ C ] ] U = U P .
So, the morphism condition in Definition 15 and the implication condition are indeed dual semantical conditions! Analogously to the morphism condition, the characterization (25) ensures that all the Σ -sketch arrows satisfying the implication condition for a Σ -structure U constitute a subcategory SkI ( Σ ) ( U ) of Sk ( Σ ) .
We use the notation @ 3 > [ r ] if both conditions are satisfied.
U Σ P @ 3 > [ r ] ψ C i f f ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U = [ [ P ] ] U .
Due to Corollary 2, the equality in (26) especially holds for all strict Σ -sketch implication!
Sketch implications enable us to specify and/or describe properties of Σ -structures. The implication condition is the essential specification tool in specification frameworks of conditional equations [7,29], in specification frameworks of Horn clauses as well as in Makkai’s General Sketch framework [10]. In case of first-order logic, however, sketch implications do not add any "specification power" since the satisfaction of a Σ -sketch implication P @ 3 > [ r ] ψ C in Σ -structures can obviously be simulated by the satisfaction of a corresponding closed formula as long as P and C are finite (compare Section 5.2.4 in [1]).

5.2.3. Sketch Arrows and Injectivity

Besides specifying and/or describing properties of Σ -structures, sketch arrows can be also utilized to specify and/or describe the structure of Σ -sketches.
Definition 17
(Injectivity). A Σ-sketch K = ( K , S t K ) isstrictly injective w.r.t. a Σ -sketch arrow ψ : P @ . > C [ r ] if, and only if, there exists for each strict Σ-sketch arrow μ : P K a strict Σ-sketch arrow ϱ : C K such that μ = ψ ; ϱ .
Preprints 221586 i018
In Definition 23 in [1] we used, instead of "strictly injective", the attribute "closed" based on the intuition that K is closed w.r.t. the application of ψ as a deduction rule (compare the next subsection and [29]). Afterwards, we became more acquainted with the abstract concept of injectivity [30,31] and adapted therefore Diaconescu’s idea to indicate the restriction of the all-quantification in the definition of injectivity to a certain class of arrows by adding an adverb - "simply" on page 17 in [20] for the restriction to monic arrows. Since we only consider one type of injectivity in this paper, we simply drop the adverb "strictly" in most cases.
The satisfaction condition in FL Σ ensures that the satisfaction of the implication condition in structures can equivalently be expressed by the strictly injectivity of sketch encodings of structures (24).
Proposition 1
(Implication Condition ≅ Injectivity). For any Σ-sketch arrow ψ : P @ . > C [ r ] and any Σ-structure U the following two statements are equivalent:
1.
U Σ P ψ C , i.e., ψ : P @ . > C [ r ] satisfies the implication condition for U .
2.
The Σ-sketch encoding S U = ( U , S t U ) of U is strictly injective w.r.t. ψ : P @ . > C [ r ] .
Results, analogously to Proposition 1, are the corner stone for completeness proofs in specification frameworks of conditional equations [7,29]. In Makkai’s Generalized Sketch framework [10] there is no distinction between structures and sketch encodings and injectivity w.r.t. sketch arrows is the only conceptual tool for specification and/or description. Moreover, sketch arrows are the only tool for deduction thus results, analogously to Proposition 1, also are the corner stone for completeness results in [10]. Probably, related results also play a crucial role in completeness proofs in traditional first-order logic!?
In Section 7 and Section 8 we will demonstrate that sketch arrows together with the morphism and implication condition are, at least, appropriate conceptional tools to analyze, describe, validate and relate traditional deduction calculi for first-order logic.

5.3. Deducing Sketch Implications

There are, at least, three semantically sound mechanisms to deduce sketch implications from given sketch implications. First, we can simply obtain new (strict) sketch implications from given (strict) sketch implications by means of composition in Sk ( Σ ) . This procedure is sound since we have SkI ( Σ ) ( U ) Sk ( Σ ) and thus also Sks ( Σ ) SkI ( Σ ) ( U ) Sk ( Σ ) .
Second, we can apply a given sketch implication as a rule via sketch morphisms to deduce sketch implications. We discuss and validate this mechanism in this subsection. Third, we can apply a given sketch implication as a rule via substitutions to deduce sketchs implication. Rule application via substitutions is, however, only feasible for sketches where all bindings are identities. We postpone the discussion of this mechanism to Section 6.4.
We consider an arbitrary, but fixed, Σ -sketch arrow ψ : P @ . > C [ r ] . For any given Σ -sketch G and any Σ -sketch arrow μ : P @ . > G [ r ] , called a match, we can construct a pushout of the underlying context morphisms ψ : P C , μ : P G in Cxt = Set .
Preprints 221586 i019
As usual, the interpretation of a "syntactic pushout" in a chosen "universe" provides a "semantic pullback". In our case, we get for any carrier set U a pullback of hom-sets and pre-composition maps, as visualized in the middle square above, since for any interpretations ι : G U , ϑ : C U with μ ; ι = ψ ; ϑ there exist a unique interpretation κ : R U such that ψ * ; κ = ι and μ * ; κ = ϑ due to the "syntactic pushout" in the left hand square above. Note, that this is nothing but model amalgamation in the sense of the theory of institutions [20]. Compare also the amalgamation of algebras in [6].
We extend, in a minimal way, the pushout of context morphisms to a commutative square of Σ -sketch arrows by defining R : = ( R , S t R ) with S t R : = Stm Σ ( μ * ) ( S t C ) .
By definition, we obtain a strict Σ -sketch arrow μ * : C R which always satisfies, according to Corollary 2, the morphism condition.
Corollary 3
(Morphism Condition for Instances 1). For any Σ-structure U it holds that U Σ C μ * R , i.e., we have μ * U [ [ R ] ] U = ( μ * ; _ ) [ [ R ] ] U [ [ C ] ] U .
In light of sketch implications, we construct for a given sketch implication ψ and any sketch morphism μ a corresponding sketch implication ψ * which we may call the result of applying the rule ψ to G via the match μ. We show the soundness of this procedure.
Proposition 2
(Rule via Sketch Morphism). For any Σ-structure U with U Σ P ψ C , i.e., ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U [ [ P ] ] U , and U Σ P μ G , i.e., μ U [ [ G ] ] U = ( μ ; _ ) [ [ G ] ] U [ [ P ] ] U , it holds that U Σ G ψ * R , i.e., ψ * U [ [ R ] ] U = ( ψ * ; _ ) [ [ R ] ] U [ [ G ] ] U .
Proof. 
If [ [ G ] ] U = , the inclusion trivially holds. If [ [ G ] ] U , we consider an arbitrary ι [ [ G ] ] U U G . By assumption U Σ P μ G , we get μ ; ι [ [ P ] ] U thus there exists a ϑ [ [ C ] ] U U C with μ ; ι = ψ ; ϑ due to assumption U Σ P ψ C . For the unique κ : R U with ψ * ; κ = ι and μ * ; κ = ϑ the fact ϑ [ [ C ] ] U and the satisfaction condition (23) for μ * : C R ensure κ ( μ * ; _ ) 1 [ [ S t C ] ] C U = [ [ Stm Σ ( μ * ) ( S t C ) ] ] R U = [ [ R ] ] U with ( ψ * ; _ ) ( κ ) = ψ * ; κ = ι and thus ι ψ * U [ [ R ] ] U = ( ψ * ; _ ) [ [ R ] ] U , as required. □
It is maybe worth to mention, that Proposition 2 is related, in a certain sense, to the so-called "Extension Lemma" on page 223 in [6].
The semantic condition U Σ P μ G is not really feasible. However, Corollary 2 allows us to work, instead, with the stronger but pure syntactic condition "strict".
Corollary 4
(Rule via Sketch Morphism). For any Σ-structure U with U Σ P ψ C , i.e., ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U [ [ P ] ] U , and any strict Σ-sketch arrow μ : P G , i.e., S t G Stm Σ ( μ ) ( S t P ) , it holds that U Σ G ψ * R , i.e., ψ * U [ [ R ] ] U = ( ψ * ; _ ) [ [ R ] ] U [ [ G ] ] U .
In case S t G = Stm Σ ( μ ) ( S t P ) , we may call G ψ * R the instance of P ψ C with respect to the context morphism (!) μ : P G .
In practice, we may be interested to also deduce strict sketch implications. For the strict variant R s t : = ( R , S t R s t ) with S t R s t : = Stm Σ ( ψ * ) ( S t G ) Stm Σ ( μ * ) ( S t C ) of the resulting Σ -sketch, we also get U Σ G ψ * R s t for any Σ -structure U . To prove this, we need only to extend the last sentence in the proof of Proposition 2 as follows: For the unique κ : R U with ψ * ; κ = ι and μ * ; κ = ϑ the satisfaction condition (23) for ψ * : G R ensures κ [ [ Stm Σ ( ψ * ) ( S t G ) ] ] R U while the satisfaction condition for μ * : C R ensures κ [ [ Stm Σ ( μ * ) ( S t C ) ] ] R U . In such a way, we have κ [ [ R s t ] ] U = [ [ Stm Σ ( ψ * ) ( S t G ) ] ] R U [ [ Stm Σ ( μ * ) ( S t C ) ] ] R U with ( ψ * ; _ ) ( κ ) = ψ * ; κ = ι and thus ι ψ * U [ [ R s t ] ] U = ( ψ * ; _ ) [ [ R s t ] ] U , as required. By Corollary 2 we get, in such a way, a variant of Corollary 4 for the strict case.
Corollary 5
(Rule via Sketch Morphism - Strict). For any Σ-structure U with U Σ P ψ C , i.e., ψ U [ [ C ] ] U = ( ψ ; _ ) [ [ C ] ] U [ [ P ] ] U , and any strict Σ-sketch arrow μ : P G , i.e., S t G Stm Σ ( μ ) ( S t P ) , it holds that U Σ G @ 3 > [ r ] ψ * R s t , i.e., ψ * U [ [ R s t ] ] U = ( ψ * ; _ ) [ [ R s t ] ] U = [ [ G ] ] U .

6. Licensing Laziness

In view of LoSiCs, notations in traditional first-order logic are "lazy" in the sense that there are neither explicit variable declarations nor are contexts explicitly considered. In this subsection we discuss how and under what conditions the traditional lazy notations can be recasted in a LoSiC-compatible way. In first-order deduction calculi we only deal with finite sets of finite formulas thus we will only need finite sets of variables in V a r Σ as variable declarations and as contexts for our analysis.
Let Γ be a finite set of "well-formed formulas" in the traditional sense, as in [4] for example. The expressions in LoSiCs are well-formed formulas satisfying some syntactic restrictions. First, LoSiCs require that each well-formed formula has its own local declaration of free variables establishing its "interface" with the outside world. We could say that the traditional approach implicitly provides this "interface" in form of the set f v ( B ) of all free variables syntactically appearing in B. Due to the "methodological accident", discussed in Remark 10, expressions in LoSiCs must comply with Barendregt’s variable convention thus we will, in general, not have f v ( B ) B , i.e., B F E Σ ( X ) , in the sense of Definition 5. By a renaming of bound variables we can, however, transform any well-formed formula B into an equivalent expression B with f v ( B ) = f v ( B ) and f v ( B ) B .
In logic textbooks, as in [4] for example, they say that deduction calculi for first-order logic can inherit axiom schemata and rules from deduction calculi for Propositional Logic. There is, however, no formal explanation in what sense an open formula represents a proposition. In LoSiCs we try to repair this flaw by introducing statements in context which are statements about single (!) interpretations of contexts in a given structure and, thus, propositions in the sense of Propositional Logic.
Due to the lack of explicit variable declarations and explicit declarations of contexts, there also are no explicit bindings and context morphisms in traditional first-order logic. The only implicitly present morphisms are inclusion maps. We may consider X = f v ( Γ ) : = { f v ( B ) B Γ } as the implicit context of Γ thus we could transform Γ into a sketch with context X and the set { ( f v ( B ) B , i n f v ( B ) , X ) B Γ } of statements in context X. In alignment with traditional first-order logic, we can, however, in LoSiCs only combine expressions by Boolean operators but not statements in context! That is, we cannot represent an implication, like " A B " in traditional notation with A , B Γ , by a phrase like " ( f v ( A ) A , i n f v ( A ) , X ) ( f v ( B ) B , i n f v ( B ) , X ) " but only by a statement in context like ( Y A B , i n Y , X ) with f v ( A ) f v ( B ) Y X . Due to Barendregt’s variable convention this statement is only syntactically correct if the sets Y and b v ( A ) b v ( B ) are disjoint!
To be able to mimic the traditional free Boolean combination of well-formed formulas, we decide, therefore, to utilize a specific class of Σ -sketches ( X , S ) t in our analysis of traditional first-order deduction calculi. We use only sets X of variables as contexts. We only consider finite Σ -sketches with simple statements, i.e., statements of the form ( X B , i d X ) . In such a way, we adapt a strict separation of free and bound variables in the sense that we require X b v ( S ) t = . So, compared to the traditional approach, which simply works with arbitrary finite sets Γ of arbitrary well-formed formulas, we propose three changes:
1.
We declare an explicit context X with f v ( Γ ) X .
2.
We require Γ F E Σ ( X ) and adapt, in such a way, Barendregt’s variable convention.
3.
We require, moreover, X b v ( Γ ) = , i.e., a strict separation of free and bound variables.
We call a pair ( X , Γ ) of a set X of variables and a finite set Γ of well-formed formulas LoSiC-compatible or, synonymously, a Σ -specification if it satisfies the conditions above, i.e., if ( X , Γ ) can be seen as a representation of the simple Σ -sketch ( X , S t Γ X ) with statements S t Γ X : = { ( X B , i d X ) B Γ } . The semantics of a Σ -specification ( X , Γ ) is defined by
[ [ ( X , Γ ) ] ] U : = [ [ ( X , S t Γ X ) ] ] U = [ [ Γ ] ] X U = { [ [ B ] ] X U B Γ }
for any Σ -structure U . The syntactic requirements 2. and 3. above are only of technical nature and cause no loss of generality! We have to ensure, however, that all constructions, relevant for deduction, preserve LoSiC-compatibility!

6.1. Reduction of Contexts

A first simple construction is the reduction of contexts. Given a Σ -specification ( X , Γ ) and a set Z of variables with f v ( Γ ) Z X , the pair ( Z , Γ ) is expected to also be a Σ -specification and both pairs should represent the same semantic information.
Lemma 1 ensures that ( Z , Γ ) is a Σ -specification too. That both Σ -specifications ( X , Γ ) and ( Z , Γ ) represent the same semantic information is ensured by Lemmma 3 below formally grasping the observation that the semantics of an open formula only depends on the free variables (compare Lemma 9.7 in [4] for example).
To prepare the proof of Lemma 3, we fix a crucial observation (that, unfortunately, vanishes in the many-sorted case). According to (A25), we do have for any carrier U that the projection map ( i n ; _ ) : U G U K for any inclusion map i n : = i n K , G : K G between contexts is surjective thus we also have by (A24)
i n U ; i n U = i n U ; ψ U = i d ( U K ) .
for the operators i n U = ( i n ; _ ) 1 : ( U K ) ( U G ) , i n U = ( i n ; _ ) : ( U G ) ( U K ) and i n U : ( U G ) ( U K ) defined and elaborated in Appendix A.2.
Lemma 3
(Inclusion of Contexts). For any Σ-expression B and any sets Z, X of variables with f v ( B ) Z X and Z B , X B the following two equivalent conditions for the inclusion map i n : = i n Z , X : Z X hold for all Σ-structures U
[ [ B ] ] X U = i n U [ [ B ] ] Z U a n d i n U [ [ B ] ] X U = i n U [ [ B ] ] X U = [ [ B ] ] Z U .
Proof. 
According to Corollary A3, the right condition always implies the left condition while the implication in the other direction is ensured by (29).
We prove the claim by induction on expressions according to the inductive definition of syntax of expressions in Definition 5 and of semantics of expressions in Definition 7.
For the case Relational Atom, we consider the substitution i n ; η X : Z T Σ ( X ) . The map ( i n ; η X ) * : T Σ ( Z ) T Σ ( X ) , due to (15), is nothing but the inclusion T Σ ( Z ) T Σ ( X ) claimed in Remark 6. The definition of derived operations by (3) and (4) entails ( i n ; η X ) U ( a ) = i n ; a for all a U X and thus ( i n ; η X ) U = ( i n ; _ ) : U X U Z .
Z p syn ( t ) for t : a r ( p ) T Σ ( X ) means that there is a unique r : a r ( p ) T Σ ( Z ) with r ; ( i n ; η X ) * = t and thus p syn ( t ) = p syn ( r ) . Due to (17) and (18), this ensures that t U = ( i n ; η X ) U ; r U = ( i n ; _ ) ; r U . In such a way, we get by Definition 7 and (A36). [ [ p syn ( t ) ] ] Z U = [ [ p syn ( r ) ] ] Z U = r U ( p U ) and, therefore, as required [ [ p syn ( t ) ] ] X U = t U ( p U ) = r ; ( i n ; η X ) * U ( p U ) = r U ; i n ; η X U ( p U ) = i n ; η X U ( r U ( p U ) ) = i n U [ [ p syn ( r ) ] ] Z U .
The case Equation can be shown in the same way since the equation symbol "=" can be seen to represent a built-in predicate with arity a r ( = ) = { 1 , 2 } , as discussed in Remark 11, and a fixed semantics = U = { a U { 1 , 2 } a ( 1 ) = a ( 2 ) } in any Σ -structure U .
Case Void is trivial since the preimage of the empty set is always the empty set and case Everything simply reflects that ( i n ; _ ) : U X U Z is a total (!) map.
The cases Conjunction, Disjunction, Implication and Negation are ensured since shift operators distribute over intersections as well as over unions and since they also are compatible with complements (see Appendix A.1 and (A13)).
We show case Quantification by means of the right condition in the lemma. For X Q ( syn ( Y X ) : E x ) with Q { , } let Z be arbitrary with f v ( Q ( syn ( Y X ) : E x ) ) Z X . In such a way, we do have two chains of inclusions Z X Y and Z W Y with W = Z ( Y X ) and thus Q i n Z , Y U = Q i n X , Y U ; Q i n Z , X U = Q i n W , Y U ; Q i n Z , W U due to (A23).
By Induction Hypothesis, Q i n W , Y U [ [ E x ] ] Y U = [ [ E x ] ] W U , thus we get, due to Definition 7, for the inclusion chains Q i n Z , Y U [ [ E x ] ] Y U = Q i n Z , X U ( Q i n X , Y U [ [ E x ] ] Y U ) = Q i n Z , X U [ [ Q ( syn ( Y X ) : E x ) ] ] X U and Q i n Z , Y U [ [ E x ] ] Y U = Q i n Z , W U ( Q i n W , Y U [ [ E x ] ] Y U ) = Q i n Z , W U [ [ E x ] ] W U = [ [ Q ( syn ( Y X ) : E x ) ] ] Z U and therefore Q i n Z , X U [ [ Q ( syn ( Y X ) : E x ) ] ] X U = [ [ Q ( syn ( Y X ) : E x ) ] ] Z U as required. □
We can straightforwardly generalize Lemma 3 to arbitrary Σ -specifications.
Corollary 6
(Inclusion of Contexts). For any set Γ of Σ-expressions and any sets Z, X of variables with f v ( Γ ) Z X such that ( Z , Γ ) and ( X , Γ ) are Σ-specifications the following two equivalent conditions for the inclusion map i n : = i n Z , X : Z X hold for all Σ-structures U
[ [ Γ ] ] X U = i n U [ [ Γ ] ] Z U a n d i n U [ [ Γ ] ] X U = i n U [ [ Γ ] ] X U = [ [ Γ ] ] Z U .
Proof. 
Since i n U distributes over arbitrary intersections, we get by (28) and Lemma 3 i n U [ [ Γ ] ] Z U = i n U ( { [ [ B ] ] Z U B Γ } ) = { i n U [ [ B ] ] Z U B Γ } = { [ [ B ] ] X U B Γ } = [ [ Γ ] ] X U . From this equality we can deduce the two equalities on the right by means of (29). □

6.2. Extension of Contexts

A second simple construction are context extensions. Let ( X , Γ ) be a Σ -specification and ( X , S t Γ X ) be the corresponding simple Σ -sketch with S t Γ X : = { ( X B , i d X ) B Γ } . We consider a set Y of variables with X Y .
The simplest idea is, obviously, to consider ( Y , Γ ) as the results of transforming ( X , Γ ) along the inclusion map i n X , Y : X Y . However, to make this idea work we must, at least, require that ( Y , Γ ) is LoSiC-compatible. By assumption, we have f v ( Γ ) X Y thus the first condition of LoSiC-compatibility is trivially satisfied.
f v ( Γ ) X Y trivially implies ( Y X ) f v ( Γ ) = . By assumption we also do have X b v ( Γ ) = , thus the third condition Y b v ( Γ ) = of LoSiC-compatibility will be satisfied if, and only if, in addition to ( Y X ) f v ( Γ ) = also ( Y X ) b v ( Γ ) = holds. To say it with other words: Each variable in Y X is required to be a notorious fresh variable in the traditional sense! That the "strong fresh variable condition" ( Y X ) b v ( Γ ) = even entails the crucial LoSiC-compatibility condition Γ F E Σ ( Y ) , is ensured by the next lemma that is a complement to Lemma 1.
Lemma 4
(Extending Variable Declarations). For any set X of variables and any Σ- expression E x F E Σ ( X ) , i.e., X E x , we also have E x F E Σ ( V ) , i.e., V E x , for all sets V of variables with X V and ( V X ) b v ( E x ) = .
Proof. 
By induction on expressions. For atomic expressions the claim is obvious since T Σ ( X ) T Σ ( V ) if X V . Induction passes trivially through the connectives.
In case of Quantification X Q ( syn ( Y X ) : E x ) with Q { , } let V be arbitrary with X V and ( V X ) b v ( Q ( syn ( Y X ) : E x ) ) = . By Definition 5, we have Y E x and thus Y b v ( E x ) = due to Remark 10. By the second assumption and (2), we get ( V X ) ( b v ( E x ) ( Y X ) ) = ( V X ) b v ( E x ) ( V X ) ( Y X ) = and thus ( V X ) b v ( E x ) = and ( V X ) ( Y X ) = . ( V X ) ( Y X ) = and X V imply V ( Y X ) = . Therefore, we obtain W ( Y X ) = V for W : = V ( Y X ) besides Y W . This ensures W Y = W ( ( Y X ) X ) = ( W ( Y X ) ) X = V X . This gives us ( W Y ) b v ( E x ) = since ( V X ) b v ( E x ) = as shown before.
Induction Hypothesis for Y W and Y E x provides W E x . Due to W ( Y X ) = V , this means, according to Definition 5, that V Q ( syn ( Y X ) : E x ) as required. □
This was the syntactic side of the story. Let us now discuss the semantic side. The translation of statements along context morphisms in (7) has been chosen to guaranty the satisfaction condition which is the essential prerequisite to achieve a smooth and correct interplay of syntactic manipulations and semantic constructions within a formalism.
The binding morphism in a statement in context declares for what part of the context we impose restrictions concerning the interpretations of the whole context in structures. The translation of statements, defined in (7), preserves this information. In the lazy approach we must identify conditions ensuring such a preservation of "local restrictions" too.
Translating the Σ -sketch ( X , S t Γ X ) along the inclusion map i n = i n X , Y : X Y results in the Σ -sketch ( Y , Stm Σ ( i n ) ( S t Γ X ) ) with Stm Σ ( i n ) ( S t Γ X ) = { ( X B , i n ) B Γ } which only imposes restrictions on the part X of Y. Above we learned that the strong fresh variable condition ( Y X ) b v ( Γ ) = entails the LoSiC-compatibility condition Γ F E Σ ( Y ) ensuring, in such a way, that ( Y , Γ ) is a Σ -specification representing the simple Σ -sketch ( Y , S t Γ Y ) with S t Γ Y : = { ( Y B , i d Y ) B Γ } .
Fortunately, Γ F E Σ ( Y ) implies, in parallel, that the interpretation of Y X in a structure is independent of the interpretation of X, i.e., the semantic equivalence of the statements ( X B , i n ) and ( Y B , i d Y ) . Due to the semantics of statements in (12) and Lemma 3 we do have for any B Γ F E Σ ( Y ) and any Σ -structure U
[ [ ( X B , i n ) ] ] U = i n U [ [ B ] ] X U = [ [ B ] ] Y U = i d Y U [ [ B ] ] Y U = [ [ ( Y B , i d Y ) ] ] U .
and, in such a way, the following semantic equivalences of Σ -sketches and Σ -specifications by means of (22), (23) and (28)
[ [ ( Y , Γ ) ] ] U = [ [ ( Y , S t Γ Y ) ] ] U = [ [ ( Y , Stm Σ ( i n ) ( S t Γ X ) ) ] ] U = i n U [ [ ( X , S t Γ X ) ] ] U = i n U [ [ ( X , Γ ) ] ] U
So, the idea to consider the Σ -specification ( Y , Γ ) as the translation of the Σ -specification ( X , Γ ) along the inclusion map i n = i n X , Y : X Y can be licensed if all variables in Y X are fresh variables in the strong sense, i.e., ( Y X ) f v ( Γ ) = ( Y X ) b v ( Γ ) = .
In summary: If the pair ( X , Γ ) of a set X of variables and a finite set Γ of Σ -expressions is LoSiC-compatible (see page Section 6), ( X , Γ ) can unambiguously utelized as a shorthand representation of the Σ -sketch ( X , S t Γ X ) with S t Γ X : = { ( X B , i d X ) B Γ } . We coined the concept Σ-specification to denote LoSiC-compatible pairs ( X , Γ ) while the semantics of a Σ -specification ( X , Γ ) is given by (28).
For any proper extension X Y the strong fresh variable convention, to also require ( Y X ) b v ( Γ ) = , in addition to ( Y X ) f v ( Γ ) = , ensures that ( Y , Γ ) becomes a Σ -specification as well and that the corresponding simple Σ -sketch ( Y , S t Γ Y ) is semantically equivalent to the non-simple Σ -sketch ( Y , Stm Σ ( i n X , Y ) ( S t Γ X ) ) which we obtain, according to the LoSiC-methodology, by translating the statements in ( X , S t Γ X ) along the inclusion map i n X , Y , i.e., Stm Σ ( i n X , Y ) ( S t Γ X ) = { ( X B , i n X , Y ) B Γ } .
This suggests to introduce the following concept of Σ-specification implication as an adequate tool to describe and analyze traditional first-order deduction calculi.
Definition 18
(Specification Implication). A Σ -specification implication ( X , Γ ) ( Y , Δ ) is given by two Σ-specifications ( X , Γ ) and ( Y , Δ ) such that X Y and ( Y X ) b v ( Γ ) = . ( X , Γ ) ( Y , Δ ) is calledstrict, ( X , Γ ) @ 3 > ( Y , Δ ) [ r ] in symbols, if, and only if, Γ Δ .
( X , Γ ) ( Y , Δ ) issatisfiedin a Σ-structure U , U Σ ( X , Γ ) ( Y , Δ ) in symbols, if i n X , Y U [ [ ( Y , Δ ) ] ] U = ( i n X , Y ; _ ) [ [ ( Y , Δ ) ] ] U [ [ ( X , Γ ) ] ] U for the inclusion map i n X , Y : X Y .
Note, that the condition ( Y X ) b v ( Γ ) = ensures that we can simply transform a Σ -specification implication ( X , Γ ) ( Y , Δ ) into a corresponding strict Σ -specification implication ( X , Γ ) @ 3 > ( Y , Δ Γ ) [ r ] ! On the other side, the condition entails for any strict Σ -specification implication ( X , Γ ) @ 3 > ( Y , Δ ) [ r ] the semantic equivalence of the Σ -sketches ( Y , S t Δ Y ) and ( Y , Stm Σ ( i n X , Y ) ( S t Γ X ) S t Δ Γ Y ) thus the concept "strict Σ -specification implication" represents a special case of the concept "strict Σ -sketch implication"! In such a way, we get by Corollary 2
U Σ ( X , Γ ) @ 3 > ( Y , Δ ) [ r ] i m p l i e s i n X , Y U [ [ ( Y , Δ ) ] ] U = ( i n X , Y ; _ ) [ [ ( Y , Δ ) ] ] U = [ [ ( X , Γ ) ] ] U
As in the case of Σ -sketches, (A23) ensures that the composition ( X , Γ ) ( Z , Ω ) of two Σ -specification implications ( X , Γ ) ( Y , Δ ) and ( Y , Δ ) ( Z , Ω ) is also satisfied in a Σ -structure U if both ( X , Γ ) ( Y , Δ ) and ( Y , Δ ) ( Z , Ω ) are satiesfied in U . Obviously, composition also preserves strictness!

6.3. α -Conversion

To come up, in analogy to Section 5.3, with a reasonable concept of "strict match" for the application of Σ -specification implications as deduction rules we must explicitly deal with α -conversion, i.e., semantic preserving renaming of bound variables. We borrow the term α-equal from [32] to state that two well-formed formulas or Σ -expressions, respectively, are equal up to semantic preserving renaming of bound variables.
In the literature we found two approaches to achieve capture-avoiding substitution application. The "legal substitution approach" formally characterizes capture-avoiding substitutions and allows only the application of those legal substitutions [4]. The "concurrence class approach" doesn’t work with single formulas but classes of α -equal formulas. The fact that for a given substitution there is in any equivalence class a formula for which the application of the given substitution is capture avoiding, allows us to define the application of any substitution to any equivalence class by choosing the right representative (see [32]).
The "methodological accident" that the LoSiC-approach inforces compliance with Barendregt’s variable convention as well as a strict separation of free and bound variables leads us, however, to a third possibility to achieve capture-avoiding substitution application. We elaborate this third possibility in this subsection.
In Definition 11 we assumed an arbitrary, but fixed, choice of non-symmetric sums of sets of variables to be able to define substitution application for all (!) Σ -expressions in a uniform way. To preserve compliance with Barendregt’s variable convention we have been enforced, therefore, to inductively define, in parallel with substitution application, a renaming of bound variables implicitly determined by the chosen overall non-symmetric sums. In the realm of deduction it is, however, more advantageous to individually adjust renaming of bound variables to single expressions. Fortunately, compliance with Barendregt’s variable convention and the strict separation of free and bound variables exactly enables such an individual adjustment of renaming. In addition to the declaration of a substitution for the free variables in an expression, we can also declare a renaming for the bound variables, and then recursively apply substitutions and the renamings in parallel.
Due to the induction scheme in Definition 5, the syntatctic structure of a Σ -expressions can be described by a binary tree where the proper nodes are either "Boolean nodes" or "quantifier nodes" while the leaves are either "everything/void nodes" or "atomic nodes". Each quantifier node is labeled with the set of variables that have been bound by the corresponding quantification. Two Σ -expressions can only be α -equal if both trees do have the same structure and if for any pair of corresponding quantifier nodes the respective two sets of bound variables do have the same cardinality.
For each path in the tree from the root to a leaf there is a sequence of quantifier nodes where the corresponding sets of bound variables are all disjoint, i.e., no variable is quantified twice in the sequence. To ensure that renaming preserves compliance with Barendregt’s variable convention, a renaming should not identify any variables in the same sequences. Since quantifications in disjoint subtrees are semantically independent, two variables appearing in two of those independent quantifications can be, however, identified by a renaming! The discussion is summarized by the following definition.
Definition 19
(Renaming Substitution). Arenaming substitution ( r , α ) for a Σ-expression X E x is given by a substitution r : X T Σ ( Z ) and a map α : b v ( E x ) V satisfying the following requirements: Z V = and for any path in the structure tree of E x from the root to a leaf the restriction of α : b v ( E x ) V to the set of all variables, bound in the quantifier nodes along the path, is injective. If X = Z and ( η X , α ) is a renaming substitution for X E x , we call α : b v ( E x ) V alegal renaming (of bound variables)for X E x .
If V = b v ( E x ) and α = i d b v ( E x ) the renaming substitution condition reduces to Z b v ( E x ) = , and we may call r : X T Σ ( Z ) a legal substitution for X E x .
The result Z ( r , α ) ¯ ( E x ) of applying a renaming substitution ( r , α ) to X E x is defined by adapting Definition 11 and reusing it as a recursion scheme. The basic cases 1-3 can be reused as they are. In the Boolean cases 4-6, we replace the two "recursion calls" r ¯ on the right hand sides by ( r , α i ) ¯ , i { 1 , 2 } with the restrictions α i : b v ( E x i ) V of α . In case 7, we simply replace the "recursion call" r ¯ by ( r , α ) ¯ .
In case 8, i.e., E x = Q ( syn ( Y X ) : E x ) with Q { , } and Y E x , we define
Z ( r , α ) ¯ ( Q ( syn ( Y X ) : E x ) ) : = Z Q ( syn ( W Z ) : ( r , α ) ¯ ( E x ) )
with W ( r , α ) ¯ ( E x ) and W : = Z α ( Y X ) . We construct the recursion call ( r , α ) as follows: The simple idea is to move the assignments ( y α ( y ) ) with y Y X b v ( E x ) from the "renaming side" to the "substitution side". Fortunately, we can reconstruct from the given information the original set Y as the union Y = X ( Y X ) . The injectivity requirement in Definition 19 for α ensures that the restriction α Q : Y X α ( Y X ) of α becomes bijective. The condition Z V = entails Z α ( Y X ) = thus we obtain W Z = α ( Y X ) besides T Σ ( Z ) T Σ ( W ) and α ( Y X ) T Σ ( W ) . This allows us to define the extended substitution r : Y T Σ ( W ) by case distinction
r ( y ) : = r ( y ) i f y X α ( y ) i f y Y X .
Since b v ( E x ) = ( Y X ) b v ( E x ) and Y b v ( E x ) = , we have b v ( E x ) = b v ( E x ) ( Y X ) thus the restriction α : b v ( E x ) V of α with V : = V α ( Y X ) is well-defined since α injective ensures α 1 ( α ( Y X ) ) = Y X . ( r , α ) is indeed a renaming substitution in the sense of Definition 19 since Z V = entails W V = by definition of W and V while α inherits the satisfaction of the injectivity condition from α .
Renaming of bound variables doesn’t change the semantics of Σ -expressions! For any isomorphism i : X Y between sets of variables and any carrier U the pre-composition map ( i ; _ ) : U Y U X is also an isomorphism with the inverse ( i 1 ; _ ) . This ensures for any renaming substitution ( r , α ) , r : X T Σ ( Z ) , α : b v ( E x ) V for a Σ -expression X E x and any legal renaming α : b v ( E x ) V for X E x that
[ [ ( r , α ) ¯ ( E x ) ] ] Z A = [ [ r ¯ ( E x ) ] ] Z A a n d [ [ E x ] ] X A = [ [ α ¯ ( E x ) ] ] X A
with α ¯ ( E x ) : = ( η X , α ) ¯ ( E x ) and Z r ¯ ( E x ) obtained according to Definition 11 for a certain fixed choice of non-symmetric sums for sets of variables..
As already discussed, the same variable can appear in different quantifications located in disjoint subtrees of the structure tree of a Σ -expression. The pattern of this "horizontal reuse" of bound variables may not match the corresponding pattern in another α -equal expressions. Therefore, we must use spans of legal renamings to fully describe α -equality for all Σ -expressions, i.e., for all well-formed formulas, in the traditional sense, complying with Barendregt’s variable convention.
In terms of the concurrence class approach to capture-avoiding substitutions [32], we can fortunately represent classes of α -equal Σ -expressions by Σ -expressions in a certain normal form: We call a Σ -expression X E x quantification unique if, and only if, each variable in b v ( E x ) appears in exactly one quantification in E x . In other words: The quantification unique Σ -expressions are exactly those Σ -expressions, we can build by means of Definition 5 with the additional requirement b v ( E x 1 ) b v ( E x 2 ) = in the cases Conjunction, Disjunction and Implication. Utilizing quantification unique Σ -expressions, we can give the following complete characterization of α -equality for Σ -expressions: Two Σ -expressions X E x 1 and X E x 2 are α -equal if, and only if, there exist a quantification unique Σ -expresssion X E x and legal renamings α 1 : b v ( E x ) V 1 , α 2 : b v ( E x ) V 2 for X E x such that α 1 ¯ ( E x ) = E x 1 and α 2 ¯ ( E x ) = E x 2 .

6.4. Deducing Specification Implications

In Section 5.3 we investigated the deduction of new sketch implications by applying given sketch implications as deduction rules via sketch morphisms. We unexpectedly found out that rule application via substitutions can not be defined for arbitrary Σ -sketches but only for simple Σ -sketches, since we utilize only simple maps and not arbitrary substitutions to bind expressions to contexts. We introduced Σ -specifications ( X , Γ ) as a representation of simple Σ -sketches ( X , S t Γ X ) , S t Γ X : = { ( X B , i d X ) B Γ } to become better aligned with the traditional notations in first-order logic. Maps between sets of variables can be encoded by substitutions thus it suffices to consider rule application via substitutions!
We will investigate how to apply a Σ -specification implication ( P , Π ) ( C , Γ ) , as a rule, to deduce for a given Σ -specification ( G , Φ ) a strict Σ -specification implication ( G , Φ ) @ 3 > ( R , Ψ ) [ r ] thereby ensuring soundness analogously to Corollary 5. We use the constructions and results in Section 5.3 as a blueprint for this subsection. Renaming substitutions, defined in Section 6.3, are the appropriate tool to define matches for rule application in analogy to the strict Σ -sketch arrow in Corollary 5.
Definition 20
(Match). Amatch ( t , α ) of a Σ-specification ( P , Π ) in a Σ-specification ( G , Φ ) , ( t , α ) : ( P , Π ) ( G , Φ ) in symbols, is given by a substitution t : P T Σ ( G ) and a Π-indexed family α of renaming substitutions ( t , α B ) , α B : b v ( B ) V B with V B b v ( Φ ) such that ( t , α B ) ¯ ( B ) Φ for all B Π .
Note, that the Σ -expressions in Π should preferably be quantification unique to ensure that our concept of match completely comprises α -equality!
Definition (28) and the equations (33), (20) ensure that one can prove, analogously to Corollary 2, the following proposition.
Proposition 3
(Semantics of Matches). For any match ( t , α ) : ( P , Π ) ( G , Φ ) and any Σ-structure U it holds that t U [ [ ( G , Φ ) ] ] U = t U [ [ ( G , Φ ) ] ] U [ [ ( P , Π ) ] ] U and, equivalently due to Corollary A6, [ [ ( G , Φ ) ] ] U t U [ [ ( P , Π ) ] ] U .
Let be given a Σ -specification implication ( P , Π ) ( C , Γ ) , a Σ -specification ( G , Φ ) and a match ( t , α ) : ( P , Π ) ( G , Φ ) . We use the abbreviation ι : = i n P , C : P C for the corresponding inclusion map. To ensure the strong fresh variable condition for the Σ -implication, we are going to construct, we choose for C P an isomorphic set C P of variables together with an isomorphism i s : C P C P such that C P G = C P b v ( Φ ) = . We set R : = G C P and get an inclusion map j : = i n G , R : G R . Since C = P ( C P ) , this allows us to extend the substitution t : P T Σ ( G ) to a substitution r : C T Σ ( R ) :
r ( x ) : = t ( x ) i f x P i s ( x ) i f x C P
To characterize our construction by means of a commutative square, we can not rely on the composition of maps since substitutions are involved! We have to consider, instead, composition of substitutions, i.e., composition in the category Var Σ as defined in Section 4.2.1. The inclusion map ι : P C gives rise to the substitution ι ; η C : P T Σ ( C ) while j : G R gives us the substitution j ; η R : G T Σ ( R ) . Our constructions provide, in such a way, the left commutative diagram below in the category Var Σ .
Preprints 221586 i020
Any substitution represents a derived operation in a Σ -structure U as defined in (4). As discussed in Section 4.2.3, composition of substitutions in the category Var Σ represents the composition of corresponding derived operations for any Σ -structure U , thus the commutative square of substitutions on the left in (35) transforms for any U into the commutative square of derived operations in the middle of (35). Note, that the derived operations ( ι ; η C ) U = ( ι ; _ ) and ( j ; η R ) U = ( j ; _ ) are simple projections! We show that this commutative diagram of derived operations is, in analogy to (27), also a pullback in Set .
We have to prove that there is for any pair ι : G U , ϑ : C U of interpretations with t U ( ι ) = ι ; ϑ a unique interpretation κ : R U with j ; κ = ι and r U ( κ ) = ϑ . The two uniqueness conditions enforce the following definition of κ : R U
κ ( x ) : = ι ( x ) i f x G ϑ ( i s 1 ( x ) ) i f x C P
where the case x C P is entailed by the definition of r : C T Σ ( R ) in (34) and the definition of derived operations in (4): That is, we have r U ( κ ) = r ; κ where κ : T Σ ( R ) U is the unique extension of κ with η R ; κ = κ thus for all y C P the condition r U ( κ ) = ϑ forces r U ( κ ) ( y ) = κ ( r ( y ) ) = κ ( i s ( y ) ) = κ ( i s ( y ) ) = ϑ ( y ) and, thus equivalently, κ ( x ) = ϑ ( i s 1 ( x ) ) for all x C P .
It remains to show that r U ( κ ) ( y ) = ϑ ( y ) for all y P C . Due to the definition of κ in (36), we have j ; κ = ι thus the diagram below is commutative with ( j ; η R ) * an inclusion map and ( j ; η R ) * ; κ = ι according to (17). In such a way, we get for any y P due to the assumption t U ( ι ) = ι ; ϑ that r U ( κ ) ( y ) = r U ( κ ) ( ι ( y ) ) = t U ( ι ) ( y ) = ϑ ( ι ( y ) ) = ϑ ( y ) .
Preprints 221586 i021
Analogously to Section 5.3, we extend the context R = G C P to a Σ -specification ( R , Ψ ) with Ψ constructed out of the Σ -expressions in Φ and Γ . To achieve strictness of the resulting Σ -specification implication, we simply declare Φ Ψ . Keep in mind that the condition C P G = C P b v ( Φ ) = ensures R B for all B Φ according to Lemma 4.
To include the Σ -expressions from ( C , Γ ) , we have first to extend the substitution r : C T Σ ( R ) to a Γ -indexed family ( r , α ) of renaming substitutions. If B Γ Π , we can simply set α B : = α B : b v ( B ) V B since b v ( Φ ) b v ( Ψ ) . Due to the definition of r in (34), we get ( r , α B ) ¯ ( B ) = ( t , α B ) ¯ ( B ) Φ Ψ in this case. If B Γ Π , we can freely choose a set V B of fresh bound variables, i.e., with V B R = V B b v ( Φ ) = , thus there exists an isomorphism α B : b v ( B ) V B . Using the shorthand ( r , α ) ¯ ( Γ ) : = { ( r , α B ) ¯ ( B ) B Γ } , we can summarize our definitions by ( R , Ψ ) : = ( R , Φ ( r , α ) ¯ ( Γ ) ) .
Our definitions ensure, that the pair ( R , Ψ ) complies with the condition of a strict separation of free and bound variables, i.e., ( R , Ψ ) is indeed a Σ -specification. We also get a strict Σ -specification implication ( G , Φ ) @ 3 > ( R , Ψ ) [ r ] (see the right square in (35)). Moreover, the pair ( r , α ) defines, by construction, a match ( r , α ) : ( C , Γ ) ( R , Ψ ) thus Proposition 3 entails
r U [ [ ( R , Ψ ) ] ] U = r U [ [ ( R , Ψ ) ] ] U [ [ ( C , Γ ) ] ] U a n d [ [ ( R , Ψ ) ] ] U r U [ [ ( C , Γ ) ] ] U .
In full analogy to Corollary 5, we can prove that the application of a Σ -specification implication as a deduction rule via substitutions is semantically sound.
Proposition 4
(Specification Implications as Rules: Soundness). For any Σ-structure U with U Σ ( P , Π ) ( C , Γ ) , i.e., i U [ [ ( C , Γ ) ] ] U = ( i ; _ ) [ [ ( C , Γ ) ] ] U [ [ ( P , Π ) ] ] U for i : = i n P , C , and any match ( t , α ) : ( P , Π ) ( G , Φ ) it holds that U Σ ( G , Φ ) @ 3 > ( R , Ψ ) [ r ] , i.e., j U [ [ ( R , Ψ ) ] ] U = ( j ; _ ) [ [ ( R , Ψ ) ] ] U = [ [ ( G , Φ ) ] ] U for j : = i n G , R .
Proof. 
The strict Σ -specification implication ( G , Φ ) @ 3 > ( R , Ψ ) [ r ] gives rise to the trivial renaming substitution ( i ; η R , id ) , id = { i d b v ( B ) B Φ } with ( i ; η R , id ) ¯ ( B ) = B for all B Φ thus the inclusion "⊆" is ensured by Proposition 3. It remains to show "⊇".
If [ [ ( G , Φ ) ] ] U = , the inclusion trivially holds. If [ [ ( G , Φ ) ] ] U , we consider an arbitrary ι [ [ ( G , Φ ) ] ] U U G . Since ( t , α ) : ( P , Π ) ( G , Φ ) is a match, we get t U ( ι ) [ [ ( P , Π ) ] ] U , due to Proposition 3, thus there exists a ϑ [ [ ( C , Γ ) ] ] U U C with t U ( ι ) = i ; ϑ due to assumption U Σ ( P , Π ) ( C , Γ ) .
For the unique κ : R U with j ; κ = ι and r U ( κ ) = ϑ the fact ϑ [ [ ( C , Γ ) ] ] U , (20) and (33) ensure κ ( r U ) 1 [ [ Γ ] ] C U = [ [ ( r , α ) ¯ ( Γ ) ] ] R U while j ; κ = ι and ι [ [ ( G , Φ ) ] ] U = [ [ Φ ] ] G U entail, due to Lemma (3), κ [ [ Φ ] ] R U = j U [ [ Φ ] ] G U = ( j ; _ ) 1 [ [ Φ ] ] G U . In such a way, we have κ [ [ ( R , Ψ ) ] ] U = [ [ Φ ] ] R U [ [ ( r , α ) ¯ ] ] R U with ( j ; _ ) ( κ ) = j ; κ = ι and thus ι j U [ [ ( R , Ψ ) ] ] U = ( j ; _ ) [ [ ( R , Ψ ) ] ] U , as required. □
In analogy to Section 5.3, we can also define a non-strict variant of rule application by simply defining ( R , Ψ ) : = ( R , ( r , α ) ¯ ( Γ ) ) instead of ( R , Ψ ) : = ( R , Φ ( r , α ) ¯ ( Γ ) ) . A corresponding slight variation of the proof of Proposition 4 provides the following Corollary.
Corollary 7
(Non-strict Variant of Rule Application: Soundness). For any Σ-structure U with U Σ ( P , Π ) ( C , Γ ) , i.e., i U [ [ ( C , Γ ) ] ] U = ( i ; _ ) [ [ ( C , Γ ) ] ] U [ [ ( P , Π ) ] ] U for i : = i n P , C , and any match ( t , α ) : ( P , Π ) ( G , Φ ) it holds that U Σ ( G , Φ ) ( R , ( r , α ) ¯ ( Γ ) ) , i.e., j U [ [ ( R , ( r , α ) ¯ ( Γ ) ) ] ] U = ( j ; _ ) [ [ ( R , ( r , α ) ¯ ( Γ ) ) ] ] U [ [ ( G , Φ ) ] ] U for j : = i n G , R .
Remark 24
(Non-proper Substitutions). In case that t : P T Σ ( G ) is anon-proper substitution, i.e., can be described as the composition t = μ ; η G of maps μ : P G and η G : G T Σ ( G ) , the definition in (34) of r : C T Σ ( R ) with R : = G C P entails that r is also a non-proper substitution, i.e., can be factorized into r = μ * ; η R with maps μ * = μ + i s : C R and η R : R T Σ ( R ) . So, in this case, our construction of r : C T Σ ( R ) boils down to the construction of a pushout G j R μ * C in Set of the span G μ P i C of maps representing the commutative diagram in the category Var Σ depicted left in (35). In other words: There is no need to adapt Section 5.3 to Σ-specification implications since this adaptation simply is a special case of the constructions we presented in this subsection!
Remark 25
(Extension of Premises). What we will mainly need for our analysis of traditional deduction calculi is the extension of the premise of a given specification implication by new free variables and/or new expressions. To perform this simple task, we have to apply the given specification implication as a rule and, in some cases, it may be necessary to take additional measurements to enable rule application.
For a Σ-specification implication ( P , Π ) ( C , Γ ) let be given an inclusion map i n : P G and a Σ-specification ( G , Δ ) . If the set I : = b v ( Π ) ( G P ) is empty, no renaming of bound variables is necessary! ( G , Π Δ ) is a legal Σ-specification and i n : P G establishes a match ( P , Π ) ( G , Π Δ ) in the sense of Definition 20, according to Remark 24.
In case I , we chose a set V of fresh variables with V ( C G b v ( Π ) b v ( Γ ) ) = together with a bijective map ι : I V , and define a Π-indexed family α of bijective renaming substitutions ( i n , α B ) , α B : b v ( B ) V B with V B = ( b v ( B ) I ) ι ( b v ( B ) I ) for all B Π and α B ( x ) = x if x b v ( B ) I and α B ( x ) = ι ( x ) if x b v ( B ) I .
First, this ensures that ( i n , α ) : ( P , Π ) ( G , ( i n , α ) ¯ ( Π ) Δ ) is a match in the sense of Definition 20. Second, we can apply the rule ( P , Π ) ( C , Γ ) , in a strict and non-strict way, via the match ( i n , α ) and it is ensured that we obtain legal Σ-specification implications ( G , ( i n , α ) ¯ ( Π ) Δ ) ( R , ( i n , α ) ¯ ( Π ) Δ ( i n + i s , α ) ¯ ( Γ ) ) and ( G , ( i n , α ) ¯ ( Π ) Δ ) ( R , ( i n + i s , α ) ¯ ( Γ ) ) with R = G C P , i s : C P C P a bijection and i n + i s : C R .
Finally, U ( P , Π ) ( C , Γ ) entails U ( G , ( i n , α ) ¯ ( Π ) Δ ) ( R , ( i n + i s , α ) ¯ ( Γ ) ) and U ( G , ( i n , α ) ¯ ( Π ) Δ ) ( R , ( i n , α ) ¯ ( Π ) Δ ( i n + i s , α ) ¯ ( Γ ) ) for any Σ-structure U according to Corollary 7 and Proposition 4, respectively.
If P = C , it still may happen that I = b v ( Π ) ( G P ) , thus the only simplification is that R = G and that ( i n + i s , α ) = ( i n , α ) .
In contrast to the extension of contexts, the reduction of contexts doesn’t require any additional efforts. Be aware that this only works in the unsorted variant of first-order logic!
Corollary 8
(Reduction of Contexts). For any Σ-specification implication ( G , Π ) ( R , Γ ) and any sets P, C of variables with P C , f v ( Π ) P G , f v ( Γ ) C R we get a legal Σ-specification implication ( P , Π ) ( C , Γ ) and for all Σ-structure U
U ( G , Π ) ( R , Γ ) i m p l i e s U ( P , Π ) ( C , Γ ) .
Proof. 
The assumption U ( G , Π ) ( R , Γ ) , i.e., [ [ Π ] ] G U i n G , R U [ [ Γ ] ] R U , implies i n P , G U [ [ Π ] ] G U   i n P , G U ( i n G , R U [ [ Γ ] ] R U ) . First, we have i n P , G U [ [ Π ] ] G U = [ [ Π ] ] P U due to Corollary 6. Second, we obtain by (A23) and Corollary 6: i n P , G U ( i n G , R U [ [ Γ ] ] R U ) = i n P , R U [ [ Γ ] ] R U = i n P , C U ( i n C , R U [ [ Γ ] ] R U )   = i n P , C U [ [ Γ ] ] C U , and thus [ [ Π ] ] P U i n P , C U [ [ Γ ] ] C U , i.e., U ( P , Π ) ( C , Γ ) . □
We hopefully provided enough evidence that we can transform, by renaming of bound variables, any set Γ of traditional first-order formulas into an equivalent Σ -specification ( X , Γ ) given by a set X of variables with f v ( Γ ) = f v ( Γ ) X and Γ F E Σ ( X ) a set of Σ -expressions on X, i.e., of traditional well-formed first-order formulas complying with Barendregt’s variable convention. Moreover, we can transform any pair ( Γ , Δ ) of sets of traditional first-order formulas into a Σ -specification implication ( X , Γ ) ( Y , Δ ) , in the sense of Definition 18, with X Y , f v ( Γ ) = f v ( Γ ) X , f v ( Δ ) = f v ( Δ ) Y complying with the strong fresh variable condition ( Y X ) f v ( Γ ) = ( Y X ) b v ( Γ ) = .
After this is settled, we will assume in our analysis of traditional deduction calculi in the following two sections that those necessary transformations are tacitly done in the background. Moreover, we assume that the necessary renamings of bound variables for extensions of premises, as described in Remark 25, are also tacitly done.

7. Deduction in Traditional First-Order Logic

We investigate three different deduction calculi for traditional first-order logic - in this section a Hilbert System H and a Gentzen’s system L J and, then, a Natural Deduction System N D in Section 8.
We are interested to analyze, understand and formalize, by means of the novel concepts context and specification implication, the structural essence of reasoning in each of the systems and, thus, the crucial conceptual differences as well as their commonalities. Especially, we are interested to formally grasp the different meanings and semantics of the turnstile symbol ⊢ and the inference line.

7.1. Hilbert System H

We study the proof system for first-order logic presented in [4]. We learned from [33] that this system can still be seen as one of the very many Hilbert Systems and will, therefore, use the name H instead of the name N used in [4]. According to [4], the proof system H is devised to define a relation H ( W F F F O L Σ ) × W F F F O L Σ with W F F F O L Σ the set of all well-formed first-order formulas for a signature Σ . It consists of
Axioms : Ā0: Γ H B , for all B Γ ;
A1: Γ H A ( B A ) ;
A2: Γ H ( A ( B C ) ) ( ( A B ) ( A C ) ) ;
A3: Γ H ( ¬ B ¬ A ) ( A B ) ;
A4: Γ H A t x x A if A t x is legal ;
Rules :: MP: Γ H A Γ H A B   Γ H B ;
∃I: Γ H A B if x f v ( B ) Γ H x A B At first glance, it may look like that the elements in ( W F F F O L Σ ) × W F F F O L Σ can be encoded as Σ -specification implications. The relation H is meant, however, to reflect the semantic entailment relation ⊩ between sets of formulas and single formulas. Note, that we use the symbol ⊩ for semantic entailment instead of the symbol ⊧, as it is quite common in the literature. We prefer to exclusively reserve the symbol ⊧ to denote the validity (satisfaction) relation between structures and formulas (of different kind).
Γ A means that U Γ implies U A for all Σ -structures U , where U Γ (or U A ) is valid for a Σ -structure U if Γ (or A) becomes true for all (!) variable assignments in U . The so-called universal closure (compare [4], p. 232 and [33], p. 372) transforms an open formula A into a closed formula ( A ) and a set Γ of open formulas into a set ( Γ ) of closed formulas, respectively. We have U Γ (or U A ) if, and only if, U ( Γ ) (or U ( A ) ) thus Γ A can be equivalently expressed by the condition that U ( Γ ) implies U ( A ) for all Σ -structures U .
At the beginning of Section 5.2.2 we exemplified that Σ -sketch implications (and thus also Σ -specification implications) offer the novel device of unconditional Σ -assertions to formally grasp the traditional definition of the satisfaction relation ⊧ (also applicable for formalisms lacking a universal quantification operator!). We can utilize the satisfaction of Σ -specification implications in Σ -structures, due to Definition 18, and reformulate that Γ A if, and only if, U ( f v ( Γ ) , ) ( f v ( Γ ) , Γ ) implies U ( f v ( A ) , ) ( f v ( A ) , { A } ) for all Σ -structures U . Remind, that U ( f v ( Γ ) , ) ( f v ( Γ ) , Γ ) means nothing but U f v ( Γ ) = [ [ ] ] f v ( Γ ) U = [ [ Γ ] ] f v ( Γ ) U . So, in view of LoSiCs the turnstile symbol H represents implications between Σ -specification implications of the form ( X , ) ( X , Γ ) with f v ( Γ ) X and Σ -specification implications of the form ( Y , ) ( Y , { A } ) with f v ( A ) Y . For convenience, we will mostly write ( Y , A ) instead of ( Y , { A } ) . We provide evidence that this fresh and novel view on system H is consistent with the traditional view by re-validating the soundness of system H in terms of specification implications.

7.1.0.1. Axiom A0

This is the only axiom schemata or rule where Γ is relevant! For any Σ -structure U we assume U ( X , ) ( X , Γ ) with X = f v ( Γ ) . By definition, we have [ [ Γ ] ] X U = { [ [ A ] ] X U A Γ } [ [ B ] ] X U and thus U ( X , Γ ) ( X , B ) . Since the composition of Σ -specification implications preserves satisfaction, we can conclude U ( X , ) ( X , B ) and thus also U ( f v ( B ) , ) ( f v ( B ) , B ) , due to Corollary 8.
Obviously, the Σ -specification implication ( X , Γ ) ( X , B ) is the essence of this axiom. It will re-emerge as an axiom in the Gentzen System L J .

7.1.0.2. Axioms A1 - A3

All three axiom schemata are independent of Γ ! One can argue that these axiom schemata can be directly inherited from propositional logic. As already discussed at the beginning of Section 6 this argumentation may be not convincing for everyone since it is not clear in what sense open formulas in the traditional approach represent propositions.
As alternative, we can validate these axiom schemata by Boolean Algebra reasoning. We exemplify this for Axiom A1. With X = f v ( A ) f v ( B ) we obtain, due to Definition 7:
[ [ A ( B A ) ] ] X U = [ [ A ] ] X U ¯ [ [ B A ] ] X U = [ [ A ] ] X U ¯ ( [ [ B ] ] X U ¯ [ [ A ] ] X U ) = [ [ B ] ] X U ¯ ( [ [ A ] ] X U ¯ [ [ A ] ] X U ) = [ [ B ] ] X U ¯ U X = U X
and thus U ( X , ) ( X , A ( B A ) ) as required.

7.1.0.3. Axiom A4

To turn " A t x x A " into a legal Σ -specification, we require f v ( A ) b v ( A ) = and, instead of " A t x is legal", that f v ( t ) b v ( A ) = . This can be achieved by an appropriate renaming of bound variables. To allow x f v ( t ) , we rename , in addition, the bound variable x in x A by a fresh variable z with z f v ( A ) b v ( A ) f v ( t ) . That is, we replace x A by z A z x . Also this axiom schemata is independent of Γ . For all Σ -structures U we show that U ( X , ) ( X , A t x z A z x ) with X : = f v ( A t x ) = f v ( t ) f v ( x A ) where f v ( x A ) = f v ( z A z x ) = f v ( A ) { x } due to (1) and [ [ x A ] ] X U = [ [ z A z x ] ] X U due to (33).
We don’t work with substitutions of a single variable by a single term but only with maps from sets of variables into sets of Σ -terms. To grasp the situation in Axiom A4, we also consider the set Y : = f v ( A z x ) = X { z } of variables. We define a substitution t : Y T Σ ( X ) with t ( z ) : = t and t ( x ) : = x for all x X . We obtain t ¯ ( A z x ) = A t x , according to Definition 11, and i n ; t = η X for the inclusion map i n : X Y .
We must show a [ [ t ¯ ( A z x ) z A z x ] ] X U for any a [ [ ] ] X U = U X , i.e., that a [ [ t ¯ ( A z x ) ] ] X U implies a [ [ z A z x ] ] X U . According to (3), the substitution t : Y T Σ ( X ) defines a derived operation t U : U X U Y with t U ( a ) : = t ; a . We have a [ [ t ¯ ( A z x ) ] ] X U if, and only if, t U ( a ) [ [ A z x ] ] Y U , due to (20), and we get i n U ( t U ( a ) ) = i n ; t U ( a ) = i n ; t ; a = η X ; a = a and thus a [ [ z A z x ] ] X U = [ [ x A ] ] X U by the semantics of existential quantification in Definition 7.

7.1.0.4. Rule MP

Rules in System H introduce a third level of implications since inference lines in System H establish implications between implications relating Σ -specification implications. Such a kind of twofold nesting of implications looks indeed a bit "unnatural".
Rule MP is, however, independent of Γ thus the validation of the rule means to show for any Σ -structure U that U ( X , ) ( X , A ) and U ( X , ) ( X , A B ) implies U ( X , ) ( X , B ) where X : = f v ( A ) f v ( B ) . This can be easily done.
U ( X , ) ( X , A ) and U ( X , ) ( X , A B ) means U X = [ [ A ] ] X U and U X = [ [ A B ] ] X U thus we also get U X = [ [ A ] ] X U [ [ A B ] ] X U = [ [ { A , A B } ] ] X U , i.e., U ( X , ) ( X , { A , A B } ) . Relying on the semantics of implications in Definition 7, we can easily show U ( X , { A , A B } ) ( X , B ) by Boolean Algebra reasoning:
[ [ { A , A B } ] ] X U = [ [ A ] ] X U [ [ A B ] ] X U = [ [ A ] ] X U ( [ [ A ] ] X U ¯ [ [ B ] ] X U ) = [ [ A ] ] X U [ [ B ] ] X U [ [ B ] ] X U
Since composition of Σ -specification implications preserves satisfaction, we can finally conclude U ( X , ) ( X , B ) as desired.
The Σ -specification implication ( X , { A , A B } ) ( X , B ) is the essence of this rule and will re-emerge as a rule in the Natural Deduction System N D .

7.1.0.5. Rule ∃I

Also this rule is independent of Γ thus it suffices to show for any Σ -structure U that U ( Y , ) ( Y , A B ) implies U ( X , ) ( X , x A B ) with Y = f v ( A B ) , X = f v ( x A B ) and thus X = Y { x } since x f v ( B ) .
We consider the inclusion map i n : X Y and turn the soundness proof by contraposition for Rule ∃I in [4], p. 261 into a direct proof of the following lemma.
Lemma 5
(Rule ∃I: Sem.). [ [ x A B ] ] X U = i n U [ [ A B ] ] Y U for all Σ-structures U if x f v ( B ) .
Proof. 
Due to the definition of universal operators in (A21), we have to show for any a [ [ x A B ] ] X U that b [ [ A B ] ] Y U for all b U Y with i n ; b = a . b [ [ A ] ] Y U entails a = i n ; b [ [ x A ] ] X U = i n U [ [ A ] ] Y U = ( i n ; _ ) [ [ A ] ] Y U thus we get a = i n ; b [ [ B ] ] X U by assumption a [ [ x A B ] ] X U . Due to Lemma 3, this implies b ( i n ; _ ) 1 [ [ B ] ] X U = i n U [ [ B ] ] X U = [ [ B ] ] Y U thus we have shown b [ [ A B ] ] Y U , as required. □
Finally, we assume U ( Y , ) ( Y , A B ) , i.e., U Y = [ [ A B ] ] Y U . By Lemma 5, Corollary 6 and equation (29) we obtain [ [ x A B ] ] X U = i n U [ [ A B ] ] Y U = i n U ( U Y ) = i n U ( ( i n ; _ ) 1 ( U X ) ) = U X = [ [ ] ] X U , i.e., U ( X , ) ( X , x A B ) , thus Rule ∃I is indeed validated.

7.2. Gentzen’s System L J

There are many variants of System L J around. At the end, we decided against the variants presenting Sequent Calculi by a set of rules cleanly devided in left rules and right rules [34]. We decided to rather rely on [32] instead, since the strong relation between System L J and Natural Deduction is coherently addressed and explained in [32]. After a Natural Deduction calculus is presented and discussed in [32], the authors write:
This is the classical formulation of the calculus of natural deduction. To prepare the things we want to do later (and to get around the somewhat un-licensed extension by hypothetical reasoning in the calculus), we will reformulate the calculus by lifting it to the “judgements level”. Instead of postulating rules that make statements about the validity of propositions, we postulate rules that make statements about derivability. This move allows us to make the respective local hypotheses in Natural Deduction derivations into syntactic parts of the objects (we call them “sequents”) manipulated by the inference rules.
We like this didactical approach very much, but will, nevertheless, first discuss System L J and only afterwards Natural Deduction. Our didactical reason is that we want to emphasize the stepwise reduction of "nesting levels" of implications. The second, more practical, reason is, that we must develop another chunk of theory to formally grasp and finally license hypothetical reasoning. We will only introduce and elaborate the necessary novel concept of open specification implications in Section 8.
Moving from System H to System L J , we get rid of one level of nesting of implications! Sequents Γ LJ A in System L J are nothing but Σ -specification implications of the form ( X , Γ ) ( Y , A ) with X Y thus the inference lines in System L J represent implications between a finite set of Σ -specification implications of this form and a single Σ -specification implication of this form. We present first the propositional rules of System L J according to [32] where we use the symbols "→", "" instead of the symbols "⇒", "F" in [32]. To safe space, we will also simply write ⊢ instead of LJ .
*6ex Axiom Γ , A A Γ B weaken Γ , A B TND Γ A ¬ A
Γ A Γ B I Γ A B Γ A B E l Γ A Γ A B E r Γ B
Γ A B Γ , A C Γ , B C E Γ C Γ A I l Γ A B Γ B I r Γ A B
Γ A Γ A B E Γ B Γ , A B I Γ A B
Γ ¬ A Γ A I Γ Γ E Γ A Γ , A ¬ I Γ ¬ A Γ ¬ ¬ A ¬ E Γ A For the remaining part of this subsection let U be an arbitrary Σ -structure. We discuss the first two rules. The rule Axiom corresponds to Axiom A0 in System H and that U ( X , Γ { A } ) ( X , A ) with X = f v ( Γ ) f v ( A ) has been already shown in Section 7.1. Analogously, we can argue that U ( X , Γ ) ( X , B ) with X = f v ( Γ ) f v ( A ) f v ( B ) , i.e., [ [ Γ ] ] X U [ [ B ] ] X U , entails [ [ Γ { A } ] ] X U = [ [ Γ ] ] X U [ [ A ] ] X U [ [ Γ ] ] X U [ [ B ] ] X U , i.e., U ( X , Γ { A } ) ( X , B ) , thus also rule weaken is validated.
Relying on Remark 25 and the fact that the validity of Σ -specification implications is closed under composition, each propositional rule, where all involved sequents share the same antecedent, can be validated by proving that a certain single underlying essential Σ-specification implication is valid in any Σ -structure U . These essential Σ -specification implications appear later as rules in the Natural Deduction System N D ! We list all those rules together with the corresponding essential Σ -specification implication.
Rule Essential Implication Variable Declaration T N D ( Y , ) ( Y , A ¬ A ) Y = f v ( A ) I ( Y , { A , B } ) ( Y , A B ) Y = f v ( A ) f v ( B ) E l ( Y , A B ) ( Y , A ) Y = f v ( A ) f v ( B ) E r ( Y , A B ) ( Y , B ) Y = f v ( A ) f v ( B ) I l ( Y , A ) ( Y , A B ) Y = f v ( A ) f v ( B ) I r ( Y , B ) ( Y , A B ) Y = f v ( A ) f v ( B ) E ( Y , { A , A B } ) ( Y , B ) Y = f v ( A ) f v ( B ) I ( Y , { ¬ A , A } ) ( Y , ) Y = f v ( A ) E ( Y , ) ( Y , A ) Y = f v ( A ) ¬ E ( Y , ¬ ¬ A ) ( Y , A ) Y = f v ( A )
We validate rule TND. We do have U ( Y , ) ( Y , A ¬ A ) for the essential implication, due to the semantics of disjunction, and thus U ( X , ) ( X , A ¬ A ) for X = Y f v ( Γ ) by Remark 25. U ( X , Γ ) ( X , ) trivially holds since [ [ Γ ] ] X U U X thus we obtain U ( X , Γ ) ( X , A ¬ A ) by composition of Σ -specification implications.
Rule E corresponds to rule MP in System H . In Section 7.1 we have already shown U ( Y , { A , A B } ) ( Y , B ) for the essential implication thus we have also U ( X , { A , A B } ) ( X , B ) for X = Y f v ( Γ ) by Remark 25. [ [ Γ ] ] X U [ [ A ] ] X U and [ [ Γ ] ] X U [ [ A B ] ] X U trivially imply [ [ Γ ] ] X U [ [ A ] ] X U [ [ A B ] ] X U = [ [ { A , A B } ] ] X U , i.e., U ( X , Γ ) ( X , { A , A B } ) , thus we finally obtain U ( X , Γ ) ( X , B ) by composition of Σ -specification implications.
All the other essential Σ -specification implications in the above listing are valid in any Σ -structure U according to the semantics of Boolean connectives, thus the corresponding rules can easily be validated analogously to the rules we explicitly validated.
It remains to validate the three rules where the involved sequents don’t share the same antecedent. For rule  ¬ I we set X = f v ( Γ ) f v ( A ) . U ( X , Γ { A } ) ( X , ) means [ [ Γ ] ] X U [ [ A ] ] X U = [ [ ] ] X U = thus we obtain [ [ Γ ] ] X U = [ [ Γ ] ] X U U X = [ [ Γ ] ] X U ( [ [ A ] ] X U [ [ A ] ] X U ¯ ) = [ [ Γ ] ] X U [ [ A ] ] X U ¯ and, equivalently, [ [ Γ ] ] X U [ [ A ] ] X U ¯ = [ [ ¬ A ] ] X U , i.e., U ( X , Γ ) ( X , ¬ A ) .
For rule  E we set X = f v ( Γ ) f v ( A ) f v ( B ) f v ( C ) . The assumption U ( X , Γ ) ( X , A B ) , i.e., [ [ Γ ] ] X U [ [ A ] ] X U [ [ B ] ] X U , implies [ [ Γ ] ] X U = [ [ Γ ] ] X U [ [ Γ ] ] X U = [ [ Γ ] ] X U ( [ [ A ] ] X U [ [ B ] ] X U ) = [ [ Γ ] ] X U [ [ A ] ] X U [ [ Γ ] ] X U [ [ B ] ] X U and thus [ [ Γ ] ] X U [ [ C ] ] X U since by assumption U ( X , Γ { A } ) ( X , C ) , i.e., [ [ Γ ] ] X U [ [ A ] ] X U [ [ C ] ] X U , and U ( X , Γ { B } ) ( X , C ) , i.e., [ [ Γ ] ] X U [ [ B ] ] X U [ [ C ] ] X U . This proves U ( X , Γ ) ( X , C ) .
To validate rule  I we need to prove the following semantic deduction theorem for specification implications with X = f v ( Γ ) f v ( A ) f v ( B ) .
Lemma 6.
U ( X , Γ { A } ) ( X , B ) iff U ( X , Γ ) ( X , A B )
Proof. 
"⇒": U ( X , Γ { A } ) ( X , B ) , i.e., [ [ Γ ] ] X U [ [ A ] ] X U [ [ B ] ] X U entails, according to the semantics of the connective →, [ [ Γ ] ] X U = [ [ Γ ] ] X U U X = [ [ Γ ] ] X U ( [ [ A ] ] X U [ [ A ] ] X U ¯ ) = [ [ Γ ] ] X U [ [ A ] ] X U [ [ Γ ] ] X U [ [ A ] ] X U ¯ [ [ B ] ] X U [ [ A ] ] X U ¯ = [ [ A B ] ] X U , i.e., U ( X , Γ ) ( X , A B ) .
"⇐": U ( X , Γ ) ( X , A B ) , i.e., [ [ Γ ] ] X U [ [ A ] ] X U ¯ [ [ B ] ] X U , implies [ [ Γ ] ] X U [ [ A ] ] X U [ [ B ] ] X U [ [ A ] ] X U [ [ B ] ] X U , i.e., U ( X , Γ { A } ) ( X , B ) . □
After the propositional rules we now examine the four quantifier rules of System L J .
*2ex Γ A   I x f v ( Γ )   Γ x A Γ x A   E A t x is legal Γ A t x Γ A t x   I A t x is legal Γ x A
Γ x A Γ , A c x B E c a new Skolem constant Γ B
We postpone the validation of rule I to Section 8. In contrast to rule E , the two rules I and E can be validated by proving the soundness of a corresponding underlying essential Σ -specification implication which re-emerges later as a rule in the Natural Deduction System N D .
Rule I is the sequent variant of Axiom A4 in System H . We adapt the argumentation in paragraph Axiom A4 on page 39: To turn the sequent Γ A t x into a legal Σ -specification implication ( X , Γ ) ( X , A t x ) with X = f v ( Γ ) f v ( A t x ) , we require ( f v ( A ) f v ( Γ ) ) ( b v ( A ) b v ( Γ ) ) = and f v ( t ) ( b v ( A ) b v ( Γ ) ) = , instead of " A t x is legal". This can be achieved by an appropriate renaming of bound variables.
To allow x f v ( t ) , we rename , in addition, the bound variable x in x A by a fresh variable z with z f v ( Γ ) f v ( A ) f v ( t ) and z b v ( A ) . That is, we replace x A by z A z x . where f v ( x A ) = f v ( z A z x ) = f v ( A ) { x } , due to (1), and [ [ x A ] ] Y U = [ [ z A z x ] ] Y U with Y : = f v ( A t x ) = f v ( t ) f v ( x A ) for any Σ -structure U , due to (33).
We show that U ( X , Γ ) ( X , A t x ) implies U ( X , Γ ) ( X , z A z x ) for any Σ -structure U . U ( Y , ) ( Y , A t x z A z x ) has been proven in Section 7.1, thus we obtain, by Lemma 6, U ( Y , A t x ) ( Y , z A z x ) for the essential Σ -specification implication ( Y , A t x ) ( Y , z A z x ) underlying rule I . U ( X , A t x ) ( X , z A z x ) is ensured by Remark 25, thus we finally get U ( X , Γ ) ( X , z A z x ) , as desired, since validity of Σ -specification implications is preserved by composition.
Rule E can be validated analogously to rule I . To turn the sequent Γ A t x into a legal Σ -specification implication ( X , Γ ) ( X , A t x ) with X = f v ( Γ ) f v ( A t x ) , we impose the same restrictions as for rule " I ", and we correspondingly replace x A by z A z x to allow x f v ( t ) where f v ( x A ) = f v ( z A z x ) = f v ( A ) { x } and [ [ x A ] ] Y U = [ [ z A z x ] ] Y U with Y : = f v ( A t x ) = f v ( t ) f v ( x A ) for any Σ -structure U .
We want to show that U ( X , Γ ) ( X , z A z x ) implies U ( X , Γ ) ( X , A t x ) for any Σ -structure U . This can be done by proving U ( Y , z A z x ) ( Y , A t x ) for the essential Σ -specification implication ( Y , z A z x ) ( Y , A t x ) underlying rule E . Analogously to the case of Axiom A4 on page 39, we consider the set Z = f v ( A z x ) = Y { z } of variables and define a substitution t : Z T Σ ( Y ) with t ( z ) : = t and t ( y ) : = y for all y Y , thus we have t ¯ ( A z x ) = A t x and i n ; t = η Y for the inclusion map i n : Y Z . Applying the derived operation t U : U Y U Z to any a [ [ z A z x ] ] Y U , we get t U ( a ) : Z U given by t U ( a ) = t ; a , due to (3), and thus i n ; t U ( a ) = i n ; t ; a = η Y ; a = a . This entails t U ( a ) [ [ A z x ] ] Z U due to the semantics of universal quantification. According to (20), t U ( a ) [ [ A z x ] ] Z U means, however, nothing but a [ [ t ¯ ( A z x ) ] ] Y U = [ [ A t x ] ] Y U , as required.
U ( Y , z A z x ) ( Y , A t x ) implies U ( X , z A z x ) ( X , A t x ) , due to Remark 25, thus U ( X , Γ ) ( X , A t x ) is indeed entailed by U ( X , Γ ) ( X , z A z x ) since composition of Σ -specification implications preserves validity.
In case of rule  E , we choose Y = f v ( Γ ) f v ( x A ) f v ( B ) , Z = Y { c } and turn the sequents Γ x A and Γ , A c x B into Σ -specification implications ( Y , Γ ) ( Y , x A ) and ( Z , Γ { A c x } ) ( Z , B ) , respectively.
For I = f v ( x A ) , P = I { x } we have U ( I , x A ) ( P , A ) for any Σ -structure U since [ [ x A ] ] I U = i U [ [ A ] ] P U , due to Definition 7, for the proper inclusion map i : I P . That is, this implication simply represents the semantics of existential quantification.
"c a new Skolem constant" means, especially, c Y and c b v ( Γ ) b v ( A ) b v ( B ) thus we can utilize c to describe the pushout of the span Y i n I i P of inclusion maps and the corresponding extension of the context I of the Σ -specification ( I , x A ) via the inclusion map i n : I Y (compare Section 6.4 and, especially, Remarks 24 and 25).
Preprints 221586 i022
Corollary 7 ensures U ( Y , x A ) ( Z , A c x ) thus U ( Y , Γ ) ( Y , x A ) entails U ( Y , Γ ) ( Z , A c x ) by composition of Σ -specification implications. So, for each ι [ [ Γ ] ] Y U there exists an ϑ [ [ A c x ] ] Z U such that j ; ϑ = ι and therefore, due to Corollary 6, also ϑ [ [ Γ ] ] Z U as well as ϑ [ [ Γ ] ] Z U [ [ A c x ] ] Z U = [ [ Γ { A c x } ] ] Z U . In such a way, we get U ( Y , Γ ) ( Z , Γ { A c x } ) . So, if U ( Z , Γ { A c x } ) ( Z , B ) , we also have U ( Y , Γ ) ( Z , B ) by composition of Σ -specification implications. It remains to get rid of the "new Skolem constant c".
We use the same trick as in the validation of Rule ∃I in System H . ( Y , B ) is a legal Σ -specification and we can factorize ( Y , Γ ) ( Z , B ) into ( Y , Γ ) ( Y , B ) ( Z , B ) . U ( Y , Γ ) ( Z , B ) if, and only if, [ [ Γ ] ] Y U j U [ [ B ] ] Z U . By Corollary 6 and equation (29), we obtain j U [ [ B ] ] Z U = j U ( j U [ [ B ] ] Y U ) = [ [ B ] ] Y U and thus U ( Y , Γ ) ( Y , B ) . If desired, we can even conclude U ( f v ( Γ ) f v ( B ) , Γ ) ( f v ( Γ ) f v ( B ) , B ) , due to Corollary 8.
Remark 26
(Gentzen’s System L K ). Gentzen’s System L K [34] and its variant System G in [4] work with sequents Γ L K Δ where both Γ and Δ are finite sets of formulas. Those sequents correspond to implications of the form Γ Δ .
Until now, we considered only "conjunctive Σ-specifications" ( X , Γ ) with a semantics given by intersection [ [ ( X , Γ ) ] ] U = { [ [ B ] ] X U B Γ } for any Σ-structure U . To treat sequents Γ L K Δ within the LoSiC-approach, we must, however, also introduce "disjunctive Σ-specifications" ( Y , Δ d ) with semantics given by union [ [ ( Y , Δ d ) ] ] U = { [ [ D ] ] Y U D Δ } . Then, we can formalize sequents Γ L K Δ as Σ-specification implications ( X , Γ ) ( Y , Δ d ) with U ( X , Γ ) ( Y , Δ d ) if, and only if, [ [ ( X , Γ ) ] ] U i n U [ [ ( Y , Δ d ) ] ] U for the inclusion map i n : X Y . Note, that i n U [ [ ( Y , Δ d ) ] ] U = { i n U [ [ D ] ] Y U D Δ } since i n U distributes over arbitrary unions!
We are convinced that deduction systems like L K and G can be validated by means of Boolean Algebra reasoning analogously to System L J . Due to limited time, space as well as motivation on our side, we postpone a detailed exploration of those systems to another occasion.

8. Natural Deduction and Open Specification Implications

Moving from System L J to the Natural Deduction System N D , we finally reduce the level of nesting of implications to one for all rules where we have been able to identify an essential underlying Σ -specification implication. In System N D these essential implications are simply represented as rules, i.e., the horizontal implication arrows "⟹" are transformed into vertical interference lines. In other words, we simply delete the "same antecedent" Γ in the corresponding rules in System L J to obtain a rule in System N D . The reader may forgive us for not repeating those rules in their corresponding N D -shape.
Attention, in case of rule I we also delete both Γ , but the condition " x f v ( Γ ) " transforms into the somehow puzzling condition "A does not depend on any hypothesis in which x is free" in (49).
In the remaining four rules we also drop Γ in all the antecedents thus the conclusions of the four rules become plain Σ -expressions. The premises of the rules remain, however, with a kind of implicational residue. The problem is to describe this implicational residue in a, more or less, precise way! The three propositional rules I , ¬ I , E in System N D are presented in [32] as follows:
Preprints 221586 i023
As the rules may be nested, both the rules and the corresponding assumptions are decorated with a marker (here the number 1). We will discuss one nested proof in Section 8.4.
The semi-formal notation " [ A ] 1 B " is usually read as "there is a proof showing that B holds under the additional hypothesis that A holds". Turning upside down the argumentation in [32], cited at the beginning of Section 7.2, we pose the question if it is possible to describe the result of such a hypothetical proof " [ A ] 1 B " in a precise formal way and independent of the concrete proof. The answer is that we can indeed do this by introducing the concept of open specification implication. We will define, elaborate and apply this novel concept in the remaining part of this section.

8.1. Open Specification Implications

We combine two lines of observations and insights. First, we observe that assertions of the form "we can prove B under the additional hypothesis that A holds" are widely used as so-called universal properties to define concepts and to formalize findings in Category Theory. Second, the LoSiC-approach is based on the insight that the difference between closed formulas and open formulas essentially boils down to the difference between empty contexts and non-empty contexts, respectively. Statements in context are statements about single interpretations of contexts in a Σ -structure U . For the empty context there is, however, only exactly one interpretation in a Σ -structure U , thus a statement in the empty contexts turns into a statement about the Σ -structure U as a whole!
According to Definition 18, specification implications can serve as another tool to formulate assertions about Σ -structures as a whole and correspond, in this sense, to closed formulas. In analogy to Σ -expressions, we simply propose to equip specification implications with a potentially non-empty interfaces.
Definition 21
(Open Specification Implication: Syntax). Anopen Σ -specification implication I ( P , Π ) ( K , Δ ) is given by a Σ-specification implication ( P , Π ) ( K , Δ ) , in the sense of Definition 18, and aninterface I P .
In analogy to Σ -expressions, we can also define a semantics for open specification implications in any structure.
Definition 22
(Open Specification Implication: Semantics). For a Σ-structure U the semantics [ [ I ( P , Π ) ( K , Δ ) ] ] I U U I of an open Σ-specification implication I ( P , Π ) ( K , Δ ) in U is defined as follows: For all a U I it holds that a [ [ I ( P , Π ) ( K , Δ ) ] ] I U if, and only if, i U ( { a } ) [ [ ( P , Π ) ] ] U i n U [ [ ( K , Δ ) ] ] U for the inclusion maps i : I P and i n : P K , i.e., if, and only if, for all extensions b : P U of a : I U along i : I P satisfying Π there exists an extension c : K U along i n : P K satisfying Δ.
We can also equivalently reformulate Definition 22 in a more compact way
[ [ I ( P , Π ) ( K , Δ ) ] ] I U : = i U [ [ ( P , Π ) ] ] U ¯ i n U [ [ ( K , Δ ) ] ] U .
In case I = , i.e., i = ! P : P , we do have only one assignment a = ! U : U . Since ! P U ( { ! U } ) = U P , we indeed reconstruct the validity condition for Σ -specification implications in Definition 18 (compare also (25)):
U Σ ( P , Π ) ( K , Δ ) i f f ! U [ [ ( P , Π ) ( K , Δ ) ] ] U .
In case I = P , we immediately obtain the following corollary.
Corollary 9
(Open Specification Implication: Semantics). For all Σ-structures U it holds that
1.
[ [ I ( I , Π ) ( K , Δ ) ] ] I U = [ [ ( I , Π ) ] ] U ¯ i n U [ [ ( K , Δ ) ] ] U and thus
2.
[ [ I ( I , ) ( I , Δ ) ] ] I U = [ [ ( I , Δ ) ] ] U and
3.
[ [ I ( I , A ) ( I , B ) ] ] I U = [ [ ( I , A B ) ] ] U .
In addition to Corollary 9.3, we can also prove a semantic deduction theorem for open specification implications by slightly adapting the proof of Lemma 6.
Lemma 7.
[ [ I ( P , Π { A } ) ( P , B ) ] ] I U = [ [ I ( P , Π ) ( P , A B ) ] ] I U
The declaration " I " for open Σ -specification implications has the same purpose as the declaration " X " for Σ -expressions. It declares the set of variables that are considered to be the potentially available free variables in I ( P , Π ) ( K , Δ ) . The set of free variables, actually appearing in I ( P , Π ) ( K , Δ ) , is the set I ( f v ( Π ) f v ( Δ ) ) while the set of all bound variables is ( K I ) b v ( Π ) b v ( Δ ) . Note, that, due to Definition 22, the variables in P I are implicitly universal quantified while the variables in K P are implicitly existential quantified!
We propose to formalize assertions of the form " [ A ] 1 B " as open Σ -specification implications thus the premises in the rules I , ¬ I , E in (40) become Σ -specifications enriched by open Σ -specification implications as a new kind of statements in context.
In the traditional lazy approach all bindings are implicitly given by inclusion maps. So, if I ( P , Π ) ( K , Δ ) is an element of Φ for an enriched Σ -specification ( G , Φ ) , we must have I G and, analogously to definition of the semantics of Σ -expressions in (12), we define for a Σ -structure U the semantics of the open Σ -specification implications I ( P , Π ) ( K , Δ ) in context G by
[ [ I ( P , Π ) ( K , Δ ) ] ] G U : = j U [ [ I ( P , Π ) ( K , Δ ) ] ] I U
for the inclusion map j : I G . The semantics of an enriched Σ -specification ( G , Φ ) is defined analogously to (28) thus we also obtain a corresponding variant of Corollary 6 for enriched Σ -specifications.
To approve our proposal two things should be at place. First, we must clarify what role open Σ -specification implications in enriched Σ -specifications play in deduction. Second, it is necessary to demonstrate that open Σ -specification implications enable us indeed to formally grasp the results of hypothetical reasoning.
What is our view on a single process of deduction? We start with a set of hypotheses given by an ordinary Σ -specification ( X , Γ ) . Than we successively extend this initial Σ -specification by applying the available deduction rules in a strict way. Following our proposal, we will also generate enriched Σ -specifications. In such a way, each stage of an actual deduction process gives rise to a strict Σ -specification implication ( X , Γ ) @ 3 > ( G , Φ ) [ r ] from the initial ordinary Σ -specification ( X , Γ ) to the present enriched Σ -specification ( G , Φ ) . Note, that ( G , Φ ) especially contains all the "hypotheses in which x is free" mentioned in the condition for the N D -version of rule I in (49)!
An open Σ -specification implication I ( P , Π ) ( K , Δ ) in an enriched Σ -specification ( G , Φ ) is nothing but a deduction rule in waiting position locally bound to the context G by the inclusion map j : I G . Once we are able to extend the binding j : I G to a match μ : ( P , Π ) ( G , Φ ) for a map μ : P G with j = i ; μ , we can apply the Σ -specification implication ( P , Π ) ( K , Δ ) as a strict deduction rule as described in Section 6.4 (compare especially Remark 24).
Preprints 221586 i024
We shortly discuss the soundness of such a deduction step. For any Σ -structure U we do have [ [ ( G , Φ ) ] ] U [ [ I ( P , Π ) ( K , Δ ) ] ] G U = j U [ [ I ( P , Π ) ( K , Δ ) ] ] I U since I ( P , Π ) ( K , Δ ) is an element of Φ . Due to Proposition 3 and Definition 22, this ensures μ ; ι [ [ ( P , Π ) ] ] U for any ι [ [ ( G , Φ ) ] ] U . Slightly varying the proof of Proposition 4, we can show, in such a way, that U ( G , Φ ) @ 3 > ( R , Ψ ) [ r ] .

8.2. Licensing Hypothetical Reasoning

We evidence that open Σ -specification implications are indeed an appropriate tool to formally describe and finally license hypothetical reasoning. Especially, we demonstrate that the effect of hypothetical reasoning can be described by adding locally bound open Σ -specification implications to the present enriched Σ -specification ( G , Φ ) representing the actual status of all the things that have been deduced and/or introduced during a concrete deduction process.
How to transform a semi-formal notation like " [ A ] 1 B " into an open Σ -specification implication I ( P , Π ) ( K , Δ ) ? "A" is transformed into Π = { A } and "B" into Δ = { B } . The appropriate choice of the sets I, P, K of variables depends on the concrete situation but, at least, we should have the following inclusions I G , f v ( A ) P , f v ( B ) K in addition to the inclusions I P K . The inclusion map j : I G describes to what part of G the open Σ -specification implication will be bound. The result of a sound hypothetical reasoning step can be only grasp by adding I ( P , Π ) ( K , Δ ) to Φ if for all Σ -structures U the following soundness condition is satisfied:
[ [ ( G , Φ ) ] ] U [ [ I ( P , Π ) ( K , Δ ) ] ] G U .
What means the step from "A" to " [ A ] 1 ", i.e., the introduction of A as a fresh hypothesis? In LoSiC-terms it means to apply, in a strict manner, the Σ -specification implication ( I , ) ( P , Π ) via the trivial match j : ( I , ) ( G , Φ ) as described in Section 6.4 (see the right diagram in (45)). In other words, we add the hypothesis j * ( Π ) to Φ ! Keep in mind, that R : = G C P and that the underlying pushout of maps in the left diagram in (45) replaces the variables in P I by entirely fresh variables in C P , referred to as new Skolem constants in [32], via a bijective map i s : P I C P .
Preprints 221586 i025
In some texts like [35], using the Fitch style to present proofs by natural deduction, the step from "A" to " [ A ] 1 " is accompanied by writing a note like "want B". Correspondingly, we may mimic this step by also drawing the arrow " ( K , Δ ) " in (45).
In the next modus " [ A ] 1 ", we extend ( R , Φ j * ( Π ) ) by successively applying, in a strict manner, sound general deduction rules or locally bound deduction rules in waiting position from Φ . In such a way, we have U ( R , Φ j * ( Π ) ) @ 3 > ( H , Ψ ) [ r ] at any stage ( H , Ψ ) of extension. The objective is to finally deduce an enriched Σ -specification ( H , Ψ ) such that there exists a match τ : ( K , Δ ) ( H , Ψ ) with i n ; τ = j * ; i n * for the underlying maps. Note, that such a match τ : ( K , Δ ) ( H , Ψ ) provides for all the implicitly existentially quantified variables in K P corresponding witnesses in H!
In case of success, we reach the stage " [ A ] 1 B " and the "auxiliary deduction" (called "subproof" in [35]) has served its purpose. What is called discharging the assumptions of that subproof in [35], p. 108, can be formalized by adding I ( P , Π ) ( K , Δ ) to Φ and replacing the right diagram in (45) by the strict Σ -specification implication
( G , Φ ) @ 3 > ( G , Φ { I ( P , Π ) ( K , Δ ) } ) [ r ] .
This final step of discharging is semantically sound if, and only if, the condition in (44) is satisfied. The following proposition shows that this is indeed the case.
Proposition 5
(Hypothetical Reasoning: Soundness). Let the Σ-specification implication ( R , Φ j * ( Π ) ) @ 3 > ( H , Ψ ) [ r ] in (45) be strict and valid in the Σ-structure U , i.e., we assume i n * U [ [ ( H , Ψ ) ] ] U = [ [ ( R , Φ j * ( Π ) ) ] ] U . Then we do have for any match τ : ( K , Δ ) ( H , Ψ ) , with i n ; τ = j * ; i n * for the underlying maps, that j U [ [ ( G , Φ ) ] ] U [ [ I ( P , Π ) ( K , Δ ) ] ] I U , i.e., j ; ι [ [ I ( P , Π ) ( K , Δ ) ] ] I U for all ι [ [ ( G , Φ ) ] ] U .
Proof. 
We assume ι [ [ ( G , Φ ) ] ] U . If i U ( { j ; ι } ) = , we trivially have, due to Definition 22, that j ; ι [ [ I ( P , Π ) ( K , Δ ) ] ] I U . If i U ( { j ; ι } ) , let β i U ( { j ; ι } ) [ [ ( P , Π ) ] ] U U P be arbitrary thus we especially have i ; β = j ; ι . Due to the pushout in (45), there is a unique κ : R U with i * ; κ = ι and j * ; κ = β . The assumptions ι [ [ ( G , Φ ) ] ] U , β [ [ ( P , Π ) ] ] U entail κ [ [ ( R , Φ ) ] ] U , κ [ [ ( R , j * ( Π ) ) ] ] U and thus κ [ [ ( R , Φ j * ( Π ) ) ] ] U .
Since i n * U [ [ ( H , Ψ ) ] ] U = [ [ ( R , Φ j * ( Π ) ) ] ] U , there exists a ϑ : H U with i n * ; ϑ = κ and ϑ [ [ ( H , Ψ ) ] ] U while the assumption τ U [ [ ( H , Ψ ) ] ] U [ [ ( K , Δ ) ] ] U ensures τ ; ϑ [ [ ( K , Δ ) ] ] U . This finally proves β i n U [ [ ( K , Δ ) ] ] U , as required by Definition 22, since β = j * ; κ = j * ; i n * ; ϑ = i n ; ( τ ; ϑ ) . □
Due to Corollary A4 and (42), the condition j U [ [ ( G , Φ ) ] ] U [ [ I ( P , Π ) ( K , Δ ) ] ] I U is equivalent to the soundness condition in (44) thus we indeed have been able to license hypothetical reasoning.

8.3. Validating Hypothetical Reasoning Rules

Backed up by Proposition 5, each of the rules I 1 , ¬ I 1 , E 1 in (40) can be transformed into a semantically equivalent implication from an enriched Σ -specification into an ordinary Σ -specification given by a single Σ -expression. In such a way, the validation of the three rules can be done by validating these corresponding enriched essential implications.
For rule  I 1 the diagrams in (45) specialize with I = f v ( A ) f v ( B ) to
Preprints 221586 i026
thus the rule transforms into the implication ( I , I ( I , A ) ( I , B ) ) ( I , A B ) . By Corollary 9.3 we do have [ [ I ( I , A ) ( I , B ) ] ] I U = [ [ ( I , A B ) ] ] U for all Σ -structures U . This proves the soundness of the rule!
For rule  ¬ I 1 we need two independent auxiliary deductions as in (47), that can be performed in any order (or maybe even in parallel), resulting in an enriched Σ -specification ( I , Ω ) with I = f v ( A ) f v ( B ) and Ω = { I ( I , A ) ( I , B ) , I ( I , A ) ( I , ¬ B ) } .
In such a way, the rule transforms into the implication ( I , Ω ) ( I , ¬ A ) . Due to Corollary 9.1 and the semantics of negation we obtain by some Boolean Algebra reasoning [ [ ( I , Ω ) ] ] U = [ [ A ] ] I U ¯ [ [ B ] ] I U [ [ A ] ] I U ¯ [ [ B ] ] I U ¯ = [ [ A ] ] I U ¯ [ [ A ] ] I U ¯ [ [ B ] ] I U ¯ [ [ B ] ] I U [ [ A ] ] I U ¯ = [ [ A ] ] I U ¯ = [ [ ¬ A ] ] I U for all Σ -structures U thus the rule is validated.
By two independent auxiliary deductions as in (47) rule  E 1 transforms into the implication ( I , Ω ) ( I , C ) with Ω = { A B , I ( I , A ) ( I , C ) , I ( I , B ) ( I , C ) } where I = f v ( A ) f v ( B ) f v ( C ) . Due to Corollary 9.1, we obtain by some Boolean Algebra reasoning for any Σ -structure U
[ [ ( I , Ω ) ] ] U = [ [ A ] ] I U [ [ B ] ] I U [ [ A ] ] I U ¯ [ [ C ] ] I U [ [ B ] ] I U ¯ [ [ C ] ] I U = [ [ A ] ] I U [ [ C ] ] I U [ [ B ] ] I U ¯ [ [ A ] ] I U [ [ C ] ] I U [ [ B ] ] I U [ [ A ] ] I U ¯ [ [ C ] ] I U [ [ B ] ] I U [ [ C ] ] I U [ [ C ] ] I U
and thus U ( I , Ω ) ( I , C ) as required.
Next we analyze the quantifier rule  E 1 in System N D as presented in [32]
Preprints 221586 i027
Instead of new Skolem constant also the term proxy is used in the literature (see [35], p. 119).
In this case, we get a non-trivial instance of (45). We set I = f v ( x A ) , P = I { x } and K = P f v ( B ) . As already seen in (39), the new Skolem constant c can be utilized to construct the necessary pushout of inclusion maps, i.e., we can set and R : = G { c } .
Preprints 221586 i028
A corresponding auxiliary deduction transforms the rule E 1 into the implication ( I , Ω ) ( K , B ) with Ω = { x A , I ( P , A ) ( K , B ) } . We show U ( I , Ω ) ( K , B ) , i.e., [ [ ( I , Ω ) ] ] U i U ( i n U [ [ B ] ] K U ) , for any Σ -structure U . Let be a [ [ ( I , Ω ) ] ] U = [ [ x A ] ] I U [ [ I ( P , A ) ( K , B ) ] ] I U . We have [ [ x A ] ] I U = i U [ [ A ] ] P U thus a [ [ x A ] ] I U implies that there exists a b [ [ A ] ] P U with i ; b = a and, in such a way, also b i U ( { a } ) [ [ A ] ] P U . On the other hand, a [ [ I ( P , A ) ( K , B ) ] ] I U means, according to Definition 22, that i U ( { a } ) [ [ A ] ] P U i n U [ [ B ] ] K U . Therefore, there exists a c [ [ B ] ] K U with i n ; c = b . This finally proves a = i ; b = i ; ( i n ; c ) i U ( i n U [ [ B ] ] K U ) as required.
Attention! Due to the commutativity requirement i n ; τ = j * ; i n * , the match τ translates the variable x into the Skolem constant c! We do not know if it is a flaw of the LoSiC-approach, that we actually require " [ A c x ] 1 B c x ", or if this is simply overseen in [32]? In [35], p. 119, it is explicitly required that "the constant c must not appear in x A , in B, or in any undischarged assumption". So, at least compared to [35], the LoSiC-approach to hypothetical reasoning seems to be a bit more flexible since we allow that c appears in B. Keep in mind, that we can replace x A by the semantically equivalent formula z A z x as we did it for the validation of Axiom A4 in System H , for example.
To deliver on our promise from Section 7.2, we finally validate rule  I .
Preprints 221586 i029
* means that A does not depend on any hypothesis in which x is free.
The informal version Intuition of rule I indicates how we can validate rule I by means of Proposition 5. For the L J -version of the rule we set Z = f v ( Γ ) f v ( A ) { x } and Y = Z { x } . Condition x f v ( Γ ) ensures that as well ( Z , Γ ) as ( Y , Γ ) are Σ -specifications where we have [ [ Γ ] ] Z U = i * U [ [ Γ ] ] Y U , due to Corollary 6, for the inclusion map i * : Y Z and any Σ -structure U . We show that U ( Z , Γ ) ( Z , A ) implies U ( Y , Γ ) ( Y , x A ) .
Let us assume U ( Z , Γ ) ( Z , A ) , i.e., [ [ Γ ] ] Z U = [ [ Γ { A } ] ] Z U . This gives rise to the following instance of (45) with P = f v ( A ) { x } , I = P { x }
Preprints 221586 i030
Proposition 5 entails [ [ Γ ] ] Y U [ [ I ( P , ) ( P , A ) ] ] Y U thus we get for any a [ [ Γ ] ] Y U also a [ [ I ( P , ) ( P , A ) ] ] Y U = j U [ [ I ( P , ) ( P , A ) ] ] I U and, in such a way, j ; a [ [ I ( P , ) ( P , A ) ] ] I U . According to Definition 22 this is equivalent to i U { j ; a } [ [ A ] ] P U . This gives us the inclusion i U ( ( j ; _ ) [ [ Γ ] ] Y U ) = i U ( j U [ [ Γ ] ] Y U ) [ [ A ] ] P U .
Applying i U to both sides of the inclusion as well as utilizing (29) and the semantics of universal quantification we arrive at j U [ [ Γ ] ] Y U = i U ( i U ( j U [ [ Γ ] ] Y U ) ) i U [ [ A ] ] P U = [ [ x A ] ] I U . This finally entails [ [ Γ ] ] Y U j U ( j U [ [ Γ ] ] Y U ) j U ( [ [ x A ] ] I U ) = [ [ x A ] ] Y U , as required, due to Corollary A4 and Lemma 3.
The N D -version of rule I can be analogously validated by simply replacing ( Z , Γ ) by ( G , Φ ) . While Γ is supposed to only contain Σ -expressions (formulas), we allow that Φ also contains open specification implications and that those locally bound deduction rules in waiting position can be applied, in the spirit of (43), to arrive at ( G , Φ { A } ) !

8.4. Nested Hypothetical Reasoning

To illustrate the LoSiC-approach to deduction, we discuss the deduction of the Σ -specification implication ( X , ) ( X , A ( B A ) ) with X : = f v ( A ) f v ( B ) (compare axiom A1 in Section 7.1). We will go step by step through the corresponding proof in System N D visualized by a proof tree and in Fetch notation as follows:
Preprints 221586 i031
First, we introduce the two hypotheses and reach in System N D the stage
Preprints 221586 i032
Also representing the two want-phrases, we obtain in the LoSiC-approach the diagram
Preprints 221586 i033
In the next stage
Preprints 221586 i034
we realize that we do have the "wanted A" available and get the diagram
Preprints 221586 i035
Closing the subproof and discharging the assumption [ B ] 2 gives us in System N D
Preprints 221586 i036
In the LoSiC-approach, we close the subproof and discharge the assumption [ B ] 2 by turning ( X , { A , B } ) into the enriched Σ -specification ( X , { A , X ( X , B ) ( X , A ) } ) . Due to Proposition 5, we proved, in such a way, the enriched Σ -specification implication ( X , A ) ( X , { A , X ( X , B ) ( X , A ) } ) . Fortunately, Corollary 9 allows us to use instead the equivalent pure Σ -specification implication ( X , A ) ( X , { A , B A } ) .
Preprints 221586 i037
Finally, we do have the "wanted B A ". We can close the whole proof and also discharge the assumption [ A ] 1 . In view of LoSiCs, we deduce the enriched Σ -specification ( X , { A , X ( X , A ) ( X , B A ) } ) under the assumption ( X , ) , thus we have finally proved the pure Σ -specification implication ( X , ) ( X , A ( B A ) ) according to Proposition 5 and Corollary 9.

9. Conclusions and Further Work

We accomplished the first of the projects envisaged in the concluding section of [17]. We developed a conservative extension of the traditional institution of unsorted first-order logic to an unsorted first-order Logic of Statements in Context, comprising not only "closed" but also "open formulas". A crucial novelty, compared to [17], is that we in detail worked out an appropriate variant of a hom-set based semantic calculus of quantification and consequently used this calculus in our analysis of deduction in first-order logic.
We showed that the traditional presentation of first-order logic, where neither variable declarations nor contexts are explicitly considered, is equivalent to a first-order Logic of Statements in Context where all bindings of formulas to contexts and all morphisms between contexts are restricted to (implicit) inclusion maps.
By a kind of "methodological accident" this equivalence reinvents, however, Barendregt’s variable convention [18]. So, from a more technical point of view, we had to find out how to integrate Barendregt’s variable convention into traditional first-order logic in a syntactic and semantical correct way. It is maybe worth to mention that Barendregt’s variable convention allowed us to introduce renaming substitutions executing substitutions of free variables by terms and renamings of bound variables in parallel.
Relying on this preparatory efforts, we succeeded in exhaustively analyzing, formalizing and validating three of the basic kinds of deduction calculi for traditional first-order logic by means of the LoSiC-concepts context and specification implication, namely a Hilbert System H and a Gentzen’s system L J and a Natural Deduction System N D .
The crucial innovation of the paper is the introduction of open specification implications and the related idea of deduction rules in waiting position. This innovation enabled us to syntactically represent the outcome of hypothetical proofs in a precise formal way and independent of the concrete hypothetical proof. In such a way, we have been able to finally license hypothetical reasoning in a proper syntactic and a semantical sound way.
To extend, consolidate and further develop the open framework of Logics of Statements in Context, we propose four projects:
Open Injectivity
Following [30,31], we decided to replace the term "Horn Logics", used in [17], by open injectivity. Open specification implications, introduced in this paper, are a first example of open injectivity. Obviously one could iterate the definition of open specification implications. We are, however, not sure that there really is a reason and/or need to do this at the moment. On the other side, nested open injectivity can only unfold its full potential in the presence of explicit variable declarations and contexts. This full potential is needed to describe and formalize reasoning in Category Theory, for example.
Since Category Theory relies on universal properties, there is no need for first-order formulas. Instead, one can use nested open sketch implications based on relational atoms to formalize Category Theory (compare [10]). Therefore, we decided to elaborate in the next paper a full account of this kind of nested open injectivity for arbitrary Logics of Statements in Context with Category Theory as running example. Note, that the habit of "want phrases" in the Fitch notation for Natural Deduction is strongly related to the heuristics of "diagram chasing" in Category Theory!
LoSiC-Deduction in the Unsorted Case
Writing this paper, we finally realized that our initial idea to simply borrow deduction calculi from traditional first-order logic was by far too naive. We also learned that substitutions should be used as morphisms between contexts. To also have in this case Institutions of Statements in Context at hand, we have, however, also to allow substitutions as bindings! What has to be done is to upgrade the Institutions FL Σ of Statements in Context in the present paper to institutions with substitutions as bindings as well as context morphisms. Based on this, the necessary bigger effort should be spend to adapt, at least, one of the traditional deduction calculi to the corresponding upgraded first-order Logics of Statements in Context. We are convinced that Gentzen’s system L J and its twin Natural Deduction are reasonable candidates to get this job done.
Traditional Deduction in the Many-Sorted Case
Another bigger project would be to extend the ideas, constructions and findings of the present paper to traditional many-sorted first-order logic. The remarks concerning the many-sorted case, scattered over the paper, together with [17] should establish a reasonable starting point to attack such a project. In a nutshell, the crucial problem with many-sortedness is that we can not get rid of variables in X f v ( Γ ) for a Σ -specification ( X , Γ ) by simply deleting them! That is, assertions as in (29) and Corollary 8, for example, vanish in the many-sorted case. The only chance to get rid of a variable x ( X f v ( Γ ) ) , in a sound way, is to find a Σ -term t over X { x } (compare rule "Concretion" in [36]). Note, that the concept of context enables us to address and potentially deal with this issue without utilizing the crutch of universal quantification as it is done in [36].
Gentzen’s System L K
Finally, we could extend LoSiCs by disjunctive sketches and validate Gentzen’s System L K [34] and its variant System G in [4] by means of Boolean Algebra reasoning analogously to System L J as discussed in Remark (26).
We will retire in autumn 2026 but will continue with our research. Everyone is invited to work on the last three projects - alone or in cooperation with us.

Funding

This research received no external funding.

Acknowledgments

This paper would not have seen the light of day without the intense and creative exchange of ideas with Nicolas Behr in Spring 2025. I am also very thankful to my colleague Michał Walicki and Phd-student James Hobson for all the inspiring and supporting discussions during a seminar on this topic at the University of Bergen in autumn 2025.

Conflicts of Interest

The author declares no conflicts of interest.

Appendix A. Operators on Predicates

More than two decades ago we learned from [37] that the semantic effects of existential and universal quantification can be characterized as left and right adjoints, respectively, of projection maps. That time, we ignored this insight as too abstract for our own research.
During an intense discussion with Nicolas Behr in spring 2025 we learned, however, that this insight is quite relevant for understanding, presenting and validating LoSiCs. Therefore, we present here the basic definitions, constructions and results concerning hom-set predicates for the special case of the category Set and in the specificity, we utilize them in this paper. That one can define hom-set predicates and a corresponding calculus in arbitrary categories C is quite obvious as the interested reader may check [38,39].

Appendix A.1. Shift, Existential and Universal Operators for Maps

For any set A the powerset construction gives us a partial order ( ( A ) , ) and a respective Boolean Algebra ( ( A ) , , , 0 e x 1.5 e x _ 0 e x 1.5 e x ¯ , A , ) at hand, where M ¯ : = A M is the compliment of M ( A ) . It is quite common to call a subset M A a "property" of elements in A or a "predicate" for A. Keep in mind that any partial order can equivalently be seen as a partial order category, i.e., a category with at most one morphism between two objects and with identities the only isomorphisms.
For any map f : A B the formation of pre-images
f 1 ( N ) : = { a A f ( a ) N } = { f 1 ( b ) b N } f o r a l l N B
defines a monotone function (a functor) from ( ( B ) , ) into ( ( A ) , )
f : = f 1 : ( ( B ) , ) ( ( A ) , ) .
For historical reasons [38,39,40] we call this function the shift operator given by f. The reader may think about a "shift of perspective" from B to A by returning to A along f : A B .
Dually, the formation of images defines for any map f : A B a monotone function (a functor) from ( ( A ) , ) into ( ( B ) , ) defined for all M ( A ) by
f ( M ) : = { f ( a ) a M } = { b B e x i s t s a A : f ( a ) = b a n d a M } .
As one can observe, the formation of images is related to existential quantification in the sense that f ( M ) contains exactly all those elements from B for which there exists a pre-image w.r.t. f ( a "witness/antecedent") in M. Therefore, we call this function the existential operator given by f and adapt from [38,39] the notation
f : = f : ( ( A ) , ) ( ( B ) , ) .
The first crucial observation is that the operators f and f establish a monotone Galois Connection (an adjunction) between the partial orders (categories) ( ( A ) , ) and ( ( B ) , ) .
Corollary A1
(Existential Galois Connection 1). For any M ( A ) and N ( B ) we have
unit:
M f ( f ( M ) )
counit:
f ( f ( N ) ) N
adjunction:
M f ( N ) iff f ( M ) N
Note, that f is called "left" adjoint to f (and, correspondingly, f "right" adjoint to f ), f f in symbols, since f appears in the adjunction statement on left of the "arrow" ⊆ while f appears on the right!
For all N ( B ) we do have N f ( f ( N ) ) = N f ( A ) . f : A B is surjective if, and only if, f ( A ) = f ( A ) = B thus f : A B surjective implies f ( f ( N ) ) = N for all N ( B ) . The other way around, if B = there exists only a map f : A B if also A = thus we have f = i d which is trivially surjective. If B , the condition f ( f ( N ) ) = N implies for all singletons N = { b } ( B ) that b f ( A ) , thus we get the following characterization of surjectivity:
f : A B s u r j e c t i v e i f f f ; f = i d ( B ) .
Obviously, f : A B is injective if, and only if, f ( { b } ) = f 1 ( b ) is either a singleton or empty for all b B . M = f ( f ( M ) ) means that M = { f ( { b } ) b f ( M ) } = { f 1 ( b ) b f ( M ) } . This is the case for all M ( A ) if f : A B is injective thus we have the following implication:
f : A B i n j e c t i v e i m p l i e s i d ( A ) = f ; f .
The second, more striking observation is that universal quantification is dual to existential quantification in a rigorous categorical sense. Universal quantification turns out to be nothing but the right adjoint to the shift operator.
For any map f : A B we can define a monotone function (a functor)
f : ( ( A ) , ) ( ( B ) , )
called the the universal operator given by f and defined for all M ( A ) by
f ( M ) : = { b B f o r a l l a A : f ( a ) = b i m p l i e s a M } = { b B f ( b ) = f 1 ( b ) M } .
f formalizes universal quantification in the sense that f ( M ) contains exactly all those elements from B for which all (!) pre-images w.r.t. f are in M. Be aware, that we always have f ( A ) ¯ = f ( A ) ¯ = f ( ) f ( M ) since f ( b ) = f 1 ( b ) = for all b f ( A ) ¯ .
We get indeed a monotone Galois Connection (an adjunction) between the partial orders (categories) ( ( B ) , ) and ( ( A ) , ) .
Corollary A2
(Universal Galois Connection 1). For any N ( B ) and M ( A ) we have
unit:
N f ( f ( N ) )
counit:
f ( f ( M ) ) M
adjunction:
N f ( M ) iff f ( N ) M
The interplay of the Universal and the Existential Galois Connection gives us a simple, but useful, Corollary at hand.
Corollary A3
(Shift vs Existential and Universal). For any map f : A B and all M ( A ) , N ( B ) it holds that N f ( M ) and f ( M ) N implies M = f ( N ) .
For all N ( B ) we do have f ( f ( N ) ) N = f ( A ) ¯ N thus f : A B surjective, i.e., f ( A ) ¯ = , implies N = f ( f ( N ) ) for all N ( B ) . The other way around, the condition = f ( f ( ) ) for ( B ) implies f ( A ) ¯ = . In such a way, we get another characterization of surjectivity in terms of universal operators and, thus, an overlapping of existential and universal quantification due to (A5):
f : A B surjective iff i d ( B ) = f ; f iff f ; f = i d ( B ) .
For all M ( A ) we do have f ( f ( M ) ) = M iff f ( M ) = f ( M ) = f ( M ) f ( A ) ¯ iff f ( f ( M ) ) = M . This means that we do have another overlapping of existential and universal quantification:
i d ( A ) = f ; f i f f f ; f = i d ( A ) .
thus f : A B injective also implies f ; f = i d ( A ) according to (A6).
Due to Corollary A2, the monotone function (the functor) f is left adjoint to the monotone function (the functor) f , f f in symbols. We can summarize the basic findings of this section by the following diagram.
Preprints 221586 i038
Fortunately, the construction of shift, existential and universal operators is compatible with composition. For any maps f : A B and g : B C we do have
f ; g = g ; f f ; g = f ; g f ; g = f ; g .
The first two equations are ensured by the fact that both constructions - the formation of pre-images and the formation of images - define functors from Set into Set , namely a contravariant and a covariant powerset functor, respectively. The third equation can also be shown straightforwardly.
We should mention that f and f as right adjoints distributes over arbitrary products, i.e., intersections, while f and f as left adjoints distribute over arbitrary sums, i.e. unions! Moreover, f is compatible with respect to complements, i.e., for any map f : A B we have
f ( N ¯ ) = f ( N ) ¯ f o r a l l N ( B )
since f distributes over arbitrary unions, f preserves disjointness and we consider only total maps.
Attention! As usual, the direction of "arrows" is a matter of tradition, taste, ideology and/or methodology. We work here with inclusions A B in accordance with the direction of the corresponding inclusion maps i n A , B : A B . In [38,39] they also use inclusions ⊆ but denote them by ⊧ even if the direction of logic entailment would rather indicate ⊇! Note, that the sequence of adjunctions f f f matches the well-known sequence of adjunctions Σ Δ Π λ characterizing the four basic constructions sum-copy-product-exponent in mathematics and category theory.

Appendix A.2. Shift, Existential and Universal Operators for Pre-composition Maps

This special kind of maps for arbitrary categories is addressed in [38,39]. Here we consider this special kind of maps for the category Set .
To ease accessibility of the paper, we instantiate definitions, constructions and results in Appendix A.1 for hom-sets U K = Set ( K , U ) and pre-composition maps ( ψ ; _ ) : U G U K induced by maps ψ : K G and defined for any set U, by
( ψ ; _ ) ( b ) : = ψ ; b f o r a l l b : G U i n U G .
In LoSiCs, U varies over all potential carriers | Carr | of structures, i.e., we assume U to be a non-empty set since | Carr | = | Set | { } in this paper!
As exponents we use sets X V a r of variables or contexts K | Cxt | = | Set | while V a r | Cxt | . Elements in U X are also called (variable) assignments and elements in U K interpretations. In our analysis of traditional first-order induction calculi, we mainly meet inclusion maps i n X , Y : X Y while ( i n X , Y ; _ ) : U Y U X is usually callled a projection. Nevertheless, we consider in this section arbitrary maps ψ : K G .
In contrast to [38,39], we focus in LoSiCs on "syntactically represented" (hom-set) predicates. Any syntactic entity, like a Σ -expression, a Σ -statement in context or a finite Σ -sketch represents for each (!) Σ -structure U a corresponding predicate in U . Different Σ -structures can, however, share the same carrier! So, in case we have to define (hom-set) predicates Φ K over K in the spirit of [38,39], we could consider | Str ( Σ ) | -indexed families of subsets Φ K U U K instead of | Set | -indexed families.
We adapt the notation in Appendix A.1 to the special case of pre-composition maps. First, we don’t use the identifiers of pre-composition maps ( ψ ; _ ) but the identifiers of the underlying maps ψ as subscripts for operators. Be aware that this reverses the direction of maps and thus the order of composition: For any maps ψ : K G , μ : G H and any carrier U we have the pre-composition maps ( ψ ; _ ) : U G U K , ( μ ; _ ) : U H U G where
( μ ; _ ) ; ( ψ ; _ ) = ( ψ ; μ ; _ ) : U H U K .
Second, we use identifiers U of carriers as superscripts for operators.
For any map ψ : K G and any carrier U the formation of pre-images for the corresponding pre-composition map ( ψ ; _ ) : U G U K
( ψ ; _ ) 1 ( Φ ) : = { b U G ψ ; b Φ } = { ( ψ ; _ ) 1 ( a ) a Φ } for all Φ U K
defines a monotone function (a functor)
ψ U : = ( ψ ; _ ) 1 : ( ( U K ) , ) ( ( U G ) , ) .
which we call the shift operator for U induced by ψ. In case of an inclusion X Y of sets of variables, ( i n X , Y ; _ ) 1 ( a ) is exactly the set of all extensions b : Y U of the variable assignment a : X U to Y.
Dually, the formation of images defines a monotone function (a functor)
ψ U : = ( ψ ; _ ) : ( ( U G ) , ) ( ( U K ) , )
called the existential operator for U induced by ψ and defined for all Ψ ( U G ) by
ψ U ( Ψ ) : = { ψ ; b b Ψ } = { a U K e x i s t s b U G : ψ ; b = a a n d b Ψ } .
We instantiate the adjunction from Corollary A1 for pre-composition maps.
Corollary A4
(Existential Galois Connection 2). For any Ψ ( U G ) and Φ ( U K )
unit:
Ψ ψ U ( ψ U ( Ψ ) )
counit:
ψ U ( ψ U ( Φ ) ) Φ
adjunction:
Ψ ψ U ( Φ ) iff ψ U ( Ψ ) Φ
Note, that ψ U is called "left" adjoint to ψ U (and, correspondingly, ψ U "right" adjoint to ψ U ), ψ U ψ U in symbols, since ψ U appears in the adjunction statement on left of the "arrow" ⊆ while ψ U appears on the right!
For any map ψ : K G and any carrier U we obtain a monotone function (a functor)
ψ U : ( ( U G ) , ) ( ( U K ) , )
called the the universal operator for U induced by ψ and defined for all Ψ ( U G ) by
ψ U ( Ψ ) : = { a U K f o r a l l b U G : ψ ; b = a i m p l i e s b Ψ } = { a U K ψ U ( a ) = ( ψ ; _ ) 1 ( a ) Ψ } .
Be aware, that we always have ψ U ( U G ) ¯ = ( ψ ; _ ) ( U G ) ¯ = ψ U ( ) ψ U ( Ψ ) since ψ U ( a ) = ( ψ ; _ ) 1 ( a ) = for all b ( ψ ; _ ) ( U G ) ¯ .
We instantiate the adjunction from Corollary A2 for pre-composition maps.
Corollary A5
(Universal Galois Connection 2). For any Φ ( U K ) and Ψ ( U G )
unit:
Φ ψ U ( ψ U ( Φ ) )
counit:
ψ U ( ψ U ( Ψ ) ) Ψ
adjunction:
Φ ψ U ( Ψ ) iff ψ U ( Φ ) Ψ
Due to Corollary A5, the monotone function (the functor) ψ U is left adjoint to the monotone function (the functor) ψ U , ψ U ψ U in symbols. We can summarize the basic statements of this section by the following diagram with U an arbitrary non-empty set.
Preprints 221586 i039
For pre-composition maps the compositionality statements in (A12) are transformed as follows. Keep in mind (A15). For any maps ψ : K G , μ : G H and any carrier U we do have the following equations:
ψ ; μ U = ψ U ; μ U ψ ; μ U = μ U ; ψ U ψ ; μ U = μ U ; ψ U .
We round this section with a systematic analysis of surjectivity and injectivity of pre-composition maps. Since we only allow non-empty carriers U, all the hom-sets U K are non-empty for arbitrary K! By (A9), we do have for any map ψ : K G and any carrier U:
( ψ ; _ ) : U G U K s u r j e c t i v e i f f i d ( U K ) = ψ U ; ψ U i f f ψ U ; ψ U = i d ( U K ) .
For K = we have U = { ! U = i n , U } and ( ! G ; _ ) : U G U is surjective for the only injective map ψ = ! G = i n , G : G since ! G ; b = ! U for all b U G .
For K the pre-composition map ( ψ ; _ ) : U G U K is surjective for any carrier U if ψ : K G is injective, since all (!) injective maps ψ : K G with K are split monomorphisms (sections) in Set , i.e., there exists a map ψ : G K such that ψ ; ψ = i d K . For any a U K we obtain ( ψ ; _ ) ( b ) = ψ ; b = a for b : = ψ ; a U G thus ( ψ ; _ ) is indeed surjective. Note, that we actually argue ( ψ ; _ ) ; ( ψ ; _ ) = ( i d K ; _ ) = i d U K , i.e., ( ψ ; _ ) : U G U K is a split epimorphism (retraction) in Set for any carrier U.
In this paper we have Carr Cxt = Set thus we can choose U = K . The split monic requirement "there exists a map ψ : G K such that ψ ; ψ = i d K " is equivalent to the requirement that ( ψ ; _ ) 1 ( i d K ) is non-empty which is ensured if ( ψ ; _ ) : K G K K is surjective. In such a way we get the following equivalence completing (A24).
( ψ ; _ ) : U G U K s u r j e c t i v e f o r a l l U i f f ψ : K G i n j e c t i v e .
Deduction calculi in traditional unsorted first-order logic utilize inclusion maps and rely heavily on the equivalences in (A24) and (A25)!
According to (A10), we do have for all (!) maps ψ : K G and all carriers U:
i d ( U G ) = ψ U ; ψ U i f f ψ U ; ψ U = i d ( U G ) .
ψ : K G surjective entails that ( ψ ; _ ) : U G U K is injective for all carriers U since surjective maps are exactly the epimorphisms in Set . In such a way, we obtain from (A6) and (A26) for all carriers U:
ψ : K G s u r j e c t i v e i m p l i e s i d ( U G ) = ψ U ; ψ U a n d ψ U ; ψ U = i d ( U G ) .
Remark A1
(Many-sortedness: Operators). There are two related reasons that the "lazy approach" to deduction in unsorted first-order logic does not work for many-sorted first-order logic.
Let S be a set of sort symbols with cardinality | S | 2 . First, for any S-sets U = ( U s s S ) , K = ( K s s S ) the condition U 0 S , with 0 S = ( s S ) the initial object in the category Set S of S-sets and S-maps, doesn’t ensure that the set U K of all S-maps f = ( f s : K s U s s S ) from K into U is non-empty. U K becomes empty if there is an s S with K s but U s = !
Second, the condition K 0 S doesn’t ensure that every injective S-map ψ : K G is split monic. ψ : K G is not split monic if there is an s S with K s = but G s !
We can repair the equivalence in (A25) by replacing "injective" by "split monic", but we have to overcome our laziness anyway and must work with explicit variable declarations since the projections ( i n X , Y ; _ ) : U Y U X for X Y are not anymore surjective by default!

Appendix A.3. Shift, Existential and Universal Operators for Substitutions

As shown in Section 3.3 any Σ -substitution (declaration) t : X T Σ ( Y ) defines a derived operation t U : U Y U X in every Σ -structure U (in the opposite direction).
To ease accessibility of the paper, we instantiate definitions, constructions and results in Appendix A.1 for the special hom-sets U X = Set ( X , U ) , i.e., sets of variable assignments, and derived operation t U : U Y U X represented by Σ -substitutions t : X T Σ ( Y ) . Note, that there is a certain small overlap with Appendix A.2 since every map ψ : X Y can be equivalently represented by the Σ -substitution ψ ; η Y : X T Σ ( Y ) .
We adapt the notation in Appendix A.1 to the special case of derived operations analogously to the adaptations in Appendix A.2. First, we use the identifiers of Σ -substitutions as subscripts for operators. Be aware that this again reverses the direction of maps and thus the order of composition. Second, we must use identifiers U of Σ -structures, instead of identifiers U of carriers as in Appendix A.2, as superscripts for operators.
In Section 4.2.1 we discussed that any Σ -substitution (declaration) can be extended to a map t * : T Σ ( X ) T Σ ( Y ) with t = η X ; t * where t * : T Σ ( X ) T Σ ( Y ) describes the application of the Σ -substitution t : X T Σ ( Y ) to all Σ -terms over X! This enabled us to define the composition of two Σ -substitutions t : X T Σ ( Y ) , r : Y Z as the Σ -substitution t ; r * : X T Σ ( Z ) . Moreover, (18) shows that this composition of Σ -substitutions reflects the composition of the corresponding derived operations t U : U Y U X , r U : U Z U Y
( t ; r * ) U = r U ; t U : U Z U X .
For any Σ -substitution t : X T Σ ( Y ) and any Σ -structure U the formation of pre-images for the corresponding derived operation t U : U Y U X
( t U ) 1 ( Φ ) : = { b U Y t U ( b ) Φ } = { ( t U ) 1 ( a ) a Φ } for all Φ U X
defines a functor, called the shift operator for U induced by t ,
t U : = ( t U ) 1 : ( ( U X ) , ) ( ( U Y ) , ) .
Dually, the formation of images defines a functor
t U : = t U : ( ( U Y ) , ) ( ( U X ) , )
called the existential operator for U induced by t and defined for all Ψ ( U Y ) by
t U ( Ψ ) : = { t U ( b ) b Ψ } = { a U X e x i s t s b U Y : t U ( b ) = a a n d b Ψ } .
We instantiate the adjunction from Corollary A1 for derived operations.
Corollary A6
(Existential Galois Connection 3). For any Ψ ( U Y ) and Φ ( U X )
unit:
Ψ t U ( t U ( Ψ ) )
counit:
t U ( t U ( Φ ) ) Φ
adjunction:
Ψ t U ( Φ ) iff t U ( Ψ ) Φ
By Corollary A6 the functor t U is left adjoint to t U , t U t U in symbols. For any Σ -substitution t : X Y and any Σ -structure U we obtain a functor
t U : ( ( U Y ) , ) ( ( U X ) , )
called the the universal operator for U induced by t and defined for all Ψ ( U Y ) by
t U ( Ψ ) : = { a U X for all b U Y : t ( b ) = a i m p l i e s b Ψ } = { a U X t U ( a ) = ( t U ) 1 ( a ) Ψ } .
We instantiate the adjunction from Corollary A2 for derived operations.
Corollary A7
(Universal Galois Connection 3). For any Φ ( U X ) and Ψ ( U Y )
unit:
Φ t U ( t U ( Φ ) )
counit:
t U ( t U ( Ψ ) ) Ψ
adjunction:
Φ t U ( Ψ ) iff t U ( Φ ) Ψ
Due to Corollary A7, the functor t U is left adjoint to the monotone function (the functor) t U , t U t U in symbols. We can summarize the basic statements of this section by the following diagram with U an arbitrary Σ -structure U .
Preprints 221586 i040
For Σ -substitutions the compositionality statements in (A12) are transformed as follows. Keep in mind (A28). For any Σ -substitutions t : X T Σ ( Y ) , r : Y T Σ ( Z ) and any Σ -structure U we do have the following equations:
t ; r * U = t U ; r U t ; r * U = r U ; t U t ; r * U = r U ; t U .
Properties of derived operations t U : U Y U X can heardly be traced back to properties of the Σ -substitution t : X T Σ ( Y ) since the properties of t U heavily depend on the special properties of the operations in U . Therefore, the findings concerning surjectivity and injectivity in Appendix A.1 for arbitrary maps can not be refined for derived operations.

References

  1. Wolter, U. Logics of Statements in Context - Category Independent Basics. Mathematics 2022, 10. [Google Scholar] [CrossRef]
  2. Chang, C.C.; Keisler, H.J. Model Theory; Studies in Logic and the Foundations of Mathematics; Elsevier Science, 1990. [Google Scholar]
  3. van Dalen, D. Logic and Structure. In Universitext, 5 ed.; Springer, 2013. [Google Scholar] [CrossRef]
  4. Walicki, M. Introduction to Mathematical Logic, extended ed.; World Scientific, 2017. [Google Scholar]
  5. Wechler, Wolfgang. Universal Algebra for Computer Scientists. In Proceedings of the Monographs in Theoretical Computer Science. An EATCS Series.; Springer-Verlag, Berlin Heidelberg, 1992; Vol. 25, p. 339. [Google Scholar] [CrossRef]
  6. Ehrig, H.; Mahr, B. Fundamentals of Algebraic Specification 1: Equations and Initial Semantics. In EATCS Monographs on Theoretical Computer Science; Springer, 1985; p. 6. [Google Scholar]
  7. Reichel, H. Initial Computability, Algebraic Specifications, and Partial Algebras; Oxford University Press, 1987. [Google Scholar]
  8. Loeckx, J.; Ehrich, H.D.; Wolf, M. Specification of Abstract Data Types; Teubner: Leipzig, 1996. [Google Scholar]
  9. Barr, M.; Wells, C. Category Theory for Computing Science. In Series in Computer Science; Republished in Reprints in Theory and Applications of Categories, No. 22 (2012); Prentice Hall International: London, 1995. [Google Scholar]
  10. Makkai, M. Generalized Sketches as a Framework for Completeness Theorems. J. Pure Appl. Algebra 1997, 115, 49–79, 179–212, 214–274. [Google Scholar] [CrossRef]
  11. Cadish, B.; Diskin, Z. Heterogeneous View Integration via Sketches and Equations. In Proceedings of the ISMIS, Heidelberg, 1996; Springer; Vol. 1079, pp. 603–612. [Google Scholar]
  12. Diskin, Z. Technical Report 9602; Databases as Diagram Algebras: Specifying Queries and Views Via the Graph-Based Logic of Sketches. Frame Inform Systems: Riga, Latvia, 1996.
  13. Baader, F.; Horrocks, I.; Sattler, U. Handbook of Knowledge Representation chapter 3 Description Logics; Elsevier, 2007. [Google Scholar]
  14. Ehrig, H.; Ehrig, K.; Prange, U.; Taentzer, G. Fundamentals of Algebraic Graph Transformation. In Monographs in Theoretical Computer Science. An EATCS Series; Springer, 2006. [Google Scholar]
  15. Rutle, A. Diagram Predicate Framework: A Formal Approach to MDE. PhD thesis, University of Bergen, 2010. [Google Scholar]
  16. Rutle, A.; Rossini, A.; Lamo, Y.; Wolter, U. A formal approach to the specification and transformation of constraints in MDE. Proc. J. Log. Algebr. Program. 2012, Vol. 81, 422––457. [Google Scholar] [CrossRef]
  17. Wolter, U. Logics of Statements in Context - First-Order Logic Files. Logics 2025, 3. [Google Scholar] [CrossRef]
  18. Barendregt, H.P. The Lambda Calculus: Its Syntax and Semantics; North Holland, 1984. [Google Scholar]
  19. Goguen, J.A.; Burstall, R.M. Institutions: Abstract Model Theory for Specification and Programming. J. ACM 1992, 39, 95–146. [Google Scholar] [CrossRef]
  20. Diaconescu, R. Institution-Independent Model Theory, 2nd ed.; Birkhäuser Basel, 2025. [Google Scholar] [CrossRef]
  21. Barwise, K.J. Axioms for Abstract Model Theory. Ann. Math. Log. 1974, 7, 221–265. [Google Scholar] [CrossRef]
  22. Wolter, U.; Truong, T.T. Graph Algebras and Derived Graph Operations. Logics 2023, 1, 182–239. [Google Scholar] [CrossRef]
  23. Wolter, U. Institutional frames. In Recent Trends in Data Type Specification, 10th Workshop on Specification of Abstract Data Types joint with the 5th COMPASS Workshop, S. Margherita Italy, May/June 1994, Selected papers; Lecture Notes in Computer Science; Astesiano, E., Reggio, G., Tarlecki, A., Eds.; Springer, 1995; Vol. 906, pp. 469–482. [Google Scholar] [CrossRef]
  24. Wolter, U.; Martini, A.; Haeusler, E.H. Towards a uniform presentation of logical systems by indexed categories and adjoint situations. J. Log. Comput. Oxf. Univ. Press Advance Access article. 2015, 25, 57–93. [Google Scholar] [CrossRef]
  25. Lawvere, F.W. Functorial Semantics of Algebraic Theories. In Proceedings of the Proc. National Academy of Science, U.S.A.; Columbia University, 1963; Volume 50, pp. 869–872. [Google Scholar]
  26. Lawvere, F.W. Functorial Semantics of Algebraic Theories and Some Algebraic Problems in the context of Functorial Semantics of Algebraic Theories. Reprints in Theory and Applications of Categories, Originally published as Ph.D. thesis, Columbia University, 1963 and in Reports of the Midwest Category Seminar II. © Springer-Verlag, 2004; p. 1 – 121 41-61. [Google Scholar]
  27. Poigné, A. Algebra categorically. In Category Theory and Computer Programming: Tutorial and Workshop, Guildford, U.K. September 16–20, 1985 Proceedings; Pitt, D., Abramsky, S., Poigné, A., Rydeheard, D., Eds.; Springer Berlin Heidelberg: Berlin, Heidelberg, 1986; pp. 76–102. [Google Scholar] [CrossRef] [PubMed]
  28. de Bruijn, N.G. Lambda Calculus Notation with Nameless Dummies: A Tool for Automatic Formula Manipulation, with Application to the Church-Rosser Theorem. Indag. Math. 1972, 34, 381–392. [Google Scholar] [CrossRef]
  29. Wolter, U. An Algebraic Approach to Deduction in Equational Partial Horn Theories. J. Inf. Process. Cybern. EIK 1990, 27, 85–128. [Google Scholar]
  30. Adamek, J.; Herrlich, H.; Strecker, G. Abstract and Concrete Categories; John Wiley, 1990. [Google Scholar]
  31. Adamek, J.; Hebert, M.; Sousa, L. A Logic of Injectivity. J. Homotopy Relat. Struct. 2007. [Google Scholar] [CrossRef]
  32. Kohlhase, M.; Rabe, F. Knowledge Representationfor Science, Technology, Engineering, and Mathematics Summer Semester 2020– Lecture Notes –. 2021. Available online: https://kwarc.info/teaching/KRMT/notes-SS21.pdf (accessed on March 2026).
  33. Wasilewska, A. Logics for Computer Science. In Computer Science; Springer Cham: Cham, Switzerland, 2018. [Google Scholar] [CrossRef]
  34. Sequent Calculus. Available online: https://en.wikipedia.org/wiki/Sequent_calculus (accessed on 17 February 2026).
  35. Magnus, P.D. forall x - An Introduction to Formal Logic Open Education Resource (OER); Creative Commons license, 2017; Available online: https://www.fecundity.com/logic/.
  36. Goguen, J.A.; Meseguer, J. Completeness of Many-Sorted Equational Logic. Houst. J. Math. 1985, 11, 307–334. [Google Scholar]
  37. Jacobs, B. Categorical Logic and Type Theory. In Studies in Logic and the Foundations ofMathematics, 1 ed.; Elsevier Science, 2001; Vol. 141. [Google Scholar]
  38. Behr, N. Instantiation Calculus. Keynote Talk at 18th International Conference on Graph Transformation (ICGT 2025), 2025. [Google Scholar]
  39. Behr, N.; Hirschowitz, T.; Lafont, A.; Moreau, V. A Hyperdoctrinal Reconstruction of Conditional Calculus. Technical report;In Preparation. 2025. [Google Scholar]
  40. Bruggink, H.J.S.; Cauderlier, R.; Hülsbusch, M.; König, B. Conditional Reactive Systems. In Proceedings of the IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2011), 2011. [Google Scholar] [CrossRef]
Figure 1. Stepwise construction of an Institution of First-Order Statements.
Figure 1. Stepwise construction of an Institution of First-Order Statements.
Preprints 221586 g001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings