is_pure_mask
def
A binary mask is pure of value b if every element in the mask equals b.
Statement
def is_pure_mask (m : List Bool) (b : Bool) : Prop
- Defined in
- arXiv:2610.39941, Section 3
- Verified
- 31 Oct 2026
- Axioms
- none listed
- Used by 1
- word_block_exchange_is_pureAn exchange E = (X, A, B, Y) swaps adjacent pure blocks of opposite sources from mask M if A and B are nonempty, either the slice of M for…
Read back from the Lean
is_pure_mask m b defines the proposition that for every element x in the list of Booleans m, x is equal to b (i.e., every element of m is equal to b).
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
/-- A mask is pure if all its labels are identical to b. -/ def is_pure_mask (m : List Bool) (b : Bool) : Prop := ∀ x ∈ m, x = b