Arithmetic algorithms for hereditarily binary natural numbers

In a typed functional language we specify a new tree-based number representation, hereditarily binary numbers, defined by applying recursively run-length encoding of bijective base-2 digits. Hereditarily binary numbers support arithmetic operations that are limited by the structural complexity of their operands, rather than their bitsizes. As a result, they enable new algorithms that, in the best case, collapse the complexity of arithmetic computations by super-exponential factors and in the worst case are within a constant factor of their traditional counterparts.

[1]  Richard P. Brent,et al.  Modern Computer Arithmetic , 2010 .

[2]  R.K. Guy,et al.  On numbers and games , 1978, Proceedings of the IEEE.

[3]  Review: R. L. Goodstein, On the Restricted Ordinal Theorem , 1945 .

[4]  Paul Tarau,et al.  Declarative modeling of finite mathematics , 2010, PPDP.

[5]  Ming Li,et al.  An Introduction to Kolmogorov Complexity and Its Applications , 2019, Texts in Computer Science.

[6]  R. L. Goodstein,et al.  On the restricted ordinal theorem , 1944, Journal of Symbolic Logic.

[7]  Paul Tarau,et al.  On computing with types , 2012, SAC '12.

[8]  Jean Vuillemin,et al.  Efficient Data Structure and Algorithms for Sparse Integers, Sets and Predicates , 2009, 2009 19th IEEE Symposium on Computer Arithmetic.

[9]  Paul Tarau,et al.  Computing with Free Algebras , 2012, 2012 14th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing.

[10]  Maribel Fernández,et al.  Proceedings of the 12th international ACM SIGPLAN symposium on Principles and practice of declarative programming , 2010, PPDP 2010.

[11]  William E. Byrd,et al.  Pure, Declarative, and Constructive Arithmetic Relations (Declarative Pearl) , 2008, FLOPS.

[12]  Paul Tarau,et al.  New Arithmetic Algorithms for Hereditarily Binary Natural Numbers , 2014, 2014 16th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing.

[13]  Peter C. Chapin Formal languages I , 1973, CSC '73.

[14]  Boris G. Pittel,et al.  On the multiplicity of parts in a random partition , 1999, Random Struct. Algorithms.

[15]  D E Knuth,et al.  Mathematics and Computer Science: Coping with Finiteness , 1976, Science.

[16]  J. W. Bruce,et al.  A Really Trivial Proof of the Lucas-Lehmer Test , 1993 .

[17]  Michel Rigo,et al.  Numeration systems on a regular language: Arithmetic operations Recognizability and Formal power series , 1999, Theor. Comput. Sci..