AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.toProtocol_complexity

theoremverifiedimported Lean

Complexity is preserved by the binary conversion. Let $p$ be a private-coin finite-message protocol with private randomness spaces $\Omega_X$ and $\Omega_Y$, input types $X$ and $Y$, and output type $\alpha$, in which each message is an element of an arbitrary finite nonempty type $\beta$ costing $\lceil \log_2 \abs{\beta} \rceil$ bits. Converting $p$ into the associated binary private-coin protocol, in which every message is encoded as a string of bits, leaves the worst-case communication complexity unchanged: the complexity of the converted binary protocol equals the complexity of $p$.

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.toProtocol_complexity (p : Protocol Ω_X Ω_Y X Y α) :
    (p.toProtocol).complexity = p.complexity
Source
TCSlib, `CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.toProtocol_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 16
Used by 24

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 binary private-coin protocol obtained from a finite-message protocol `p` by `toProtocol` has exactly the complexity of `p`, where a `β`-valued message of `p` is charged `⌈log₂ |β|⌉` bits. -/
@[simp]
theorem CommunicationComplexity.PrivateCoin.FiniteMessage.Protocol.toProtocol_complexity (p : Protocol Ω_X Ω_Y X Y α) :
    (p.toProtocol).complexity = p.complexity :=
  Deterministic.FiniteMessage.Protocol.toProtocol_complexity p
See it in the graphDiscuss this resultChallenge it