Unateness Distance, Sparse Relative Distance, and Violated-Edge Lower Bounds #
Provides general Boolean-function property-testing distance measures and matching lower bounds on
finite Boolean hypercubes ι → Bool:
- Unateness via XOR-reorientation: a Boolean function
f : (ι → Bool) → Boolis unate iff there exists an orientation vectora : ι → Boolsuch thatx ↦ f (x ⊕ a)is monotone (isUnate_iff_exists_xor_monotone). - Distance to unateness and sparse relative distance: the Hamming distance
distUnate fto unate functions and the relative-error (sparse) distancesparseRelDist f g = |f⁻¹(1) △ g⁻¹(1)| / |f⁻¹(1)|, along with the induced distancessparseRelDistMonotoneandsparseRelDistUnateto monotone and unate functions. - Disjoint violating-pair lower bound: any finite set of pairwise vertex-disjoint violating
pairs
(x, y)withx ≤ y,f x = true, andf y = falselower-boundsrelDistMonotone fby|S| / 2 ^ |ι|(disjoint_violating_pairs_le_relDistMonotone). - Directed-edge lower bound for unateness: for every coordinate
i, the minimum of the counts of strictly monotone and strictly anti-monotonei-edges, normalized by|f⁻¹(1)|, lower-boundssparseRelDistUnate f(min_directed_edges_le_sparseRelDistUnate).
Main definitions #
bitXor,supportFinset,distUnate: bitwise XOR, Boolean support, and Hamming distance to unate functions.sparseRelDist,sparseRelDistMonotone,sparseRelDistUnate: relative-error distance normalized by support size.Cslib.BitString.violatedEdges(fromBasic): decreasing edgesviolatedEdges f iand increasing edgesviolatedEdges (fun x => !(f x)) ivia Boolean complement.
Main results #
isUnate_iff_exists_xor_monotone: equivalence of coordinatewise unateness with monotonicity after bitwise XOR.disjoint_violating_pairs_le_relDistMonotone: disjoint violating-pair lower bound on distance to monotonicity.min_directed_edges_le_sparseRelDistUnate: directed-edge lower bound on sparse relative distance to unateness.
Bitwise XOR of two Boolean vectors on ι.
Updating coordinate i commutes with bitwise XOR by flipping the written bit when
a i = true.
A Boolean function on a finite cube is unate iff there exists an orientation vector a such
that x ↦ f (bitXor x a) is monotone.
The support {x | f x = true} of a Boolean function on ι → Bool.
The symmetric difference of supports of f and g has cardinality equal to their Hamming
distance.
Absolute Hamming distance from f to the class of unate Boolean functions.
Sparse relative distance |f⁻¹(1) △ g⁻¹(1)| / |f⁻¹(1)|.
Sparse relative distance from f to monotone functions.
Sparse relative distance from f to unate functions.
If S is a finite set of pairwise vertex-disjoint pairs (x, y) violating monotonicity of f
(x ≤ y, f x = true, and f y = false), then |S| / 2^|ι| ≤ relDistMonotone f.
For any coordinate i, the minimum of the numbers of strictly increasing
(violatedEdges (!f) i) and strictly decreasing (violatedEdges f i) i-edges, divided by
|f⁻¹(1)|, lower-bounds sparseRelDistUnate f.