You are SO stupid you don't even understand what you are looking at.Speakpigeon wrote: ↑Tue Feb 26, 2019 11:56 amSo here is expert opinion on your bit of Python code by someone who actually speaks Python:Logik wrote: ↑Sat Feb 23, 2019 1:25 pm The law of identity is the cornerstone of Arostotelian/Classical logic.
A = A is True.
In the 2nd half of the 20th century the American mathematician Haskell Curry and logician William Alvin Howard discovered an analogy between logical proofs and working computer programs. This is known as the Curry-Howard correspondence.
Mathematical proofs are working computer programs. https://en.wikipedia.org/wiki/Curry%E2% ... espondence
Therefore, if we can write a working computer program which asserts that A = A is false without producing an error then we have living proof contradicting the founding axiom of Classic/Aristotelian logic.
I hereby reject the law of identity, and give you the law of humanity: A = A is False.
A thing needs not be the same as itself!
https://repl.it/repls/SuperficialShimmeringAnimatronicsOMG.The critical line is this one:This just overrides the comparison method with unconditionally returning "false".def __eq__(self, other):
return False
It does no actual identity check, only a mock one.
So, of course this can "prove" whatever you choose as the alleged result.
And that's all there is to it.
The little boy is a cheat!
EB
I have given you a logic system which:
1. ALLOWS FOR A == A => TRUE
2. WHILE AT THE SAME TIME IT ALLOWS FOR B == B => FALSE
3. THE SYSTEM DOES NOT EXPLODE!!!!
Was it not you who claimed that IF I was to violate the law of identity THEN logic breaks?
You are staring at a logic system in which I CAN violate the law of identity AND the system DOES NOT BREAK.
YOU CAN"T DO THIS IN CLASSICAL LOGIC.
You don't get to claim "expert opinion" on anonymous source. Bring your "expert" here and I will teach him a thing or 100.