ArticleslgStudy

engineering

Linear logic

Linear logic is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Linear logic rather than just read about it. In short: Linear logic is a substructural logic proposed by French logician Jean-Yves Girard as a refinement of classical and intuitionistic logic, joining the dualities of the former with many of the constructive properties of the latter. Although the logic has also been studied for its own sake, more broadly, ideas from linear logic have been influential in fields such as programming languages, game semantics, and quantum p…

Key takeaways

  • Linear logic belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Linear logic to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Linear logic from memory before moving on to harder problems.

Reference excerpt

Linear logic is a substructural logic proposed by French logician Jean-Yves Girard as a refinement of classical and intuitionistic logic, joining the dualities of the former with many of the constructive properties of the latter. Although the logic has also been studied for its own sake, more broadly, ideas from linear logic have been influential in fields such as programming languages, game semantics, and quantum physics (because linear logic can be seen as the logic of quantum information theory), as well as linguistics, particularly because of its emphasis on resource-boundedness, duality, and interaction. Linear logic lends itself to many different presentations, explanations, and intuitions. Proof-theoretically, it derives from an analysis of classical sequent calculus in which uses of (the structural rules) contraction and weakening are carefully controlled. Operationally, this means that logical deduction is no longer merely about an ever-expanding collection of persistent "truths", but also a way of manipulating resources that cannot always be duplicated or thrown away at will. In terms of simple denotational models, linear logic may be seen as refining the interpretation of intuitionistic logic by replacing cartesian (closed) categories by symmetric monoidal (closed) categories, or the interpretation of classical logic by replacing Boolean algebras by C*-algebras.

Notation comparison This article follows Girard's notation. For readers who are familiar with different notations, the following table, compiled by Paoli 2002, compares the notations for linear-logic connectives and constants across several sources.

Connectives, duality, and polarity

Syntax

The language ℒ of classical propositional linear logic can be defined recursively as follows.

If φ is an atomic formula, then φ is a formula of ℒ. If φ is an atomic formula, then φ⊥ is a formula of ℒ. If φ and ψ are formulas of ℒ, then φ⊗ψ is too. If φ and ψ are formulas of ℒ, then φ ⅋ ψ is too. If φ and ψ are formulas of ℒ, then φ & ψ is too. If φ and ψ are formulas of ℒ, then φ⊕ψ is too. If φ is a formula of ℒ, then !φ is too. If φ is a formula of ℒ, then ?φ is too. 𝟏 is a formula of ℒ. ⊥ is a formula of ℒ. ⊤ is a formula of ℒ. 𝟎 is a formula of ℒ. Here p and p⊥ range over logical atoms. For reasons to be explained below, the connectives ⊗, ⅋, 1, and ⊥ are called multiplicatives, the connectives &, ⊕, ⊤, and 0 are called additives, and the connectives ! and ? are called exponentials. We can further employ the following terminology:

Binary connectives ⊗, ⊕, & and ⅋ are associative and commutative; 1 is the unit for ⊗, 0 is the unit for ⊕, ⊥ is the unit for ⅋ and ⊤ is the unit for &. Every proposition A in CLL has a dual A⊥, defined as follows:

Observe that (-)⊥ is an involution, i.e., A⊥⊥ = A for all propositions. A⊥ is also called the linear negation of A. The columns of the table suggest another way of classifying the connectives of linear logic, termed polarity: the connectives negated in the left column (⊗, ⊕, 1, 0, !) are called positive, while their duals on the right (⅋, &, ⊥, ⊤, ?) are called negative; cf. table on the right. Linear implication is not included in the grammar of connectives, but is definable in CLL using linear negation and multiplicative disjunction, by A ⊸ B:= A⊥ ⅋ B. The connective ⊸ is sometimes pronounced "lollipop", owing to its shape.

Sequent calculus presentation One way of defining linear logic is as a sequent calculus. We use the letters Γ and Δ to range over finite lists of propositions A1, ..., An, also called contexts. A sequent places a context to the left and the right of the turnstile, written Γ ⊢ Δ. Intuitively, the sequent asserts that the conjunction of Γ entails the disjunction of Δ (though we mean the "multiplicative" conjunction and disjunction, as explained below). Girard describes classical linear logic using only one-sided sequents (where the left-hand context is empty), and we follow here that more economical presentation. This is possible because any premises to the left of a turnstile can always be moved to the other side and dualised. We now give inference rules describing how to build proofs of sequents. First, to formalize the fact that we do not care about the order of propositions inside a context, we add the structural rule of exchange:

Note that we do not add the structural rules of weakening and contraction, because we do care about the absence of propositions in a sequent, and the number of copies present. Next we add initial sequents and cuts:

The cut rule can be seen as a way of composing proofs, and initial sequents serve as the units for composition. In a certain sense these rules are redundant: as we introduce additional rules for building proofs below, we will obtain the property that arbitrary initial sequents can be derived from atomic initial sequents, and that whenever a sequent is provable it can be given a cut-free proof. Ultimately, this canonical form property (which can be divided into the completeness of atomic initial sequents and the cut-elimination theorem, inducing a notion of analytic proof) lies behind the applications of linear logic in computer science, since it allows the logic to be used in proof search and as a resource-aware lambda-calculus. Now, we explain the connectives by giving logical rules. Typically in sequent calculus one gives both "right-rules" and "left-rules" for each connective, essentially describing two modes of reasoning about propositions involving that connective (e.g., verification and falsification). In a one-sided presentation, one instead makes use of negation: the right-rules for a connective (say ⅋) effectively play the role of left-rules for its dual (⊗). So, we should expect a certain "harmony" between the rule(s) for a connective and the rule(s) for its dual.

Multiplicatives The rules for multiplicative conjunction (⊗) and disjunction (⅋):

and for their units:

Observe that the rules for multiplicative conjunction and disjunction are admissible for plain conjunction and disjunction under a classical interpretation (i.e., they are admissible rules in LK).

Additives The rules for additive conjunction (&) and disjunction (⊕):

and for their units:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Linear logic

Start with the simplest possible case. Write down what Linear logic claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Linear logic before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Linear logic ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Linear logic

In research
Linear logic appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Linear logic in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Linear logic is common in secondary-school and first-year university syllabi. It links to neighbouring topics Linear logic, Logic, Non-classical logic, so understanding it makes those chapters shorter.
In everyday life
Look for Linear logic outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Linear logic” →

How to study Linear logic in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Linear logic means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Linear logic out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Linear logic in simple terms?

Linear logic is a substructural logic proposed by French logician Jean-Yves Girard as a refinement of classical and intuitionistic logic, joining the dualities of the former with many of the constructive properties of the latter. Although the logic has also been studied for its own sake, more broad…

Why does Linear logic matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Linear logic?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Linear logic.

Tags

  • Linear logic
  • Logic
  • Non-classical logic
  • Substructural logic

Keep exploring