The contradiction is in having first A==A evaluates as true and then A==A evaluates as false. It doesn't matter it's not the same A. You have first the verification of the Law of Identity and then the falsification of the Law of Identity.
EB
You do not understand the symbolism and the logic .
a = 2 is a declaration. It is neither true nor false, it is a definition.
a == 2 asks the question does a equal 2 which can be true or false.
a = 2
b = 2
(a==b)_ evaluates to true
a = 2
b = 3
(a==b)_ evaluates to false
(a==a) will always evaluate to true
a == b
Repeat 100 times
double equal sign means does a equal b and can be true or false. a == a is always true.
In any symbolic logic system or computer language if (a == a) can be false then there is a problem.I do not have it, but the test is for you to run it and see what happens. Doing is part of learning.
It seems like you are trying to fit common computer logic into metaphysics and text going back to Aristotle.
== is a definition regardless of what else exists the realm of logic and philosophy.
logical test definitions
a == b is a and b equal
a <= b is a less than or equal to b
a > = b
a <= a evaluates true
a >= a true
a < a false
a > a false