"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-05 20:35:29.833886
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking class that validates statements based on a predefined database.

    Attributes:
        db: A dictionary containing facts to check against.
    """

    def __init__(self, db: Dict[str, bool]):
        self.db = db

    def is_fact_true(self, statement: str) -> bool:
        """
        Check if the given statement is true based on the database.

        Args:
            statement (str): The statement to check.

        Returns:
            bool: True if the statement is true in the database, False otherwise.
        """
        return self.db.get(statement.lower(), False)

    def add_fact(self, fact: str, truth_value: bool):
        """
        Add a new fact to the database.

        Args:
            fact (str): The fact to be added.
            truth_value (bool): The truth value of the fact.
        """
        self.db[fact.lower()] = truth_value

    def remove_fact(self, fact: str):
        """
        Remove an existing fact from the database.

        Args:
            fact (str): The fact to be removed.
        """
        if fact in self.db:
            del self.db[fact]


# Example usage
if __name__ == "__main__":
    # Initialize FactChecker with some facts
    checker = FactChecker({
        "the earth orbits the sun": True,
        "water boils at 100 degrees Celsius": True,
        "pyramids were built by ancient Egyptians": False
    })

    print(checker.is_fact_true("The Earth orbits the Sun"))  # Output: True

    # Add a new fact
    checker.add_fact("python is an interpreted language", True)

    print(checker.is_fact_true("Python is an interpreted language"))  # Output: True

    # Remove a fact
    checker.remove_fact("pyramids were built by ancient Egyptians")

    print(checker.is_fact_true("Pyramids were built by ancient Egyptians"))  # Output: False
```