"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 16:52:02.414309
"""

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

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

    def add_fact(self, fact: str) -> None:
        """Add a new fact to the knowledge base."""
        if fact not in self.knowledge:
            self.knowledge[fact] = True
        else:
            raise ValueError("Fact already exists.")

    def query(self, question: str) -> bool:
        """Query the knowledge base for a fact."""
        return question in self.knowledge

def reasoning_engine(facts: List[str], questions: List[str]) -> Dict[str, bool]:
    """
    A simple reasoning engine that adds facts and answers questions.

    Args:
    - facts: A list of strings representing factual statements.
    - questions: A list of strings representing queries to the knowledge base.

    Returns:
    A dictionary where keys are the questions and values are boolean results.
    """
    # Initialize the knowledge base
    kb = KnowledgeBase()

    # Add all provided facts to the knowledge base
    for fact in facts:
        kb.add_fact(fact)

    # Answer each question based on the current state of the knowledge base
    answers = {q: kb.query(q) for q in questions}

    return answers

# Example usage
if __name__ == "__main__":
    facts = [
        "all_dogs_are_mammals",
        "dogs_have_four_legs",
        "cats_are_not_mammals"
    ]
    
    questions = [
        "all_dogs_are_mammals",
        "dogs_have_four_legs",
        "cats_are_mammals",
        "mammals_have_three_hearts"
    ]

    results = reasoning_engine(facts, questions)
    for question, answer in results.items():
        print(f"Is '{question}' true? {answer}")
```