"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 12:36:58.687052
"""

```python
from typing import List


class FactChecker:
    """
    A class to check facts against a given dataset.
    
    Args:
        data (List[dict]): A list of dictionaries containing key-value pairs representing facts.
        
    Methods:
        is_fact_valid(fact: str, key: str) -> bool:
            Checks if the fact exists in the dataset and its associated value for 'key' is true.
            
        validate_all_facts(facts: List[str]) -> List[bool]:
            Validates multiple facts against the dataset.
            
    Example Usage:
        >>> data = [
                {'fact': 'sun_is_hot', 'value': True},
                {'fact': 'earth_is_flat', 'value': False}
            ]
        >>> checker = FactChecker(data)
        >>> checker.is_fact_valid('sun_is_hot', 'value')
        True
        >>> checker.validate_all_facts(['sun_is_hot', 'earth_is_flat'])
        [True, False]
    """
    
    def __init__(self, data: List[dict]):
        self.data = data
    
    def is_fact_valid(self, fact: str, key: str) -> bool:
        for entry in self.data:
            if entry['fact'] == fact and (key in entry or key == 'value'):
                return entry.get(key, False)
        return False

    def validate_all_facts(self, facts: List[str]) -> List[bool]:
        results = []
        for fact in facts:
            result = self.is_fact_valid(fact, 'value')
            results.append(result)
        return results


# Example usage
if __name__ == "__main__":
    data = [
        {'fact': 'sun_is_hot', 'value': True},
        {'fact': 'earth_is_flat', 'value': False}
    ]
    checker = FactChecker(data)
    print(checker.is_fact_valid('sun_is_hot', 'value'))
    print(checker.validate_all_facts(['sun_is_hot', 'earth_is_flat']))
```