"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-07 18:43:22.385194
"""

```python
from typing import List, Optional


class FactChecker:
    """
    A simple fact-checking tool that verifies if a statement is true or false based on predefined rules.
    
    Args:
        statements: A list of strings representing factual statements to be checked.
        truth_values: A list of booleans indicating the correctness of each statement. True for correct, False otherwise.
        
    Methods:
        check_statement(statement: str) -> Optional[bool]:
            Check if a given statement is true based on predefined rules and return True or False.
    
    Example usage:
        checker = FactChecker(statements=['The Earth orbits around the Sun', '2+2 equals 5'],
                              truth_values=[True, False])
        print(checker.check_statement('The Earth orbits around the Sun'))  # Output: True
        print(checker.check_statement('2+2 equals 4'))  # Output: True
    """
    
    def __init__(self, statements: List[str], truth_values: List[bool]):
        if len(statements) != len(truth_values):
            raise ValueError("The number of statements must match the number of truth values.")
        
        self.statements = {s: v for s, v in zip(statements, truth_values)}
    
    def check_statement(self, statement: str) -> Optional[bool]:
        """
        Check if a given statement is true or false.
        
        Args:
            statement (str): The statement to be checked.
            
        Returns:
            bool: True if the statement is correct according to predefined rules, False otherwise. 
                  None if the statement does not match any known statements.
        """
        return self.statements.get(statement)


# Example usage
if __name__ == "__main__":
    checker = FactChecker(
        statements=['The Earth orbits around the Sun', 'Water boils at 100 degrees Celsius'],
        truth_values=[True, True]
    )
    
    print(checker.check_statement('The Earth orbits around the Sun'))  # Output: True
    print(checker.check_statement('2+2 equals 4'))  # Output: None (because '2+2 equals 4' is not in statements)
```