lemmablindPrecision_spec (DFS : FinsetV) (hD : D.Nonempty)
(Δ P : ℝ) (m : ℕ) :
Precise (blindUpdate DFS hD Δ P m) (mainActual DS Δ m)
(blindPrecision DFS hD Δ P m) (2*m) (some State.initial) :=
proof · 2
lines
Classical.choose_spec (FixedDyadic.exists_precision (blindUpdate DFS hD Δ P m)
(mainActual DS Δ m) (2*m) (some State.initial))
lemmagood_update (DFS : FinsetV) (hD : D.Nonempty) (Δ Pkappa : ℝ)
(m MEJ : ℕ) (s : Option (StateV)) (a : ActionDMEJ)
(hsep : ∀ w ∈D, ∀ f ∈F, (1:ℝ) ≤ dist w f) (hs : Good s) :
Good (update DFS hD Δ P kappa m MEJ s a) :=by
proof · 30
lines
cases s with
| none => simp only [update,Good,reduceCtorEq,IsEmpty.forall_iff,implies_true]
| some s =>have hrad := hs s rfl
simp only [update]
split_ifs with hw
· rcases a with u | (w | ⟨w,e⟩)
· simp [Good]
· cases he : ofLex (chosen S Δ s w) with
| inl v =>
simp only [he]
apply good_retain
simpa only [State.remove] using hrad
| inr j => simp [he,Good]
· cases hr : menuRadius D hD P kappa m MEJ s w e with
| none => simp [hr,Good]
| some R=>
simp only [hr]
split_ifs with hb
· apply good_retain
obtain ⟨f,hf⟩ := hb
have hR := (hsep w w.property f (Finset.mem_filter.mp hf).1).trans
(Finset.mem_filter.mp hf).2
intro z hz
simp only [State.add,List.mem_append,List.mem_cons,List.not_mem_nil,or_false] at hz
rcases hz with hz | hz
· exact hrad z hz
· simpa only [hz] using hR
· simp [Good]
· simp [Good]
lemmaclient_lower (DFS : FinsetV) (hSF : S⊆F) (Δ : ℝ) (hΔ : 1≤ Δ)
(s : StateV) (hs : ∀ z ∈ s.leaves, (1:ℝ) ≤ z.2)
(hsep : ∀ w ∈D, ∀ f ∈F, (1:ℝ) ≤ dist w f)
(w : V) (hw : w ∈D) : 1≤ clientWeight S Δ s w :=by
proof · 19
lines
apply le_trans _ (le_max_right _ _)
unfold reference tagDistance
have hc := chosen_mem S Δ s w
cases he : ofLex (chosen S Δ s w) with
| inl v =>havehc' : v ∈S \ s.deleted :=by
apply (real_mem_tags S s v).mp
simpa only [realTag,← he,toLex_ofLex] using hc
exact hsep w hw v (hSF (Finset.mem_sdiff.mp hc').1)
| inr j =>
cases j with
| zero => exact hΔ
| succ j =>cases hz : s.leaves[j]? with
| none => simpa only [hz] using hΔ
| some z =>havehzmem : z ∈ s.leaves :=List.mem_of_getElem? hz
simpa only [hz] using (hs z hzmem).trans
(le_add_of_nonneg_left (dist_nonneg : 0≤ dist w z.1))
unfold totalWeight
calc∑ w ∈D, clientWeight S Δ s w ≤∑ _w ∈D, Δ :=by
apply Finset.sum_le_sum
intro w _
exact max_le hΔ (reference_le_diameter S Δ s w)
_ = (D.card:ℝ)*Δ :=by simp