Java’s Broken Booleans

  • Thread starter Lawrence D'Oliveiro
  • Start date
D

Daniele Futtorovic

PS: What's yellow and equivalent to the Axiom of choice?

The bucket I threw up last time I drank too many cocktails and chose
never to do it again?
 
A

Andreas Leitgeb

Daniele Futtorovic said:
The bucket I threw up last time I drank too many cocktails and chose
never to do it again?

No, that's just a corollary, but not equiv.
 
A

Andreas Leitgeb

Lew said:
Which ones are "natural"?
Of the total ones: none. There are some natural comparisons, which are
not mathematical orderings, for they fail on "a>=b && b>=a ==> a==b".
Nor very "natural".

Definite agree on this one.
Other than "naturalness".

I guess, we should just agree on that we disagree on that one.
 
A

Andreas Leitgeb

Andreas Leitgeb said:
I guess, we should just agree on that we disagree on that one.

Oops, I was too fast on that. Of course, a total ordering on
logical values *can* be inconsistent with naturalness:
just define false >= true.
It just *doesn't need* to be, as with the other one.
 
A

Andreas Leitgeb

Lawrence D'Oliveiro said:
Yes they do.

Either you are not familiar with what a "field" is mathematically,
or you missed the crucial difference between operation "or" and
addition in GF(2).
 
T

Tim

Either you are not familiar with what a "field" is mathematically,
or you missed the crucial difference between operation "or" and
addition in GF(2).

XOR is equivalent to addition in GF(2) and AND to addition; x XOR 1 is
NOT x, and NOT ((NOT x) AND (NOT y)) is x OR y, so it does seem that
from the field operations you can construct all three of the operations
you mentioned a couple of posts ago.

On the other hand, the field structure is specifically on AND and XOR,
not on AND, OR, and NOT.

So you're both half right.
 
A

Andreas Leitgeb

XOR is equivalent to addition in GF(2) and AND to multiplication(corr by tim);
x XOR 1 is NOT x, and NOT ((NOT x) AND (NOT y)) is x OR y, so it does seem that
from the field operations you can construct all three of the operations
you mentioned a couple of posts ago.

The more interesting part is that one can also construct the field-
operations from AND,OR,NOT. Maybe Lawrence meant that, but that's
no contradiction of my statement, just an added remark.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top