"""Create logic_validator
Generated by Phi-Octopus Eden
2025-11-06 21:54:31.316666
"""

```python
def create_logic_validator(logic: str) -> callable:
    """
    Creates a logic validator function based on provided logical expression.

    :param logic: A string representing a logical expression using 'and', 'or', and 'not'.
                  Example: "x > 10 or y < 5"
    :return: A function that takes multiple arguments and validates if the logical expression holds true.
    
    >>> validate_logic = create_logic_validator("age >= 21 and salary > 4000")
    >>> validate_logic(age=22, salary=3999)
    False
    >>> validate_logic(age=25, salary=4500)
    True
    """
    import ast

    class LogicValidator(ast.NodeVisitor):
        def visit_BinOp(self, node: ast.BinOp) -> bool:
            left = self.visit(node.left)
            right = self.visit(node.right)
            if isinstance(node.op, ast.And):
                return left and right
            elif isinstance(node.op, ast.Or):
                return left or right

        def visit_Name(self, node: ast.Name) -> str:
            return node.id

        def visit_Num(self, node: ast.Num) -> int:
            return node.n

    def validator(**kwargs):
        tree = ast.parse(logic, mode='eval')
        validator_instance = LogicValidator()
        for k in kwargs.keys():
            self.generic_visit(tree)
            exec(f"{k} = kwargs[k]")
        return validator_instance.visit(tree.body)

    return validator


# Example usage
logic_validator = create_logic_validator("age >= 21 and salary > 4000")
print(logic_validator(age=22, salary=3999))  # Output: False
print(logic_validator(age=25, salary=4500))  # Output: True
```

This Python code snippet creates a function `create_logic_validator` that generates another function capable of validating logical expressions based on provided keyword arguments. The generated function can handle simple logical conditions like 'and', 'or', and comparisons.