2. A little bit of history
Natural Deduction and Sequent calculus both were introduced by Gerhard
Gentzen, who first introduced Natural Deduction and later Sequent Calculus
which he found easier to work with(for consistency of proofs).
In Natural Deduction, the rules for logical connectives are introduction and
elimination rules (right).
In Sequent Calculus, there are no elimination rules: right introduction and left
introduction rules.
I.e. right elimination is traded against left introduction.
3. Sequent Calculus vs Natural Deduction
Differences:
โ The sequent calculus is more suitable for automated proof search
โ The cut rule is implicit in Natural Deduction and explicit in Sequent
Calculus.
โ Natural Deduction gives more mathematical-like approach to reasoning
while the Sequent Calculus gives more structural and symmetrical
approach
Relations - one can be translated to another.
4. The Sequent Calculus
Sequent calculus gives principled answers to problems such as:
โ How to soundly compile xxx?
โ How to prove normalization of xxx?
โ How should control operators and xxx interact?
โ Deciding equivalence of normal forms
5. Sequent
A sequent is an expression A |- B where A and B are finite sequences of
formulae A1...An and B1...Bn.
6. Natural Deduction - Example
Letโs consider the following problem : P, P โ Q โข P โง Q
1. P Premise
2. P โ Q Premise
3. Q Modus Ponens (2)
4. P โง Q Conjunction (3)
Note:
โ Natural Deduction is solved from top-to-bottom unlike Sequent Calculus
โ Natural Deduction is more mathematical-like approach.
8. Sequent Calculus - Structural rules (CL)
โ The exchange rules:
โ The weakening rules:
โ The contraction rules:
The structural rules essentially say that A and B in the sequence A |- B are
multisets. These rules are the most important of the whole calculus.Symmetry
9. Intuitionistic Structural Rules
An intuitionistic sequent is a sequent A |- B where B has at most one formula.
The exchange and contraction rules:
The weakening rules:
Note that RX and RC rules are not possible. And the symmetry is broken.
10. Properties of Intuitionistic Sequent Calculus
Letโs consider a proof of |- A without cut. What could be the last rule?
โ Structural rules cannot give us |- A.
โ The identity axiom does not give us |- A.
โ Left logical rules cannot do.
The last rule must be a right logical rule.
11. Disjunction Property vs Existence Property
If A = Aโ โจ Aโโ, the last rule must be R1โจ or R2โจ. That is, we have |- Aโ or |- Aโโ. If
|- Aโ โจ Aโโ, then |- Aโ or Aโโ . This is called the Disjunction Property.
I If A = โฮพ.Aโ, the last rule must be Rโ. That is, we have |- Aโ [a/ฮพ]. If |- โฮพ.Aโ is
provable, then |- Aโ[a/ฮพ] for some term a. This is called the Existence
Property.
12. The Cut rule - General Idea
The cut rule is an inference rule of sequent calculus. It is a generalisation of
the classical modus ponens rule, meaning - if formula A appears as conclusion
in one proof as hypothesis in another, then another proof in which formula A
does not appear can be deduced.
Example - occurences of man are eliminated to deduce Socrates is
mortal: Every man is mortal, Socrates is a man - Socrates is mortal.
The cut rule is the subject of an important theorem - the cut elimination
theorem, which states that any judgement that possesses a proof in the
sequent calculus that makes use of the cut rule also possesses a cut-free
proof(a proof that does not make use of cut rule).
13. The Cut rule and Identity Axiom
For every formula C, we have the identity axiom.
The cut rule:
The cut rule can be seen as the symmetric rule to identity axiom. The identity
axiom states C-left is stronger than C-right. The cut rule states C-right is
stronger than C-left
The cut rule is not welcome in proof search. How can an algorithm guess C to
prove A, A` |- B, B` ?
For every proof for a sequent, there is a cut-free proof for the same sequent.
So, no need for cut rule
14. Unpredictable Cut rule
The cut rule is absolutely unpredictable, since an arbitrary formula C
disappears: it cannot be recovered from the conclusions. The cut rule is only
rule which behaves in this way, all other rules have the property that the
unspecified context part is preserved intact.
For example: for A / B as a conclusion, A and B must have been used as
premises.
All rules expect cut have the property that premises are made up of sub-
formula of the conclusions. In fact, a cut-free proof of sequent uses only
subformula of its formula.
15. Subformula Property
The cut rule is unpredictable. So, there is no way to guess the cut formula C.
โ The immediate subformulae of A โง B, A โจ B, and A โ B are A and B;
โ The immediate subformulae of ยฌA is A;
โ The immediate subformulae of โฮพ.A and โฮพ.A are A[a/ฮพ] with any term a.
Except the cut rule, all rules preserve โcontextsโ (written A, Aโ , B, Bโ) and
change only one formula; moreover, the premises are immediate subformula
of the conclusion. This is called Subformula Property which is very useful in
automated deduction.
16. From Sequent Calculus to Natural Deduction
A proof of A|- B corresponds to deduction of B under parcels of hypotheses A.
Conversely, a deduction of B under parcels of hypotheses A can be
represented by a proof of A |- B.
Why not consider A |- B? - A deduction is for a formula, not formulae(s).
17. Identity Axiom and Cut rule - Translation
The identity group gives basic deductions.
For the identity axiom,
For the cut rule,
18. Structural rules Translation
Structural rules manage parcels. The rule LX is interpreted as the identity: the same
deduction before and after the rule.
For rule LW, add a new parcel. is interpreted as the creation of a mock parcel formed
from zero occurrences of C.
The rule LC merges two parcels.
19. Logical rules Translation
Right logical rules correspond to introduction. The rule Rโง will be interpreted by โงI
The rule Rโ will be interpreted by โI.
The rule Rโ will be interpreted by โI:
20. From Sequent Calculus to Natural Deduction
Left logical rules correspond to elimination.
The rule L1โง is interpreted by โง1E:
The rule Lโ is interpreted by โE:
The rule Lโ is interpreted by โE
21. Properties of translation
The translation from sequent calculus into natural deduction is not 1โ1: different proofs
give the same deduction, for example.
which differ only in the order of the rules, have the same translation:
Natural deductions reflect to our informal notion of โproofsโ more closely.
Sequent calculus on the other hand manipulates such โproofs.โ Hence, A |- B means a
โproofโ of B from A.
22. Some Remarks on Translation
Right logical rules in sequent calculus correpond to introduction rules in natural
deduction. The translation expands the deduction downwards (to the root).
Left logical rules in sequent calculus correspond to elimination rules in natural
deduction. The translation expands the deduction upwards (to leaves).
We can make the translation expand downwards by the cut rule.
23. Automatic proof generator for SC
Sequent calculus proof generators.
โ http://logitext.mit.edu/main
โ http://bach.istc.kobe-u.ac.jp/seqprover/
โ https://seqcalc.io/
Automatic ND to SC translator GAPT - General Architecture for proof theory.
โ https://logic.at/gapt
โ https://www.logic.at/gapt/release_archive.html
โ https://github.com/gapt/gapt
24. Sequent Calculus - example
Let's consider how to build a CL proof for |- ((A โง B) โง C) -> (B โง A) is true.
First, we begin with the sequent as the goal and notice that the primary
connective exposed in the only proposition available is implication, so we can
apply the right implication rule:
Next, we may break down the conjunction in the consequence B โง A with the
right conjunction rule, splitting the proof into two parts
25. Sequent Calculus - example
At this point, the consequences of both our goals are generic, lacking any
specific connectives to work with. Therefore, we must shift our attention to
the left and begin breaking down the hypotheses. Since the hypothesis
(AโงB)โงC contains a superfluous C, we use the first left conjunction rule in both
branches of the proof to discard it:
26. Sequent Calculus - example
Now we may apply another left conjunction rule to select the appropriate
hypothesis needed for both sub-proofs:
27. Sequent Calculus - example
And finally, we can now close off both sub-proofs with the Axiom, finishing the
proof: