In mathematical logic, the calculus of structures (CoS) is a proof calculus with deep inference for studying the structural proof theory of noncommutative logic. The calculus has since been applied to study linear logic, classical logic, modal logic, and process calculi, and many benefits are claimed to follow in these investigations from the way in which deep inference is made available in the calculus.
It was first introduced in 2001 in the paper A System of Interaction and Structure by Alessio Guglielmo of the University of Bath.[1][2]
Definitions
A formula is a (well-formed) string of logical symbols. For example, is a formula.
An equational theory is a list of equations that describe an equivalence relation on the set of all formulas. The usual equations are associativity, commutativity, and equations for logical constants.
A structure is an equivalence class of formulas. The name “structure” emphasizes that CoS does not distinguish sequents and formulas, but uses a single object to do the job of both in a sequent calculus. Specifically, a structure can be regarded as an equivalence class of formulas.
A context is a structure with a sub-structure removed. For example, is a context, where the denotes a removed sub-structure. Contexts are written as , so for example, if , then is defined as .
An inference rule is of form , where are substructures, and is not any particular formula, but rather an indication that “any context can go here”. We can present it in a simplified form as , leaving implicit. By default, contexts appearing in inference rules must have positive polarity.
A context has a polarity. The polarity of a context is either positive or negative. For example, is a positive context, but is a negative context, but is once again a positive context. The positivity or negativity of a context is called its polarity. For example, we say “ has positive polarity”, and “ has negative polarity”.
Two structures may be duals to each other. Similarly, two inference rules can also be duals to each other, if it is possible to write as a dual to , and as a dual to . The classical contraposition is an example of this duality.
A convention is to write for a conjunction, and for a disjunction. For example, in linear logic, one writes for , and for .
Ideas
Deep inference
In sequent calculus, each inference rule can only produce/eliminate logical connectives on the outermost level of a formula. In particular, this means that most subformulas remain unchanged. In deep inference, each inference rule can rewrite subformulas on any level.
For example, in the sequent calculus for classical logic, the ruleleaves and all their subformulas unchanged. Only the outermost logical connective of is produced.
For deep inference, inference rules may apply to any subformula, arbitrarily deep within the syntax tree. In other words, out of all the nodes in the syntax tree of , an inference rule can only manipulate the outermost node. Deep inference allows a rule to manipulate arbitrary node within the syntax tree.
Top-down symmetry
In sequent calculus and natural deduction, a proof is a tree of inference rules. This then produces a fundamental asymmetry: The top of a proof tree are made of many leaf-sequents, but the bottom of a proof tree is a single endsequent. However, many inference rules are symmetric: The top half and the bottom half are mutually derivable.
For example, if one can apply a rule to produce a proof of , then one can also produce a proof of , and a proof of . In this way, the inference rule has a top-down symmetry.
The formalism of sequent calculus makes this top-down symmetry implicit, since the juxtaposition of a sequent and another sequent is not itself a sequent. This means this top-down symmetry is not on the object-level of the proof calculus.
In the calculus of sequents, a proof is a line of inference rules. This places the top-down symmetry in the object level.
SKSg
Definition
SKSg is a CoS for classical propositional logic.
The symbols of SKSg consists of:
- The atoms . We say that are atoms that are dual to each other.
- The connectives .
- The units .
Negation does not exist in SKSg, since we have demoted negation from a logical connective to merely a pairing between logical atoms.
A structure of SKSg has the following syntax in Backus–Naur form:Without negation, all contexts are positive.
Duality for structures is defined by:The structural inference rules come in 3 dual pairs:
| identity | weakening | contraction |
| cut | coweakening | cocontraction |
The 2 logical inference rules are self-dual:
| switch | medial |
In addition to these rules, there are the following equations:All equations of the SKSg system can be replaced by inference rules. The resulting equation-less system is SKS.
Properties
This is a valid derivation: This is a general principle in deep inference: structural rules on generic formulas can be replaced by the same structural rule on atoms. In this case, cocontraction.
A cut-free derivation is a derivation where is not used. One can eliminate cuts by a technique called splitting.[3][4]
MLL⁻
Define MLL⁻ to be the proof system of multiplicative linear logic without units.
A formula consists of . Here, and are dual atoms. The equations of duality are In particular, negation does not exist anymore, since we have demoted negation from a logical connective to merely a duality between pairs of logical atoms. By definition, .
The system has the following CoS:[4]Each row is a pair of dual rules. The switch rule is dual to itself.
There are 4 initiation rules, two for i↑, and two for i↓. The reason there are two instead of one is that the system has no units . With the unit for , one can simply subsume as a special case of , where is the empty context, and . Similarly, with the unit for , one can subsume under .
The rules for association and commutation mean that both connectives are associative and commutative. These rules can be replaced with the equations , etc.
i↑ corresponds to the identity axiom in sequent calculus: , or equivalently, .
i↓ corresponds to the cut rule: .
The switch rule is more subtle. It corresponds to . In general, an inference rule of a CoS can be read as a provable sequent in a sequent calculus, by “rotating it 90 degrees”.
Interpretation
In MLL⁻, the symbols are logical connectives (conjunction, disjunction), and can only appear on the level of formulas. On the level of sequents, the comma behaves essentially the same as , since we have the following inference rulebut it appears on the level of sequents. Similarly, writing two sequents side-by-side within a proof tree has essentially the same behavior as , since we have the following inference rulebut it appears on the level of proofs.
In the CoS for MLL⁻, the symbol are manipulated according to rules such that it can do the job of both the logical connective and the side-by-side placement of sequents. Similarly for .
In particular, given a proof tree in MLL⁻ sequent calculus, one can convert it to a proof in MLL⁻ CoS if one convert each sequent into , then convert each side-by-side placement of sequents with . Then replace each use of inference rule in the sequent calculus with a use of several inference rules in the CoS. This shows that structures are not a mere replication of formulas or sequents, since it has features of both.
Cut elimination corresponds to i↓-elimination.
SLLS
The SLLS system is the CoS version of the full linear logic. It is much larger than the CoS for MLL⁻.[5]
BV
The BV system (Basic System V) can be produced by this CoS:[6]
References
- ^ Guglielmi, Alessio (2007-01-01). “A system of interaction and structure”. ACM Trans. Comput. Logic. 8 (1): 1–es. doi:10.1145/1182613.1182614. ISSN 1529-3785.
- ^ Novaković, Novak; Straßburger, Lutz (2015-04-21). “On the Power of Substitution in the Calculus of Structures”. ACM Trans. Comput. Logic. 16 (3): 19:1–19:20. doi:10.1145/2701424. ISSN 1529-3785.
- ^ “Deep Inference”. alessio.guglielmi.name. Retrieved 2026-04-30.
- ^ a b Strassburger, Lutz (2006-11-20), Proof Nets and the Identity of Proofs, arXiv, doi:10.48550/arXiv.cs/0610123, arXiv:cs/0610123
- ^ Aler Tubella, Andrea; Straßburger, Lutz (2019). Introduction to Deep Inference: Lecture notes for ESSLLI’19, August 5–16, 2019, University of Latvia (PDF) (Report).
- ^ Guglielmi, Alessio (2007-01-01). “A system of interaction and structure”. ACM Trans. Comput. Logic. 8 (1): 1–es. doi:10.1145/1182613.1182614. ISSN 1529-3785.
Further reading
- Kai Brünnler (2004). Deep Inference and Symmetry in Classical Proofs. Logos Verlag.
External links
- Calculus of structures homepage
- CoS in Maude: page documenting implementations of logical systems in the calculus of structures, using the Maude system.