"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 22:58:20.076370
"""

```python
from typing import List, Dict

class KnowledgeBase:
    def __init__(self):
        self.knowledge = {}

    def add_fact(self, key: str, value: any) -> None:
        """Add a fact to the knowledge base.

        Args:
            key (str): The unique identifier for the fact.
            value (any): The value of the fact.
        """
        self.knowledge[key] = value

    def get_fact(self, key: str) -> any:
        """Retrieve a fact from the knowledge base.

        Args:
            key (str): The unique identifier for the fact.

        Returns:
            any: The value of the fact if found, otherwise None.
        """
        return self.knowledge.get(key)

def reasoning_engine(facts: List[Dict[str, any]], rules: Dict[str, str]) -> Dict[str, any]:
    """Solve a specific problem by applying rules to given facts.

    Args:
        facts (List[Dict[str, any]]): A list of dictionaries containing known facts.
        rules (Dict[str, str]): A dictionary where keys are rule names and values are the conditions.

    Returns:
        Dict[str, any]: The resulting state after applying all applicable rules.
    """
    kb = KnowledgeBase()
    
    # Add facts to knowledge base
    for fact in facts:
        for key, value in fact.items():
            kb.add_fact(key, value)
    
    result_state = {}
    
    # Apply each rule
    for rule_name, condition in rules.items():
        print(f"Applying {rule_name} with condition: {condition}")
        
        if eval(condition):  # Evaluate the condition using Python's eval function
            result_state.update({rule_name: True})
            print(f"{rule_name} applied successfully.")
        else:
            result_state[rule_name] = False
            print(f"Condition for {rule_name} not met.")
    
    return result_state

# Example usage
facts = [
    {"x": 10, "y": 5},
    {"z": 3}
]

rules = {
    "rule_1": "x > y",
    "rule_2": "y < z * 2"
}

result = reasoning_engine(facts, rules)
print(result)
```