CommunicationComplexity.flipAt
defimported Lean
Given $i : \mathrm{Fin}\,n$ and $x : \texttt{BoolInput}(n)$, $\texttt{flipAt}\,i\,x$ is the Boolean input obtained from $x$ by negating the $i$-th coordinate and leaving all other coordinates unchanged.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in def CommunicationComplexity.flipAt {n : ℕ} (i : Fin n) (x : BoolInput n) : BoolInput n
- Defined in
- TCSlib, `CommunicationComplexity.flipAt`
- 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.flipAt← CommunicationComplexity.flipAt (TCSlib/CommunicationComplexity/DeterministicCC/Helper.lean:96): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none listed
- Built on 1
- CommunicationComplexity.BoolInput$\texttt{BoolInput}(n)$ is the type of $n$-bit Boolean inputs, defined as the function type $\mathrm{Fin}\,n \to \mathrm{Bool}$.
- Used by 3
- CommunicationComplexity.flipAt_apply_sameValue of the single-coordinate flip at the flipped coordinate. Let $n \in \bbn$, let $i \in \mathrm{Fin}\,n$ be a coordinate index, and…
- CommunicationComplexity.flipAt_apply_neFlip leaves other coordinates unchanged. Let $x \colon \mathrm{Fin}\,n \to \mathrm{Bool}$ be an $n$-bit Boolean input, and let…
- CommunicationComplexity.flipAt_flipAtSingle-coordinate flip is an involution. Fix $n \in \bbn$, a coordinate $i \in \mathrm{Fin}\,n$, and an $n$-bit Boolean input…
Lean source view module on GitHub
set_option relaxedAutoImplicit false in set_option autoImplicit false in /-- Flipping one coordinate of a Boolean input. -/ def CommunicationComplexity.flipAt {n : ℕ} (i : Fin n) (x : BoolInput n) : BoolInput n := Function.update x i (!(x i))