public static function equiv($constraintA, $constraintB) {
        return function ($features) use ($constraintA, $constraintB) {
            return $constraintA($features) === $constraintB($features);
        };
    }