Logic and foundations of artificial intelligence and society's reactions to maximize benefits and mitigate harm | Synapse