De Bruijn notation
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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
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. 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 \mathcal{I} for which: \begin{align} \mathcal{I}(v) &= v \\ \mathcal{I}(\lambda v.\ M) &= [v]\;\mathcal{I}(M) \\ \mathcal{I}(M\;N) &= (\mathcal{I}(N))\mathcal{I}(M). \end{align} All operations on λ-terms commute with respect to the \mathcal{I} translation. For example, the usual β-reduction, (\lambda v.\ M)\;N\ \ \longrightarrow_\beta\ \ M[v := N] in the De Bruijn notation is, predictably, (N)\;[v]\;M\ \ \longrightarrow_\beta\ \ 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: \begin{align} (M)\;\underline{(N)\;[u]}\;(P)\;[v]\;[w]\;(Q)\;z &{\ \longrightarrow_\beta\ } (M)\;\underline{(P[u:=N])\;[v]}\;[w]\;(Q[u:=N])\;z \\ &{\ \longrightarrow_\beta\ } \underline{(M)\;[w]}\;(Q[u:=N,v:=P[u:=N]])\;z \\ &{\ \longrightarrow_\beta\ } (Q[u:=N,v:=P[u:=N],w:=M])\;z. \end{align} 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.
Cite this
"De Bruijn notation". 1788797396. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373743752 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy