Une Sacra Blog · Guides

Game theory and religion: where the numbers meet the sacred

Game theory is the branch of mathematics that studies decisions in which each person's outcome also depends on what others do. It was born in the 20th century, with John von Neumann and John Nash, to think about economics and war, but many of the situations it describes were already in the sacred texts: the choice before a God who cannot be seen, revenge and forgiveness, the promise that must be kept, the deed that comes back to the one who did it. This guide shows where these ideas meet, using the texts on this site, and also where they do not meet: grace that charges nothing, detachment that does not want to win and the sacred that fits into no calculation. The point is not to say that one religion "wins"; the idea is to use a modern tool to read ancient texts, and to see its limits.

What game theory is, without formulas

A "game", for the theory, is any situation with three things: players, choices and outcomes that depend on the combination of choices. Chess is a game, but so are a salary negotiation, a cold war or a quarrel between neighbours.

In 1928, the Hungarian mathematician John von Neumann proved that in two-person games where one side's gain is the other's loss (zero-sum games), there is always a strategy that guarantees the best possible result against the worst opponent. In 1944, with the economist Oskar Morgenstern, he published Theory of Games and Economic Behavior, the book that named the field. In 1950, John Nash, then 22 years old, showed that in almost every game there is a point at which no player gains anything by changing strategy alone: the Nash equilibrium. He received the Nobel Prize in Economics in 1994.

The most famous example is the prisoner's dilemma, devised in 1950 by researchers at RAND and named by the mathematician Albert Tucker. Two accomplices are arrested and questioned separately. If both stay silent, each gets a short sentence. If one betrays the other and the other stays silent, the traitor goes free and the silent one gets the maximum. If both betray, both get a long sentence. For each, betraying is always better, whatever the other does; but if both reason this way, both end up worse off than if they had trusted each other. The dilemma shows why cooperation is hard, and why so many cultures created rules to make it possible.

Game theory words used in this guide
TermWhat it means
Zero-sum gameWhat one gains, the other loses
Positive-sum gameBoth can win together
Nash equilibriumA situation in which no one does better by changing alone
Repeated gameThe same game, played many times with the same people
Tit for tatStart by cooperating, then repeat what the other did
Credible commitmentA promise the other has reason to believe

Pascal's wager: choosing without knowing

The best-known case of religious calculation is Pascal's wager. The French mathematician Blaise Pascal, one of the founders of probability theory, left notes published after his death, the Pensées (1670). In one passage he imagines faith as a bet. It cannot be proved whether God exists, but one must choose. If you bet on God and he exists, you win infinite happiness; if he does not, you lose little. If you bet against him and he exists, you lose everything. Faced with an infinite gain, Pascal concludes, the reasonable bet is to believe.

The philosopher Ian Hacking called this argument, in 1972, the first example of decision theory: choosing by comparing outcomes and chances. But the objections are old. The main one is the many gods objection: Diderot pointed out that an imam could use the same argument for Islam, and the wager does not say which God to bet on. Another is that a faith chosen by calculation may not be faith. Pascal himself seems to have thought of this: he offers the wager to the unbeliever, as a first step, not as the main reason for faith.

The sacred texts almost never do the sum this way. They ask for trust, not an estimate of odds. But the theme of "choosing without seeing" is everywhere, from Abraham's covenant to Arjuna's dilemma, below.

The golden rule and the prisoner's dilemma

If the prisoner's dilemma shows that mistrust leads both players to the worst outcome, the golden rule is a direct answer to it: treat others as you want to be treated. It appears in almost every tradition, as the comparison the golden rule in many traditions shows.

Therefore all things whatsoever ye would that men should do to you, do ye even so to them: for this is the law and the prophets.

Matthew 7:12

In the Analects, Confucius gives the same rule, in negative form, and calls it reciprocity:

What you do not want done to yourself, do not do to others.

Analects 15:23

The Jewish sage Hillel, a contemporary of Herod, sums up the whole Torah the same way in the Talmud, and the Ethics of the Fathers keeps a saying of his that seems written for the dilemma: self-interest and the interest of others go together.

If I am not for myself, who is for me? But if I am for my own self [only], what am I?

Pirkei Avot 1:14

In game terms, the golden rule changes the problem. Whoever follows it does not ask "what gives me most?", but "what would I like done to me?". If both players think this way, both cooperate and both do better. The risk remains (one can betray the one who trusts), which is why religions surrounded the rule with promises, community and a judge who sees everything.

An eye for an eye: from Hammurabi to Axelrod

The phrase "an eye for an eye" is much older than the Bible. The Code of Hammurabi, from Babylon, around 1750 BC, already has it as law:

If a man put out the eye of another man, his eye shall be put out.

Code of Hammurabi, law 196

In the next law of the same code, however, the eye of a freedman is worth a mina of gold: the penalty depends on the victim's class. The Torah repeats the rule in Exodus 21, "eye for eye, tooth for tooth", without the class difference. The rabbis later read the phrase as payment of damages, not as mutilation. The central idea is proportion: the punishment must not exceed the harm, so revenge does not grow without end.

In 1980, the political scientist Robert Axelrod ran a computer tournament: several programs played the prisoner's dilemma, repeated many times, against one another. The simplest one won, submitted by the mathematician Anatol Rapoport and called tit for tat: start by cooperating, then always do what the other did in the previous round. Axelrod described the strategy's qualities: it is nice (never betrays first), retaliatory (does not leave betrayal unanswered), forgiving (goes back to cooperating as soon as the other does) and clear (the other soon understands how it works).

It is the same spirit as the ancient law: respond in the same measure, no more and no less. But it has a weak point. If one of the two makes a single mistake, both can be trapped in an endless exchange of blows. That is why later studies, such as those of Martin Nowak and Karl Sigmund in 1992, showed that a generous version, which sometimes forgives a betrayal without striking back, does better when there are errors and misunderstandings.

Turning the other cheek: the strategy that breaks the cycle

Jesus quotes the ancient rule in order to go beyond it:

But I say unto you, That ye resist not evil: but whosoever shall smite thee on thy right cheek, turn to him the other also.

Matthew 5:39

Seen as a strategy, the other cheek is a radical bet on cooperation: refusing to return the blow so that the exchange of blows ends. Paul says the same with the image of the coals: feed your enemy, because that is another way to win.

Be not overcome of evil, but overcome evil with good.

Romans 12:21

The Dhammapada has a very similar line in its first chapter: hatred is never laid to rest by hate, it is laid to rest by love. Game theory helps show why such sayings matter: in a repeated game with errors, whoever sometimes forgives avoids the spiral of revenge. But it also shows the price: against someone who always betrays, turning the other cheek means always losing. The texts know this, and do not promise that the strategy "pays off" in this life; the reward they offer lies on another plane. This is where the calculation begins to fail, as the end of the guide shows.

Karma: an endless repeated game

Axelrod called it the "shadow of the future": what makes cooperation worthwhile is knowing I will meet the other again, so that betraying today may cost me dearly tomorrow. Karma, in the traditions of India, stretches that shadow to infinity: every action has consequences, in this life or the next, and the cycle of rebirth, samsara, is a game that never ends.

If with corrupt intent / you speak or act, / suffering follows you, / like a wheel, the ox’s foot.

Dhammapada 1

The Bible has a similar idea, without rebirth: "whatsoever a man soweth, that shall he also reap" (Galatians 6:7). In game language, both ideas ensure that no one escapes their reputation: there is no last round in which betrayal comes free.

The comparison has important limits. Karma is not an opponent who chooses: it is a law, like gravity, and it does not negotiate. And in Hinduism and Buddhism the final goal is not to play well forever, but to leave the game: liberation (moksha) or nirvana. See what is karma.

Covenants and pacts: promises that must hold

All cooperation depends on promises. The economist Thomas Schelling, Nobel laureate in 2005, showed that a promise only works when it is a credible commitment: the other must have reason to believe it will be kept, even when keeping it is costly. That is why ancient societies surrounded agreements with rituals, witnesses and curses.

The Bible is full of such agreements, called covenants. After the flood, God promises not to destroy the earth again and sets a visible sign, the rainbow (Genesis 9). At Sinai, the covenant is sealed with a public reading and blood:

And he took the book of the covenant, and read in the audience of the people: and they said, All that the LORD hath said will we do, and be obedient.

Exodus 24:7

In 1954, the scholar George Mendenhall showed that these covenants follow the form of treaties between kings of the ancient Near East, such as those of the Hittites: who the sovereign is, what he has already done, the obligations, the witnesses, the blessings and the curses. It is the language of the contracts of the time. And when the covenant is broken, the prophets announce a new one, written not on tablets but "in their hearts" (Jeremiah 31:33): the promise comes to depend on the inside, not on enforcement.

The grimoires show the dark side of the contract. In the Grand Grimoire, from the 18th century, the magician negotiates with the spirit Lucifuge Rofocale, and the scene is real bargaining. The spirit makes its offer:

I cannot comply with thy request on such terms, nor on any others, unless thou shalt give thyself over to me in fifty years, to do with thy body and soul as I please.

Grand Grimoire, The Rite of Lucifuge

The magician refuses and threatens with the power of God ("by the might of great Adonay"), until the spirit gives in and agrees to appear without receiving the soul. In game terms, it is a negotiation with threats, won by whoever has the power to punish. In the Goetia, by contrast, there is no pact: the magician only gives orders in the name of God.

The dice of the Mahabharata and Arjuna's dilemma

India's great epic begins, in a sense, with a game. In the Mahabharata, King Yudhishthira agrees to play dice with his cousin Duryodhana, who has his uncle Shakuni, skilled and crooked, play in his place. Round after round, Yudhishthira stakes the treasury, the kingdom, his brothers, himself and finally his wife Draupadi, and loses everything. It is an ancient lesson about games: agreeing to play against someone who controls the rules is losing before you start.

The exile and the war that follow lead to the Bhagavad Gita. On the battlefield, Arjuna does the sums and sees no possible winner: killing his kin, he says, "must breed but anguish" (Gita, chapter 1). It is the reasoning of a player comparing outcomes. Krishna answers by changing the question: what is right is to do one's duty without making the action a means to gain.

Let right deeds be / Thy motive, not the fruit which comes from them.

Bhagavad Gita, chapter 2

Game theory assumes that everyone chooses by the outcome. The Gita says the opposite: act well and let go of the outcome. See what Krishna teaches Arjuna.

Job: the wager in heaven

The book of Job begins with a scene that looks like a wager. Satan, the accuser, questions Job's piety:

Then Satan answered the LORD, and said, Doth Job fear God for nought?

Job 1:9

The question is exactly a game theorist's: is Job good because he gains by it? If his goodness is only a strategy for receiving blessings, it will vanish when the blessings vanish. God accepts the test, and the whole book debates whether faith can be disinterested. The political scientist Steven Brams, in the book Biblical Games (1980), analysed stories like this with the tools of game theory, and also pointed out the limits of treating God as a player. The answer of the book of Job is not a calculation: Job ends without an explanation, before a God who speaks out of the whirlwind. See why God let Satan test Job.

Winning without fighting: strategy in ancient China

The ancient work closest to game theory may be Chinese. The Art of War, attributed to Sun Tzu, is a manual of strategy that always thinks about what the other side will do, and its most famous idea trades victory by force for victory at no cost:

To fight and conquer one hundred times is not the perfection of attainment, for the supreme art is to subdue the enemy without fighting.

The Art of War 3

The Tao Te Ching goes further still: it refuses the contest itself. The sage, the text says, does not strive, so no one finds it possible to strive with him. Here strategy becomes the opposite of strategy, and we enter the ground that game theory cannot reach.

Where game theory does not apply

Game theory assumes players who want something and choose whatever brings them closest to it. Much of what the sacred texts teach goes in the opposite direction. There are at least four limits.

Grace is not an exchange. In Christianity, salvation is presented as a gift, not a payment: "For by grace are ye saved through faith; and that not of yourselves: it is the gift of God" (Ephesians 2:8). In the parable of the workers in the vineyard, the owner pays the same to those who worked one hour and those who worked all day, and answers the ones who complain: "Is thine eye evil, because I am good?" (Matthew 20:15). Jesus tells his followers to lend, "hoping for nothing again" (Luke 6:35). In a game, no one gives without calculating the return; here, the logic is precisely not to calculate.

Detachment does not want to win. The Gita asks us to act without seeking the fruit. Buddhism goes further and places peace beyond victory and defeat:

Victory breeds enmity; / the defeated sleep badly. / The peaceful sleep at ease, / having left victory and defeat behind.

Dhammapada 201

For the theory, a player without preferences has nothing to choose. For Buddhism, that very freedom is what is sought.

Wu wei does not compete. Taoism speaks of wu wei, "acting without forcing". The sage of the Tao Te Ching is like water, which does not contend and reaches everywhere: "with all the doing in the way of the sage he does not strive" (Tao Te Ching 81). There is no opponent to defeat, and so there is no game.

The sacred does not enter the calculation. The psychologists Jeremy Ginges and Scott Atran studied people in Middle Eastern conflicts in 2007 and found that, when a value is sacred (a land, a temple, a principle), offering money in exchange does not help: it makes negotiation worse, because the offer itself is an insult. So-called sacred values cannot be traded for anything, and that is what makes them sacred. The theory can try to include them by giving them an "infinite value", but then it loses its power to predict choices.

There is also a simpler point. Game theory describes how to act if you want certain things; it does not say what is worth wanting. The sacred texts deal precisely with that second question. That is why the theory helps us read the rules of living together, the laws of retribution and the covenants, but falls silent before prayer, love of one's enemy with no hope of return and the search to leave the cycle.

Summary: what connects and what does not

Game theory and the sacred texts
Game ideaWhere it appears in the textsDoes it connect?
Decision under uncertaintyPascal's wager; Arjuna's dilemmaPartly: Pascal does the sum, the Gita refuses it
Cooperation and the prisoner's dilemmaThe golden rule in Matthew, the Analects and HillelYes: it is an answer to the dilemma
An eye for an eye (tit for tat)Code of Hammurabi, Exodus 21Yes: the same proportion
Generous forgiveness"Turning the other cheek", Romans 12, Dhammapada 5Partly: it helps when there are errors, but promises no return
Repeated game and reputationKarma and samsara; "whatsoever a man soweth"Partly: karma is a law, not an opponent, and the goal is to leave the cycle
Credible commitmentBiblical covenants; the pact of the Grand GrimoireYes: they are contracts with guarantees
Playing against someone who controls the rulesThe dice of the MahabharataYes
Self-interestJob: "Doth Job fear God for nought?"It is the book's question, which ends without a calculation
Strategy without combatThe Art of WarYes
No preferences, no opponentGrace, detachment, wu wei, sacred valuesNo

Frequently asked questions

What is game theory, in a few words?

It is the mathematical study of decisions in which each person's outcome also depends on the choices of others. It was created by John von Neumann and Oskar Morgenstern (1944) and developed by John Nash, among others.

What is Pascal's wager?

It is Blaise Pascal's argument, in the Pensées (1670), that believing in God is worthwhile because, if he exists, the gain is infinite, and if he does not, the loss is small. The main criticism is that the argument does not say which God to bet on.

Is "an eye for an eye" the same as tit for tat?

They are similar: both respond in the same measure to what the other did. The ancient law, of the Code of Hammurabi and Exodus, limited revenge; Axelrod's tit for tat is a strategy for repeated games that starts by cooperating.

Does the golden rule solve the prisoner's dilemma?

If both players follow it, yes: both cooperate and both do better. But it does not protect against those who betray, which is why religions surround it with community, promises and a judge who sees everything.

Is karma a game?

It can be compared to an endless repeated game, in which every action has consequences. But karma is an impersonal law, not an opponent, and the final goal of the traditions of India is to leave the cycle, not to play better.

Does game theory prove or disprove any religion?

No. It is a tool for describing choices, not for saying whether God exists or which belief is true. Scholars use it to read laws, covenants and stories, and acknowledge that it does not explain grace, detachment or sacred values.

Sources and further reading

  • John von Neumann and Oskar Morgenstern, Theory of Games and Economic Behavior, Princeton University Press, 1944.
  • John F. Nash, "Equilibrium points in n-person games", Proceedings of the National Academy of Sciences 36 (1), 1950. pnas.org
  • Robert Axelrod, The Evolution of Cooperation, New York, Basic Books, 1984.
  • Martin A. Nowak and Karl Sigmund, "Tit for tat in heterogeneous populations", Nature 355, 1992.
  • Thomas C. Schelling, The Strategy of Conflict, Harvard University Press, 1960.
  • Blaise Pascal, Pensées (1670), the "Infini rien" fragment on the wager.
  • Ian Hacking, "The Logic of Pascal's Wager", American Philosophical Quarterly 9 (2), 1972.
  • Alan Hájek, "Pascal's Wager", Stanford Encyclopedia of Philosophy. plato.stanford.edu
  • Steven Kuhn, "Prisoner's Dilemma", Stanford Encyclopedia of Philosophy. plato.stanford.edu
  • Steven J. Brams, Biblical Games: Game Theory and the Hebrew Bible, revised edition, MIT Press, 2003.
  • George E. Mendenhall, "Covenant Forms in Israelite Tradition", The Biblical Archaeologist 17 (3), 1954.
  • Jeremy Ginges, Scott Atran, Douglas Medin and Khalil Shikaki, "Sacred bounds on rational resolution of violent political conflict", Proceedings of the National Academy of Sciences 104 (18), 2007.

Read also

Sacred texts from every tradition.

Books

Chapters
Loading...

This page in: Português · Español