"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 03:47:54.701232
"""

```python
class ReasoningEngine:
    """
    A basic reasoning engine that solves problems with limited sophistication.
    
    This class implements a simple rule-based system to address specific problem domains.
    """

    def __init__(self):
        self.knowledge_base = []

    def add_rule(self, condition: str, action: callable):
        """Add a new rule to the knowledge base.

        :param condition: The condition that needs to be met for the action to execute
        :param action: A function to be executed when the condition is met
        """
        self.knowledge_base.append((condition, action))

    def infer(self, fact: any) -> None:
        """Evaluate a given fact against the knowledge base and perform actions if conditions are met.

        :param fact: The input fact to evaluate.
        """
        for rule in self.knowledge_base:
            condition, action = rule
            if eval(condition):  # Simplistic way of evaluating conditions
                print(f"Condition '{condition}' is true. Executing {action.__name__}...")
                action(fact)


# Example usage:

def greet(name: str) -> None:
    """Print a greeting message."""
    print(f"Hello, {name}!")


def inform_status(is_active: bool) -> None:
    """Inform the status of something."""
    if is_active:
        print("This thing is active.")
    else:
        print("This thing is inactive.")


# Create an instance
reasoning_engine = ReasoningEngine()

# Add some rules to the engine
reasoning_engine.add_rule('fact == "Alice"', greet)
reasoning_engine.add_rule('is_active', inform_status)

# Example facts
fact1 = {"name": "Alice"}
fact2 = {"is_active": True}

# Perform inference with different facts
reasoning_engine.infer(fact1)  # This should trigger the greeting function
reasoning_engine.infer(fact2)  # This should trigger the inform_status function

```