All proofs
Project-declaredLean 4.8.0 · mathlib@b5eba5954288

Bob steps cost

bob_steps_cost

Plain-language statement

Bob makes few queries, regardless of Alice and Vera

Exact Lean statement

lemma bob_steps_cost (o : Oracle) (alice : Alice) (vera : Vera) (n : ℕ):
    (steps alice (bob s b q) vera n).cost (fun _ ↦ o) BobId ≤ n * samples ((b-s)/2) q

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma bob_steps_cost (o : Oracle) (alice : Alice) (vera : Vera) (n : ):    (steps alice (bob s b q) vera n).cost (fun _  o) BobId  n * samples ((b-s)/2) q := by  induction' n with n h  · simp only [Nat.zero_eq, steps, Comp.cost_pure, CharP.cast_eq_zero, zero_mul, le_refl]  · simp only [steps, Comp.cost_bind, Nat.cast_succ, add_mul, one_mul]    refine add_le_add h (exp_le_of_forall_le (fun y m  ?_))    induction y    · simp only [Comp.cost_pure, Nat.cast_nonneg]    · simp only [step, Comp.sample'_bind, pure_bind, Comp.cost_bind, Comp.cost_allow_all,        Comp.prob_allow_all]      have b0 :  y o, (alice n y).cost o BobId = 0 := by intro _ _; zero_cost      rw [b0, zero_add]      refine exp_le_of_forall_le fun _ _  ?_      simp only [bob_cost, add_le_iff_nonpos_right]      refine (exp_eq_zero fun x _  ?_).le      induction x      · simp only [ite_false, Comp.cost_bind, Comp.cost_allow_all, Comp.prob_allow_all,          Comp.cost_pure, exp_const, add_zero]        zero_cost      · simp only [ite_true, Comp.cost_sample, Comp.cost_pure, exp_const]
Project
debate
License
Apache-2.0
Commit
de3a6e500ae1
Source
Debate/Cost.lean:70-89

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.8.0

Alice pr le

alice_pr_le

Plain-language statement

Honest Alice has error ≥ e with probability ≤ q

probabilitycomplexity theoryinteractive protocols

Source project: debate

Person-level attribution pending.

View proof record
Project-declaredLean 4.8.0

Alice steps cost

alice_steps_cost

Plain-language statement

Alice makes few queries, regardless of Bob and Vera

probabilitycomplexity theoryinteractive protocols

Source project: debate

Person-level attribution pending.

View proof record
Project-declaredLean 4.8.0

Alices close

alices_close

Plain-language statement

Alice produces (p,y) with p close to o.probs y with good probability

probabilitycomplexity theoryinteractive protocols

Source project: debate

Person-level attribution pending.

View proof record