"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 06:25:42.667958
"""

```python
from typing import List


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

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

        :param fact: A string representing a fact.
        """
        self.facts.append(fact)

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

        :param question: The question as a string to be answered by the KB.
        :return: True if the question is supported by facts in KB, False otherwise.
        """
        return any(question.lower() in fact.lower() for fact in self.facts)


def reasoning_engine(knowledge_base: KnowledgeBase) -> None:
    """
    A simple reasoning engine that processes a list of rules and queries against a knowledge base.

    :param knowledge_base: An instance of KnowledgeBase to interact with.
    """
    # Example rule: If the user is from 'New York', they are also from 'USA'
    rules = [
        ('from new york', 'from usa'),
        ('has high income', 'has savings')
    ]

    for rule in rules:
        knowledge_base.add_fact(rule[0])  # Add rule to KB

    questions = ['Are you from USA if you are from New York?', 'Do you have savings if your income is high?']

    for question in questions:
        answer = knowledge_base.query(question)
        print(f"Question: {question} -> {'Yes' if answer else 'No'}")


# Example usage
if __name__ == "__main__":
    kb = KnowledgeBase()
    reasoning_engine(kb)

```