CommunicationComplexity.Deterministic.OneWay.Protocol
structureimported Lean
A one-way deterministic communication protocol for inputs $x \in X$, $y \in Y$, and
output type $\alpha$ is a structure consisting of a finite, nonempty message
codebook Message, Alice's encoder $\mathtt{send} : X \to \mathtt{Message}$
that selects a codeword from the codebook based solely on her input, and Bob's decoder
$\mathtt{decode} : \mathtt{Message} \times Y \to \alpha$ that produces the final output
from the received message and his own input.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in variable {X Y α : Type*} in structure CommunicationComplexity.Deterministic.OneWay.Protocol (X Y α : Type*)
- Defined in
- TCSlib, `CommunicationComplexity.Deterministic.OneWay.Protocol`
- 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.CommunicationComplexity.Deterministic.OneWay.Protocol← CommunicationComplexity.Deterministic.OneWay.Protocol (TCSlib/CommunicationComplexity/DeterministicCC/OneWay.lean:68): verbatimattribute [instance] CommunicationComplexity.Deterministic.OneWay.Protocol.instFintypeMessage CommunicationComplexity.Deterministic.OneWay.Protocol.instNonemptyMessage← attribute [instance] CommunicationComplexity.Deterministic.OneWay.Protocol.instFintypeMessage CommunicationComplexity.Deterministic.OneWay.Protocol.instNonemptyMessage (TCSlib/CommunicationComplexity/DeterministicCC/OneWay.lean:80): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none listed
- Used by 6
- CommunicationComplexity.Deterministic.OneWay.Protocol.costThe communication cost of a one-way protocol $p$ is $\lceil \log_2 |\mathtt{Message}| \rceil$ bits, where $\mathtt{Message}$ is the…
- CommunicationComplexity.Deterministic.OneWay.communicationComplexityThe one-way deterministic communication complexity of $f : X \to Y \to \alpha$ is the infimum (in $\mathbb{N}_\infty$) of the bit costs…
- CommunicationComplexity.Functions.Indexing.le_oneWayCommunicationComplexityOne-way complexity of Index is at least $n$. Every correct deterministic one-way protocol for $\mathrm{IND}_n$ has cost at least $n$; that…
- CommunicationComplexity.Deterministic.OneWay.Protocol.ComputesA one-way protocol $p$ computes a function $f : X \to Y \to \alpha$ if $p.\mathtt{run}(x, y) = f(x, y)$ for every pair of inputs…
- CommunicationComplexity.Deterministic.OneWay.le_communicationComplexity_iffLower bound characterization of one-way communication complexity. Let $f : X \to Y \to \alpha$ be a function and let $k \in \bbn$. Then…
- CommunicationComplexity.Deterministic.OneWay.Protocol.runGiven a one-way protocol $p$ and inputs $x \in X$, $y \in Y$, executing the protocol yields the output…
Lean source view module on GitHub
set_option relaxedAutoImplicit false in set_option autoImplicit false in variable {X Y α : Type*} in /-- A one-way deterministic communication protocol: Alice sends Bob a single message that is a function of her input only, and Bob outputs the answer as a function of that message and his own input. [Rou16, §1.7 Definition (one-way protocol)]. `Message` is the protocol's message codebook (language): the finite set of admissible full one-shot messages Alice may send. It is not the base symbol alphabet/signature (for example, bits), but whole message values (codewords). -/ structure CommunicationComplexity.Deterministic.OneWay.Protocol (X Y α : Type*) where /-- The message codebook/language: all admissible complete one-shot messages. -/ Message : Type /-- Finiteness of the message codebook, needed to assign a bit cost. -/ [instFintypeMessage : Fintype Message] /-- Nonemptiness of the codebook (mirrors existing finite-message conventions). -/ [instNonemptyMessage : Nonempty Message] /-- Alice's encoder: picks a codeword/message from the protocol codebook. -/ send : X → Message /-- Bob's local decoder from received message and Bob's input. -/ decode : Message → Y → α attribute [instance] CommunicationComplexity.Deterministic.OneWay.Protocol.instFintypeMessage CommunicationComplexity.Deterministic.OneWay.Protocol.instNonemptyMessage