| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Proposal: 6NF
Jan Hidders wrote:
> vc wrote:
> > Jan Hidders wrote:
> > > vc wrote:
> > > > Jan Hidders wrote:
> > > > > vc wrote:
> > > > > >
> > > > > > More interestingly, why bother with a trivial fact that Z may be
> > > > > > [considered] a subset of R in whatever sense ?
> > > > >
> > > > > Because you want a simple formalization of subtyping a la Cardelli and
> > > > > Wegner where subtyping coincides with being a subset. It means that the
> > > > > meanig of the + operation in (a + b) can be considered independent of
> > > > > the type of a and b.
> > > >
> > > > RIght, but my understanding of the OOP stuff leads me to believe that
> > > > a subtype should '"inherit" its type operations. If so, assuming R is
> > > > our base type, what do we do about division in Z (regarded as an R
> > > > subtype) ;) ?
> > >
> > > Call it integer division to distinguish it from the real division? :-)
> >
> > Whatever you define as "integer division" cannot be claimed to be the
> > division as understood in elementary arithmetic, as well as in abstract
> > algebra, and therefore to be "inheritable" from R-division as I imagine
> > it should be in the OOP sense of the word. In simpler terms, Z ain't
> > a field while R is.
>
>
>
There are several objections to the paragraph above:
o I do not recall Cardelli/Wegner talking about homomorphisms/algebras in their article. They clearly equate subsets with subtypes, without specifying any additional requirements.
o Involving two sorted algebras in the picture looks, at least at the first glance, as a contrived attempt to salvage the idea that subtyping is "just" subsetting. That very clearly is not the case since one has to talk now about algebraic structures. If one chooses to go this way, the nature of the carrier (the underlying set) would be rather irrelevant and therefore that of of set/subset as well. Whether treating data types as algebraic/categorical is fruitful or not is a complicated matter, but one can hardly claim , if one choses this path, that subtype is just a subset.
>
See above, and I do not recall such requirements in the original article. Again, as soon as one starts talking about operations, one will talk about some algebraic structures which makes the 'subtype as subset' simplistic approach look rather passé and naive.
>
> -- Jan Hidders
Received on Sat Oct 14 2006 - 08:11:46 CDT
![]() |
![]() |