"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 19:58:50.993008
"""

```python
from typing import List, Dict


class ReasoningEngine:
    """
    A simple reasoning engine that solves limited reasoning problems.
    It supports basic rule-based logic to infer conclusions from given premises.

    Methods:
        __init__(self, rules: List[str]): Initializes the reasoning engine with a set of logical rules.
        infer(self, premises: Dict[str, bool]) -> str: Infers a conclusion based on provided premises and stored rules.
    """

    def __init__(self, rules: List[str]):
        """
        Initialize the ReasoningEngine with predefined logical rules.

        Args:
            rules (List[str]): A list of strings representing logical rules.
        """
        self.rules = {rule.split(' => ')[0]: rule.split(' => ')[1] for rule in rules}

    def infer(self, premises: Dict[str, bool]) -> str:
        """
        Infer a conclusion based on the provided premises and stored rules.

        Args:
            premises (Dict[str, bool]): A dictionary of premise statements and their truth values.

        Returns:
            str: The inferred conclusion.
        """
        for antecedent, consequent in self.rules.items():
            if all(f"statement_{i}" in antecedent for i, _ in premises.items() if premises[f"statement_{i}"]):
                return consequent
        return "No inference possible with the given premises."

# Example Usage:
rules = [
    "statement_1 and statement_2 => conclusion_1",
    "not(statement_3) => conclusion_2",
    "statement_4 or statement_5 => conclusion_3"
]

engine = ReasoningEngine(rules)

premises = {
    'statement_1': True,
    'statement_2': False,
    'statement_3': False,
    'statement_4': True
}

print(engine.infer(premises))  # Should print "conclusion_1" based on the rules and premises.
```
```