"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 14:35:56.316586
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine that solves limited logical problems.
    """

    def __init__(self, rules: dict):
        """
        Initialize the reasoning engine with a set of predefined rules.

        :param rules: A dictionary where keys are conditions and values are actions.
        """
        self.rules = rules

    def apply_rule(self, condition: str) -> None:
        """
        Apply a rule based on the given condition.

        :param condition: The condition to evaluate against the rules.
        """
        if condition in self.rules:
            action = self.rules[condition]
            print(f"Condition met: {condition} => Action: {action}")
        else:
            print(f"No rule defined for condition: {condition}")

    def add_rule(self, condition: str, action: str) -> None:
        """
        Add a new rule to the reasoning engine.

        :param condition: The condition under which the action should be taken.
        :param action: The action to take when the condition is met.
        """
        self.rules[condition] = action

    def reason(self, input_data: dict) -> None:
        """
        Reason over a set of inputs and apply appropriate actions.

        :param input_data: A dictionary with conditions as keys and their values.
        """
        for condition, value in input_data.items():
            if self._match_condition(condition, value):
                action = self.rules[condition]
                print(f"Condition met: {condition} => Action: {action}")

    def _match_condition(self, condition: str, value) -> bool:
        """
        Match the condition against a given value.

        :param condition: The condition to match.
        :param value: The value to compare with the condition.
        :return: True if the condition is met, False otherwise.
        """
        # Simple string matching for demonstration purposes
        return str(value).lower() == condition.lower()

# Example usage

if __name__ == "__main__":
    rules = {
        "temperature_high": "activate_air_conditioning",
        "motion_detected": "alert_security_system"
    }

    engine = ReasoningEngine(rules)
    engine.apply_rule("temperature_high")
    engine.add_rule("humidity_high", "humidify_environment")
    engine.reason({"temperature_high": 30, "humidity_high": True})
```

This code defines a simple `ReasoningEngine` class that can apply predefined rules based on conditions. The example usage demonstrates adding and applying rules, as well as reasoning over multiple inputs.