All proofs
Project-declaredLean 4.8.0 · mathlib@b5eba5954288

Debate eq transposed

debate_eq_transposed

Plain-language statement

The transposed formulation of debate is the same

Exact Lean statement

lemma debate_eq_transposed (o : Oracle) (alice : Alice) (bob : Bob) (vera : Vera) (t : ℕ) :
    (debate alice bob vera t).prob' o = transposed o alice bob vera t

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma debate_eq_transposed (o : Oracle) (alice : Alice) (bob : Bob) (vera : Vera) (t : ) :    (debate alice bob vera t).prob' o = transposed o alice bob vera t := by  have h :  n, (steps alice bob vera n).prob (fun _  o) =      alices o alice n >>= λ (p,y)  shim y <$> bobs o bob vera p y := by    intro n; induction' n with n h    · simp only [steps, alices, pure_bind, bobs, shim, map_eq, Comp.prob', Comp.prob_pure]    · simp only [steps, h, alices, bobs, bind_assoc, Comp.prob', Comp.prob_bind]      apply congr_arg₂ _ rfl; funext p,y      simp only [pure_bind, map_eq, bind_assoc, Vector.tail_cons, Vector.head_cons,        bind_comm _ (bobs _ _ _ _ _)]      apply congr_arg₂ _ rfl; funext r; match r with      | some r => simp only [shim, pure_bind, bind_pure, bind_const, Comp.prob_pure]      | none =>        simp only [shim, step, Comp.prob_bind, Comp.prob_allow_all]        apply congr_arg₂ _ rfl; funext q        simp only [bind_assoc, bind_comm _ ((bob _ _ _).prob _)]; apply congr_arg₂ _ rfl; funext s        match s with        | true =>          simp only [if_true, Comp.prob_bind, Comp.prob_pure, Comp.prob_sample', bind_assoc]          apply congr_arg₂ _ rfl; funext x; simp only [bind_const, pure_bind]        | false =>          simp only [Bool.false_eq_true, ↓reduceIte, Comp.prob_bind, Comp.prob_allow_all,            Comp.prob_pure, Nat.add_succ_sub_one, Nat.add_zero, bind_assoc, pure_bind, bind_const]  simp only [debate, transposed, trace, extract, h, bind_assoc, map_eq, Comp.prob', Comp.prob_bind]  apply congr_arg₂ _ rfl; funext p,y; apply congr_arg₂ _ rfl; funext r; match r with  | some true => simp only [shim, pure_bind, Option.getD, Comp.prob_pure]  | some false => simp only [shim, pure_bind, Option.getD, Comp.prob_pure]  | none => simp only [shim, pure_bind, Option.getD, Comp.prob_pure]
Project
debate
License
Apache-2.0
Commit
de3a6e500ae1
Source
Debate/Details.lean:140-167

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