The mathematics of morality

Humans trying to optimize a simple objective function with two parameters, sustenance and replication, often exhibit moral and ethical behaviors. It is unclear if these behaviors are rational and if there is a mathematical basis for it. The two factors in the objective function have different temporal and spatial effects.

Sustenance has to be optimized in a short time horizon compared to replication that affords…