"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-07 19:43:37.628932
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A class that provides basic fact-checking capabilities.
    It can verify if a statement is true or false based on predefined facts.

    Attributes:
        facts (Dict[str, bool]): Predefined facts stored as key-value pairs,
                                 where the key is the fact and the value is its truthfulness.
    """

    def __init__(self, initial_facts: Dict[str, bool]):
        """
        Initializes the FactChecker with a dictionary of initial facts.

        Args:
            initial_facts (Dict[str, bool]): A dictionary containing initial facts.
        """
        self.facts = initial_facts

    def add_fact(self, fact: str, truth_value: bool) -> None:
        """
        Adds or updates a fact in the FactChecker.

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

    def check_fact(self, fact: str) -> bool:
        """
        Checks if a specific fact is true.

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

        Returns:
            bool: True if the fact is true, False otherwise.
        """
        return self.facts.get(fact, False)

    def verify_statement(self, statement: str) -> bool:
        """
        Verifies a complex statement by breaking it into smaller facts and checking each one.

        Args:
            statement (str): A complex statement composed of multiple simple facts.

        Returns:
            bool: True if all parts of the statement are true, False otherwise.
        """
        # This is a simplistic implementation and may not cover all cases
        # For example, it does not handle logical operators or complex statements

        for part in statement.split(" "):
            if self.check_fact(part) == False:
                return False
        return True


# Example usage
if __name__ == "__main__":
    checker = FactChecker({"Python is a programming language": True,
                           "AI can learn from data": True})
    
    print(checker.check_fact("Python is a programming language"))  # Output: True
    
    checker.add_fact("Deep learning is a subset of machine learning", True)
    print(checker.verify_statement("AI can learn from data and deep learning is its part"))  # Output: True
```