AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.ofProtocol_complexity

theoremverifiedimported Lean

Embedding a binary private-coin protocol preserves complexity. Let $p$ be a binary private-coin protocol with randomness spaces $\Omega_X$ and $\Omega_Y$, input spaces $X$ and $Y$, and output type $\alpha$. Then the private-coin finite-message protocol obtained by embedding $p$ has the same communication complexity as $p$; that is, viewing each Boolean message of $p$ as an element of the two-element message alphabet leaves the worst-case number of bits exchanged unchanged.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open MeasureTheory in
variable {Ω_X Ω_Y : Type*} {X Y α : Type*} in
@[simp]
theorem CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.ofProtocol_complexity
    (p : PrivateCoin.Protocol Ω_X Ω_Y X Y α) :
    (ofProtocol p).complexity = p.complexity
Source
TCSlib, `CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.ofProtocol_complexity`
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
Classical.choiceQuot.soundpropext
Built on 19
Used by 5

Lean source view module on GitHub

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open MeasureTheory in
variable {Ω_X Ω_Y : Type*} {X Y α : Type*} in
/-- The finite-message protocol obtained from a binary private-coin protocol `p` by `ofProtocol` has exactly the complexity of `p`. -/
@[simp]
theorem CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.ofProtocol_complexity
    (p : PrivateCoin.Protocol Ω_X Ω_Y X Y α) :
    (ofProtocol p).complexity = p.complexity :=
  Deterministic.FiniteMessage.Protocol.ofProtocol_complexity p
See it in the graphDiscuss this resultChallenge it