cfahlgren1's picture
download
raw
4.56 kB
import Mathlib
import OAI.Computability.VertexCover.Repetition.SelectedInformation
namespace OAI
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
section
namespace UniqueGames.Foundations.Repetition
open scoped BigOperators
open Games Information
noncomputable section
variable {Q₁ Q₂ A₁ A₂ : Type*}
[Fintype Q₁] [Fintype Q₂] [Fintype A₁] [Fintype A₂]
[DecidableEq Q₁] [DecidableEq Q₂] {n : Nat}
def selectedJointWeight (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n))
(z : (SelectedInput Q₁ Q₂ selected × SelectedLabels (A₁ := A₁) (A₂ := A₂) selected) ×
({i : Fin n // i ∉ selected} → Q₁ × Q₂)) : ℝ :=
(selectedInputLaw G selected).weight z.1.1 *
independentProduct (fun i => (selectedInputProfile G selected z.1.1 i).weight) z.2 *
selectedLikelihood G strategy selected z.1.1.1 z.1.2 z.2 /
G.selectedSuccess strategy selected
omit [DecidableEq Q₁] [DecidableEq Q₂] in
theorem selectedJointWeight_nonnegative (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n)) (z) : 0 ≤ selectedJointWeight G strategy selected z := by
apply div_nonneg
· exact mul_nonneg
(mul_nonneg ((selectedInputLaw G selected).nonnegative _)
((independentProduct_isProbability _
(fun i => gameLaw_isProbability (selectedInputProfile G selected z.1.1 i))).1 z.2))
(selectedLikelihood_nonnegative G strategy selected z.1.1.1 z.1.2 z.2)
· exact G.selectedSuccess_nonnegative strategy selected
omit [DecidableEq Q₁] [DecidableEq Q₂] in
theorem selectedJointWeight_firstMarginal (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n)) (tv) :
firstMarginal (selectedJointWeight G strategy selected) tv =
selectedSideWeight G strategy selected tv := by
simp only [firstMarginal, selectedJointWeight, selectedSideWeight, selectedSideMass,
div_eq_mul_inv, Finset.mul_sum, Finset.sum_mul]
apply Finset.sum_congr rfl
intro i _
ring
theorem selectedJointWeight_isProbability (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n)) (positive : 0 < G.selectedSuccess strategy selected) :
IsProbability (selectedJointWeight G strategy selected) := by
constructor
· exact selectedJointWeight_nonnegative G strategy selected
· rw [Fintype.sum_prod_type]
change (∑ tv, firstMarginal (selectedJointWeight G strategy selected) tv) = 1
simp_rw [selectedJointWeight_firstMarginal, selectedSideWeight, div_eq_mul_inv]
rw [← Finset.sum_mul, selectedSideMass_total, mul_inv_cancel₀ positive.ne']
def selectedJointLaw (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n)) (positive : 0 < G.selectedSuccess strategy selected) :=
toGameLaw (selectedJointWeight G strategy selected)
(selectedJointWeight_isProbability G strategy selected positive)
theorem selectedJointWeight_factorization (G : Game Q₁ Q₂ A₁ A₂)
(strategy : Strategy (Fin n → Q₁) (Fin n → Q₂) (Fin n → A₁) (Fin n → A₂))
(selected : Finset (Fin n)) (tv) (u) :
selectedJointWeight G strategy selected (tv,u) =
(∏ i : selected, G.questions.weight (tv.1.1 i)) *
(∏ i : {i : Fin n // i ∉ selected}, (revealLaw G.questions).weight (u i,tv.1.2 i)) *
selectedLikelihood G strategy selected tv.1.1 tv.2 u /
G.selectedSuccess strategy selected := by
unfold selectedJointWeight
simp only [selectedInputLaw, FiniteDistribution.product, FiniteDistribution.table,
independentProduct, selectedInputProfile]
rw [mul_assoc (∏ i : selected, G.questions.weight (tv.1.1 i)), reveal_product_factorization]
end
end UniqueGames.Foundations.Repetition
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end OAI

Xet Storage Details

Size:
4.56 kB
·
Xet hash:
6030172abc581a7df13d703879ccc34fa959844e14013e30c67b9e894dbeb0ef

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.