Lean module · Foundations
BanditRLProof.Algorithms.MusicalChairsPopulation
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.Algorithms.MusicalChairsCoordinationTime, BanditRLProof.Algorithms.MusicalChairsCollision
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
theorem
BanditRLProof.MusicalChairs.base_gamma_upper
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.base_gamma_upperReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem base_gamma_upper {k : ℝ} (hk : 1 < k) : (1-1/k) ^ (2/5 : ℝ) ≤ 1 - (2/5 : ℝ)/k
theorem
BanditRLProof.MusicalChairs.base_neg_gamma_lower
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.base_neg_gamma_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem base_neg_gamma_lower {k : ℝ} (hk : 1 < k) : 1 + (2/5 : ℝ)/k ≤ (1-1/k) ^ (-(2/5 : ℝ))
theorem
BanditRLProof.MusicalChairs.avoidanceBase_eq
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.avoidanceBase_eqReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem avoidanceBase_eq {k : ℕ} (hk : 0 < k) : (((k-1 : ℕ) : ℝ)/(k : ℝ)) = 1-1/(k : ℝ)
theorem
BanditRLProof.MusicalChairs.avoidance_mass_lower
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.avoidance_mass_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem avoidance_mass_lower {n k : ℕ} (hk : 1 < k) (hnk : n ≤ k) : (1/4 : ℝ) ≤ (1-1/(k : ℝ))^(n-1)
theorem
BanditRLProof.MusicalChairs.collision_accuracy_sandwich
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.collision_accuracy_sandwichReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem collision_accuracy_sandwich {n k : ℕ} (hk : 1 < k) (hnk : n ≤ k) (pHat : ℝ) (hacc : |pHat-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : (1-1/(k : ℝ))^(n-1) * (1-1/(k : ℝ))^(2/5 : ℝ) ≤ 1-pHat ∧ 1-pHat ≤ (1-1/(k : ℝ))^(n-1) * (1-1/(k : ℝ))^(-(2/5 : ℝ))
theorem
BanditRLProof.MusicalChairs.collision_accuracy_survival_pos
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.collision_accuracy_survival_posReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem collision_accuracy_survival_pos {n k : ℕ} (hk : 1 < k) (hnk : n ≤ k) (pHat : ℝ) (hacc : |pHat-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : 0 < 1-pHat
theorem
BanditRLProof.MusicalChairs.population_inverse_margin
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.population_inverse_marginReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem population_inverse_margin {n k : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (pHat : ℝ) (hacc : |pHat-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : (n : ℝ)-(2/5 : ℝ) ≤ 1+Real.log (1-pHat)/Real.log (1-1/(k : ℝ)) ∧ 1+Real.log (1-pHat)/Real.log (1-1/(k : ℝ)) ≤ (n : ℝ)+(2/5 : ℝ)
theorem
BanditRLProof.MusicalChairs.population_inverse_round
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.population_inverse_roundReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem population_inverse_round {n k : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (pHat : ℝ) (hacc : |pHat-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : round (1+Real.log (1-pHat)/Real.log (1-1/(k : ℝ))) = (n : ℤ)
def
BanditRLProof.MusicalChairs.populationInverse
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationInverseReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def populationInverse (k T C : ℕ) : ℝ
def
BanditRLProof.MusicalChairs.populationEstimate
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimateReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def populationEstimate (k T C : ℕ) : ℕ
def
BanditRLProof.MusicalChairs.localPopulationEstimate
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.localPopulationEstimateReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def localPopulationEstimate {k T : ℕ} (f : Fin T → ExplorationFeedback k) : ℕ
theorem
BanditRLProof.MusicalChairs.localCollisionCount_le
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.localCollisionCount_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem localCollisionCount_le {k T : ℕ} (f : Fin T → ExplorationFeedback k) : localCollisionCount f ≤ T
theorem
BanditRLProof.MusicalChairs.noncollision_fraction_eq
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.noncollision_fraction_eqReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem noncollision_fraction_eq {T C : ℕ} (hT : 0 < T) (hC : C ≤ T) : (((T-C : ℕ) : ℝ)/(T : ℝ)) = 1-(C : ℝ)/(T : ℝ)
theorem
BanditRLProof.MusicalChairs.populationInverse_ge_one
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationInverse_ge_oneReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationInverse_ge_one {k T C : ℕ} (hk : 1 < k) (hC : C < T) : 1 ≤ populationInverse k T C
theorem
BanditRLProof.MusicalChairs.populationEstimate_le
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimate_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationEstimate_le (k T C : ℕ) : populationEstimate k T C ≤ k
theorem
BanditRLProof.MusicalChairs.populationEstimate_all_collision
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimate_all_collisionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationEstimate_all_collision (k T : ℕ) : populationEstimate k T T = k
theorem
BanditRLProof.MusicalChairs.populationEstimate_zero_collision
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimate_zero_collisionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationEstimate_zero_collision {k T : ℕ} (hk : 0 < k) (hT : 0 < T) : populationEstimate k T 0 = 1
theorem
BanditRLProof.MusicalChairs.populationEstimate_correct
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimate_correctReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationEstimate_correct {n k T C : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (hT : 0 < T) (hC : C ≤ T) (hacc : |(C : ℝ)/T-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : populationEstimate k T C = n
theorem
BanditRLProof.MusicalChairs.localPopulationEstimate_correct
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.localPopulationEstimate_correctReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem localPopulationEstimate_correct {n k T : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (hT : 0 < T) (f : Fin T → ExplorationFeedback k) (hacc : |(localCollisionCount f : ℝ)/T-collisionProbReal n k| ≤ 1/(10*(k : ℝ))) : localPopulationEstimate f = n
theorem
BanditRLProof.MusicalChairs.populationEstimate_regular_cast
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationEstimate_regular_castReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationEstimate_regular_cast {k T C : ℕ} (hk : 1 < k) (hC : C < T) : (populationEstimate k T C : ℤ) = min (k : ℤ) (round (populationInverse k T C))
theorem
BanditRLProof.MusicalChairs.collisionCount_le
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.collisionCount_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem collisionCount_le {n k T : ℕ} (x : Fin T → Fin n → Fin k) (i : Fin n) : collisionCount i x ≤ T
theorem
BanditRLProof.MusicalChairs.localPopulationEstimate_eq
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.localPopulationEstimate_eqReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem localPopulationEstimate_eq {n k T : ℕ} (x : Fin T → Fin n → Fin k) (r : Fin T → Fin k → ℝ) (i : Fin n) : localPopulationEstimate (explorationFeedback x r i) = populationEstimate k T (collisionCount i x)
def
BanditRLProof.MusicalChairs.populationRecovered
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationRecoveredReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def populationRecovered {n k T : ℕ} : Set (Fin T → Fin n → Fin k)
theorem
BanditRLProof.MusicalChairs.allCollisionAccurate_subset_populationRecovered
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.allCollisionAccurate_subset_populationRecoveredReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem allCollisionAccurate_subset_populationRecovered {n k T : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (hT : 0 < T) : allCollisionAccurate (n := n) (k := k) (T := T) ⊆ populationRecovered
theorem
BanditRLProof.MusicalChairs.populationRecovered_probability
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.populationRecovered_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem populationRecovered_probability {n k T : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (hT : 0 < T) (delta : ℝ) (hdelta : 0 < delta) (hbudget : (50*(k : ℝ)^2) * Real.log (4*(k : ℝ)/delta) ≤ T) : 1 - ENNReal.ofReal (delta/2) ≤ (explorationLaw n k T (by omega)).toMeasure (populationRecovered (n := n) (k := k) (T := T))
def
BanditRLProof.MusicalChairs.explorationEstimatesCorrect
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.explorationEstimatesCorrectReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def explorationEstimatesCorrect {n k T : ℕ} (nu : Fin k → Measure ℝ) (eps : ℝ) : Set ((Fin T → Fin n → Fin k) × (Fin T → Fin k → ℝ))
theorem
BanditRLProof.MusicalChairs.explorationEstimatesCorrect_eq_inter
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.explorationEstimatesCorrect_eq_interReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem explorationEstimatesCorrect_eq_inter {n k T : ℕ} (nu : Fin k → Measure ℝ) (eps : ℝ) : explorationEstimatesCorrect (n := n) (T := T) nu eps = allMeanAccurate nu eps ∩ Prod.fst ⁻¹' populationRecovered
theorem
BanditRLProof.MusicalChairs.measurableSet_explorationEstimatesCorrect
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.measurableSet_explorationEstimatesCorrectReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurableSet_explorationEstimatesCorrect {n k T : ℕ} (nu : Fin k → Measure ℝ) (eps : ℝ) : MeasurableSet (explorationEstimatesCorrect (n := n) (T := T) nu eps)
theorem
BanditRLProof.MusicalChairs.explorationStatisticsAccurate_subset_estimatesCorrect
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.explorationStatisticsAccurate_subset_estimatesCorrectReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem explorationStatisticsAccurate_subset_estimatesCorrect {n k T : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (hT : 0 < T) (nu : Fin k → Measure ℝ) (eps : ℝ) : explorationStatisticsAccurate (n := n) (T := T) nu eps ⊆ explorationEstimatesCorrect nu eps
theorem
BanditRLProof.MusicalChairs.explorationEstimatesCorrect_probability
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Multi-agent bandits
Canonical node identity
declaration:BanditRLProof.MusicalChairs.explorationEstimatesCorrect_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem explorationEstimatesCorrect_probability {n k : ℕ} (hn : 0 < n) (hk : 1 < k) (hnk : n ≤ k) (nu : Fin k → Measure ℝ) [∀ a, IsProbabilityMeasure (nu a)] (hb : ∀ a, ∀ᵐ y ∂nu a, y ∈ Set.Icc (0 : ℝ) 1) (eps delta : ℝ) (heps : 0 < eps) (heps1 : eps ≤ 1) (hdelta : 0 < delta) (hdelta1 : delta < 1) : 1 - ENNReal.ofReal delta ≤ explorationRewardLaw (by omega) nu (explorationEstimatesCorrect (n := n) (T := explorationLength k eps delta) nu eps)