| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Proposal: 6NF
JOG wrote:
> On Oct 20, 11:12 am, "vc" <boston..._at_hotmail.com> wrote:
> > Marshall wrote:
> > > On Oct 19, 8:40 pm, "vc" <boston..._at_hotmail.com> wrote:
> > > > Marshall wrote:
> >
> > > > > > "return new ModFour((val+a.val)%4)" is called a bug or cheating
> > > > > > because you used a function defined on the entire domain NxN (where N
> > > > > > is a subset of the natural numbers implemented by the computer) to
> > > > > > generate a result which is undefined for the (2,3) pair.
> >
> > > > > It's not a bug, since the program produces the correct result, which is
> > > > > 1. It's not "cheating" because WTF does cheating even mean in
> > > > > this context. What it is, is the absence of closure over the subclass.
> > > > > Which is no big deal.
> >
> > > > So producing an absurd result is no big deal ? You seem to have agreed
> > > > that in the {2,3} subset there is no '1', how come your java
> > > > implementation manages to extract '1' out of nowhere ?
> >
> > > Consider the below function:
> >
> > > Let S4 = {0, 1, 2, 3}
> > > Let S23 = {2, 3}
> > > f : S23, S23 -> S4
> > The binary operation over S23 is g:S23:S23 -> S23, your f does not
> > qualify. aAcommon example is '+'.
>
>
Whoever put in the wikipedia entry at
http://en.wikipedia.org/wiki/Binary_operation might have helped us out.
"a binary operation on a set S is a binary function from S and S to S, in other words a function f from the Cartesian product S × S to S. Sometimes, especially in computer science, the term is used for any binary function. That f takes values in the same set S that provides its arguments is the property of closure."
I did not know that "operation" ever carried with it the added requirement of closure, but it sounds like that is the common mathematical def. Perhaps we can make a distinction here between a binary operation "on" the integers, for example, and a binary operation "from" the integers, or remove the confusion by eliminating the word "operation" and calling it a binary function on the set S, which is then a function on S x S. A third option might be to figure that since cdt is within computer science, we can use the term "binary operation" for any binary function. I think from this discussion we can safely say that there are two different defs for "binary operation" so we can clarify which one we are using and move on.
In any case, a subclass is a subset. If it is a Duck, then it is also an Animal. If it is an Integer, then it is also a Real. If there is any function defined on Real, it is also a function defined on Integer. --dawn Received on Fri Oct 20 2006 - 09:34:41 CDT
![]() |
![]() |