Kraft-Chaitin Inequality Revisited

Similar documents
Randomness and Recursive Enumerability

Chaitin Ω Numbers and Halting Problems

Invariance Properties of Random Sequences

Universality and Almost Decidability

The Riemann Hypothesis. Cristian Dumitrescu

An Algebraic Characterization of the Halting Probability

Homework 4, 5, 6 Solutions. > 0, and so a n 0 = n + 1 n = ( n+1 n)( n+1+ n) 1 if n is odd 1/n if n is even diverges.

Random Reals à la Chaitin with or without prefix-freeness

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Computability Theory

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Algorithmic probability, Part 1 of n. A presentation to the Maths Study Group at London South Bank University 09/09/2015

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd

A BOREL SOLUTION TO THE HORN-TARSKI PROBLEM. MSC 2000: 03E05, 03E20, 06A10 Keywords: Chain Conditions, Boolean Algebras.

CSE 20 DISCRETE MATH SPRING

Program size complexity for possibly infinite computations

A statistical mechanical interpretation of algorithmic information theory

5 Set Operations, Functions, and Counting

THE RELATIVE SIZES OF SUMSETS AND DIFFERENCE SETS. Merlijn Staps Department of Mathematics, Utrecht University, Utrecht, The Netherlands

Chapter 4. Measure Theory. 1. Measure Spaces

COM S 330 Homework 08 Solutions. Type your answers to the following questions and submit a PDF file to Blackboard. One page per problem.

LEHMER S TOTIENT PROBLEM AND CARMICHAEL NUMBERS IN A PID

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Acceptable Complexity Measures of Theorems

Universal Recursively Enumerable Sets of Strings

Entropy and Ergodic Theory Lecture 3: The meaning of entropy in information theory

PERIODS OF FACTORS OF THE FIBONACCI WORD

Exercises for Unit VI (Infinite constructions in set theory)

An uncountably categorical theory whose only computably presentable model is saturated

Schnorr trivial sets and truth-table reducibility

CDMTCS Research Report Series. Deterministic Automata: Simulation, Universality and Minimality

Discrete Math, Spring Solutions to Problems V

On the non-existence of maximal inference degrees for language identification

Randomness, Computability, and Density

FRACTIONAL PACKING OF T-JOINS. 1. Introduction

arxiv:nlin/ v2 [nlin.cd] 4 Apr 2005

Axioms for Set Theory

FORCING AXIOMS AND THE CONTINUUM HYPOTHESIS, PART II: TRANSCENDING ω 1 -SEQUENCES OF REAL NUMBERS

Asymptotic behavior and halting probability of Turing Machines

Homework 1 (revised) Solutions

SOME REMARKS ON KRASNOSELSKII S FIXED POINT THEOREM

Equational Theory of Kleene Algebra

ON SOME DIOPHANTINE EQUATIONS (I)

A Note on the Number of Squares in a Partial Word with One Hole

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

A PASCAL-LIKE BOUND FOR THE NUMBER OF NECKLACES WITH FIXED DENSITY

Models of Computation. by Costas Busch, LSU

We want to show P (n) is true for all integers

COS597D: Information Theory in Computer Science October 19, Lecture 10

MAT1000 ASSIGNMENT 1. a k 3 k. x =

Indeed, if we want m to be compatible with taking limits, it should be countably additive, meaning that ( )

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers.

A shrinking lemma for random forbidding context languages

Homework 7 Solutions, Math 55

ON THE ROLE OF THE COLLECTION PRINCIPLE FOR Σ 0 2-FORMULAS IN SECOND-ORDER REVERSE MATHEMATICS

Analysis III. Exam 1

Bias and No Free Lunch in Formal Measures of Intelligence

Chapter 1. Sets and Mappings

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Is complexity a source of incompleteness?

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

Randomness, probabilities and machines

GRAPH SEARCHING, AND A MIN-MAX THEOREM FOR TREE-WIDTH. P. D. Seymour Bellcore 445 South St. Morristown, New Jersey 07960, USA. and

REVIEW FOR THIRD 3200 MIDTERM

Many proofs that the primes are infinite J. Marshall Ash 1 and T. Kyle Petersen

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

a = mq + r where 0 r m 1.

Invariance Properties of Random Sequences Peter Hertling and Yongge Wang Department of Comper Science, The University of Auckland Private Bag 92019, A

Jónsson posets and unary Jónsson algebras

Edge Isoperimetric Theorems for Integer Point Arrays

On α-embedded subsets of products

The Real Number System

A Subrecursive Refinement of FTA. of the Fundamental Theorem of Algebra

Journal of Algebra 226, (2000) doi: /jabr , available online at on. Artin Level Modules.

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

Maximum union-free subfamilies

Iowa State University. Instructor: Alex Roitershtein Summer Exam #1. Solutions. x u = 2 x v

Lecture 8: Probability

Constructions of digital nets using global function fields

On the Iyengar Madhava Rao Nanjundiah inequality and its hyperbolic version

6 CARDINALITY OF SETS

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

258 Handbook of Discrete and Combinatorial Mathematics

Reverse mathematics and marriage problems with unique solutions

A Universal Turing Machine

Most Programs Stop Quickly or Never Halt

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

Graphs with few total dominating sets

2.2 Some Consequences of the Completeness Axiom

arxiv: v1 [math.co] 13 May 2016

On a theorem of Ziv Ran

A Note on the 2 F 1 Hypergeometric Function

UNIVERSALITY OF THE LATTICE OF TRANSFORMATION MONOIDS

Theory of Computation

MATH 31BH Homework 1 Solutions

An Alternate Method to Compute the Decimal Expansion of Rational Numbers

MEAN VALUE, UNIVALENCE, AND IMPLICIT FUNCTION THEOREMS

Math Fall 2014 Final Exam Solutions

THE K-DEGREES, LOW FOR K DEGREES, AND WEAKLY LOW FOR K SETS

On Convergence of Sequences of Measurable Functions

Transcription:

CDMTCS Research Report Series Kraft-Chaitin Inequality Revisited C. Calude and C. Grozea University of Auckland, New Zealand Bucharest University, Romania CDMTCS-013 April 1996 Centre for Discrete Mathematics and Theoretical Computer Science

KRAFT-CHAITIN INEQUALITY REVISITED Cristian Calude Cristian Grozea Abstract Kraft s inequality [9] is essential for the classical theory of noiseless coding [1, 8]. In algorithmic information theory [5, 7, 2] one needs an extension of Kraft s condition from finite sets to (infinite) recursively enumerable sets. This extension, known as Kraft-Chaitin Theorem, was obtained by Chaitin in his seminal paper [4] (see also, [3, 2], [10]). The aim of this note is to offer a simpler proof of Kraft-Chaitin Theorem based on a new construction of the prefix-free code. Keywords: Kraft inequality, Kraft-Chaitin inequality, prefix-free codes. 1 Prerequisites Denote by N {0, 1, 2,...} the set of non-negative integers. If X is a finite set, then #X denotes the cardinality of X. Fix A {a 1,...,a Q },Q 2, a finite alphabet. By A we denote the set of all strings x 1 x 2...x n with elements x i A (1 i n); the empty string is denoted by λ. For x in A, x is the length of x ( λ 0). Forp N,A p {x A x p}is the set of all strings of length p. Fix a total ordering on A, saya 1 <a 2 < <a Q, and consider the induced lexicographical order on each set A p, p N. A string x is a prefix of a string y (we write x y) in case y xz, for some string z. A set S A is prefix-free if there are no distinct strings x, y in S such that x y. We shall use [2] for the basics on partial recursive (p.r.) functions. 2 Main Proof This section is devoted to a new and simpler proof of the Kraft-Chaitin Theorem. Theorem. (Kraft-Chaitin) Let ϕ : N o N a p.r. function having the domain, dom(ϕ), tobenor a finite set {0, 1,...,N},withN 0. Assume that Q ϕ(i) 1. (1) i dom(ϕ) There exists (and can be effectively constructed) an injective p.r. function Φ:dom(ϕ) A C. Calude (ed.). The Finite, the Unbounded and the Infinite, Proceedings of the Summer School Chaitin Complexity and Applications, Mangalia, Romania, 27 June 6 July, 1995. Computer Science Department, The University of Auckland, Private Bag 92019, Auckland, New Zealand; email: cristian@cs.auckland.ac.nz. The work of the first author has been partially supported by Auckland University Research Grant A18/ XXXXX/62090/3414050. Faculty of Mathematics, Bucharest University, Str. Academiei 14, R-70109 Bucharest, Romania; chrisg@math.math.unibuc.ro.

such that for every i dom(ϕ), Φ(i) ϕ(i), and {Φ(i) i dom(ϕ)} is a prefix-free set. Proof. We will construct three sequences (M n ) n dom(ϕ) (of finite subsets of A ), (m n ) n dom(ϕ) (of non-negative integers), (µ n ) n dom(ϕ) (of strings over A) asfollows: m n max{ x x M n, x ϕ(n)}, µ n min(m n A mn ), where min is taken according to the lexicographical order. The sets M n are constructed as follows: M 0 {λ}, and if M 1,...,M n have been constructed and ϕ(n +1), then: M n+1 (M n \{µ n }) T n+1, where T n+1 {µ n a j 1 a p 0 j ϕ(n) m n 1, 2 p Q}. Finally put Φ(n) µ n a ϕ(n) mn 1. The proof consists in checking, by induction on n 0, the following five conditions: A) x M n 1 n 1 i0 Q ϕ(i). B) For all p 0, #(A p M n ) Q 1. C) The string µ n does exist. D) The sets M n and {Φ(0), Φ(1),...,Φ(n 1)} are disjoint. E) The set M n {Φ(0), Φ(1),...,Φ(n 1)} is prefix-free. The induction basis is very simple: M 0 {λ}, so m 0 0,Φ(0) a ϕ(0) 1. Consequently, x M 0 1 1 i0 Q ϕ(i). For all p 1, #(A p M n ) 0 Q 1. Finally, µ 0 λ and the last two conditions are vacuously true. Assume now that conditions A)-E) are true for some fixed n 0 and prove that they remain true for n +1. We start by proving the formula (M n \{µ n }) T n+1. (2) In fact, M n T n+1. Otherwise, M n T n+1 M n and M n is prefix-free. So, for some 0 j ϕ(n) m n 1and2 p Q,µ n a j 1 a p M n T n+1 M n.asµ n M n, it follows that M n is no longer prefix-free, a contradiction. We continue by checking the validity of conditions A)-E). For A), using (2), the induction hypothesis and the construction of M n+1,wehave: x (M n\{µ n}) T n+1 x M n\{µ n} + x T n+1 x M n Q mn +(Q 1) 0 j ϕ(n) m n 1 Q (mn+j+1) n 1 ϕ(n) m n 1 1 Q ϕ(i) Q mn +(Q 1)Q mn 1 1 i0 n Q ϕ(i), i0 2 j0 Q j

provided m n ϕ(n) 1, and x M n T n+1 x M n\{µ n} + n 1 1 Q ϕ(i) Q mn 1 i0 n Q ϕ(i), i0 x T n+1 in case m n ϕ(n) (and, consequently, T n+1 ). For B) we note that in case k<m n or k>ϕ(n)wehave M n+1 A k M n A k. For k m n, #(M n+1 A k )#(M n A k ) 1, so in all these situations B) is true by virtue of the inductive hypothesis. In case m n +1 k ϕ(n), (3) we have M n+1 A k T n+1 A k. (4) Indeed, if x A k and k satisfies (3), then x M n. For such a k, M n+1 A k ((M n \{µ n }) T n+1 ) A k ((M n \{µ n }) A k ) (T n+1 A k ) (M n A k ) (T n+1 A k ) T n+1 A k. In view of (4), #(M n+1 A k )#(T n+1 A k )Q 1. For C), µ n+1 does exist if in M n+1 we can find at least one string of length less or equal than ϕ(n+1). To prove this we assume, for the sake of a contradiction, that every string in M n has length greater than ϕ(n + 1). We have: p0 < A p pϕ(n+1)+1 A p pϕ(n+1)+1 Q ϕ(n+1), Q p (Q 1) as M n+1 A p, for almost all p N, andbyb),#(m n+1 A p ) Q 1. From A) we get n 1 Q ϕ(i) i0 <Q ϕ(n+1), which contradicts the hypothesis (1), thus concluding the existence of µ n+1. 3

In proving D) we write M n+1 {Φ(0), Φ(1),...,Φ(n)} as a union of four sets: (M n \{µ n }) {Φ(0), Φ(1),...,Φ(n 1)} T n+1 {Φ(0), Φ(1),...,Φ(n 1)} (M n \{µ n }) {Φ(n)} T n+1 {Φ(n)} each of which will be shown to be empty. Indeed, the first set is empty by virtue of the induction hypothesis. For the second set we notice that in case Φ(i) T n+1 (for some 0 i n 1), then Φ(i) µ n a j 1 a p, for some 0 j ϕ(n) m n 1and2 p Q. So, µ n Φ(i), and, as µ n M n M n {Φ(0), Φ(1)...Φ(n 1)} which is prefix-free by induction hypothesis we arrive to a contradiction. Further on we have Φ(n) M n \{µ n } as µ n Φ(n), µ n M n and M n is prefix-free. Finally, Φ(n) T n+1 by virtue of the construction of Φ(n) andt n+1. For E) we write M n+1 {Φ(0), Φ(1),...,Φ(n)} (M n \{µ n }) {Φ(0), Φ(1),...,Φ(n 1)} T n+1 {Φ(n)}. The set M n {Φ(0), Φ(1),...,Φ(n 1)} is prefix-free by induction hypothesis; T n+1 {Φ(n)} is prefix-free by construction. To finish, four cases should be analyzed: The set (M n \{µ n }) {Φ(n)} is prefix-free as µ n Φ(n) andm n is prefix-free. The set (M n \{µ n }) T(n+ 1) is prefix-free as µ n x, for each string x T (n +1)andM n is prefix-free. To prove that the set T n+1 {Φ(0), Φ(1),...,Φ(n 1)} is prefix-free we have to consider two cases: if x Φ(i), for some x T (n +1) and 0 i n 1, then µ n x, µ n M n M n {Φ(0), Φ(1),...,Φ(n 1)}, a prefix-free set (by induction hypothesis), which is impossible; if Φ(i) x, for some x T (n +1) and 0 i n 1, then Φ(i) µ n a t 1, for some t>0 (the case t 0 implies Φ(i) µ n which is impossible). This implies that µ n Φ(i), which is also impossible. To show that the set {Φ(0), Φ(1),...,Φ(n 1), Φ(n)} is prefix-free we have to consider again two cases: if Φ(n) Φ(i), for some 0 i n 1, then µ n Φ(i) (asµ n Φ(n)), which is a contradiction; if Φ(i) Φ(n), for some 0 i n 1, then Φ(i) µ n a t 1, for some t>0 (the case t 0is impossible), so µ n Φ(i), a contradiction. The injectivity of Φ follows directly from E). Hence, the theorem has been proved. 3 Comments A careful examination of the procedure used in the above proof shows that it produces the same code strings as Chaitin s original algorithm [4]: Start with Φ(0) a ϕ(0) 1, and if Φ(1),...,Φ(n) have been constructed and ϕ(n +1), then: Φ(n +1)min{x A ϕ(n+1) x Φ(i), Φ(i) x, for all 0 i n}, where the minimum is taken according to the lexicographical order. For an extension of Kraft-Chaitin inequality to free-extensible codes see [11]. 4

References [1] J. Berstel, D. Perrin. Theory of Codes, Academic Press, Orlando, 1985. [2] C. Calude. Information and Randomness An Algorithmic Perspective, EATCS Monographs in Theoretical Computer Science, Springer-Verlag, Berlin, 1994. [3] C. Calude, E. Kurta. On Kraft-Chaitin inequality, Rev. Roumaine Math. Pures Appl. 35 (1990), 597-604. [4] G. J. Chaitin. A theory of program size formally identical to information theory, J. Assoc. Comput. Mach. 22(1975), 329-340. (Reprinted in: [6], 197-223.) [5] G. J. Chaitin. Algorithmic Information Theory, Cambridge University Press, Cambridge, 1987. (third printing 1990) [6] G. J. Chaitin. Information, Randomness and Incompleteness, Papers on Algorithmic Information Theory, World Scientific, Singapore, 1987. (2nd ed., 1990) [7] G. J. Chaitin. The Limits of Mathematics, IBM Watson Center, Yorktown Heights, July 17, 1994, 326 pp. [8] D. S. Jones. Elementary Information Theory, Clarendon Press, Oxford, 1979. [9] L. G. Kraft. A Device for Quantizing Grouping and Coding Amplitude Modulated Pulses, MS Thesis, Electrical Eng. Dept., MIT, Cambridge, MA, 1949. [10] A. M. Sălăgean-Mandache. A geometrical proof of Kraft-Chaitin theorem, An. Univ. Bucureşti Mat.-Inf. 39/40 (1990/91), 90-97. [11] I. Măndoiu. Kraft-Chaitin s theorem for free-extensible codes, Stud. Cerc. Mat. 44 (1992), 497-501. 5