"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-07 07:38:10.691702
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking system that verifies the truthfulness of statements based on a predefined knowledge base.
    """

    def __init__(self):
        self.knowledge_base: Dict[str, bool] = {
            "2 + 2 equals 4": True,
            "The Earth orbits the Sun": True,
            "The capital of France is Madrid": False,
            "Water boils at 100 degrees Celsius at sea level": True
        }

    def check_fact(self, statement: str) -> bool:
        """
        Check if a given statement is true or false based on the knowledge base.

        :param statement: The statement to be checked.
        :return: True if the statement is true in the knowledge base, False otherwise.
        """
        return self.knowledge_base.get(statement.lower(), None)


def main():
    fact_checker = FactChecker()

    # Example usages
    print(fact_checker.check_fact("2 + 2 equals 4"))  # Output: True
    print(fact_checker.check_fact("The capital of France is Madrid"))  # Output: False

if __name__ == "__main__":
    main()
```

This code provides a basic fact-checking system that checks the truthfulness of statements against a predefined knowledge base. The `check_fact` method returns True or False based on whether the statement matches any entry in the knowledge base.