Documentation

CslibFrontier.GameTheory.ResourceAllocation.WirelessScheduler

Wireless Max-Weight trajectory existence, Cesàro optimality, and approximate scheduling #

This module closes the wireless scheduling, Carathéodory trajectory well-posedness, and long-run time-fraction optimality gaps for Section 22.1 of [OS07] (pp. 577–578, Eqs. (22.15)–(22.21)):

  1. Continuous-time wireless Max-Weight trajectory existence, Filippov/Euler-limit identification, uniqueness, unconditional convergence, and Cesàro time-fraction optimality:
  2. Discrete-time single-schedule γ-approximate & exact Max-Weight dual congestion control:
  3. Concrete computable greedy local-conflict & 1 / 2-approximate matching scheduler:
    • greedySchedule sorts links by weight and greedily adds conflict-free links; greedySchedule_approx proves a 1 / k weight approximation whenever every link conflicts with at most k links in any valid schedule (yielding 1 / (Δ + 1) on degree-Δ interference graphs).
    • greedyMatchingSchedule_half_approx specializes to primary-interference (node-exclusive matching) wireless networks, establishing γ = 1 / 2 (IsGammaApproxScheduler (1 / 2)) and providing a concrete, end-to-end approximate wireless scheduler.

Main definitions #

Main results #

References #

Part 1: Wireless Max-Weight trajectory existence, uniqueness, and Cesàro optimality #

W.scheduledCapacity bundled as a linear map (S → ℝ) →ₗ[ℝ] (L → ℝ).

noncomputable def Cslib.GameTheory.WirelessNetworkModel.maxWeightSchedule {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype S] [Nonempty S] (p : L → ℝ) :
S

Explicit single-schedule Max-Weight selector choosing a schedule s* ∈ S maximizing W.scheduleWeight p s = ∑_{l ∈ M_s} p_l c_l ([OS07], §22.1, p. 578).

noncomputable def Cslib.GameTheory.WirelessNetworkModel.maxWeightCornerDist {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype S] [DecidableEq S] [Nonempty S] (p : L → ℝ) :
S → ℝ

Pure corner schedule distribution Pi.single (W.maxWeightSchedule p) 1 activating the single Max-Weight schedule at link prices p.

theorem Cslib.GameTheory.WirelessNetworkModel.maxWeightCornerDist_opt {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype L] [Fintype S] [DecidableEq L] [DecidableEq S] [Nonempty S] (hcap : ∀ (l : L), 0 ≤ W.capacity l) {p : L → ℝ} (hp : ∀ (l : L), 0 ≤ p l) {f' : S → ℝ} (hf' : IsScheduleDist f') :
∑ l : L, p l * W.scheduledCapacity f' l ≤ ∑ l : L, p l * W.scheduledCapacity (W.maxWeightCornerDist p) l
theorem Cslib.GameTheory.WirelessNetworkModel.IsWirelessDualTrajectory.eqOn_of_myopic {R : Type u_1} {L : Type u_2} {S : Type u_3} [Fintype R] [Fintype L] [Fintype S] [DecidableEq L] {W : WirelessNetworkModel R L S} {x₁ x₂ : ℝ → R → ℝ} {f₁ f₂ : ℝ → S → ℝ} {p₁ p₂ : ℝ → L → ℝ} (hU : ∀ (r : R), IsAdmissibleUtility (W.utility r)) (hstrict : ∀ (r : R), StrictConcaveOn ℝ (Set.Ici 0) (W.utility r)) (h₁ : W.IsWirelessDualTrajectory x₁ f₁ p₁) (h₂ : W.IsWirelessDualTrajectory x₂ f₂ p₂) (hf₁_dist : ∀ t ∈ Set.Ici 0, IsScheduleDist (f₁ t)) (hf₁_max : ∀ t ∈ Set.Ici 0, ∀ (f' : S → ℝ), IsScheduleDist f' → ∑ l : L, p₁ t l * W.scheduledCapacity f' l ≤ ∑ l : L, p₁ t l * W.scheduledCapacity (f₁ t) l) (hf₂_dist : ∀ t ∈ Set.Ici 0, IsScheduleDist (f₂ t)) (hf₂_max : ∀ t ∈ Set.Ici 0, ∀ (f' : S → ℝ), IsScheduleDist f' → ∑ l : L, p₂ t l * W.scheduledCapacity f' l ≤ ∑ l : L, p₂ t l * W.scheduledCapacity (f₂ t) l) (hx₁0 : ∀ t ∈ Set.Ici 0, ∀ (r : R), 0 ≤ x₁ t r) (hx₂0 : ∀ t ∈ Set.Ici 0, ∀ (r : R), 0 ≤ x₂ t r) (hctrl₁_le : ∀ t ∈ Set.Ici 0, ∀ (r : R), derivWithin (W.utility r) (Set.Ici 0) (x₁ t r) ≤ W.routePrice (p₁ t) r) (hctrl₁_eq : ∀ t ∈ Set.Ici 0, ∀ (r : R), 0 < x₁ t r → derivWithin (W.utility r) (Set.Ici 0) (x₁ t r) = W.routePrice (p₁ t) r) (hctrl₂_le : ∀ t ∈ Set.Ici 0, ∀ (r : R), derivWithin (W.utility r) (Set.Ici 0) (x₂ t r) ≤ W.routePrice (p₂ t) r) (hctrl₂_eq : ∀ t ∈ Set.Ici 0, ∀ (r : R), 0 < x₂ t r → derivWithin (W.utility r) (Set.Ici 0) (x₂ t r) = W.routePrice (p₂ t) r) (hinit : p₁ 0 = p₂ 0) :
(∀ t ∈ Set.Ici 0, p₁ t = p₂ t) ∧ ∀ t ∈ Set.Ici 0, x₁ t = x₂ t

Global uniqueness of wireless Max-Weight price and rate trajectories ([OS07], §22.1, Eqs. (22.15), (22.21), p. 578): any two Carathéodory trajectories (x₁, f₁, p₁) and (x₂, f₂, p₂) starting at p₁ 0 = p₂ 0 under myopic rate control and Max-Weight scheduling have identical link prices p₁ t = p₂ t and identical source rates x₁ t = x₂ t for all t ≥ 0.

theorem Cslib.GameTheory.WirelessNetworkModel.exists_isWirelessDualTrajectory_of_myopic {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [Fintype L] [Fintype S] [DecidableEq L] [DecidableEq S] [Nonempty S] (hcap : ∀ (l : L), 0 ≤ W.capacity l) (hU : ∀ (r : R), IsAdmissibleUtility (W.utility r)) (hstrict : ∀ (r : R), StrictConcaveOn ℝ (Set.Ici 0) (W.utility r)) {p₀ : L → ℝ} (hp₀ : ∀ (l : L), 0 ≤ p₀ l) {x₀ : R → ℝ} (hx₀0 : ∀ (r : R), 0 ≤ x₀ r) (hx₀_le : ∀ (r : R), derivWithin (W.utility r) (Set.Ici 0) (x₀ r) ≤ W.routePrice p₀ r) :
have X := fun (r : R) => max (x₀ r) (∑ l ∈ W.route r, W.capacity l + 1); have g := fun (p : L → ℝ) (l : L) => W.linkLoad (fun (r : R) => clampedMyopicRate (W.utility r) (X r) (W.routePrice p r)) l; ∃ (x : ℝ → R → ℝ) (f : ℝ → S → ℝ) (p : ℝ → L → ℝ), p 0 = p₀ ∧ W.IsWirelessDualTrajectory x f p ∧ (∀ t ∈ Set.Ici 0, IsScheduleDist (f t)) ∧ (∀ t ∈ Set.Ici 0, ∀ (f' : S → ℝ), IsScheduleDist f' → ∑ l : L, p t l * W.scheduledCapacity f' l ≤ ∑ l : L, p t l * W.scheduledCapacity (f t) l) ∧ (∀ t ∈ Set.Ici 0, ∀ (r : R), 0 ≤ x t r) ∧ (∀ t ∈ Set.Ici 0, ∀ (r : R), derivWithin (W.utility r) (Set.Ici 0) (x t r) ≤ W.routePrice (p t) r) ∧ (∀ t ∈ Set.Ici 0, ∀ (r : R), 0 < x t r → derivWithin (W.utility r) (Set.Ici 0) (x t r) = W.routePrice (p t) r) ∧ ∃ (diag : ℕ → ℕ), StrictMono diag ∧ ∀ T ∈ Set.Ici 0, ∀ ε > 0, ∃ (N : ℕ), ∀ n ≥ N, ∀ t ∈ Set.Icc 0 T, ∀ (l : L), |projEulerInterp (projEulerSeq g 0 W.scheduledCapacityLinearMap W.maxWeightCornerDist p₀ (1 / (↑(diag n) + 1))) (1 / (↑(diag n) + 1)) t l - p t l| < ε

Global existence and single-schedule Euler/Filippov limit of wireless Max-Weight dual trajectories ([OS07], §22.1, Eqs. (22.15), (22.21), p. 578): for nonnegative link capacities, strictly concave admissible utilities, nonempty finite schedules S, and any nonnegative initial price p₀ admitting an initial myopic rate x₀ ≥ 0, there exists a global Carathéodory trajectory (x, f, p) on [0, ∞) satisfying W.IsWirelessDualTrajectory, myopic rate control, and Max-Weight scheduling at every instant, realized as the uniform-on-compacts limit of a subsequence of explicit single-schedule projected Euler interpolants using W.maxWeightCornerDist.

theorem Cslib.GameTheory.WirelessNetworkModel.exists_isWirelessDualTrajectory_tendsto_of_myopic {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [Fintype L] [Fintype S] [DecidableEq L] [Nonempty S] (hcap : ∀ (l : L), 0 ≤ W.capacity l) (hU : ∀ (r : R), IsAdmissibleUtility (W.utility r)) (hstrict : ∀ (r : R), StrictConcaveOn ℝ (Set.Ici 0) (W.utility r)) {xStar : R → ℝ} {fStar : S → ℝ} {pStar : L → ℝ} (hkkt : W.IsWirelessKKT xStar fStar pStar) {p₀ : L → ℝ} (hp₀ : ∀ (l : L), 0 ≤ p₀ l) {x₀ : R → ℝ} (hx₀0 : ∀ (r : R), 0 ≤ x₀ r) (hx₀_le : ∀ (r : R), derivWithin (W.utility r) (Set.Ici 0) (x₀ r) ≤ W.routePrice p₀ r) :
∃ (x : ℝ → R → ℝ) (f : ℝ → S → ℝ) (p : ℝ → L → ℝ), p 0 = p₀ ∧ W.IsWirelessDualTrajectory x f p ∧ (∀ t ∈ Set.Ici 0, IsScheduleDist (f t)) ∧ (∀ t ∈ Set.Ici 0, ∀ (f' : S → ℝ), IsScheduleDist f' → ∑ l : L, p t l * W.scheduledCapacity f' l ≤ ∑ l : L, p t l * W.scheduledCapacity (f t) l) ∧ Filter.Tendsto x Filter.atTop (nhds xStar) ∧ (∀ (r : R), 0 < xStar r → Filter.Tendsto (fun (t : ℝ) => W.routePrice (p t) r) Filter.atTop (nhds (W.routePrice pStar r))) ∧ ((∀ (r : R), 0 < xStar r) → Function.Injective W.routePrice → Filter.Tendsto p Filter.atTop (nhds pStar))

Unconditional global convergence of wireless Max-Weight dual congestion control ([OS07], §22.1, Eqs. (22.15), (22.21), p. 578): combines wireless Carathéodory trajectory existence (as the single-schedule Euler/Filippov limit) with Lyapunov convergence.

noncomputable def Cslib.GameTheory.WirelessNetworkModel.cesaroSchedule {S : Type u_3} (f : ℝ → S → ℝ) (T : ℝ) (s : S) :

Continuous-time Cesàro time-average schedule distribution (1 / T) ∫_0^T f t s dt ([OS07], §22.1, p. 578).

theorem Cslib.GameTheory.WirelessNetworkModel.cesaroSchedule_isScheduleDist {S : Type u_3} [Fintype S] {f : ℝ → S → ℝ} {T : ℝ} (hT : 0 < T) (hf_dist : ∀ t ∈ Set.Icc 0 T, IsScheduleDist (f t)) (hf_int : ∀ (s : S), IntervalIntegrable (fun (t : ℝ) => f t s) MeasureTheory.volume 0 T) :
theorem Cslib.GameTheory.WirelessNetworkModel.IsWirelessDualTrajectory.isWirelessOptimum_of_cesaro_cluster {R : Type u_1} {L : Type u_2} {S : Type u_3} [Fintype R] [Fintype S] [DecidableEq L] {W : WirelessNetworkModel R L S} {x : ℝ → R → ℝ} {f : ℝ → S → ℝ} {p : ℝ → L → ℝ} (htraj : W.IsWirelessDualTrajectory x f p) (hf_dist : ∀ t ∈ Set.Ici 0, IsScheduleDist (f t)) (hf_int : ∀ (s : S), ∀ T ∈ Set.Ici 0, IntervalIntegrable (fun (t : ℝ) => f t s) MeasureTheory.volume 0 T) (hx_int : ∀ (r : R), ∀ T ∈ Set.Ici 0, IntervalIntegrable (fun (t : ℝ) => x t r) MeasureTheory.volume 0 T) {xStar : R → ℝ} {fStar : S → ℝ} (hopt : W.IsWirelessOptimum xStar fStar) (hxlim : Filter.Tendsto x Filter.atTop (nhds xStar)) {P : ℝ} (hp_bdd : ∀ t ∈ Set.Ici 0, ∀ (l : L), p t l ≤ P) :
(∀ (Tn : ℕ → ℝ) (fLim : S → ℝ), Filter.Tendsto Tn Filter.atTop Filter.atTop → Filter.Tendsto (fun (n : ℕ) => cesaroSchedule f (Tn n)) Filter.atTop (nhds fLim) → W.IsWirelessOptimum xStar fLim) ∧ ∃ (Tn : ℕ → ℝ) (fLim : S → ℝ), Filter.Tendsto Tn Filter.atTop Filter.atTop ∧ Filter.Tendsto (fun (n : ℕ) => cesaroSchedule f (Tn n)) Filter.atTop (nhds fLim) ∧ W.IsWirelessOptimum xStar fLim

Long-run Cesàro schedule time-fraction optimality ([OS07], §22.1, p. 578): along any wireless dual trajectory (x, f, p) with x(t) → x*, uniformly bounded prices p, and optimal welfare pair (x*, f*), every cluster point fLim of the Cesàro time-average schedule cesaroSchedule f T along any T_n → ∞ is feasible with x* and therefore attains joint wireless social optimality W.IsWirelessOptimum x* fLim (and such a cluster point always exists).

Part 2: Discrete-time single-schedule γ-approximate & exact Max-Weight dual control #

def Cslib.GameTheory.WirelessNetworkModel.IsGammaApproxScheduler {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) (γ : ℝ) (sched : (L → ℝ) → S) :

A deterministic single-schedule selector sched : (L → ℝ) → S is γ-approximate if at every nonnegative link-price vector p it achieves at least a γ-fraction of every schedule's weighted price ([OS07], §22.1, p. 578).

theorem Cslib.GameTheory.WirelessNetworkModel.IsGammaApproxScheduler.le_scheduledCapacity_single {R : Type u_1} {L : Type u_2} {S : Type u_3} [Fintype L] [Fintype S] [DecidableEq L] [DecidableEq S] {W : WirelessNetworkModel R L S} {γ : ℝ} {sched : (L → ℝ) → S} (hsched : W.IsGammaApproxScheduler γ sched) (hcap : ∀ (l : L), 0 ≤ W.capacity l) {p : L → ℝ} (hp : ∀ (l : L), 0 ≤ p l) {f : S → ℝ} (hf : IsScheduleDist f) :
γ * ∑ l : L, p l * W.scheduledCapacity f l ≤ ∑ l : L, p l * W.scheduledCapacity (Pi.single (sched p) 1) l
noncomputable def Cslib.GameTheory.WirelessNetworkModel.wirelessDualStep {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [DecidableEq L] (sched : (L → ℝ) → S) (rate : (L → ℝ) → R → ℝ) (α : ℝ) (p : L → ℝ) (l : L) :

One discrete-time slot of single-schedule wireless dual congestion control with step size α: each link updates its queue/price by max 0 (p_l + α (y_l(x(p)) - 1_{l ∈ M_{sched(p)}} c_l)).

noncomputable def Cslib.GameTheory.WirelessNetworkModel.wirelessDualIter {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [DecidableEq L] (sched : (L → ℝ) → S) (rate : (L → ℝ) → R → ℝ) (α : ℝ) (p₀ : L → ℝ) :
ℕ → L → ℝ

Discrete-time iterate p_k of single-schedule wireless dual congestion control starting from p₀.

noncomputable def Cslib.GameTheory.WirelessNetworkModel.empiricalAvgRate {R : Type u_1} (x : ℕ → R → ℝ) (K : ℕ) (r : R) :

Empirical time-average rate vector (1 / K) ∑_{k < K} x k r over K discrete slots.

noncomputable def Cslib.GameTheory.WirelessNetworkModel.empiricalScheduleDist {S : Type u_3} [DecidableEq S] (s : ℕ → S) (K : ℕ) (s₀ : S) :

Empirical schedule time-fraction distribution (1 / K) |{k < K | s k = s₀}| over K slots.

theorem Cslib.GameTheory.WirelessNetworkModel.wirelessDualIter_nonneg {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [DecidableEq L] (sched : (L → ℝ) → S) (rate : (L → ℝ) → R → ℝ) (α : ℝ) {p₀ : L → ℝ} (hp₀ : ∀ (l : L), 0 ≤ p₀ l) (k : ℕ) (l : L) :
0 ≤ W.wirelessDualIter sched rate α p₀ k l
theorem Cslib.GameTheory.WirelessNetworkModel.wirelessDualIter_welfare_sub_le {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [Fintype L] [Fintype S] [DecidableEq L] (hcap : ∀ (l : L), 0 ≤ W.capacity l) (hU : ∀ (r : R), IsAdmissibleUtility (W.utility r)) {γ α : ℝ} (hα : 0 < α) {sched : (L → ℝ) → S} (hsched : W.IsGammaApproxScheduler γ sched) {X : R → ℝ} (hX0 : ∀ (r : R), 0 ≤ X r) {p₀ : L → ℝ} (hp₀ : ∀ (l : L), 0 ≤ p₀ l) {xStar : R → ℝ} {fStar : S → ℝ} (hxStar : ∀ (r : R), xStar r ∈ Set.Icc 0 (X r)) (hfStar : IsScheduleDist fStar) (hfeas : ∀ (l : L), W.linkLoad xStar l ≤ γ * W.scheduledCapacity fStar l) {K : ℕ} (hK : 0 < K) :
have rate := fun (p : L → ℝ) (r : R) => clampedMyopicRate (W.utility r) (X r) (W.routePrice p r); have p := W.wirelessDualIter sched rate α p₀; have B := ∑ r : R, X r + ∑ l : L, W.capacity l; W.welfare xStar - W.welfare (empiricalAvgRate (fun (k : ℕ) => rate (p k)) K) ≤ (∑ l : L, p₀ l ^ 2) / (2 * α * ↑K) + α * (↑(Fintype.card L) * B ^ 2) / 2

Discrete-time single-schedule γ-approximate Max-Weight drift-plus-penalty welfare bound ([OS07], §22.1, p. 578): running W.wirelessDualIter with any γ-approximate single-schedule selector (0 < γ ≤ 1), step size α > 0, and capped myopic rate controller clampedMyopicRate (W.utility r) (X r) achieves time-average welfare within (∑ l, p₀ l ^ 2) / (2 α K) + α |L| B^2 / 2 of every γ-scaled feasible pair (xStar, fStar) with xStar r ≤ X r.

theorem Cslib.GameTheory.WirelessNetworkModel.wirelessDualIter_load_sub_scheduledCapacity_le {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [Fintype S] [DecidableEq L] [DecidableEq S] (sched : (L → ℝ) → S) (rate : (L → ℝ) → R → ℝ) {α : ℝ} (hα : 0 < α) (p₀ : L → ℝ) {K : ℕ} (hK : 0 < K) (l : L) :
have p := W.wirelessDualIter sched rate α p₀; W.linkLoad (empiricalAvgRate (fun (k : ℕ) => rate (p k)) K) l - W.scheduledCapacity (empiricalScheduleDist (fun (k : ℕ) => sched (p k)) K) l ≤ (p K l - p₀ l) / (α * ↑K)

Empirical capacity-violation bound for discrete-time single-schedule wireless dual control: for any selector sched, rate controller rate, step size α > 0, and horizon K > 0, W.linkLoad (empiricalAvgRate x K) l - W.scheduledCapacity (empiricalScheduleDist s K) l ≤ (p K l - p₀ l) / (α * K).

theorem Cslib.GameTheory.WirelessNetworkModel.wirelessDualIter_lyapunov_le {R : Type u_1} {L : Type u_2} {S : Type u_3} (W : WirelessNetworkModel R L S) [Fintype R] [Fintype L] [Fintype S] [DecidableEq L] (hcap : ∀ (l : L), 0 ≤ W.capacity l) (hU : ∀ (r : R), IsAdmissibleUtility (W.utility r)) {α : ℝ} (hα : 0 < α) {sched : (L → ℝ) → S} (hsched : W.IsGammaApproxScheduler 1 sched) {X : R → ℝ} (hX0 : ∀ (r : R), 0 ≤ X r) {p₀ : L → ℝ} (hp₀ : ∀ (l : L), 0 ≤ p₀ l) {xStar : R → ℝ} {fStar : S → ℝ} {pStar : L → ℝ} (hkkt : W.IsWirelessKKT xStar fStar pStar) (hxStar_le : ∀ (r : R), xStar r ≤ X r) (K : ℕ) :
have rate := fun (p : L → ℝ) (r : R) => clampedMyopicRate (W.utility r) (X r) (W.routePrice p r); have p := W.wirelessDualIter sched rate α p₀; have B := ∑ r : R, X r + ∑ l : L, W.capacity l; lyapunov pStar (p K) ≤ lyapunov pStar p₀ + ↑K * (α ^ 2 * (↑(Fintype.card L) * B ^ 2) / 2)

Discrete-time Lyapunov bound under exact single-schedule Max-Weight (γ = 1): for any wireless KKT triple (xStar, fStar, pStar) with xStar r ≤ X r, the quadratic Lyapunov function satisfies lyapunov pStar (p K) ≤ lyapunov pStar p₀ + K * α^2 * |L| * B^2 / 2, which combined with wirelessDualIter_load_sub_scheduledCapacity_le bounds empirical capacity violation by O(1 / (α K) + 1 / √K).

Part 3: Concrete greedy conflict-free & 1 / 2-approximate matching scheduler #

def Cslib.GameTheory.IsConflictFree {L : Type u_1} (conflict : L → L → Prop) (M : Finset L) :

A subset of links M is conflict-free (an independent set in the interference graph) under symmetric conflict relation conflict when no two distinct links in M conflict.

noncomputable def Cslib.GameTheory.greedyFromList {L : Type u_1} [DecidableEq L] (conflict : L → L → Prop) [DecidableRel conflict] (weight : L → ℝ) (order : List L) :

Greedy conflict-free link selection scanning an ordered list order from heaviest to lightest, inserting each positive-weight link that does not conflict with previously selected links.

noncomputable def Cslib.GameTheory.greedySchedule {L : Type u_1} [Fintype L] [DecidableEq L] (conflict : L → L → Prop) [DecidableRel conflict] (weight : L → ℝ) :

Greedy conflict-free wireless scheduler on a finite link set L: sorts all links in nonincreasing order of weight and greedily adds conflict-free links with positive weight.

theorem Cslib.GameTheory.greedySchedule_isConflictFree {L : Type u_1} [Fintype L] [DecidableEq L] (conflict : L → L → Prop) [DecidableRel conflict] (hsym : ∀ (a b : L), conflict a b → conflict b a) (weight : L → ℝ) :
IsConflictFree conflict (greedySchedule conflict weight)
theorem Cslib.GameTheory.greedySchedule_approx {L : Type u_1} [Fintype L] [DecidableEq L] (conflict : L → L → Prop) [DecidableRel conflict] (hsym : ∀ (a b : L), conflict a b → conflict b a) {weight : L → ℝ} (hw : ∀ (l : L), 0 ≤ weight l) {M : Finset L} {k : ℕ} (hdeg : ∀ y ∈ greedySchedule conflict weight, {x ∈ M | y = x ∨ conflict y x}.card ≤ k) :
∑ x ∈ M, weight x ≤ ↑k * ∑ y ∈ greedySchedule conflict weight, weight y

Greedy 1 / k approximation for conflict-free wireless scheduling ([OS07], §22.1, p. 578): if every link y in greedySchedule conflict weight blocks at most k links in a conflict-free schedule M, then ∑ x ∈ M, weight x ≤ k * ∑ y ∈ greedySchedule conflict weight, weight y (giving 1 / (Δ + 1) on degree-Δ interference graphs and 1 / 2 on matchings).

def Cslib.GameTheory.sharesEndpoint {L : Type u_1} {V : Type u_2} (src dst : L → V) (a b : L) :

Primary-interference (node-exclusive) conflict relation between wireless links with endpoints src l, dst l : V: two links conflict when they share an endpoint.

Instances For
    @[instance_reducible]
    theorem Cslib.GameTheory.symmetric_sharesEndpoint {L : Type u_1} {V : Type u_2} (src dst : L → V) (a b : L) :
    sharesEndpoint src dst a b → sharesEndpoint src dst b a
    theorem Cslib.GameTheory.card_filter_sharesEndpoint_le_two {L : Type u_1} {V : Type u_2} [DecidableEq L] [DecidableEq V] (src dst : L → V) {M : Finset L} (hM : IsConflictFree (sharesEndpoint src dst) M) (y : L) :
    {x ∈ M | y = x ∨ sharesEndpoint src dst y x}.card ≤ 2

    In any node-exclusive matching M (IsConflictFree (sharesEndpoint src dst) M), every link y shares an endpoint with at most 2 links of M (at most one at src y and at most one at dst y).

    theorem Cslib.GameTheory.greedyMatchingSchedule_half_approx {L : Type u_1} {V : Type u_2} [Fintype L] [DecidableEq L] [DecidableEq V] (src dst : L → V) {weight : L → ℝ} (hw : ∀ (l : L), 0 ≤ weight l) {M : Finset L} (hM : IsConflictFree (sharesEndpoint src dst) M) :
    1 / 2 * ∑ x ∈ M, weight x ≤ ∑ y ∈ greedySchedule (sharesEndpoint src dst) weight, weight y

    Concrete 1 / 2-approximate greedy matching wireless scheduler ([OS07], §22.1, p. 578): on any primary-interference (node-exclusive) wireless network whose valid schedules are matchings (IsConflictFree (sharesEndpoint src dst)), greedySchedule achieves at least 1 / 2 of the maximum weighted price of every matching.