AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.PublicCoin.Protocol.toDeterministic_run

theoremverifiedimported Lean

Fixing the shared randomness agrees with the randomised run. Let $p$ be a public-coin protocol over a randomness space $\Omega$, with Alice's private input in $X$, Bob's in $Y$, and output in $\alpha$, and fix a random outcome $\omega \in \Omega$. For all private inputs $x \in X$ and $y \in Y$, executing the deterministic protocol obtained from $p$ by fixing the shared randomness to $\omega$ on the pair $(x, y)$ returns the same output in $\alpha$ as the randomised execution of $p$ on $x$ and $y$ with shared random string $\omega$.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open MeasureTheory ProbabilityTheory in
@[simp]
theorem CommunicationComplexity.PublicCoin.Protocol.toDeterministic_run
    {Ω X Y α : Type*}
    (p : PublicCoin.Protocol Ω X Y α) (ω : Ω)
    (x : X) (y : Y) :
    (p.toDeterministic ω).run x y = p.rrun x y ω
Source
TCSlib, `CommunicationComplexity.PublicCoin.Protocol.toDeterministic_run`
Lean proof
By Lucy Horowitz, Timothe Kasriel, Mihir Singhal, from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Copyright (c) 2026 Lucy Horowitz, Timothe Kasriel, and Mihir Singhal. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
propext
Built on 23
Used by 3

Lean source view module on GitHub

set_option relaxedAutoImplicit false inset_option autoImplicit false inopen MeasureTheory ProbabilityTheory in/-- Running the deterministic protocol obtained by fixing the randomness `ω` on `(x, y)` gives the same output as running the public-coin protocol on `(x, y)` with randomness `ω`. -/@[simp]theorem CommunicationComplexity.PublicCoin.Protocol.toDeterministic_run    {Ω X Y α : Type*}    (p : PublicCoin.Protocol Ω X Y α) (ω : Ω)    (x : X) (y : Y) :    (p.toDeterministic ω).run x y = p.rrun x y ω := by  simp [toDeterministic, PublicCoin.Protocol.rrun]
See it in the graphDiscuss this resultChallenge it