Soft Linear Logic and Implicit Complexity
Prerequisites. Direct starred prerequisites: none. No later core chapter depends on this route.
In ordinary linear logic, contraction duplicates a reusable proof. Nested boxes may therefore duplicate boxes that duplicate boxes. A local statement such as “this variable is used twice” does not by itself bound the length of normalization. Soft Linear Logic controls the shape of exponential boxes so that a proof net of fixed depth has a polynomial normalization bound. The control is structural, not an input-dependent cost annotation [Laf04].
The SLL2 proof system
Lafont works with second-order intuitionistic linear logic. Formulas are
There is no digging rule. Soft promotion boxes a proof and puts a bang on every assumption at the same boundary. Multiplexing consumes one banged assumption and exposes a fixed finite number
Example 56.1 — Why digging matters¶
Ordinary linear logic may derive
Referenced from 2 locations
Exercise 56.1¶
Derive
Referenced from 3 locations
Proof nets, degree, rank, and weight
Proof nets quotient sequent derivations by inessential rule permutations. Atomic cells represent logical rules; a cut plugs the output of one net into an input of another. A soft-promotion rule gives an exponential box, and Multiplexing gives a cell labeled by its rank.
For a proof net
the degree
as the greatest nesting depth of exponential boxes;the rank
as the maximum label of a multiplexor, with a generic net viewed homogeneously at any chosen rank;the weight
as the polynomial obtained by summing cell weights.
An atomic right-logical cell and a constant have weight
For example, if
Exercise 56.2¶
Take
Referenced from 3 locations
Lemma 56.2 — External reduction decreases weight¶
Let
Referenced from 3 locations
Proof of Lemma 56.2 — External reduction decreases weight
Proof. Inspect the external interaction rules. A logical cut removes its principal right cell and matching left cell, so the positive unit contribution disappears. A quantifier interaction removes the outer quantifier box and therefore its added
Theorem 56.3 — Normalization invariant, Lafont Theorem 2¶
A proof net
Referenced from 4 locations
Proof of Theorem 56.3 — Normalization invariant, Lafont Theorem 2
Proof. By lemma 56.2, every step strictly decreases a natural number, so a sequence has length at most its initial weight. External proof net reduction is an interaction system: cells interact only through their principal ports. Its local diamonds give confluence, hence all terminating sequences have the same normal form up to commutation of independent reductions. ◻
Corollary 56.4 — Fixed-net polynomial¶
If
Referenced from 4 locations
Proof of Corollary 56.4 — Fixed-net polynomial
Proof. Induct on the net. Atomic and quantifier clauses preserve the bound after increasing
The qualification “fixed net” is load-bearing. If
Exercise 56.3¶
Take a family
Referenced from 3 locations
From typed nets to polynomial predicates
The boolean type and string type used in the representation construction are
Theorem 56.5 — Polynomial predicate representation, Lafont Theorem 9¶
If a predicate on Boolean strings is computed by a Turing machine in polynomial time
Referenced from 5 locations
Proof of Theorem 56.5 — Polynomial predicate representation, Lafont Theorem 9
Proof. Encode a string of length
The two directions now have matching interfaces. A fixed typed net has a fixed degree, so the weight invariant yields a polynomial in input rank. Conversely, theorem 56.5 builds a fixed generic net from a polynomial-time, polynomial-space machine. This is a complexity-class characterization at the representation boundary. It is not a symbolic cost formula for each source expression.
Exercise 56.4¶
Suppose
Referenced from 3 locations
A term shadow and its limits
Soft lambda calculus provides a term presentation whose sharing construct corresponds to multiplexing [BM04]. A well-formed term makes each duplicable value cross an explicit soft boundary; its rank is the greatest number of copies demanded by a sharing site. The term system is useful for programming examples, but the normalization proof above is the SLL2 proof-net invariant. A term translation must preserve degree, rank, and the simulated reduction before it may inherit that bound.
This condition blocks a tempting transfer to graded typing. A semiring grade may express exact use, an upper bound, sensitivity, or security. Nothing in the laws of an arbitrary semiring constructs exponential boxes, bounds their nesting, or supplies the decreasing polynomial
there is no AARA judgment or potential function in this chapter;
is indexed by proof-net rank, not by the numeric size of an ordinary program input;theorem 56.3 does not transfer to semiring-graded calculi without an explicit invariant-preserving translation.
Exercise 56.5¶
Write one sentence that could be concluded from theorem 56.3 and one AARA-style sentence that could not. For each, identify the quantity being bounded.
Referenced from 3 locations
A complete weight calculation
Let
Exercise 56.6¶
Replace the equation
Referenced from 3 locations
Sources and theorem boundary
The exact exponential rules are on page 3, the degree/rank/weight invariant and Theorem 2 are on pages 5–6, and the representation theorem is Theorem 9 on page 11 of Lafont [Laf04]. The programming-facing term comparison is bounded by Baillot and Mogbil’s soft lambda calculus [BM04]. No public proof assistant artifact is claimed. The chapter characterizes polynomial-time representation through fixed typed proof nets; it does not infer input-dependent costs for arbitrary graded programs.
Suggested first pass.
Do exercise 56.7, exercise 56.8 before the implementation problem.
Exercise 56.7¶
Rule audit. Reconstruct weakening, dereliction, and binary contraction as ranks
Referenced from 4 locations
Exercise 56.8¶
Invariant proof. For one multiplicative cut and one exponential cut, draw the local proof-net interaction and annotate the weight before and after.
Referenced from 4 locations
Exercise 56.9¶
Uniformity audit. Compare a fixed degree-
Referenced from 3 locations
Exercise 56.10¶
Representation. For a linear-time, constant-space finite-state predicate, calculate the number of string assumptions in theorem 56.5 and list the required generic components.
Referenced from 3 locations
Exercise 56.11¶
Practical project.sll-weight-checker The implemented calculus is a finite proof-net skeleton with atoms, additive pairs, exponential boxes, and quantifier boxes. Preserve the invariant that an external rank-artifacts/ch56-sll-weight/corpus.kp; the named pair of atoms inside two boxes must have weight PASS lines and empty audit in Appendix E. Add a nested box and rank-