Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Mike Terry <news.dead.person.stones@darjeeling.plus.com> |
|---|---|
| Newsgroups | comp.theory |
| Subject | Re: Primitive recursive functions and LBA? |
| Date | 2022-01-29 19:53 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <st460e$7n0$1@gioia.aioe.org> (permalink) |
| References | (4 earlier) <8735l929vu.fsf@bsb.me.uk> <sstefq$fu1$1@dont-email.me> <87sft7zgv2.fsf@bsb.me.uk> <PNGdnaYT_f5IA2n8nZ2dnUU7-aHNnZ2d@brightview.co.uk> <87bkzuh2eo.fsf@bsb.me.uk> |
On 29/01/2022 17:34, Ben Bacarisse wrote:
> Mike Terry <news.dead.person.stones@darjeeling.plus.com> writes:
>
>> On 28/01/2022 21:32, Ben Bacarisse wrote:
>>> Sorry, I started an answer but life happened. I have eventually got
>>> round to finishing it...
>>> Jeff Barnett <jbb@notatt.com> writes:
>>>
>>>> On 1/26/2022 7:24 PM, Ben Bacarisse wrote:
>>>>> Jeff Barnett <jbb@notatt.com> writes:
>>>>>
>>>>>> When I looked at the definitions of PR in Linz and a few other places,
>>>>>> I was struck by the glib way they presented a definition that, in my
>>>>>> opinion, was inadequate. I think those definitions must allow many
>>>>>> more ways to compose a new function from the basics and previously
>>>>>> defined functions, i.e., more liberal nesting and ordering are
>>>>>> necessary.
>>>>> Necessary for what? Linz limits his discussion to unary and binary
>>>>> functions. Is that what you mean?
>>>>
>>>> It's been quite a while since I thought I understood all of this so
>>>> let's see if I can dredge out some examples.
>>>>
>>>> Linz provides no way to directly compose one argument functions; so,
>>>> for example I cannot write one(x) = s(z(x)). And I'm not sure if I
>>>> could write "one" using what he does provide.
>>>>
>>>> The ONLY composition rule in Linz for a 2 argument function is
>>>> f(x,y) = h(g1(x,y), g2(x,y))
>>>> where h, g1, and g2 are already defined.
>>
>> A general comment first - I had previously never got as far as this
>> chapter of Linz, since I stopped after the TM chapter. So I'm just
>> having a quick look now. I understand Jeff's general concern I think
>> (and sympathise).
>>
>>> The PR rule lets one extend a unary function to a binary one:
>>> u'(x, 0) = u(x)
>>> u'(x, y+1) = p2(..., u'(x, y)) = u'(x, y)
>>> where p2 is the projection function and ... denotes an arbitrary (and
>>> irrelevant) PR function. You can then show (by induction) that u'(x, y)
>>> = u(x). Similarly for v'(x, y) = v(x)
>>
>> Yep. (We need to know there is at least one two-place function we can
>> use for "..." and we have p1 or p2 for that.)
>>
>>> Now, by setting h = v' and g1 = u' in the composition rule we see that
>>> v'(u'(x, y), ...) = v(u'(x, y)) = v(u(x))
>>> is PR, so the composition of unary PR functions is PR. (Again, I've
>>> used ... rather than refer to some function g2 that is irrelevant.)
>>>
>>
>> Is this what we want though? The expression evaluates as above, but
>> what is the g(x) such that g(x) = v(u(x))? I think we need a couple
>> more build-up steps.
>
> I think you are right. Being PR is a syntactic property, not a semantic
> one so knowing the value of v'(u'(x, y), ...) is not really helpful.
>
>> Hmm. It's like we need at least the reverse for what you did above,
>> so if h(x,y) is PR, then h'(x) = h(x,0) is PR. Or better, h'(x) =
>> h(f(x),g(x)) [why be unnecesarily restrictive here?]
>
> The usual treatment has a general composition rule the allows h to have
> any number of arguments, so (in Linz's restricted world), one would also
> have
>
> f(x) = h(g1(x), g2(x))
>
> and
>
> f(x, y) = h(g(x, y))
>
> in addition to his rule.
Yes, I think then things are back on track. Although there's still the separate question of whether
some 2-place PR functions might /require/ higher-place PR functions in their construction chain.
(Needs more thought.)
>
>>> But in fairness to Linz, this is part of a veritable gallop through
>>> other models of computation. PR functions get 5 pages, several or which
>>> are about functions that aren't PR, because that's the main goal.
>>
>> I get that, but I think in this topic Linz has fallen a little short
>> of the line. He says he is aiming his text at CS students rather than
>> mathematicians, which makes sense, but here he is not simply
>> shortening proofs by omitting tedious details - he's missing out key
>> definitions and he's missed that because nobody looked closely enough
>> during the proof reading (it seems to me...). At least you'd expect
>> his very first example for his students to work! :)
>
> Yes, that's bad. But I can imagine the reluctance to introduce all the
> notation you need for m-place n-ary projections, arbitrary arity
> successor functions and so on, only to state, rather than derive, a few
> theorems. I am surprised, as you are, that this was not picked up, but
> then maybe his editor was as incompetent as I am! I did, for a moment,
> think his presentation could be fixed.
I can't help thinking of when I check my own work/postings - however hard I try to concentrate, I
can't help glossing over certain passages because
a) they are boring to me (perhaps a bit "fiddly", and I know the result
very well myself...)
b) I know what I /intended/ to say, and that was obvious to me, so I
kind of imagine other people will be reading it the same way I am.
(Which is not the case e.g. when a reader is not familiar with the
material and terminology etc.)
... so despite rereading, I end up just seeing what I'm /expecting/ to see, and sure enough that's
the point where a silly error decides to creep in.
Sometimes a complete beginner can be a better reviewer than one of your peers! Maybe that's a
factor with Linz's book. (Not an excuse, but I can see reviewing is tricky.)
Mike.
Back to comp.theory | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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