4 ms·
Hmmm... An identity is something that does not change the left operand a * i = a 0 for + and 1 for x pass this test. But for Boolean && neither True nor Fal
by senthil_rajasek 7y ago
Hmmm...
An identity is something that does not change the left operand
a * i = a
0 for + and 1 for x pass this test.
But for Boolean && neither True nor False pass the identity test because,
( True as identity)
False && True = False
True && True = True
( False as identity)
False && False False
True && False = False
Perhaps there is more to it....
- furyofantares 7y agoI think your post indeed shows that a && True = a
- senthil_rajasek 7y agoit makes sense if you look at it as a && True = a. Thanks.
- LgWoodenBadger 7y agoI'm not clear how true doesn't work as the identity for AND.
- deleted 7y ago[deleted]
- chias 7y agoGP is suggesting that in this setting, the set is Booleans, the operation is &&, and the identity is True. So taking your calculation of a * i = a the operation (denoted * above) is &&, and the identity (denoted i above) is True. Lets see how it holds out for all possible values of a: a && True =?= a let a := True True && True =?= True correct! a && True =?= a let a := False False && True =?= False correct!