"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 07:38:56.475009
"""

```python
from typing import List
from functools import partial


class FactChecker:
    """
    A class that checks the validity of statements based on predefined rules.
    
    Methods:
        check_fact(statement: str) -> bool:
            Checks if a given statement is valid according to predefined rules.
        
        add_rule(rule: callable, description: str):
            Adds a new rule for checking facts. The rule should take a single string argument and return a boolean.
    """
    def __init__(self):
        self.rules = []

    def check_fact(self, statement: str) -> bool:
        """Check if the given statement is valid based on predefined rules."""
        for rule in self.rules:
            if not rule(statement):
                return False
        return True

    def add_rule(self, rule: callable, description: str):
        """Add a new rule to check facts."""
        self.rules.append((rule, description))

# Example usage:

def is_fact_true(statement: str) -> bool:
    """
    A simple fact-checking function that checks if the statement contains 'true'.
    
    Args:
        statement (str): The statement to be checked.
        
    Returns:
        bool: True if the statement contains 'true', False otherwise.
    """
    return 'true' in statement.lower()

def is_fact_false(statement: str) -> bool:
    """
    A fact-checking function that checks if the statement does not contain 'false'.
    
    Args:
        statement (str): The statement to be checked.
        
    Returns:
        bool: True if the statement does not contain 'false', False otherwise.
    """
    return 'false' not in statement.lower()

fact_checker = FactChecker()
fact_checker.add_rule(is_fact_true, "Checks if the fact is true")
fact_checker.add_rule(is_fact_false, "Ensures that the fact does not explicitly state it as false")

# Example usage of check_fact
statement = "The sky is blue and the statement contains 'true'"
print(fact_checker.check_fact(statement))  # Output: True

statement = "The sky is not green"
print(fact_checker.check_fact(statement))  # Output: False
```