"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 10:51:05.574434
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking system that evaluates statements based on provided true/false data.
    """

    def __init__(self):
        self.knowledge_base: Dict[str, bool] = {}

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

        :param statement: The statement to be added as a string.
        :param is_true: A boolean indicating if the statement is true or false.
        """
        self.knowledge_base[statement] = is_true

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

        :param statement: The statement to be checked as a string.
        :return: A boolean indicating if the statement is true or false based on the knowledge base.
        """
        return self.knowledge_base.get(statement, False)

    def update_fact(self, statement: str) -> None:
        """
        Updates the truth value of an existing fact.

        :param statement: The statement whose truth value needs to be updated as a string.
        """
        if statement in self.knowledge_base:
            is_true = not self.knowledge_base[statement]  # Toggle the truth value
            self.knowledge_base[statement] = is_true


def example_usage():
    fact_checker = FactChecker()
    print("Adding facts:")
    fact_checker.add_fact("The Earth orbits the Sun", True)
    fact_checker.add_fact("Water boils at 100 degrees Celsius at sea level", True)
    fact_checker.add_fact("AI can solve any problem", False)

    print("\nChecking facts:")
    for statement in [
        "The Earth orbits the Sun",
        "Mars is closer to the Sun than Jupiter",
        "AI can solve any problem"
    ]:
        result = fact_checker.check_fact(statement)
        print(f"{statement}: {result}")

    print("\nUpdating and checking a fact:")
    fact_checker.update_fact("AI can solve any problem")
    new_result = fact_checker.check_fact("AI can solve any problem")
    print(f"Updated: AI can solve any problem -> {new_result}")


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