Buckets:
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder | |
| namespace ThresholdParallelRepetition | |
| structure Game (x y a b : ℕ) where | |
| questionProb : Fin (x + 1) × Fin (y + 1) → ℝ | |
| questionProb_nonneg : ∀ z, 0 ≤ questionProb z | |
| questionProb_sum : ∑ z, questionProb z = 1 | |
| accepts : Fin (x + 1) → Fin (y + 1) → Fin (a + 1) → Fin (b + 1) → Bool | |
| structure Strategy (X Y A B : Type) [Fintype A] [Fintype B] where | |
| dimA : ℕ | |
| dimB : ℕ | |
| state : Fin (dimA + 1) × Fin (dimB + 1) → ℂ | |
| state_unit : ∑ i, Complex.normSq (state i) = 1 | |
| alice : X → A → Matrix (Fin (dimA + 1)) (Fin (dimA + 1)) ℂ | |
| bob : Y → B → Matrix (Fin (dimB + 1)) (Fin (dimB + 1)) ℂ | |
| alice_pos : ∀ x a, (alice x a).PosSemidef | |
| bob_pos : ∀ y b, (bob y b).PosSemidef | |
| alice_total : ∀ x, ∑ a, alice x a = 1 | |
| bob_total : ∀ y, ∑ b, bob y b = 1 | |
| def Strategy.born {X Y A B : Type} [Fintype A] [Fintype B] | |
| (S : Strategy X Y A B) (x : X) (y : Y) (a : A) (b : B) : ℝ := | |
| ∑ i, ∑ j, (star (S.state i) * | |
| (S.alice x a i.1 j.1 * S.bob y b i.2 j.2) * S.state j).re | |
| abbrev SingleStrategy (x y a b : ℕ) := | |
| Strategy (Fin (x + 1)) (Fin (y + 1)) (Fin (a + 1)) (Fin (b + 1)) | |
| def successProbability {x y a b : ℕ} (G : Game x y a b) (S : SingleStrategy x y a b) : ℝ := | |
| ∑ z : Fin (x + 1) × Fin (y + 1), G.questionProb z * | |
| ∑ w : Fin (a + 1) × Fin (b + 1), | |
| if G.accepts z.1 z.2 w.1 w.2 then S.born z.1 z.2 w.1 w.2 else 0 | |
| def entangledValue {x y a b : ℕ} (G : Game x y a b) : ℝ := | |
| sSup (Set.range (successProbability G)) | |
| abbrev RepeatedStrategy (x y a b k : ℕ) := | |
| Strategy (Fin k → Fin (x + 1)) (Fin k → Fin (y + 1)) | |
| (Fin k → Fin (a + 1)) (Fin k → Fin (b + 1)) | |
| def wins {x y a b k : ℕ} (G : Game x y a b) | |
| (xs : Fin k → Fin (x + 1)) (ys : Fin k → Fin (y + 1)) | |
| (as : Fin k → Fin (a + 1)) (bs : Fin k → Fin (b + 1)) : ℕ := | |
| ∑ i, if G.accepts (xs i) (ys i) (as i) (bs i) then 1 else 0 | |
| def thresholdProbability {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) | |
| (S : RepeatedStrategy x y a b k) : ℝ := | |
| ∑ xs : Fin k → Fin (x + 1), ∑ ys : Fin k → Fin (y + 1), | |
| (∏ i, G.questionProb (xs i, ys i)) * | |
| ∑ as : Fin k → Fin (a + 1), ∑ bs : Fin k → Fin (b + 1), | |
| if ⌈(entangledValue G + δ) * (k : ℝ)⌉₊ ≤ wins G xs ys as bs | |
| then S.born xs ys as bs else 0 | |
| def thresholdValue {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) : ℝ := | |
| sSup (Set.range (thresholdProbability (k := k) G δ)) | |
| theorem threshold_parallel_repetition : | |
| ∃ κ₀ : ℝ, 0 < κ₀ ∧ | |
| ∀ (x y a b : ℕ) (G : Game x y a b), entangledValue G < 1 → | |
| ∀ (δ : ℝ), 0 < δ → δ < 1 - entangledValue G → | |
| ∀ (k : ℕ), 1 ≤ k → | |
| (∀ S : RepeatedStrategy x y a b k, | |
| thresholdProbability G δ S ≤ | |
| Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k)) ∧ | |
| thresholdValue (k := k) G δ ≤ | |
| Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k) := by | |
| sorry | |
| end ThresholdParallelRepetition | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.18 kB
- Xet hash:
- 3b38943d921a90985b7ac145ccdae5ca2c64abe1c0410f65cbcf722d4b651bb5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.