前回の続き。前回はパレート改善とパレート最適を定義し、両者自白はナッシュ均衡だがパレート最適ではないことを示した。今回は利得の合計が最大になるマスをベンサム型最適として定義し、
- 両者黙秘がベンサム型最適であること
- ベンサム型最適ならばパレート最適であること
- (黙秘、自白) がパレート最適だけどベンサム型最適ではない例であること
を示す。
何でこんなことするかっていうと次の疑問からだったりする、囚人のジレンマのゲームでは (3, 3) のほかに (1, 4), (4, 1) がパレート最適になることがわかるが、自分としては (1, 4) とかあんまり望ましい状態じゃないなーと思っていた。muse に話すと他にもゲームを評価する方法がいくつかあるらしく、今回ベンサム型最適を考えてみるに至った。
(利得表おさらい)
| P2:黙秘 | P2:自白 | |
|---|---|---|
| P1:黙秘 | (3, 3) | (1, 4) |
| P1:自白 | (4, 1) | (2, 2) |
ベンサム型最適の定義
def bentham (g : Game A B) (a : A) (b : B) : Int := (g a b).fst + (g a b).snd def IsBenthamOptimal (g : Game A B) (a : A) (b : B) : Prop := (a' : A) → (b' : B) → bentham g a' b' ≤ bentham g a b
要するに点数の合計を取る関数、その合計が最大なところがベンサム型最適。ちなみにベンサムは、功利主義の哲学者ベンサムから来ている。「最大多数の最大幸福」の人。社会厚生関数 という概念があって、それは利得の組から「社会全体としてどれくらい良いか」を1つの数で表す物差しらしい。ベンサム型社会厚生関数は、全員の利得を単純に合計するもので今回の bentham がそれにあたる。
両者黙秘はベンサム型最適
これはまあ見た目からわかる。ちゃんと証明すると以下のようになる。計算で示せるものは by decide で。一応 1 ケースは丁寧に計算した。
theorem cooperate_cooperate_is_bentham_optimal : IsBenthamOptimal prisonersDilemma cooperate cooperate := fun a' b' => match a', b' with | cooperate, cooperate => by decide -- 丁寧に計算してみる | cooperate, defect => by calc bentham prisonersDilemma cooperate defect = (prisonersDilemma cooperate defect).fst + (prisonersDilemma cooperate defect).snd := rfl _ = 5 := by decide _ ≤ 6 := by decide _ = (prisonersDilemma cooperate cooperate).fst + (prisonersDilemma cooperate cooperate).snd := rfl _ = bentham prisonersDilemma cooperate cooperate := rfl | defect, cooperate => by decide | defect, defect => by decide
ベンサム型最適ならばパレート最適
これ気がついた時は結構嬉しかった。定理っぽい定理がちゃんと出てきたの初めてな気がする。
パレート改善なら、誰の利得も下がらず、誰かの利得は上がるので、合計は必ず増える。でもベンサム型最適なマスからは合計は増えない。だからそこからパレート改善はできない、って感じ。
theorem IsBenthamOptimal_implies_IsParetoOptimal (g : Game A B) (a : A) (b : B) : IsBenthamOptimal g a b → IsParetoOptimal g a b := fun hBentham a' b' hImprovement => have hNot : ¬ (bentham g a b < bentham g a' b') := Int.not_lt.mpr (hBentham a' b') match hImprovement with | Or.inl hLeft => have h : bentham g a b < bentham g a' b' := by calc bentham g a b = (g a b).fst + (g a b).snd := rfl _ ≤ (g a' b').fst + (g a b).snd := Int.add_le_add_right hLeft.left _ _ < (g a' b').fst + (g a' b').snd := Int.add_lt_add_left hLeft.right _ _ = bentham g a' b' := rfl -- 証明は Int.add_lt_add_of_le_of_lt hLeft.left hLeft.right だけでも良い hNot h | Or.inr hRight => hNot (Int.add_lt_add_of_lt_of_le hRight.left hRight.right) #check Int.add_lt_add_of_le_of_lt -- Int.add_lt_add_of_le_of_lt {a b c d : Int} (h₁ : a ≤ b) (h₂ : c < d) : a + c < b + d #check Int.add_lt_add_of_lt_of_le -- Int.add_lt_add_of_lt_of_le {a b c d : Int} (h₁ : a < b) (h₂ : c ≤ d) : a + c < b + d
両者黙秘のパレート最適(ベンサム経由)
上の定理から両者黙秘のパレート最適がすぐに示せる。
theorem cooperate_cooperate_is_pareto_optimal_of_bentham : IsParetoOptimal prisonersDilemma cooperate cooperate := (IsBenthamOptimal_implies_IsParetoOptimal prisonersDilemma cooperate cooperate) cooperate_cooperate_is_bentham_optimal
逆は成り立たない
じゃあ逆にパレート最適だったらベンサム最適か?という疑問の答えは成り立たないよ、っていう感じ。反例が黙秘と自白。これのパレート最適性は示せていなかったので今回示した。Decidable の型クラスの実装もなんか教わったからかいた。
theorem cooperate_defect_is_not_bentham : ¬ IsBenthamOptimal prisonersDilemma cooperate defect := fun hBentham => -- (Int.not_lt.mpr (hBentham cooperate cooperate)) (by decide) で良いが計算してみる -- 仮定より 6 ≤ 5 が出る have h: (6 : Int) ≤ 5 := hBentham cooperate cooperate -- よって矛盾 (5 < 6 は普通に成り立つから by decide) (Int.not_lt.mpr h) (by decide) -- これを使うと、IsParetoImprovement の判定が自動でできるようになる -- これにより後述の cooperate_defect_is_pareto_optimal の分岐2以降は by decide で処理できた instance : Decidable (IsParetoImprovement g a b a' b') := by unfold IsParetoImprovement infer_instance -- cooperate defect が Pareto 最適かどうかも確認してみる theorem cooperate_defect_is_pareto_optimal : IsParetoOptimal prisonersDilemma cooperate defect := fun a' b' h => match a', b', h with | cooperate, cooperate, h => absurd h (by unfold IsParetoImprovement; decide) | cooperate, defect, h => absurd h (by decide) | defect, cooperate, h => absurd h (by decide) | defect, defect, h => absurd h (by decide)
感想
- Decidable の型クラス実装?こんなの理解してんのみんな、やばいな、って思いました
- ベンサム型最適、ル・グウィンの『オメラスから歩み去る人々』が問いかけた状態をモデル化できそう
- なので次はその関連で、オメラスのゲームとしての定義と多数の幸福のために少数を犠牲にしないようにする社会厚生関数を探してみたい。






