Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.theory > #43954

Re: Primitive recursive functions and LBA?

From Jeff Barnett <jbb@notatt.com>
Newsgroups comp.theory
Subject Re: Primitive recursive functions and LBA?
Date 2022-01-23 16:57 -0700
Organization A noiseless patient Spider
Message-ID <sskq1b$do3$1@dont-email.me> (permalink)
References <sje10e$4nn$1@dont-email.me> <1c557170-4f38-4082-9363-3ed470a67a94n@googlegroups.com>

Show all headers | View raw


On 1/23/2022 4:10 PM, Alan Smaill wrote:
> On Monday, 4 October 2021 at 05:47:13 UTC+1, Jeff Barnett wrote:
>> Let P be a primitive recursive function, say with n arguments. Does
>> there exist a linear bounded automata that, given the input string
>> a_1/.../a_n/A, can determine if
>>
>> P(a_1,...,a_n) = A?
>>
>> An alternative question might be, does there exist a linear bounded
>> automata that given a_1/..../a_n can calculate P(a_1,...,a_n)?
>>
>> I suspect that
>>
>> 1) If the first question is answered yes, so will the second one.
>> However, the size of the tape character set will be substantially larger
>> in the second case.
>>
>> 2) The choice of arguments and values representation is not important.
>>
>> 3) Whether the machines are deterministic or nondeterministic might be
>> significant.
>>
>> Another question that might be interesting is "Can some linear bounded
>> automata compute non primitive recursive functions?"
>>
>> I found nothing to help with the above after an hour of searching the
>> net and I also flipped through Martin Davis (actually his book).
>> -- 
>> Jeff Barnett
> 
> I think the answer to the first question above is positive.
> Here's an outline argument.
> 
> In Kuroda, Classes of language and linear bounded automata,
>      Information and Control, 7, 207--223, 1964,   there is the theorem (no 3):
>     "A context free language is accepted by a deterministic linear-bounded automaton."
>      -  the article is linked from:
> 
>        https://en.wikipedia.org/wiki/Linear_bounded_automaton
> 
> So it is enough to show that we can describe primitive recursive functions via context-free grammars.
> This looks do-able.  There are only a few cases needed to generate primitive recursive functions
> (constant function, successor, projection, composition and primitive recursion operator).
> 
> Take a relational view of the p.r. functions,  so the language statements are of the form
>       P( x1, x2, ..., xn, y )  where the arguments are all Peano numerals using S as successor symbol,
>      and P corresponds to name of some p.r. function.
>     
> Then, for example,  to define x ^ y via primitive recursion from times,
>   where the variables are implicitly constrained to be Peano numerals:
> 
>     exp( x, 0, S(0) )                                                                             and
>     exp( x1, S(x2),  y ) ::= exp( x1, x2, z ),  times( x1, z, y)
> 
> For composition, to get x1^(x2 + x1) given exp and plus:
> 
>    Pnew( x2, x1, y ) ::= plus( x2, x1, z ), exp( x1, z, y ).
> 
> This outline would need to be fleshed out, but looks to be on the right lines.
> 
> (and at least it doesn't give an obvious way to define Ackermann's function)
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> On a separate issue, the wikipedia page on linear bounded automata says:
>     "Linear bounded automata are acceptors for the class of context-sensitive languages.[1]: 225–226 
>      The only restriction placed on grammars for such languages is that no production maps a string to a shorter string."
> This claimed restriction seems to me to come from a misreading of the Kuroda paper, which does introduce
> the property mentioned, but then shows that any context sensitive grammar can be transformed into an equivalent
> grammar (ie accepting the same language) where the restriction mentioned does hold.
> Or maybe I've misunderstood what is going on.

I haven't thought about this for several months. I gave up the ghost 
when only Ben responded and had no literature pointers to follow up. As 
to your interesting rewrite scheme, I'm confused as to why it can be 
described by a context free grammar. I think there are a few problems:

1) There must be some way to "unify" the variables used, e.g., the three 
appearances of x1 in your definition of exponentiation. I'm not sure how 
that is context free. I also don't know how the grammar could enforce 
the fact that, e.g., times is primitive recursive when used to define 
exp. I believe that would entail a context sensitive grammar.

2) Do we have a proof that there is a universal bound on the multiplier 
of input size that restricts the greatest intermediate length of data 
structure generated during resolution? If not, in what sense is this in 
concert with "linear boundedness"?

3) I believe, put cannot prove, that all and only the primitive 
recursive functions can be described/generated by this scheme. This is a 
real difficulty for me (at this point) because we have so damn few 
examples of non primitive recursive functions to play with. I know there 
are "a lot" of them, I just don't know what they are.

Side note: If it were true that 3 above is correct, then we have an 
interesting possibility if we have a way to enumerate what your 
"grammar" can accept: we can use this approach to show that a function 
is not primitive recursive if we cannot generate it this way.
-- 
Jeff Barnett

Back to comp.theory | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2021-10-03 22:47 -0600
  Re: Primitive recursive functions and LBA? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-10-04 15:00 +0100
  Re: Primitive recursive functions and LBA? Alan Smaill <alandsmaill@gmail.com> - 2022-01-23 15:10 -0800
    Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-23 16:57 -0700
      Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-26 11:56 -0700
        Re: Primitive recursive functions and LBA? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-01-27 02:24 +0000
          Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-26 23:35 -0700
            Re: Primitive recursive functions and LBA? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-01-28 21:32 +0000
              Re: Primitive recursive functions and LBA? Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2022-01-29 01:56 +0000
                Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-28 19:39 -0700
                Re: Primitive recursive functions and LBA? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-01-29 17:34 +0000
                Re: Primitive recursive functions and LBA? Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2022-01-29 19:53 +0000
              Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-29 13:41 -0700
                Re: Primitive recursive functions and LBA? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-01-29 22:13 +0000
                Re: Primitive recursive functions and LBA? Jeff Barnett <jbb@notatt.com> - 2022-01-29 18:42 -0700

csiph-web