"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 10:54:54.427051
"""

```python
from typing import List, Dict


class ReasoningEngine:
    """
    A simple reasoning engine that evaluates if a given set of conditions is met based on predefined rules.
    """

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

    def add_rule(self, condition: str, result: bool) -> None:
        """
        Adds a rule to the engine.

        :param condition: A string representing the logical condition to be evaluated.
        :param result: The expected boolean outcome of the condition.
        """
        self.rules.append({'condition': condition, 'result': result})

    def evaluate(self, conditions: Dict[str, bool]) -> bool:
        """
        Evaluates a set of conditions against the rules defined in the engine.

        :param conditions: A dictionary containing key-value pairs where keys are variable names and values are their boolean states.
        :return: True if all evaluated rules match their expected outcomes; otherwise, False.
        """
        for rule in self.rules:
            condition_str = rule['condition']
            eval_result = eval(condition_str, {}, {k: v for k, v in conditions.items()})
            if eval_result != rule['result']:
                return False
        return True


# Example Usage
if __name__ == "__main__":
    reasoning_engine = ReasoningEngine()
    reasoning_engine.add_rule('temperature > 30 and humidity < 40', True)
    reasoning_engine.add_rule('wind_speed < 15 or pressure > 1013.25', False)

    # Test with conditions
    test_conditions_1 = {'temperature': 35, 'humidity': 35, 'wind_speed': 10, 'pressure': 1014}
    print(reasoning_engine.evaluate(test_conditions_1))  # Expected: True

    test_conditions_2 = {'temperature': 28, 'humidity': 38, 'wind_speed': 20, 'pressure': 1010}
    print(reasoning_engine.evaluate(test_conditions_2))  # Expected: False
```