"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 07:30:37.774611
"""

```python
from typing import List, Dict


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

    def add_fact(self, fact: str) -> None:
        """
        Adds a new fact to the knowledge base.

        :param fact: A string representing the fact.
        """
        if fact not in self.knowledge:
            self.knowledge[fact] = []

    def infer(self, premises: List[str]) -> bool:
        """
        Infers a conclusion from given premises using simple logical reasoning.

        :param premises: A list of strings representing the premises.
        :return: True if the conclusion can be inferred, False otherwise.
        """
        for premise in premises:
            if premise not in self.knowledge:
                return False
            elif all(p in self.knowledge[p] for p in premises):
                return True
        return False


def create_reasoning_engine() -> KnowledgeBase:
    """
    Creates and returns a basic reasoning engine using a knowledge base.

    :return: A KnowledgeBase instance.
    """
    reasoning_engine = KnowledgeBase()
    # Adding some initial facts to the knowledge base for demonstration purposes
    reasoning_engine.add_fact("all_dogs_are_mammals")
    reasoning_engine.add_fact("puppies_are_dogs")
    reasoning_engine.add_fact("mammals_have_hearts")

    return reasoning_engine


# Example usage:
reasoning = create_reasoning_engine()
print(reasoning.infer(["puppies_are_dogs", "all_dogs_are_mammals"]))  # Should print True
print(reasoning.infer(["puppies_are_dogs", "mammals_have_hearts"]))   # Should print False
```

This Python script introduces a simple `KnowledgeBase` class for managing facts and basic logical inferences. It includes a function `create_reasoning_engine()` that sets up an initial knowledge base with some example facts related to dogs, mammals, and hearts. The `infer()` method demonstrates how to check if certain premises can lead to a conclusion based on the available knowledge.