CommunicationComplexity.Deterministic.Protocol.rectangleSign_abs
theoremverifiedimported Lean
Rectangle sign has absolute value one. Let $p$ be a deterministic Boolean two-party communication protocol on input types $X$ (Alice) and $Y$ (Bob), and let $R \subseteq X \times Y$ be any set. Define the rectangle sign of $p$ on $R$ to be $+1$ when $p$ outputs $\mathrm{false}$ at every point of $R$ and $-1$ otherwise. Then the rectangle sign has absolute value $1$.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in open MeasureTheory in open scoped BigOperators in variable {X Y : Type*} in lemma CommunicationComplexity.Deterministic.Protocol.rectangleSign_abs (p : Protocol X Y Bool) (R : Set (X × Y)) : |rectangleSign p R| = 1
- Source
- TCSlib, `CommunicationComplexity.Deterministic.Protocol.rectangleSign_abs`
- 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.Protocol.rectangleSign_abs← CommunicationComplexity.Deterministic.Protocol.rectangleSign_abs (TCSlib/CommunicationComplexity/NewmanTheorem/Discrepancy.lean:155): verbatim
- Verified
- 07 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- CommunicationComplexity.Deterministic.Protocol.rectangleSignFor a deterministic Boolean protocol $p$ and a set $R \subseteq X \times Y$, the rectangle sign is $+1$ if the protocol outputs…
- CommunicationComplexity.Deterministic.ProtocolA deterministic two-party communication protocol over input types $X$ (Alice) and $Y$ (Bob) producing a value of type $\alpha$ is an…
- Used by 1
- CommunicationComplexity.Deterministic.Protocol.one_sub_two_distributionalError_le_two_pow_mulDiscrepancy lower bound on distributional error. Let $\mu$ be a finite probability measure on $X \times Y$, let…
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option relaxedAutoImplicit false inset_option autoImplicit false inopen MeasureTheory inopen scoped BigOperators invariable {X Y : Type*} in/-- The rectangle sign has absolute value `1`. -/lemma CommunicationComplexity.Deterministic.Protocol.rectangleSign_abs (p : Protocol X Y Bool) (R : Set (X × Y)) : |rectangleSign p R| = 1 := by classical rw [rectangleSign] split_ifs <;> norm_num