De Bruijn Numerals
text.marvinborner.de·14w·
  • Arithmetic

  • Hybrid

  • Projections assumptions in this post

  • understanding of pure lambda calculus

  • zero-based de Bruijn indices instead of named variables

  • nn consecutive lambdas are written as λn\lambda^n

  • ⟨n⟩e\langle n\rangle_e encodes n∈N0n\in\mathbb{N}_0 as a lambda calculus term of encoding ee

  • S(n)S(n) is the Peano successor function

There are many ways to encode numbers and do arithmetic in the pure lambda calculus, for example using unary Church numerals, various nn-ary representations, and the [Scott encoding](https://en.wikipedia.org/wiki/Mogensen–Scott…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help