Difference between revisions of "Chaitin's construction"

From HaskellWiki
Jump to navigation Jump to search
(Having moved here from Exact real arithmetic. Making sections (→‎Introduction: , →‎Basing it on combinatory logic: ). Adding new sec →‎Related concepts: , linking back to Exact real arithmetic)
 
m (Some rephrasing)
Line 21: Line 21:
 
:should denote an unary predicate “has normal form” (“terminates”)
 
:should denote an unary predicate “has normal form” (“terminates”)
 
;<math>\mathrm{dc}</math>
 
;<math>\mathrm{dc}</math>
:should mean an operator “decode” (a function from bit finite bit sequences to [[combinatory logic]] terms)
+
:should mean an operator “decode” (a function from finite bit sequences to [[combinatory logic]] terms)
 
;<math>2\!\;^{*}</math>
 
;<math>2\!\;^{*}</math>
 
:should denote the set of all finite bit sequences
 
:should denote the set of all finite bit sequences
Line 29: Line 29:
 
:should mean the length of a bit sequence (not [[combinatory logic]] term evaluation!)
 
:should mean the length of a bit sequence (not [[combinatory logic]] term evaluation!)
   
Here, <math>\mathrm{dc}</math> is a partial function (from finite bit sequences). If this is confusing, then we can choose a more Haskell-like approach, making <math>\mathrm{dc}</math> a total function:
+
Here, <math>\mathrm{dc}</math> is a partial function (from finite bit sequences). If this is confusing or annoying, then we can choose a more Haskell-like approach, making <math>\mathrm{dc}</math> a total function:
 
<haskell>
 
<haskell>
 
dc :: [Bit] -> Maybe CL
 
dc :: [Bit] -> Maybe CL

Revision as of 11:23, 3 August 2006

Introduction

Wikipedia article on Chaitin's construction, referring to e.g.

Basing it on combinatory logic

Some more direct relatedness to functional programming: we can base on combinatory logic (instead of a Turing machine), see the prefix coding system described in Binary Lambda Calculus and Combinatory Logic (page 20) written by John Tromp:

of course, , are metavariables, and also some other notations are changed slightly.

Now, Chaitin's construction will be here

where

should denote an unary predicate “has normal form” (“terminates”)
should mean an operator “decode” (a function from finite bit sequences to combinatory logic terms)
should denote the set of all finite bit sequences
should denote the range of decoding function, e.g. the syntactically correct bit sequences (semantically, they may either terminate or diverge),
“Absolut value”
should mean the length of a bit sequence (not combinatory logic term evaluation!)

Here, is a partial function (from finite bit sequences). If this is confusing or annoying, then we can choose a more Haskell-like approach, making a total function:

 dc :: [Bit] -> Maybe CL

then, Chaitin's construction will be

where should denote false truth value.

Related concepts