How to define or represent evil in logic Is there any well defined method to define or represent evil in abstract logic, binary or AI form?
Video games method of representing evil is relative to the player context (thus subjective, and not pure abstract evil in an objective sense).
What I am asking is there any data defined as well-known evil?
Example:
var x=666;

if (isEvil(x)) {
    //do something.
}

Remark:
Evil Number descried in http://mathworld.wolfram.com/EvilNumber.html doesn't qualify as well-known evil data.
Following Up:
One of the main objectives of the question is to understand scientifically the limits of evil in AI
According to my understanding of: https://en.wikipedia.org/wiki/Evil I think it's mandatory to explore &quot;evil&quot; in religion context in order to come up with valid model for evil. But I don't want go into (religion) debates or any divergence at this stage. hence below points Sums up my understanding:

The only well-known Evil source is the devil (our creator declared the devil as the first common enemy for ALL humans).
Whispering is devil method of attack, If human followed the whisper it will lead to evil. and gradually human Evil grow...
There are other points but I don't see its related to AI in any means.

Based on the above, I asked myself: since AI is human creation, where the evil in AI will come from??! my answer is: directly from us and indirectly by following the devil. So all crimes committed by Evil AI bounded to AI architect/designer/unethical hacker.
The next stage in getting closer to model evil, is to define and classify the evil acts:
Definitions:

Define evil in AI context (draft ver. 0.1): committing crimes against nature, civilizations or humans. And reprogramming, modifying or attacking tech devices/machines to perform malicious agenda.
Crime is broad and relative to the party: example: breaking one government regulations based on the orders of other government. I mean as long each group of humans makes its own laws and regulations unified justice can't be applied on Evil AI.

If my assumption of bounding evil to crime is valid then evil classification inherits crime classification which seems well-defined:
https://en.wikipedia.org/wiki/Crime#Classification_and_categorisation
Next step is to pick an easy to model crime class, prepare training data, ... Do you agree with the follow up? Do you agree that Boolean logic can't determine evil without AI?
I think you're going to have to be reconciled to the subjective nature of reality.  Objectivity is only possible in very special cases such as a Q.E.D. in mathematics, or a solved gamed.  Rationality is bounded, and any intractable problem results in a state of subjectivity/indeterminacy.  Additionally, pure values do not carry moral implications, despite popular associations, although it would be possible to create a game where certain values have negative effects, and the harm they result in could be understood as evil.  (i.e. 666/616 has numerological associations, and numerology can be understood as a proto form of number theory.)


A simple way to define evil would be through behavioral models in Game Theory.
In Game Theory, there is a concept knowns as the superrational strategy. 
Superrationality may be understood as the logical/mathematical expression of the Golden Rule: "do unto others as you would have them do unto you."
The Golden Rule forms the basis for most religions, in the context of empathy/compassion and altruism.
If the agent is evil, it will always betray, even when the competitor has shown a willingness to cooperate.


Thus evil is defined as the opposite of the Golden Rule.  (Possibly we would call this the Brimstone Rule;)