Auteur: | Pierre Pomeret-Coquot |
---|---|
Date: | RJCIA 2021 |
From Coq Require Import ssreflect. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Section GeneralLemmae.
Decidability of eqTypes
T:eqTypeforall t1 t2 : T, t1 = t2 \/ t1 <> t2T:eqTypeforall t1 t2 : T, t1 = t2 \/ t1 <> t2T:eqTypet1, t2:Tt1 = t2 \/ t1 <> t2T:eqTypet1, t2:TH:t1 = t2t1 = t2 \/ t1 <> t2T:eqTypet1, t2:TH:t1 <> t2t1 = t2 \/ t1 <> t2T:eqTypet1, t2:TH:t1 = t2t1 = t2 \/ t1 <> t2T:eqTypet1, t2:TH:t1 <> t2t1 = t2 \/ t1 <> t2T:eqTypet1, t2:TH:t1 <> t2t1 = t2 \/ t1 <> t2exact: or_intror. Qed. End GeneralLemmae.T:eqTypet1, t2:TH:t1 <> t2t1 = t2 \/ t1 <> t2
Evaluation structure encapsulate domains, orders and operators for GEU:
Section EvalStruct. Record eval_struct : Type := { U : finType; W : eqType; V : eqType; V0 : V; preceq_U : rel U; preceq_W : rel W; preceq_V : rel V; oplus : Monoid.com_law V0; otimes : W -> U -> V; }.
Asymetric part of preceq
Definition prec T (preceq : rel T) : rel T := fun t1 t2 => (preceq t1 t2) && ~~ (preceq t2 t1). End EvalStruct.
A 'profile' is a dependent vector which contains a (X i) for all player i. Typically, a strategy profile is a strategy for each player i.
We represent profiles with dependent finite-support functions (dffun)
Section Profiles. Implicit Type (N : finType).
Profile for classical games
Definition profile (N : finType) (X : N -> eqType) := {dffun forall i, X i}.
Finite profile
Definition fprofile N (X : N -> finType) := {dffun forall i, X i}.
Change the strategy of a given player in a given profile
Definition move N X (p : profile X) (i : N) (pi : X i) : profile X := [ffun j => match boolP (i == j) with | AltTrue h => eq_rect _ X pi _ (eqP h) | AltFalse _ => p j end].
Profile for incomplete games
Definition iprofile N (T : N -> finType) (X : N -> eqType) := {dffun forall i, T i -> X i}.
Transform an iprofile to a profile such as support is the set of dependent pairs (i,t_i)
Definition iprofile_flatten N (T : N -> finType) X (p : iprofile T X) : profile (fun it => X (projT1 it)) := [ffun it => p (projT1 it) (projT2 it)].
Profile that will be played if player's types are known
Definition proj_iprofile N (T : N -> finType) X (p : iprofile T X) : profile T -> profile X := fun theta => [ffun i => p i (theta i)] . Definition proj_flatprofile N (T : N -> finType) X (p : profile (fun it => X (projT1 it))) : profile T -> profile X := fun theta => [ffun i => p (existT _ i (theta i))].N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xtheta:profile (fun x : N => T x)proj_iprofile p theta = proj_flatprofile (iprofile_flatten p) thetaby apply: eq_dffun => i; rewrite ffunE. Qed. Definition bmove N T X (p : iprofile T X) (i : N) ti xi : iprofile T X := [ffun j => fun tj => match boolP (i == j) with | AltTrue h => let ti' := eq_rect _ T ti _ (eqP h) in if ti' == tj then eq_rect i X xi j (eqP h) else p j tj | AltFalse _ => p j tj end].N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xtheta:profile (fun x : N => T x)proj_iprofile p theta = proj_flatprofile (iprofile_flatten p) thetaN:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)move (iprofile_flatten p) xi = iprofile_flatten (bmove p (projT2 it) xi)N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)move (iprofile_flatten p) xi = iprofile_flatten (bmove p (projT2 it) xi)N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType Tmatch boolP (it == it') with | @AltTrue _ _ h => eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP h) | @AltFalse _ _ _ => iprofile_flatten p it' end = bmove p (projT2 it) xi (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType Tmatch boolP (it == it') with | @AltTrue _ _ h => eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP h) | @AltFalse _ _ _ => p (projT1 it') (projT2 it') end = match boolP (projT1 it == projT1 it') with | @AltTrue _ _ h => let ti' := eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP h) in if ti' == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP h) else p (projT1 it') (projT2 it') | @AltFalse _ _ _ => p (projT1 it') (projT2 it') endN:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) == projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2)N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) != projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) == projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2)N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) != projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) == projT2 it'eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (f_equal (projT1 (P:=fun i : N => T i)) (eqP H1)) = eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2)N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) != projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) != projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) != projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) <> projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) <> projT2 it'Hcontra:eq_rect (projT1 it) (fun a : N => T a) (projT2 it) (projT1 it') (projT1_eq (eqP H1)) = projT2 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it != projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it == it'H2:projT1 it <> projT1 it'eq_rect it (fun x : {i : N & T i} => X (projT1 x)) xi it' (eqP H1) = p (projT1 it') (projT2 it')N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'p (projT1 it') (projT2 it') = (if eq_rect (projT1 it) (fun x : N => T x) (projT2 it) (projT1 it') (eqP H2) == projT2 it' then eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2) else p (projT1 it') (projT2 it'))N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) == projT2 it'p (projT1 it') (projT2 it') = eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2)by move/eqP in H1. Qed. End Profiles.N:finTypeT:N -> finTypeX:N -> eqTypep:iprofile T Xit:{i : N & T i}xi:X (projT1 it)it':tag_finType TH1:it != it'H2:projT1 it == projT1 it'H3:eq_rect (projT1 it) (fun i : N => T i) (projT2 it) (projT1 it') (eqP H2) == projT2 it'Hcontra:it = it'p (projT1 it') (projT2 it') = eq_rect (projT1 it) (fun x : N => X x) xi (projT1 it') (eqP H2)
Three forms of games are defined in the corresponding modules:
We define simultaneous SNF games with abstract outcomes, that may be different for eaech player.
Module NFGame. Record game (player : finType) : Type := { outcome : player -> Type; action : player -> finType; utility : forall i, profile action -> outcome i; preceq : forall i, rel (outcome i); }. Definition NashEqb player (g : game player) : pred (profile (action g)) := fun p => [forall i : player, forall ai : action g i, ~~ prec (@preceq _ _ _) (utility i p) (utility i (move p ai))]. Definition NashEq player (g : game player) (p : profile (action g)) : Prop := forall (i : player) (ai : action g i), ~ prec (@preceq _ _ _) (utility i p) (utility i (move p ai)).player:finTypeg:game playerp:profile (fun x : player => action g x)reflect (NashEq p) (NashEqb p)player:finTypeg:game playerp:profile (fun x : player => action g x)reflect (NashEq p) (NashEqb p)player:finTypeg:game playerp:profile (fun x : player => action g x)NashEqb p -> NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)NashEqb p -> NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)H:forall x : player, [forall ai, ~~ prec (preceq (i:=x)) (utility x p) (utility x (move p ai))]i:player[forall ai, ~~ prec (preceq (i:=i)) (utility i p) (utility i (move p ai))] -> forall ai : action g i, ~ prec (preceq (i:=i)) (utility i p) (utility i (move p ai))player:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)H:forall x : player, [forall ai, ~~ prec (preceq (i:=x)) (utility x p) (utility x (move p ai))]i:playerH2:forall x : action g i, ~~ prec (preceq (i:=i)) (utility i p) (utility i (move p x))ai:action g iH0:~~ prec (preceq (i:=i)) (utility i p) (utility i (move p ai))~ prec (preceq (i:=i)) (utility i p) (utility i (move p ai))player:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)x:player~~ [forall ai, ~~ prec (preceq (i:=x)) (utility x p) (utility x (move p ai))] -> ~ NashEq pplayer:finTypeg:game playerp:profile (fun x : player => action g x)x:playery:action g x~~ ~~ prec (preceq (i:=x)) (utility x p) (utility x (move p y)) -> ~ NashEq pby case: (Hne x y). Qed. End NFGame.player:finTypeg:game playerp:profile (fun x : player => action g x)x:playery:action g xH:prec (preceq (i:=x)) (utility x p) (utility x (move p y))Hne:NashEq pFalse
Hypergraphical games are succinct representation of SNF games, where players play in some local games. Their global utility is the (abstract) sum of their local utility.
Module HGGame. Record game (player : finType) : Type := { local_game : finType; plays : local_game -> pred player; outcome : player -> Type; outcome0 : forall i, outcome i; oplus : forall i, Monoid.com_law (outcome0 i); preceq : forall i, rel (outcome i); action : player -> finType; local_utility : local_game -> forall i, profile action -> outcome i; }. Definition global_utility player (g : game player) (i : player) (p : profile (action g)) := \big[oplus g i/outcome0 g i]_(lg : local_game g | plays lg i) local_utility lg i p. Definition to_normal_form player (g : game player) : NFGame.game player := {| NFGame.outcome := outcome g; NFGame.preceq := @preceq _ g; NFGame.action := action g; NFGame.utility := @global_utility _ g; |}. Definition NashEqb player (g : game player) := @NFGame.NashEqb _ (to_normal_form g). Definition NashEq player (g : game player) := @NFGame.NashEq _ (to_normal_form g).player:finTypeg:game playerp:profile (fun x : player => action g x)reflect (NashEq p) (NashEqb p)exact: NFGame.NashEqP. Qed.player:finTypeg:game playerp:profile (fun x : player => action g x)reflect (NashEq p) (NashEqb p)player:finTypeg:game playerp:profile (fun x : player => NFGame.action (to_normal_form g) x)NashEqb p = NFGame.NashEqb pby []. Qed.player:finTypeg:game playerp:profile (fun x : player => NFGame.action (to_normal_form g) x)NashEqb p = NFGame.NashEqb pplayer:finTypeg:game playerp:profile (fun x : player => NFGame.action (to_normal_form g) x)NashEq p <-> NFGame.NashEq pby []. Qed. End HGGame.player:finTypeg:game playerp:profile (fun x : player => NFGame.action (to_normal_form g) x)NashEq p <-> NFGame.NashEq p
Incomplete games generalize Bayesian games and possibilistic games.
Players don't know perfectly the world i.e. they ignore which game they are playing.
Module IGame. Record game (player : finType) : Type := { evalst : player -> eval_struct; signal : player -> finType; action : player -> finType; utility : forall i : player, profile action -> profile signal -> U (evalst i); belief : forall i : player, profile signal -> W (evalst i); }. Definition GEutility player (g : game player) (i : player) t p := \big[oplus (evalst g i)/V0 (evalst g i)]_( theta : fprofile (signal g) | (theta i) == t) otimes (belief i theta) (utility i (proj_iprofile p theta) theta). Definition to_hggame player (g : game player) : HGGame.game _ := {| HGGame.local_game := [finType of fprofile (signal g)]; HGGame.plays := fun theta it => theta (projT1 it) == projT2 it; HGGame.outcome := fun it => V _; HGGame.outcome0 := fun it => V0 _; HGGame.oplus := fun it => oplus _; HGGame.preceq := fun it => @preceq_V _; HGGame.action := fun it => action g _; HGGame.local_utility := fun theta it p => otimes (belief (projT1 it) theta) (utility (projT1 it) (proj_flatprofile p theta) theta); |}. Definition to_normal_form player (g : game player) : NFGame.game _ := HGGame.to_normal_form (to_hggame g). Definition NashEqb player (g : game player) : pred (iprofile (signal g) (action g)) := fun bp => [forall i : player, forall t : signal g i, forall ai : action g i, ~~ prec (@preceq_V _) (GEutility t bp) (GEutility t (bmove bp t ai)) ]. Definition NashEq player (g : game player) p : Prop := forall i : player, forall t : signal g i, forall ai : action g i, ~ prec (@preceq_V _) (GEutility t p) (GEutility t (bmove p t ai)).player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)reflect (NashEq p) (NashEqb p)player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)reflect (NashEq p) (NashEqb p)player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)NashEqb p -> NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)NashEqb p -> NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)H:forall x : player, [forall t, forall ai, ~~ prec (preceq_V (e:=evalst g x)) (GEutility t p) (GEutility t (bmove p t ai))]i:player[forall t, forall ai, ~~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))] -> forall (t : signal g i) (ai : action g i), ~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)H:forall x : player, [forall t, forall ai, ~~ prec (preceq_V (e:=evalst g x)) (GEutility t p) (GEutility t (bmove p t ai))]i:playerH2:forall x : signal g i, [forall ai, ~~ prec (preceq_V (e:=evalst g i)) (GEutility x p) (GEutility x (bmove p x ai))]t:signal g i[forall ai, ~~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))] -> forall ai : action g i, ~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)H:forall x : player, [forall t, forall ai, ~~ prec (preceq_V (e:=evalst g x)) (GEutility t p) (GEutility t (bmove p t ai))]i:playerH2:forall x : signal g i, [forall ai, ~~ prec (preceq_V (e:=evalst g i)) (GEutility x p) (GEutility x (bmove p x ai))]t:signal g iH3:forall x : action g i, ~~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t x))ai:action g iH0:~~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))~ prec (preceq_V (e:=evalst g i)) (GEutility t p) (GEutility t (bmove p t ai))player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)~~ NashEqb p -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)x:player~~ [forall t, forall ai, ~~ prec (preceq_V (e:=evalst g x)) (GEutility t p) (GEutility t (bmove p t ai))] -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)x:playery:signal g x~~ [forall ai, ~~ prec (preceq_V (e:=evalst g x)) (GEutility y p) (GEutility y (bmove p y ai))] -> ~ NashEq pplayer:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)x:playery:signal g xz:action g x~~ ~~ prec (preceq_V (e:=evalst g x)) (GEutility y p) (GEutility y (bmove p y z)) -> ~ NashEq pby move/(_ x y z) in Hne. Qed. End IGame.player:finTypeg:game playerp:iprofile (signal g) (fun x : player => action g x)x:playery:signal g xz:action g xH2:prec (preceq_V (e:=evalst g x)) (GEutility y p) (GEutility y (bmove p y z))Hne:NashEq pFalse
We cast any incomplete game to a graphical game where players are the dependent pairs (player,signal) of the initial I-Game.
We show that erevy 'expected utility' value in the IGame is equal its corresponding 'global utility' value in the HG-Game. Thus, Nash equilibria are in correspondance.
Section HR.forall (player : finType) (g : IGame.game player) (i : player) (t : IGame.signal g i) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), IGame.GEutility t p = HGGame.global_utility (existT (fun i0 : player => IGame.signal g i0) i t) (iprofile_flatten p)forall (player : finType) (g : IGame.game player) (i : player) (t : IGame.signal g i) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), IGame.GEutility t p = HGGame.global_utility (existT (fun i0 : player => IGame.signal g i0) i t) (iprofile_flatten p)player:finTypeg:IGame.game playeri:playert:IGame.signal g ip:iprofile (IGame.signal g) (fun x : player => IGame.action g x)\big[oplus (IGame.evalst g i)/V0 (IGame.evalst g i)]_(theta | theta i == t) otimes (IGame.belief i theta) (IGame.utility i (proj_iprofile p theta) theta) = \big[oplus (IGame.evalst g i)/V0 (IGame.evalst g i)]_(lg | lg i == t) otimes (IGame.belief i lg) (IGame.utility i (proj_flatprofile (iprofile_flatten p) lg) lg)by rewrite -proj_iprof_flatprof. Qed.player:finTypeg:IGame.game playeri:playert:IGame.signal g ip:iprofile (IGame.signal g) (fun x : player => IGame.action g x)theta:fprofile (IGame.signal g)Htheta:theta i == totimes (IGame.belief i theta) (IGame.utility i (proj_iprofile p theta) theta) = otimes (IGame.belief i theta) (IGame.utility i (proj_flatprofile (iprofile_flatten p) theta) theta)forall (player : finType) (g : IGame.game player) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), HGGame.NashEqb (iprofile_flatten p) = IGame.NashEqb pforall (player : finType) (g : IGame.game player) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), HGGame.NashEqb (iprofile_flatten p) = IGame.NashEqb pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)HGGame.NashEqb (iprofile_flatten p) = IGame.NashEqb pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)NFGame.NashEq (iprofile_flatten p) -> IGame.NashEq pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)NFGame.NashEq (iprofile_flatten p) -> IGame.NashEq pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:forall (i : {i : player & IGame.signal g i}) (ai : IGame.action g (projT1 i)), ~ prec (preceq_V (e:=IGame.evalst g (projT1 i))) (HGGame.global_utility i (iprofile_flatten p)) (HGGame.global_utility i (move (iprofile_flatten p) ai))i:playert:IGame.signal g iai:IGame.action g i~ prec (preceq_V (e:=IGame.evalst g i)) (IGame.GEutility t p) (IGame.GEutility t (bmove p t ai))player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:forall (i : {i : player & IGame.signal g i}) (ai : IGame.action g (projT1 i)), ~ prec (preceq_V (e:=IGame.evalst g (projT1 i))) (HGGame.global_utility i (iprofile_flatten p)) (HGGame.global_utility i (move (iprofile_flatten p) ai))i:playert:IGame.signal g iai:IGame.action g i~ prec (preceq_V (e:=IGame.evalst g (projT1 (existT (fun i : player => IGame.signal g i) i t)))) (HGGame.global_utility (existT (fun i : player => IGame.signal g i) i t) (iprofile_flatten p)) (HGGame.global_utility (existT (fun i : player => IGame.signal g i) i t) (move (iprofile_flatten p) ai)) -> ~ prec (preceq_V (e:=IGame.evalst g i)) (IGame.GEutility t p) (IGame.GEutility t (bmove p t ai))player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)IGame.NashEq p -> NFGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:forall (i : player) (t : IGame.signal g i) (ai : IGame.action g i), ~ prec (preceq_V (e:=IGame.evalst g i)) (IGame.GEutility t p) (IGame.GEutility t (bmove p t ai))it:{i : player & IGame.signal g i}ai:IGame.action g (projT1 it)~ prec (preceq_V (e:=IGame.evalst g (projT1 it))) (HGGame.global_utility it (iprofile_flatten p)) (HGGame.global_utility it (move (iprofile_flatten p) ai))by rewrite {1 2 3 4}(sigT_eta it) move_bmove -!HowsonRosenthal. Qed.player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:forall (i : player) (t : IGame.signal g i) (ai : IGame.action g i), ~ prec (preceq_V (e:=IGame.evalst g i)) (IGame.GEutility t p) (IGame.GEutility t (bmove p t ai))it:{i : player & IGame.signal g i}ai:IGame.action g (projT1 it)H':~ prec (preceq_V (e:=IGame.evalst g (projT1 it))) (IGame.GEutility (projT2 it) p) (IGame.GEutility (projT2 it) (bmove p (projT2 it) ai))~ prec (preceq_V (e:=IGame.evalst g (projT1 it))) (HGGame.global_utility it (iprofile_flatten p)) (HGGame.global_utility it (move (iprofile_flatten p) ai))forall (player : finType) (g : IGame.game player) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), HGGame.NashEq (iprofile_flatten p) <-> IGame.NashEq pforall (player : finType) (g : IGame.game player) (p : iprofile (IGame.signal g) (fun x : player => IGame.action g x)), HGGame.NashEq (iprofile_flatten p) <-> IGame.NashEq pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:HGGame.NashEq (iprofile_flatten p)IGame.NashEq pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEq pHGGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:HGGame.NashEq (iprofile_flatten p)IGame.NashEq pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEq pHGGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:HGGame.NashEqb (iprofile_flatten p)IGame.NashEqb pplayer:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEq pHGGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEq pHGGame.NashEq (iprofile_flatten p)player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEq pHGGame.NashEq (iprofile_flatten p)by rewrite (HowsonRosenthal_NashEqb p). Qed. End HR.player:finTypeg:IGame.game playerp:iprofile (IGame.signal g) (fun x : player => IGame.action g x)H:IGame.NashEqb pHGGame.NashEqb (iprofile_flatten p)