JUSTICE ALGORYTHM
Do you know what justice is? Intuitively - sure. But can you write an algorythm for it? If so, would the algorythm be the same for objective justice as it would when humans attempt to achieve or approximate justice? I tried to combine both in one program, and failed. In fact, I need 3 programs. So if you can do it in fewer, please show me how.
For people dispensing justice to other people:
For an employer & employee it's simple:
<Justice for employer & employee>
<definitions>
contract: statement by employer stating what will be dispensed for a particular result accomplished
result: what is actually accomplished by employee when payment is due
payment due: that which employer and employee agreed to in contract
</definitions>
<dispenser>
1. If person looks like good employee, present contract to person.
If person doesn't agree to contract, end program.
If person agrees to contract, person = employee.
2. Calculate payment due to employee.
3. Dispense payment due to employee.
4. If more employees desired, go to 1.
5. If employee not = fired, wait until next contracted payday, and go to 2.
6. If employee = fired, go to 2.
</dispenser>
</Justice for employer & employee>
Justice in a human society is more difficult. A true justice system is impossible because the justice dispensers can't possibly know all the relevant factors. Justice can only be approximated by a legal system, not all of which are even designed to be just. But if a legal system is intended to be just, I propose that it would look like this:
<Legal system intended to approximate justice>
<definitions>
good: producing a greater amount of happiness than unhappiness in its sphere of influence
bad: opposite of good
contract: statement by justice dispenser stating what will be dispensed
result: amount of good experienced at time of judgment (expressed as a positive or negative number of happiness units)
payment due: result dispensed in happiness units.
/*Positive number = reward. Negative number = punishment.*/
</definitions>
<dispenser>
1. Present contract to person.
If person doesn't agree to contract, remove person from society.
If person agrees to contract, proceed.
2. Calculate payment due.
3. Dispense payment due.
4. Go to 1.
</dispenser>
</Legal system intended to approximate justice>
<Justice as dispensed by a just Creator>
<definitions>
good: producing a greater amount of happiness than unhappiness in its sphere of influence (including the supposedly just Creator)
bad: opposite of good
intent: amount of good likely to come from action (expressed as a positive or negative number)
ability: amount of knowledge of what is good and bad
effort: amount of time and other resources invested
cost: amount of happiness forfeited or unhappiness incurred by effort
payment due: intent X ability X effort X cost.
/*Positive number = reward. Negative number = punishment.*/
</definitions>
<justice>
1. Give person opportunity to do good and/or bad, and provide ability (knowledge of what is good and bad).
2. Calculate payment due, and make person aware of it.
3. Offer Jesus option. If person chooses Jesus, record payment due for later reference.
<Jesus>
1. All negative payment due is erased.
2. Person must live in community with other persons who choose Jesus.
3. Give person opportunity to do good and/or bad and provide ability.
4. Calculate payment due, and make person aware of it.
5. Offer exit option. If person chooses exit option, he takes new payment due, and exits to justice 4.
6. Dispense payment due.
7. Go to 1.
</Jesus>
4. /*Jesus exit point.*/ Add old payment due + new payment due. Make person aware of it.
5. Offer termination of existence if person asks for it, and payment due is not a negative number.
6. Dispense payment due.
7. Go to 1.
</justice>
</Justice as dispensed by a just Creator>