"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 20:36:33.800379
"""

```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.
        """
        self.knowledge.append(fact)

    def query(self, question: str) -> bool:
        """
        Queries the knowledge base for a specific question.

        :param question: The question to be asked of the knowledge base.
        :return: True if the question is answered by an existing fact; False otherwise.
        """
        return any(question in fact for fact in self.knowledge)


def create_reasoning_engine(knowledge: List[str]) -> KnowledgeBase:
    """
    Creates a simple reasoning engine given a set of facts.

    :param knowledge: A list of strings representing initial facts.
    :return: An instance of the KnowledgeBase class initialized with the provided facts.
    """
    engine = KnowledgeBase()
    for fact in knowledge:
        engine.add_fact(fact)
    
    return engine


def main():
    # Example usage
    initial_facts = [
        "All humans are mortal.",
        "Socrates is a human.",
        "Therefore, Socrates is mortal."
    ]
    
    reasoning_engine = create_reasoning_engine(initial_facts)
    print(reasoning_engine.query("Is Socrates mortal?"))  # Should return True


if __name__ == "__main__":
    main()
```

This code defines a basic reasoning engine that can add facts to its knowledge base and query whether certain questions are answered by those facts. It includes a `create_reasoning_engine` function that initializes the engine with given facts, demonstrates usage in a simple syllogism problem.