hypercube_coord_reflect
def
Given a coordinate subset T of Fin n and a Boolean vector x : Fin n → Bool, hypercube_coord_reflect T x is the Boolean vector obtained by negating the coordinate x i if i ∈ T and leaving it unchanged otherwise.
Statement
def hypercube_coord_reflect {n : ℕ} (T : Finset (Fin n)) (x : Fin n → Bool) : Fin n → Bool- Defined in
- arXiv:2610.38287 Eq. (14)
- Verified
- 08 Nov 2026
- Axioms
- none listed
- Used by 5
- hypercube_coord_reflect_majFor any coordinate subset T of Fin n and any Boolean vectors x, y, z : Fin n → Bool, the coordinate reflection of their componentwise…
- hypercube_reflected_meetGiven a coordinate subset T of Fin n and Boolean vectors x and y, hypercube_reflected_meet T x y is the reflected meet of x and y with…
- hypercube_coord_reflect_involutiveFor any coordinate subset T of Fin n and any Boolean vector x : Fin n → Bool, applying coordinate reflection with respect to T twice…
- hypercube_d_convex_iff_majority_closed_and_has_relative_opposite_pairLet X : Finset (Fin n → Bool) be a nonempty finite subset of vertices of the unit hypercube. Then X is D-convex (hypercube_is_d_convex X)…
- hypercube_reflected_joinGiven a coordinate subset T of Fin n and Boolean vectors x and y, hypercube_reflected_join T x y is the reflected join of x and y with…
Read back from the Lean
hypercube_coord_reflect defines a function which, given a natural number $n$ (implicit), a finite set of indices $T \subseteq \mathrm{Fin}(n)$, and a boolean vector $x : \mathrm{Fin}(n) \to \mathrm{Bool}$, produces the boolean vector $\mathrm{Fin}(n) \to \mathrm{Bool}$ mapping each index $i \in \mathrm{Fin}(n)$ to the boolean negation of $x(i)$ if $i \in T$, and to $x(i)$ otherwise.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Coordinate reflection of a Boolean vector on Fin n with respect to a coordinate subset T. -/ def hypercube_coord_reflect {n : ℕ} (T : Finset (Fin n)) (x : Fin n → Bool) : Fin n → Bool := fun i => if i ∈ T then !x i else x i