"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 01:31:20.770851
"""

```python
from typing import List, Set, Dict
from dataclasses import dataclass

@dataclass
class Fact:
    statement: str
    context: str = ""

def extract_facts(text: str) -> List[Fact]:
    """
    Extracts facts from a given text.

    Args:
        text (str): The input text to process.

    Returns:
        List[Fact]: A list of extracted facts.
    """
    # Simple regex pattern for extracting statements
    import re
    statement_pattern = r"(?P<statement>.*(?=\.)\.)"
    facts: List[Fact] = []

    for match in re.finditer(statement_pattern, text):
        statement = match.group("statement").strip()
        if statement:
            facts.append(Fact(statement=statement))
    
    return facts

def check_fact(fact: Fact, known_facts: Set[str]) -> bool:
    """
    Checks if a fact is valid against the set of known facts.

    Args:
        fact (Fact): The fact to be checked.
        known_facts (Set[str]): A set of known and verified facts.

    Returns:
        bool: True if the fact is supported by the known facts, False otherwise.
    """
    return fact.statement in known_facts

def create_fact_checker(text: str) -> Dict[str, bool]:
    """
    Creates a fact checker for the given text against a set of known facts.

    Args:
        text (str): The input text to process and extract facts from.

    Returns:
        Dict[str, bool]: A dictionary where keys are statements and values are their validity.
    """
    extracted_facts = extract_facts(text)
    fact_checker: Dict[str, bool] = {}

    for fact in extracted_facts:
        # Example known facts
        known_facts_set = {"The Earth is round.", "Water boils at 100 degrees Celsius."}
        
        validity = check_fact(fact, known_facts_set)
        fact_checker[fact.statement] = validity

    return fact_checker

# Example usage
if __name__ == "__main__":
    sample_text = ("The Earth is flat. The Earth is round. Water boils at 100 degrees Celsius."
                   "Water boils at 250 degrees Celsius.")
    known_facts_set = {"The Earth is round.", "Water boils at 100 degrees Celsius."}
    
    result = create_fact_checker(sample_text)
    print(result)  # Output: {'The Earth is flat.': False, 'The Earth is round.': True, 
                     #                    'Water boils at 100 degrees Celsius.': True,
                     #                    'Water boils at 250 degrees Celsius.': False}
```