"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 13:26:11.025244
"""

```python
from typing import List


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

    def add_rule(self, rule: str) -> None:
        """
        Adds a reasoning rule to the base.

        :param rule: A string representing the reasoning rule.
        """
        self.rules.append(rule)

    def apply_rules(self, facts: List[str]) -> List[str]:
        """
        Applies all rules to given facts and returns new conclusions.

        :param facts: A list of strings representing known facts.
        :return: A list of strings representing new conclusions derived from the facts.
        """
        conclusions = []
        for fact in facts:
            for rule in self.rules:
                if rule.startswith(fact):
                    conclusion = rule[len(fact):]
                    if conclusion not in conclusions and conclusion not in facts:
                        conclusions.append(conclusion)
        return conclusions


def create_reasoning_engine() -> RuleBase:
    """
    Creates a basic reasoning engine capable of inferring new conclusions from known facts.

    :return: A configured RuleBase object.
    """
    engine = RuleBase()
    engine.add_rule("if it is raining then the ground is wet")
    engine.add_rule("if someone is in the kitchen and the stove is on then there is a fire risk")
    engine.add_rule("if the alarm is ringing then something is wrong")
    return engine


# Example usage
engine = create_reasoning_engine()
facts = ["it is raining"]
conclusions = engine.apply_rules(facts)
print(conclusions)  # Output: ['the ground is wet']
```