"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 13:40:07.688013
"""

```python
from typing import List, Dict, Any


class KnowledgeBase:
    def __init__(self):
        self.knowledge = []

    def add_knowledge(self, facts: List[str]) -> None:
        """Add facts to the knowledge base."""
        for fact in facts:
            if fact not in self.knowledge:
                self.knowledge.append(fact)

    def check_reasoning(self, query: str) -> bool:
        """Check if a reasoning chain can be established from available facts."""
        return any(query.startswith(fact) for fact in self.knowledge)


def create_reasoning_engine() -> KnowledgeBase:
    """
    Create a simple reasoning engine that checks if a given query is supported by the knowledge base.
    
    Returns:
        KnowledgeBase: A new instance of the knowledge-based reasoning engine.
    """
    kb = KnowledgeBase()
    kb.add_knowledge([
        "All humans are mortal.",
        "Socrates is human."
    ])
    return kb


# Example usage
reasoning_engine = create_reasoning_engine()

# Query examples
print(reasoning_engine.check_reasoning("All humans are immortal."))  # False, not in the knowledge base
print(reasoning_engine.check_reasoning("Socrates is mortal."))       # True, because "Socrates is human" and "All humans are mortal" are facts

```