Papers
Topics
Authors
Recent
Search
2000 character limit reached

Focal Rewriting in Sequent Calculus

Updated 5 July 2026
  • Focal rewriting is a rewriting system where classical cut elimination is restricted by focusing, turning a non-confluent process into a confluent one.
  • It employs the Curien–Herbelin syntactic kit to reveal a duality between terms, contexts, and commands, supporting dual evaluation strategies like call-by-name and call-by-value.
  • The framework introduces finitary syntax with patterns and counterpatterns that quotient away negative connective decomposition order, streamlining proof construction.

Searching arXiv for the cited paper and closely related work on focal rewriting, focusing, and rewriting frameworks. Focal rewriting denotes cut elimination as a rewriting system restricted by the focusing discipline, so that only reductions compatible with the phase structure of proof search are allowed. In the formulation developed in “The duality of computation under focus” (Curien et al., 2010), it is the operational face of classical sequent calculus under polarity, expressed through the Curien–Herbelin syntactic kit of terms, contexts, and commands. Its central claim is that the focused restriction turns general classical cut elimination—which is non confluent—into a simple confluent rewriting system; its strongest formulation replaces trees of focal decompositions by a finitary syntax of patterns and counterpatterns that quotients away the order of decomposition of negative connectives (Curien et al., 2010).

1. Duality of computation and the focused viewpoint

The underlying framework is the Curien–Herbelin syntactic kit, a sequent-calculus-inspired λ\lambda-calculus with an explicit duality between terms (expressions), contexts (stacks, continuations), and commands. In core λμμ~\lambda\mu\tilde\mu style, commands are of the form c::=Mec ::= \langle M \mid e\rangle (written in the paper as Me{M}{e}), expressions include variables, abstractions, and μα.c\mu\alpha.c, and contexts include continuation variables, stacks, and μ~x.c\tilde\mu x.c. The typing discipline uses three judgments: ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta). Here Γ\Gamma and Δ\Delta are multisets of formulas, and (ΓΔ)(\Gamma \vdash \Delta) is a classical sequent. Terms and contexts are dual; λμμ~\lambda\mu\tilde\mu0 captures a continuation λμμ~\lambda\mu\tilde\mu1 and gives a term, while λμμ~\lambda\mu\tilde\mu2 captures a variable λμμ~\lambda\mu\tilde\mu3 and gives a context (Curien et al., 2010).

This duality is also the basis for the paper’s treatment of evaluation strategy. Call-by-name and call-by-value appear as a dual pair of focal evaluation strategies: in CBV, contexts consume values, while in CBN, contexts consume expressions in a stack-like way. The paper identifies these as two dual focused sequent calculi, λμμ~\lambda\mu\tilde\mu4 and λμμ~\lambda\mu\tilde\mu5, built on the same syntactic kit. A plausible implication is that focal rewriting is not merely a normalization discipline for proofs; it is also a typed operational semantics for classical computation in which continuations and variables are treated symmetrically.

The term focus is inherited from Andreoli’s focalisation discipline. In the classical setting of the paper, proof search alternates between a left phase (negative phase), where one repeatedly applies reversible rules on the left and may stop at any time, and a right phase (positive phase), where one chooses one formula on the right to focus on and decomposes it hereditarily using irreversible rules until reaching either an axiom or a right negation, which returns the derivation to a left phase (Curien et al., 2010).

2. Abstract machines, sequent calculus, and the λμμ~\lambda\mu\tilde\mu6 kit

A distinctive feature of the theory is that it is obtained by reading sequent-calculus structure directly out of abstract machines. For call-by-name, a Krivine machine configuration has the form λμμ~\lambda\mu\tilde\mu7, where λμμ~\lambda\mu\tilde\mu8 is a λμμ~\lambda\mu\tilde\mu9-term and c::=Mec ::= \langle M \mid e\rangle0 is a stack or continuation. The operational rules

c::=Mec ::= \langle M \mid e\rangle1

already have the shape of sequent-calculus cut. Typing is again stratified into expressions, contexts, and commands, and the command-typing rule

c::=Mec ::= \langle M \mid e\rangle2

is explicitly identified as cut (Curien et al., 2010).

For control, Felleisen’s c::=Mec ::= \langle M \mid e\rangle3 is internalized by Parigot’s c::=Mec ::= \langle M \mid e\rangle4-binder: c::=Mec ::= \langle M \mid e\rangle5 Typing becomes fully classical,

c::=Mec ::= \langle M \mid e\rangle6

with activation

c::=Mec ::= \langle M \mid e\rangle7

and the reduction rule

c::=Mec ::= \langle M \mid e\rangle8

The call-by-value side introduces the dual binder c::=Mec ::= \langle M \mid e\rangle9 through

Me{M}{e}0

with typing

Me{M}{e}1

and reduction

Me{M}{e}2

Combining Me{M}{e}3 and Me{M}{e}4 yields the Curien–Herbelin Me{M}{e}5-calculus: Me{M}{e}6 equipped with a fourth judgment for values. The resulting CBV-flavored reductions are

Me{M}{e}7

These equations are the direct computational substrate from which focal rewriting is later extracted (Curien et al., 2010).

3. LK as a rewrite system and the role of explicit substitutions

The next step is a term language for classical sequent calculus Me{M}{e}8 with conjunction, disjunction, and negation. Sequents occur in three forms: Me{M}{e}9 The syntax is deliberately dissymmetric in a way that anticipates polarity. On the right, negation introduction is μα.c\mu\alpha.c0, conjunction introduction is μα.c\mu\alpha.c1, and disjunction introduction uses two separate rules μα.c\mu\alpha.c2 or μα.c\mu\alpha.c3. On the left, conjunction and disjunction are reversible through μα.c\mu\alpha.c4 and μα.c\mu\alpha.c5. The crucial design choice is that right disjunction is an irreversible choice, while left conjunction is reversible; this is exactly the later split between positive and negative behavior (Curien et al., 2010).

To make cut elimination rewrite-theoretic, the paper refines the syntax into an “atomic” form with explicit substitutions: μα.c\mu\alpha.c6

μα.c\mu\alpha.c7

μα.c\mu\alpha.c8

An explicit substitution is a list

μα.c\mu\alpha.c9

This allows multi-cut to be represented uniformly, including cases where the active cut formula is not the one immediately visible in a μ~x.c\tilde\mu x.c0 redex (Curien et al., 2010).

Cut elimination is then split into three classes of rules. The control rules initiate substitution: μ~x.c\tilde\mu x.c1 The logical rules eliminate principal cuts, for example

μ~x.c\tilde\mu x.c2

μ~x.c\tilde\mu x.c3

and the two disjunction branches. The commutative rules are given not as separate permutative conversions for each connective, but as propagation of explicit substitutions: μ~x.c\tilde\mu x.c4 together with variable lookup and pushing substitutions under binders. The paper summarizes this by the slogan:

“Commutative cut elimination rules are explicit substitution propagation rules.”

This slogan is exact, not metaphorical: the commutative cut rules of proof theory are identified with the uniform propagation behavior of μ~x.c\tilde\mu x.c5 (Curien et al., 2010).

At the unrestricted μ~x.c\tilde\mu x.c6 level, rewriting is non confluent. The paper explicitly contrasts this with Lafont’s critical pair

μ~x.c\tilde\mu x.c7

which witnesses the “wild non-confluence” of general classical cut elimination. Focal rewriting arises by forbidding precisely these unfocused symmetric situations (Curien et al., 2010).

4. Focused restriction, phase structure, and confluence

The focused system μ~x.c\tilde\mu x.c8 and its term language μ~x.c\tilde\mu x.c9 impose polarity directly on syntax and typing. Positive formulas are generated by

ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).0

while negative formulas are their De Morgan duals. The calculus adds a stoup judgment for values,

ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).1

and distinguishes values from general expressions: ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).2 Typing enforces that right introduction of ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).3, ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).4, and ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).5 always builds a value; left introduction is performed by the ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).6-binders; and values may be coerced to expressions via ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).7. The paper annotates phase transitions explicitly by ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).8 for positive-phase steps and ΓM:AΔ,Γe:AΔ,c:(ΓΔ).\Gamma \vdash M : A \mid \Delta,\qquad \Gamma \mid e : A \vdash \Delta,\qquad c : (\Gamma \vdash \Delta).9 for negative-phase steps (Curien et al., 2010).

The focal rewrite system retains the same three classes of rules—control, logical, and commutation—but only for focal redexes. The key examples are

Γ\Gamma0

Γ\Gamma1

Γ\Gamma2

plus the two disjunction branches and the same generic substitution propagation machinery. What changes is the shape of redexes: the critical pair Γ\Gamma3 has only one reduction path, because the focusing discipline blocks the symmetric alternative (Curien et al., 2010).

The paper proves that the system is an orthogonal higher-order rewrite system in the sense of Nipkow: the rules are left-linear and there are no critical pairs. Hence it is confluent. It also proves weak normalization, subject reduction, a characterization of normal forms as contractions such as Γ\Gamma4 and Γ\Gamma5, and completeness: if Γ\Gamma6 is provable in Γ\Gamma7, then it is provable in Γ\Gamma8. Together with cut elimination for Γ\Gamma9, this yields the focalisation theorem that every sequent provable in Δ\Delta0 has a cut-free focalised proof (Curien et al., 2010).

System Restriction Rewriting behavior
Δ\Delta1 term language none non confluent
Δ\Delta2 / Δ\Delta3 values and phase discipline confluent
Δ\Delta4 patterns/counterpatterns quotients negative-order bureaucracy

A common misconception is that focusing is only a proof-search heuristic. In this formulation, it also supplies a canonical operational semantics for classical calculi with control: the focused restriction is what removes Lafont’s critical pair and makes rewriting orthogonal (Curien et al., 2010).

5. Strong focalisation: patterns, counterpatterns, and synthetic connectives

The final strengthening of focal rewriting is the passage to a pattern–counterpattern game and the synthetic calculus Δ\Delta5. The first step restricts left contexts to a single Δ\Delta6, where counterpatterns are generated by

Δ\Delta7

A counterpattern encodes the whole left decomposition of a positive formula in one object. For example, for Δ\Delta8 the counterpattern

Δ\Delta9

captures the conjunction/disjunction tree shape uniformly (Curien et al., 2010).

The second step introduces patterns and synthetic values. Elementary values are

(ΓΔ)(\Gamma \vdash \Delta)0

patterns are

(ΓΔ)(\Gamma \vdash \Delta)1

and a value is written as

(ΓΔ)(\Gamma \vdash \Delta)2

Thus a value is a pattern skeleton decorated with basic leaves. Patterns and counterpatterns are linear in the precise sense stated in the paper: each variable or (ΓΔ)(\Gamma \vdash \Delta)3 appears at most once in a pattern, while in a counterpattern a variable may appear twice in a sum (ΓΔ)(\Gamma \vdash \Delta)4 but only in compatible ways (Curien et al., 2010).

Interaction is governed by the orthogonality relation (ΓΔ)(\Gamma \vdash \Delta)5, defined inductively by matching variables, negations, products, and sums. Contexts become records over patterns,

(ΓΔ)(\Gamma \vdash \Delta)6

and the focal logical rule (ΓΔ)(\Gamma \vdash \Delta)7 performs an entire focal phase in one step: given a value (ΓΔ)(\Gamma \vdash \Delta)8 with pattern (ΓΔ)(\Gamma \vdash \Delta)9 orthogonal to λμμ~\lambda\mu\tilde\mu00, the reduction selects the branch λμμ~\lambda\mu\tilde\mu01 and substitutes the leaves of the pattern into it. The paper formulates this as: pattern–counterpattern matching picks the appropriate branch λμμ~\lambda\mu\tilde\mu02 and substitutes the leaves of the pattern into it (Curien et al., 2010).

The significance of the synthetic system is proof-theoretic quotienting. Because patterns abstract away the order of decomposition of negative connectives, different focalised proof trees that differ only by that order map to the same pattern/counterpattern derivation. The paper’s example is

λμμ~\lambda\mu\tilde\mu03

where decomposing the left tensor first or the right tensor first yields different trees in λμμ~\lambda\mu\tilde\mu04, but the same pattern

λμμ~\lambda\mu\tilde\mu05

and the same counterpattern in λμμ~\lambda\mu\tilde\mu06. This is why the paper describes the result as a fully focalised finitary syntax and as a quotient on focalised proofs (Curien et al., 2010).

6. Broader rewriting contexts and later interpretations

The sense of focal rewriting just described is specific to focused sequent calculus and classical computation. A broader literature suggests related, but distinct, uses of “focus” as locality, priority, or controlled overlap.

In network rewriting over PROPs, rewriting steps are inherently localized to a chosen subexpression or embedding. “Network Rewriting I: The Foundation” develops a subexpression concept with both algebraic and graph-theoretic characterisations, based on symmetric join, homeomorphisms, and embeddings, and treats ambiguities as interactions between such local foci (Hellström, 2012). This suggests a graph-theoretic analogue of focal rewriting in which the focus is an embedded subnetwork rather than a focal proof phase.

In higher-dimensional rewriting, “Rewriting in Gray categories with applications to coherence” studies critical branchings in precategories and Gray presentations. It shows that a finite rewriting system in precategories admits a finite number of critical pairs, extends Squier’s theorem to this setting, and proves coherence from convergence for structures such as monoids, adjunctions, and Frobenius monoids (Forest et al., 2021). Here the relevant notion of focus is the minimal local branching at which two 3-cells overlap.

In finite-state string rewriting, “Compiling Rewrite Rules to Finite-State Transducers with the Worsening Trick” presents what the details explicitly describe as a finite-state account of “focal rewriting”: generate all legal rewrite candidates, then filter candidates that are worse than another candidate for the same input. Obligatory, leftmost, longest, shortest, weighted, and parallel behaviors are all expressed by regular worsening relations over candidate rewrites (Hulden et al., 8 Jun 2026). The family resemblance to focal rewriting in logic lies in restricting the operational space to undominated candidates under a discipline of preference.

Other adjacent usages are more metaphorical. “RewriteLM” states that “focal rewriting” is not a term used in the paper, but the model is designed for targeted, controllable text rewriting under natural-language instructions such as formality, conciseness, elaboration, tone, or lexical substitution (Shu et al., 2023). Likewise, “Rewriting in Free Hypergraph Categories” does not use the phrase, but its DPOI account of rewriting modulo Frobenius structure yields interface-based local rewriting in which structural bureaucracy is absorbed into the hypergraph representation (Zanasi, 2017).

Across these settings, the strongest common thread is controlled locality: in focused proof theory, locality is phase-structured cut elimination; in network, hypergraph, Gray-category, and finite-state settings, it is a restriction on where or how rewrites are allowed to compete. The specific technical meaning of focal rewriting, however, remains the one fixed by the focused classical calculus of Curien–Herbelin syntax, explicit substitutions, and confluent cut elimination under focus (Curien et al., 2010).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Focal Rewriting.