"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 02:37:32.392441
"""

```python
from typing import List, Dict

class FactChecker:
    """
    A simple fact-checking system that verifies if a statement is true or false based on predefined facts.
    
    Attributes:
        facts (Dict[str, bool]): Predefined facts where keys are statements and values are their truthfulness.
        
    Methods:
        add_fact: Adds a new fact to the checker's knowledge base.
        check_fact: Checks if a given statement is in the knowledge base and returns its truth value.
    """
    
    def __init__(self):
        self.facts = {
            "2 + 2 equals 4": True,
            "The Earth orbits around the Sun": True,
            "Python is an interpreted language": True
        }
        
    def add_fact(self, statement: str, truth_value: bool) -> None:
        """
        Adds a new fact to the checker's knowledge base.

        Args:
            statement (str): The statement to be added.
            truth_value (bool): Whether the statement is true or false.
        """
        self.facts[statement] = truth_value

    def check_fact(self, statement: str) -> bool:
        """
        Checks if a given statement is in the knowledge base and returns its truth value.

        Args:
            statement (str): The statement to be checked.

        Returns:
            bool: True if the statement is true in the knowledge base, False otherwise.
        """
        return self.facts.get(statement, False)

# Example usage
if __name__ == "__main__":
    checker = FactChecker()
    print(checker.check_fact("2 + 2 equals 4"))  # Output: True
    
    checker.add_fact("The Earth is flat", False)
    print(checker.check_fact("The Earth is flat"))  # Output: False
```