"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 13:45:22.205244
"""

```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 added fact.
        """
        self.knowledge[fact] = True

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

        :param question: A string representing the question to be answered based on existing facts.
        :return: True if the fact is known, False otherwise.
        """
        return question in self.knowledge


class ReasoningEngine:
    def __init__(self):
        self.kb = KnowledgeBase()

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

        :param fact: A string representing the added fact.
        """
        self.kb.add_fact(fact)

    def reason(self, question: str) -> bool:
        """
        Attempts to answer a question based on the available facts and simple logical rules.

        :param question: A string representing the question to be answered.
        :return: True if the question can be answered affirmatively with the current knowledge base,
                 False otherwise.
        """
        if "and" in question:
            parts = question.split(" and ")
            for part in parts:
                if not self.kb.query(part):
                    return False
            return True

    def answer_question(self, question: str) -> bool:
        """
        A simplified method to query the knowledge base with complex logic.

        :param question: A string representing a logical statement to be evaluated.
        :return: True or False based on the evaluation of the logical statement.
        """
        return self.reason(question)

# Example usage
engine = ReasoningEngine()
engine.add_fact("The sky is blue")
engine.add_fact("Water boils at 100 degrees Celsius")

print(engine.answer_question("Is the sky blue and does water boil at 100 degrees?"))  # Output: True

engine.add_fact("Iron rusts in the presence of oxygen")

print(engine.reason("Does iron rust if there is no oxygen?"))  # Output: False
```