"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 20:02:47.593500
"""

```python
from typing import List


class FactChecker:
    """
    A simple fact-checking tool that validates statements based on a predefined list of facts.

    Args:
        known_facts: A list of strings representing factual statements to be used for validation.
    
    Methods:
        check_fact: Validates if a given statement is true according to the predefined facts.
    """

    def __init__(self, known_facts: List[str]):
        self.known_facts = set(known_facts)  # Using a set for O(1) average-case complexity lookups

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

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

        Returns:
            bool: True if the statement matches a known fact, False otherwise.
        """
        return statement in self.known_facts


# Example usage
if __name__ == "__main__":
    # Predefined list of true statements/facts
    facts = ["The Earth orbits the Sun", "Water is composed of H2O", "Python is a programming language"]
    
    fact_checker = FactChecker(facts)
    
    print(fact_checker.check_fact("The Earth orbits the Sun"))  # Expected: True
    print(fact_checker.check_fact("Mars has two moons"))        # Expected: False
```

This example includes a simple class `FactChecker` that can validate statements against a list of predefined facts. The method `check_fact` determines if a given statement is true based on the known facts provided during initialization.