Languages Patterns Calendar About Lists Join

De Bruijn index

De Bruijn index

De Bruijn index is a notation created in 1972. In mathematical logic, the de Bruijn index is a tool invented by the Dutch mathematician Nicolaas Govert de Bruijn for representing terms of lambda calculus without naming the bound variables. Terms written using these indices are invariant with respect to 伪-conversion, so the check for 伪-equivalence is the same as that for syntactic equality. Each de Bruijn index is a natural number that represents an occurrence of a variable in a 位-term, and denotes the number of binders that are in scope between that occurrence and its corresponding binder. Read more on Wikipedia...

#1548on PLDB 50Years Old 250.0Users

Example code from the web:

位 位 位 3 1 (2 1)

Article source

PLDB - Build the next great programming language. v5.0.0 - Email Github