"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 11:50:51.658458
"""

```python
from typing import List, Dict

class ReasoningEngine:
    """
    A simple reasoning engine that processes rules and applies them to solve a specific problem.
    
    Attributes:
        rules: A list of dictionaries representing the if-then rules with conditions (as strings) and actions (as functions).
    """
    def __init__(self, rules: List[Dict[str, object]]):
        self.rules = rules

    def match_rule(self, fact: str) -> bool:
        """Match a given fact against each rule's condition."""
        for rule in self.rules:
            if rule['condition'](fact):
                return True
        return False

    def apply_rule(self, fact: str) -> object:
        """Apply the first matching rule to a given fact and return its action result."""
        for rule in self.rules:
            if rule['condition'](fact):
                return rule['action']()
        raise Exception("No applicable rule found.")

def create_reasoning_engine() -> ReasoningEngine:
    """
    Creates a simple reasoning engine capable of processing rules and applying them to facts.
    
    Returns:
        An instance of the ReasoningEngine class with predefined rules for demonstration purposes.
    """
    # Predefined rules
    rules = [
        {
            'condition': lambda fact: "is_hot" in fact,
            'action': lambda: print("Turn on air conditioner")
        },
        {
            'condition': lambda fact: "is_cold" in fact,
            'action': lambda: print("Turn on heater")
        }
    ]
    
    return ReasoningEngine(rules)

# Example usage
if __name__ == "__main__":
    engine = create_reasoning_engine()
    if input("Is the temperature is_hot or is_cold? ").lower() in ["is_hot", "is_cold"]:
        print("Applying rule...")
        result = engine.apply_rule(f"is_{input().lower()}")
        print(result)
```

This Python code defines a simple reasoning engine capable of processing predefined rules based on input facts. It includes docstrings, type hints, and demonstrates example usage to illustrate how the `ReasoningEngine` class can be instantiated and used to solve problems related to temperature control decisions.