Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
There is no logic without the law of non-contradiction.
False. Lambda calculus. Turing-completeness. Logics without contradictions.
The True Intuitionistic logic
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
Yes, indeed, you made a logical error.
No I haven't. Proofs compute (Curry-Howard).
That which you call a "logical error" is just a false positive on your part. Your classifier is broken.
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
First of all, you have redefined equality and your redefinition of equality differs from both the mathematical definition and from common understanding as well.
I haven't redefined anything. Equality does not have a clear definition beyond the real numbers.
What does it mean for a cat to be equal to a cat?
You are simply extending set theory beyond its domain of applicability.
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
These are clearly contradictory statements!
The objective standard for mathematical proofs (Curry-Howard) suggests that you are clearly mistaken.
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
But more importantly in this case, for example, some humans are murderers and some humans are not murderers. Someone who has killed thousands of defenseless women and children is clearly not equal to someone who has not killed any human being. A murderer is clearly not equal to an innocent human being. But according to the redefinition of equality given in the program, a murderer is equal to an innocent human being! This is absolutely unacceptable from both a legal and a moral point of view.
Bullshit.
You fail to draw a distinction between the abstract class "Human" (a mere category) and a Human-instance e.g any particular human
Let me teach you a thing or a million about decision/complexity theory.
Because "murderer" is a value-judgment (for lack of a better term) you need system to answer the question: Is Person-X a murderer?
Now, in a million years we may well have AI sophisticated enough to answer that question all on its own.
in 2019 we use our legal system to do this. Effectively we have an oracle machine:
https://en.wikipedia.org/wiki/Oracle_machine
And so "murderer" is simply a property of any individual human assigned by the legal system. Like this:
https://repl.it/repls/IdleCalmCosmos
The word "equal" means NOTHING. Because murderers still have equal rights.
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
In set theory:
Who cares about set theory? Curry-Howard deals with type theory.
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
While the redefinition expressed in the Python codes given in the OP can be expressed as follows:
Given any x and y, x=y if and only if, there is at least one predicate P and there is at least one predicate Q such that, P(x) if and only if Q(y).
Symbolically: ꓯxꓯy(x=y ↔ ꓱPꓱQ(P(x)↔Q(y)))
You are translating a Turing-complete system into an incomplete one (set theory).
Isn't that an error?
Of course - a set theorist can't tell
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
The later is clearly different from the accepted mathematical definition of equality.
So here we have two different definitions of equality!
Well, actually that's precisely the problem.
According to the law of identity: x = x means BOTH "x is equal to x" and x is identical to x".
So the "=" sign means different things at the same time?!? it is overloaded. It means many different things in many different contexts.
It's a grammatical error
Averroes wrote: ↑Sun Mar 17, 2019 10:08 am
correct results are obtained.
The "correct result"? So.... you are telling us that you KNOW what results you WANT logic to produce?
If you already know the correct answer then what do you need logic for?
of course, you have fallen for the same trap every mathematician does. x = x is ASSUMED true, not DECIDED true

You actually have no algorithm to decide whether any two things are the same
1 = 1
8888888888888888881 = 888888888888888881
You can't assume equality. You gotta do the work
On and on we go. I will deconstruct any bullshit you bring to the table.
Logic is the domain of computer scientists now. Time to adapt or step down.