"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 03:06:39.136875
"""

```python
from typing import List, Dict

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

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

    def get_facts(self) -> List[str]:
        """Retrieve all facts in the knowledge base."""
        return self.knowledge

def reasoning_engine(query: str, kb: KnowledgeBase) -> bool:
    """
    A simple reasoning engine that checks if a query can be deduced
    from the knowledge base using basic logical rules.
    
    Args:
    - query (str): The statement to check for in the knowledge base.
    - kb (KnowledgeBase): The knowledge base containing known facts.
    
    Returns:
    - bool: True if the query is a fact in the knowledge base, False otherwise.
    """
    # Split the query into words for simplicity
    query_words = query.split()
    
    # Check each fact against the query
    for fact in kb.get_facts():
        fact_words = fact.split()
        
        # A match requires both facts to have same length and identical words
        if len(query_words) == len(fact_words):
            is_match = True
            for i, word in enumerate(query_words):
                if word != fact_words[i]:
                    is_match = False
                    break
            
            if is_match:
                return True
    
    # If no match was found, return False
    return False

# Example usage
if __name__ == "__main__":
    kb = KnowledgeBase()
    kb.add_fact("All men are mortal")
    kb.add_fact("Socrates is a man")
    
    print(reasoning_engine("Socrates is mortal", kb))  # Should output: True
    print(reasoning_engine("Plato is immortal", kb))   # Should output: False
```