ArticleslgStudy

mathematics

De Bruijn notation

De Bruijn notation is a mathematics 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 De Bruijn notation rather than just read about it. In short: In mathematical logic, the De Bruijn notation is a syntax for terms in the λ calculus invented by the Dutch mathematician Nicolaas Govert de Bruijn. It can be seen as a reversal of the usual syntax for the λ calculus where the argument in an application is placed next to its corresponding binder in the function instead of after the latter's body.

Key takeaways

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

Reference excerpt

In mathematical logic, the De Bruijn notation is a syntax for terms in the λ calculus invented by the Dutch mathematician Nicolaas Govert de Bruijn. It can be seen as a reversal of the usual syntax for the λ calculus where the argument in an application is placed next to its corresponding binder in the function instead of after the latter's body.

Formal definition Terms (M,N,…) in the De Bruijn notation are either variables (v), or have one of two wagon prefixes. The abstractor wagon, written [v], corresponds to the usual λ-binder of the λ calculus, and the applicator wagon, written (M), corresponds to the argument in an application in the λ calculus.

M,N,...::= v | [v]M | (M)N Terms in the traditional syntax can be converted to the De Bruijn notation by defining an inductive function ℐ for which:

ℐ(v)=vℐ(λv. M)=[v]ℐ(M)ℐ(MN)=(ℐ(N))ℐ(M). All operations on λ-terms commute with respect to the ℐ translation. For example, the usual β-reduction,

(λv. M)N ⟶β M[v:=N] in the De Bruijn notation is, predictably,

(N)[v]M ⟶β M[v:=N]. A feature of this notation is that abstractor and applicator wagons of β-redexes are paired like parentheses. For example, consider the stages in the β-reduction of the term (M)(N)[u](P)[v][w](Q)z, where the redexes are underlined:

(M)(N)[u]_(P)[v][w](Q)z ⟶β (M)(P[u:=N])[v]_[w](Q[u:=N])z ⟶β (M)[w]_(Q[u:=N,v:=P[u:=N]])z ⟶β (Q[u:=N,v:=P[u:=N],w:=M])z. Thus, if one views the applicator as an open paren ('(') and the abstractor as a close bracket (']'), then the pattern in the above term is '((](]]'. De Bruijn called an applicator and its corresponding abstractor in this interpretation partners, and wagons without partners bachelors. A sequence of wagons, which he called a segment, is well balanced if all its wagons are partnered.

Advantages of the De Bruijn notation In a well balanced segment, the partnered wagons may be moved around arbitrarily and, as long as parity is not destroyed, the meaning of the term stays the same. For example, in the above example, the applicator (M) can be brought to its abstractor [w], or the abstractor to the applicator. In fact, all commutative and permutative conversions on lambda terms may be described simply in terms of parity-preserving reorderings of partnered wagons. One thus obtains a generalised conversion primitive for λ-terms in the De Bruijn notation. Several properties of λ-terms that are difficult to state and prove using the traditional notation are easily expressed in the De Bruijn notation. For example, in a type-theoretic setting, one can easily compute the canonical class of types for a term in a typing context, and restate the type checking problem to one of verifying that the checked type is a member of this class. De Bruijn notation has also been shown to be useful in calculi for explicit substitution in pure type systems.

See also Mathematical notation

References

Worked examples

Example 1 — a first encounter with De Bruijn notation

Start with the simplest possible case. Write down what De Bruijn notation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 De Bruijn notation 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 De Bruijn notation 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 De Bruijn notation

In research
De Bruijn notation appears in mathematics 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 De Bruijn notation 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
De Bruijn notation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Lambda calculus, so understanding it makes those chapters shorter.
In everyday life
Look for De Bruijn notation 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 “De Bruijn notation” →

How to study De Bruijn notation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what De Bruijn notation 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 De Bruijn notation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is De Bruijn notation in simple terms?

In mathematical logic, the De Bruijn notation is a syntax for terms in the λ calculus invented by the Dutch mathematician Nicolaas Govert de Bruijn. It can be seen as a reversal of the usual syntax for the λ calculus where the argument in an application is placed next to its corresponding binder in…

Why does De Bruijn notation matter?

Because it connects several mathematics 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 De Bruijn notation?

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 De Bruijn notation.

Tags

  • Lambda calculus

Keep exploring