| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: A Logical Model for Lists as Relations
David Cressey wrote:
> "JOG" <jog_at_cs.nott.ac.uk> wrote in message
> news:1147467334.905572.107190_at_y43g2000cwc.googlegroups.com...
>
>>Bob Badour wrote:
>>
>>>JOG wrote:
>>>
>>>
>>>>Marshall Spight wrote:
>>>>
>>>>
>>>>>JOG wrote:
>>>>>
>>>>>
>>>>>>Marshall Spight wrote:
>>>>>>
>>>>>>
>>>>>>>But a list can be described as a relation. Most simply, an infinite
>>>>>>>list is a relation from the natural numbers to the target set,
>>>>>>>and a finite list is a relation from some finite contiguous subset
>>>>>>>[0..n] of the naturals to the target set. Generalizing, we could
>>>>>>>describe an n-ary list as a relation with an index attribute and
>>>>>>>zero or more other attributes.
>>>>>>
>>>>>>Do you not find this unsatisfying though?
>>>>>
>>>>>Actually, I find it quite satisfying, since it means I can, for
>>>>>example,
>>>>>use the full power of the relational algebra for selection on lists.
>>>>>
>>>>>
>>>>>
>>>>>>By doing this one is altering
>>>>>>information that is ordinal in nature to being cardinal.
>>>>>
>>>>>I don't understand this statement. Can you expand?
>>>>
>>>>
>>>>"The order of the primeministers were Blair, major, thatcher" =
>>>>"Blair was prime minister after Major."
>>>>"Major was prime minister after Thatcher."
>>>>
>>>>Hence A satisfying relation (to me ;) representing this list is:
>>>>{ (Blair, Major), (Major, Thatcher) }
>>>>
>>>>This ordinal representation does not need to include cardinal indeces,
>>>>and to my eyes that's a good thing as where did they exist in the
>>>>original propositions?
>>>
>>>You will run into problems when you get to things like:
>>>
>>>{ (MacDonald, Laurier), (Laurier, MacDonald), (MacDonald, Laurier) }
>>
>>Indeed. This makes me think something suspicious is going on if we view
>>lists, where repetition of elements is somehow acceptable, as a
>>fundamental construct. Either we have to invent indeces or we seem to
>>have a problem with set representation.
If we are not interested in the full order of the prime ministers, why do we need a list in the first place? Received on Sat May 13 2006 - 10:42:10 CDT
![]() |
![]() |