"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 10:36:21.131795
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking system that validates statements against a predefined knowledge base.
    """

    def __init__(self, knowledge_base: Dict[str, bool]):
        """
        Initialize the FactChecker with a knowledge base.

        :param knowledge_base: A dictionary where keys are statements and values are their truthfulness (True/False).
        """
        self.knowledge_base = knowledge_base

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

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

    def add_fact(self, statement: str, truth_value: bool) -> None:
        """
        Add or update a fact in the knowledge base.

        :param statement: The statement to be added or updated.
        :param truth_value: The truth value of the statement (True/False).
        """
        self.knowledge_base[statement] = truth_value


# Example usage
if __name__ == "__main__":
    # Define a simple knowledge base
    knowledge_base = {
        "The Earth orbits the Sun": True,
        "Water boils at 100 degrees Celsius at sea level": True,
        "Paris is the capital of France": True,
        "Eden is an AI with phi-fractal architecture": False,  # Hypothetical fact for this example
    }

    # Create a FactChecker instance
    fact_checker = FactChecker(knowledge_base)

    # Check some facts
    print(f"Is 'The Earth orbits the Sun' true? {fact_checker.check_fact('The Earth orbits the Sun')}")
    print(f"Is 'Eden is an AI with phi-fractal architecture' true? {fact_checker.check_fact('Eden is an AI with phi-fractal architecture')}")

    # Add a new fact
    fact_checker.add_fact("AI can learn from data", True)
    
    # Check the new fact
    print(f"Is 'AI can learn from data' true after adding it? {fact_checker.check_fact('AI can learn from data')}")
```