SLIDE 1 On Hypersequents and Labelled Sequents
Translating Labelled Sequent Proofs to Hypersequent Proofs Robert Rothenberg 1 2
1School of Computer Science
University of St Andrews
2Interactive Information, Ltd
Edinburgh
Workshop in Honour of Roy Dyckhoff St Andrews, 18-19 November 2011
SLIDE 2
Extensions of Gentzen-style Sequent Calculi
Extensions to Gentzen-style sequent calculi obtained by changing to specific syntactic features [Paoli] in order to control proof search for non-classical logics, such as:
◮ Labelled Systems ◮ Multiple Sequents (e.g. higher-order sequents, hypersequents) ◮ Multi-sided Sequents ◮ Multi-arrow Sequents (e.g. sequents of relations) ◮ Multi-comma Systems (e.g. Display Logics) ◮ Deep Inference Systems (e.g. Calculus of Structures)
Many systems are hybrids of these, such as nested sequents or relational hypersequents.
SLIDE 3
Why Compare Formalisms?
◮ Interface vs implementation (automated proof assistants) ◮ Translating proofs of meta properties. ◮ Novel and interesting rules obtained from other formalisms. ◮ Formal criteria for comparing formalisms. ◮ Illuminate the meaning of particular syntactic features. ◮ Use abstraction to conceive of new extensions? (akin to
juggling notation...)
◮ Develop a hierarchy of the strength of proof systems.
SLIDE 4 Why Compare Labelled Sequents and Hypersequents?
◮ Folklore about relationship, but no published formal
comparison beyond specific calculi (mainly for S5).
◮ There are labelled and hypersequent calculi for overlapping
sets of logics. (Here we look at some Int∗ logics.)
◮ A comparison of the rules for some logics suggests a
SLIDE 5
Labelled Systems
◮ First labelled systems apparently introduced by [Kanger, 1957]
for S5 and [Maslov, 1967] for Int.
◮ The language of formulae is extended with a language of
annotations to control inference, e.g.
Γ⇒∆, Ay Γ⇒∆, Ax R
where y is fresh for the conclusion.
◮ Additional kinds of formulae based on labels may be used for
controlling inference, e.g. Rxy.
◮ Easily obtained using the relational semantics of a logic.
SLIDE 6 Syntax of Labelled Sequents
◮ Formulae in a sequent are annotated with labels, e.g. Ax.
Γx1
1 , . . . , Γxn n ⇒∆x1 1 , . . . , ∆xn n
◮ Sequents may also contain relational formulae which
indicate a relationship between labels , e.g. Rxy.
Rxi1xj1, . . . , Rxikxjk, Γx1
1 , . . . , Γxn n ⇒∆x1 1 , . . . , ∆xn n
◮ In some calculi, labels may be complex expressions, or may
contain variables. . .
◮ . . . relational formulae may be n-ary, occur on either side, or
even be “first class” and combined with formulae, e.g. Rxy ∧ (A ∨ B)x.
SLIDE 7
The Simple Relational Calculus G3I
◮ A labelled calculus with atomic labels and binary relations. ◮ A fragment of the calculus G3I from [Negri, 2005]:
Rxy, Σ; P x, Γ⇒∆, P y Rxy, Σ; (A⊃B)x, Γ⇒∆, Ay Rxy, Σ; (A⊃B)x, By, Γ⇒∆ Rxy, Σ; (A⊃B)x, Γ⇒∆
L⊃
Rxˆ y, Σ; Ay, Γ⇒∆, By Σ; Γ⇒∆, (A⊃B)x
R⊃
The rules for ∧, ∨ and ⊥ are standard.
◮ The pure relational rules (or “ordering rules”):
Rxx, Σ; Γ⇒∆ Σ; Γ⇒∆
refl
Rxz, Rxy, Ryz, Σ; Γ⇒∆ Rxy, Ryz, Σ; Γ⇒∆
trans
SLIDE 8
A Similar Calculus for BiInt
[Pinto & Uustalu, 2009] give a similar calculus for BiInt, with (aside from the dual of ⊃ ) contraction as a primitive rule and replacing the axiom with
Σ; Ax, Γ⇒∆, Ax Rxy, Σ; Ax, Ay, Γ⇒∆ Rxy, Σ; Ax, Γ⇒∆
Lmono
Rxy, Σ; Γ⇒∆, Ax, Ay Rxy, Σ; Γ⇒∆, Ay
Rmono
The mono rules are derivable in G3I using cut, e.g.:
. . . . Rxy, Σ; Ax, Γ⇒∆, Ay Rxy, Σ; Ax, Ay, Γ⇒∆ Rxy, Σ; Ax, Γ⇒∆
cut
SLIDE 9
Geometric Rules
◮ A geometric rule is a G3-style rule of the form
[ˆ ¯ z/¯ y]Σ1, Σ0, Γ⇒∆ . . . [ˆ ¯ z/¯ y]Σn, Σ0, Γ⇒∆ Σ0, Γ⇒∆
where the variables ˆ ¯ z do not occur free in the conclusion, and each Σi is a multiset of atoms.
◮ Geometric rules can be added to G3-style calculi without
affecting admissibility of cut, weakening or contraction. [Negri 2005] [Simpson 1994].
◮ A geometric implication [Palmgren 2002?] is a formula of
the form ∀¯ x.(A⊃B), without ⊃ , ∀ in subformulae of A, B. They are constructively equivalent to:
∀¯ x.((P10 ∧. . .∧Pk0)⊃∃¯ y.((P11 ∧. . .∧Pk1)∨. . .∨(P1n ∧. . .∧Pkn)))
◮ Frame conditions of many logics in Int∗ are geometric
implications.
SLIDE 10 Extending G3I for Geometric Intermediate Logics
◮ Adding rules that correspond to frame conditions of logics. . .
◮ Adding the “directedness” rule yields a calculus for Jan:
Rxˆ z, Ryˆ z, Rwx, Rwy, Σ; Γ⇒∆ Rwx, Rwy, Σ; Γ⇒∆
dir
◮ Adding the “linearity rule” yields a calculus for GD:
Rxy, Σ; Γ⇒∆ Ryx, Σ; Γ⇒∆ Σ; Γ⇒∆
lin
◮ Adding the “symmetry” rule yields a calculus for Cl:
Rxy, Ryx, Σ; Γ⇒∆ Rxy, Σ; Γ⇒∆
sym
◮ Weakening, contraction and cut admissibility is preserved.
SLIDE 11
Hypersequents
◮ Attributed to [Avron] although similar calculi occur in earlier
work by [Beth], [Sambin & Valentini], [Pottinger].
◮ A hypersequent is a non-empty list/multiset of sequents
Γ1⇒∆1 | . . . | Γn⇒∆n called its components.
◮ A hypersequent H is true in an interpretation I iff one of its
components, Γi⇒∆i ∈ H is true in that interpretation, i.e. ( ∧ ∧ Γ1 ⊃ ∨ ∨ ∆1) ∨ . . . ∨ ( ∧ ∧ Γn ⊃ ∨ ∨ ∆n)
SLIDE 12
Syntax of Hypersequents
◮ Internal rules are (structural) rules which have one active
component in each premiss, and one principal component in the conclusion. External rules are (structural) rules which are not internal rules.
◮ The standard external rules are
H H|Γ⇒∆ EW H|Γ⇒∆|Γ⇒∆ H|Γ⇒∆
EC
H|Γ′⇒∆′|Γ⇒∆|H′ H|Γ⇒∆|Γ′⇒∆′|H′ EP
where H, H′ denote the side components.
◮ The hyperextention of a sequent calculus is its extension as
a hypersequent calculus by adding hypercontexts to rules and the standard external rules.
SLIDE 13
A Hyperextention of a Calculus for Int
Γ, P⇒P, ∆ Ax Γ, ⊥⇒∆ L⊥ H|Γ⇒∆, ⊥ H|Γ⇒∆
R⊥
H|Γ, A⇒∆ H|Γ, B⇒∆ H|Γ, A ∨ B⇒∆
L∨
H|Γ⇒A, ∆ H|Γ⇒A ∨ B, ∆ R∨1 H|Γ⇒B, ∆ H|Γ⇒A ∨ B, ∆ R∨2 H|Γ⇒∆, A H|Γ, B⇒∆ H|Γ, A⊃B⇒∆
L⊃
H|Γ, A⇒B H|Γ⇒A⊃B, ∆ R⊃ H|Γ⇒∆ H|Γ, Γ′⇒∆, ∆′ W H|Γ, Γ′, Γ′⇒∆, ∆′, ∆′ H|Γ, Γ′⇒∆, ∆′
C
plus the dual ∧ rules and standard external rules and (hyperextended) cut.
SLIDE 14
Extensions for Some Intermediate Logics
◮ Adding the LQ rule yields a calculus for Jan:
H|Γ1, Γ2⇒ H|Γ1⇒ |Γ2⇒
LQ
◮ Adding the communication rule yields a calculus for GD:
H|Γ1, Γ2⇒∆1 H|Γ1, Γ2⇒∆2 H|Γ1⇒∆1|Γ2⇒∆2
Com
◮ Adding the split rule yields a calculus for Cl:
H|Γ1, Γ2⇒∆1, ∆2 H|Γ1⇒∆1|Γ2⇒∆2
S
SLIDE 15
The Labelled and Hypersequent Rules Look Similar
Hypersequent Rule Relational Rule H|Γ1, Γ2⇒ H|Γ1⇒|Γ2⇒ Rxˆ z, Ryˆ z, Rwx, Rwy,Σ; Γ⇒∆ Rwx, Rwy,Σ; Γ⇒∆ H|Γ1, Γ2⇒∆1 H|Γ1, Γ2⇒∆2 H|Γ1⇒∆1|Γ2⇒∆2 Rxy, Σ; Γ⇒∆ Ryx, Σ; Γ⇒∆ Σ; Γ⇒∆ H|Γ1, Γ2⇒∆1, ∆2 H|Γ1⇒∆1|Γ2⇒∆2 Rxy, Ryx, Σ; Γ⇒∆ Rxy, Σ; Γ⇒∆
Components roughly correspond to labels, and relational formula roughly correspond to subset relations.
SLIDE 16
Translation of Labelled Sequents to Hypersequents
◮ We want a translation of proofs in labelled systems like G3I∗
to (familiar) hypersequent systems.
◮ Each label corresponds to a component. ◮ Relations are translated using monotonicity: Rxy is translated
by including the antecedent (r. succedent) of the component for x (r. y) as a subset of the antecedent (r. succedent) of the component for y (r. x). e.g.,
Rxy, Ax, By⇒Cx, Dy → A⇒C, D | A, B⇒D
The process is called transitive unfolding.
◮ The translation makes an explicit relationship between labels
into an implicit relationship between components.
SLIDE 17
Labelled Calculi are More Expressive than Hypersequents
◮ The two labelled sequents,
Rxy, Rxz; Γx⇒ Rxy, Ryz; Γx⇒
both translate to the same hypersequent,
Γ⇒ | Γ⇒ | Γ⇒
◮ What do relations mean w.r.t. hypersequents? e.g. The
following holds for Int models:
Rxy; (A ∨ B)x, (B ⊃C)y⇒Ax, Cy
but the corresponding hypersequent is not derivable for Int:
A ∨ B⇒A, C | A ∨ B, B ⊃C⇒C
SLIDE 18
Hypersequents and Monotonicity
◮ Ideally, we’d like hypersequent rules to act on multiple
components in accordance with monotonicity, just as labelled rules do.
◮ But the following rule is not valid for Int:
H|A, Γ⇒∆, ∆′|A, Γ, Γ′⇒∆′ H|A, Γ⇒∆, ∆′|Γ, Γ′⇒∆′
L ⊆
◮ A simple counterexample is
A⇒A ∧ B|A, B⇒A ∧ B A⇒A ∧ B|B⇒A ∧ B
L ⊆
which is valid for GD = Int + (A⊃B) ∨ (B ⊃A).
SLIDE 19
The Translation Requires Communication
Theorem
Labelled proofs in G3I∗ (that do not contain ordering rules with principal relational formulae) can be translated into hypersequent proofs in a corresponding calculus augmented with the Com rule,
H|Γ⇒∆, ∆′|Γ, Γ′⇒∆′ H|Γ, Γ′⇒∆|Γ′⇒∆, ∆′ H|Γ⇒∆|Γ′⇒∆′
Com
◮ Labelled rules and proofs for some logics Int∗ can be
translated into hypersequent proofs for GD∗.
◮ The restriction on ordering rules has to do with the
admissibility of cut. A rule such as
Ryx, Rxy, Ryz; Γ⇒∆ Rzy, Rxy, Ryz; Γ⇒∆ Rxy, Ryz; Γ⇒∆
bd2
translates to hypersequent rules with duplicated metavariables in the conclusion, and that may affect cut admissibility. (⋆)
SLIDE 20 Translation of Proofs
◮ Note that this work is about translating proofs of arbitrary
labelled sequents (with relations) into hypersequents.
◮ The communication rule allows us to derive hypersequent
variants of the labelled rules.
◮ We proceed by transitive unfolding the premisses of each
labelled inference and then applying the hypersequent variant
- f the inference rule, to obtain a conclusion that is the
transitive unfolding of the conclusion of the labelled inference.
◮ The refl, trans and mono rules are ignored as they are implicit
in the translation. (⋆)
SLIDE 21
Monotonicity Rules
Lemma
The rules
H|A, Γ⇒∆, ∆′|A, Γ, Γ′⇒∆′ H|A, Γ⇒∆, ∆′|Γ, Γ′⇒∆′
L⊂ ∼
H|Γ⇒∆, ∆′, A|Γ, Γ′⇒∆′, A H|Γ⇒∆, ∆′|Γ, Γ′⇒∆′, A
R⊂ ∼
are derivable using Com.
Proof.
H|A, Γ⇒∆, ∆′|A, Γ, Γ′⇒∆′ H|A, Γ⇒∆, ∆′2|A, Γ, Γ′⇒∆′ W H|A, Γ⇒∆, ∆′|A, Γ, Γ′⇒∆′ H|A, Γ, Γ′⇒∆, ∆′|A, Γ, Γ′⇒∆′ W H|A, Γ, Γ′⇒∆, ∆′2
(RS)
H|A, Γ, Γ′⇒∆, ∆′
C
H|A, Γ, Γ′|Γ′⇒∆2, ∆′ EW H|A, Γ⇒∆, ∆′|Γ, Γ′⇒∆′
Com
The proof of R⊂ ∼ is similar.
SLIDE 22
Parallel Hypersequent Rules
Lemma
The rule
H|A, Γ1⇒∆1| . . . |A, Γk⇒∆k H|B, Γ1⇒∆1| . . . |B, Γk⇒∆k H|A ∨ B, Γ1⇒∆1| . . . |A ∨ B, Γk⇒∆k
L ∨ ⋆
where Γi ⊆ Γi+1 and ∆i+1 ⊆ ∆i, is derivable using Com. The dual rule R ∧ ⋆ is similarly derivable. A L⊃⋆ rule is also derivable, using the derived monotonicity rules.
SLIDE 23 An Example Translation
Rxx, Rxy; Ax⇒Ax, Cy Rxy; Ax⇒Ax, Cy Ryy, Rxy; Bx, By, (B ⊃C)y⇒By Ryy; Cy, (B ⊃C)y⇒Cy Ryy, Rxy; Bx, By, (B ⊃C)y⇒Cy Rxy; Bx, By, (B ⊃C)y⇒Cy Rxy; Bx, (B ⊃C)y⇒Cy Rxy; (A ∨ B)x, (B ⊃C)y⇒Ax, Cy A⇒A, C|A, B ⊃C⇒C A⇒A, C|A, B ⊃C⇒C B⇒A, C|B, B ⊃C⇒B, C B⇒A, C|C, B ⊃C⇒C B⇒A, C|B, B ⊃C⇒C B⇒A, C|B, B ⊃C⇒C B⇒A, C|B, B ⊃C⇒C A ∨ B⇒A, C|A ∨ B, B ⊃C⇒C
SLIDE 24
Related Work (1)
◮ Hypersequents and labelled calculi for S5, [Avron, 1996], etc. ◮ Hypersequents and Display Logics for specific logics,
[Wansing, 1998], and labelled calculi for S5, [Restall, 2006].
◮ Hypersequents and labelled calculi for A and
L, [Metcalfe et al, 2002].
◮ Starred sequents, hypersequents and indexed sequents for S5
and N3, [P. Girard, 2005].
◮ Relationship between labelled calculi and nested sequents for
modal logics [Fitting, 2010].
SLIDE 25
Related Work (2)
◮ Obtaining labelled calculi from non-labelled (e.g. Hilbert and
sequent) calculi, [Gabbay, 1996].
◮ Obtaining (hyper)sequent rules from Hilbert-style axioms
[Ciabattoni et al, 2008].
◮ Syntactic conditions for cut admissibility [Ciabattoni et al,
2009].
◮ Labelled sequent calculi with geometric rules, for non-classical
logics [Negri, 2005], spec. for intermediate logics [Dyckhoff & Negri, 2010 (MS)].
SLIDE 26
Open Questions and Future Work
◮ Do rules with non-linear conclusions (e.g. bd2) admit cut in
the presence of Com?
◮ Can hypersequent proofs of single components be transformed
so that they do not have Com, for logics weaker than GD?
◮ Can transformation of labelled proofs into hypersequent
proofs give a technique for parallelising programs?