cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A385712 Busy Beaver BBlambda_1 for lambda calculus with a BB (A333479) oracle: the maximum beta/oracle normal form size of any 1-closed lambda term of size n, or 0 if no 1-closed term of size n exists.

Original entry on oeis.org

0, 2, 0, 4, 5, 6, 7, 26, 9, 36, 41, 266, 51, 2894802230932904885589274625217197696331749616641014100986439600197828240998436
Offset: 1

Views

Author

John Tromp, Jul 07 2025

Keywords

Comments

A 1-closed term is a term in de Bruijn notation that is closed with 1 additional lambda in front. Any variable bound to that lambda is a free variable "f" in the term.
An oracle reduction step reduces f t, where t is a closed normal form of size s, to Church numeral BB(s).
The jump at a(14) is due to lambda term 1(1(\\1)). Subterm (1(\\1)) is an application of free variable f to a closed term of size 6 and thus oracle reduces to Church numeral BB(6) = C6. Next, (1 C6) is an application of free variable f to a closed term of size 36 and thus oracle reduces to Church numeral BB(36) = C(2^2^2^3) of size 6+5*2^2^2^3.
a(14) is also the last term that fits in this universe. Subsequent terms can be expressed in terms of function f(n) = 6+5*BB(n): a(15)=f(41) by 1(1(\\2)), a(16)=f(266) by 1(1(1(\1))), a(17)=f(51) by 1(1(\\\2)), a(18)=f^2(266) by 1(\1)1(\1), a(19)=f^2(41) by 1(1(1(\\2))), a(20)=f^4(266) by 1(\\1)1(\1), a(21)=f^5(266) by 1(\\2)1(\1), and a(22)=f^50(266) by 1(1(\1))1(\1).
a(28) >= f^BB(f^3(4))(4) by 1(\1)1(\1)1(\1).
a(29) >= f^{BB(f^{BB(f^4(4))+4}(4))+BB(f^4(4))+5}(4) by 1(\1)(\1 2 1)(\1).
This function is uncomputable even with access to a halting oracle.
We can generalize BB_1 to BB_a for ordinals a by using oracle function BB_{a-1} for successor ordinal a, and oracle function (\n -> BB_{a[n]}(n)) for limit ordinal a, assuming well-defined fundamental sequences up to a. Because of limited oracle inputs, all oracle busy beavers have identical values up to n=11.

Examples

			The only 1-closed term of size 2 is 1 (free variable f), which is in beta/oracle normal form, so a(2)=2.
The smallest example of an oracle reduction occurs in size 8 term 1 (\1). Since \1 has size 4, and BB(4)=4, reduction yields Church numeral C4 = \\2(2(2(2 1))) of maximal size a(8) = 26.
		

Crossrefs

Cf. A333479.

A333958 The number of closed lambda calculus terms of size n that have a normal form, where size(lambda M)=2+size(M), size(M N)=2+size(M)+size(N), and size(V)=1+i for a variable V bound by the i-th enclosing lambda.

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 1, 2, 1, 6, 5, 13, 14, 37, 44, 101, 134, 297, 431, 882, 1361, 2729, 4405, 8549, 14311, 27400, 47101, 89022, 156080, 293014, 521730
Offset: 1

Views

Author

John Tromp, Apr 22 2020

Keywords

Comments

This sequence is uncomputable, like the corresponding Busy Beaver sequence A333479, which takes the maximum normal form size of the a(n) terms that have one.

Examples

			This sequence first differs from A114852 at n=18 where it excludes the shortest term without a normal form (lambda x. x x)(lambda x. x x), hence a(18) = 298-1 = 297.
		

Crossrefs

Extensions

Terms > 2729 corrected by John Tromp, Mar 29 2025

A361211 Busy Beaver for the Binary Lambda Calculus (BLC) language BBλ2: the maximum output size of self-delimiting BLC programs of size n, or 0 if no program of size n exists.

Original entry on oeis.org

0, 0, 0, 0, 0, 4, 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 30, 42, 52, 44, 64, 223, 160
Offset: 1

Views

Author

John Tromp, Apr 09 2023

Keywords

Comments

Self-delimiting BLC programs are inputs p to the BLC universal machine U (defined in first link) that make U read all bits of p and none beyond. Formally, the only prefix p' of p for which U(p':Omega) has a normal form is p itself. The output of p is that normal form.
This Busy Beaver is directly related to Kolmogorov Complexity: a(n) = max {size(x)| KP(x) = n }, where KP is the prefix Kolmogorov complexity (defined in first link).
Because programs for U are at most a constant number of bits longer than programs for any prefix-free programming language, this busy beaver is optimal: for any other busy beaver BB based on self-delimiting programs, there is a constant c such that a(c+n) >= BB(n).
In particular, a(2+n) >= A333479(n), since for every closed term T, U(00 code(T) : Omega) = (lambda _. T) Omega = T. All entries above except for n=30 are of this form.
We can show that for some k, a(ceiling((113/114)*n) + k) > A333479(n), i.e., universality eventually pays off for BLC. See program link for the supporting computation. - Bertram Felgenhauer, Apr 10 2023

Examples

			The smallest closed lambda term is lambda x.x but its application to the unsolvable Omega lacks a normal form. The next smallest is lambda x.lambda y.y with encoding 000010 of size 6, which applied to Omega yields the normal form lambda x.x, giving a(6)=4.
a(30) = 64 because, with T=lambda x.lambda y.lambda z.x(z x), (lambda x.x x) T applied to Omega yields maximum size normal form lambda x.lambda y.lambda z.x T(z (x T)).
		

Crossrefs

Cf. A333479.
Showing 1-3 of 3 results.