"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 18:41:45.081398
"""

```python
from typing import List, Tuple
from dataclasses import dataclass


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


def create_fact_checker(facts: List[Fact]) -> callable:
    """
    Creates a fact-checking function that can verify the truthfulness of statements based on provided facts.

    Args:
        facts (List[Fact]): A list of Fact objects containing statements and their sources.

    Returns:
        callable: A function that takes a statement to check and returns its source if found, else None.
    """

    fact_dict = {fact.statement: fact.source for fact in facts}

    def fact_check(statement: str) -> Tuple[str, bool]:
        """
        Checks the provided statement against stored facts.

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

        Returns:
            Tuple[str, bool]: A tuple containing the source of the statement and a boolean indicating if it was found.
        """
        return fact_dict.get(statement, ""), statement in fact_dict

    return fact_check


# Example usage
if __name__ == "__main__":
    facts = [
        Fact("The Eiffel Tower is located in Paris.", "Wikipedia"),
        Fact("Eden AI is an autonomous AI with phi-fractal architecture.", "AI Documentation"),
        Fact("Python was created by Guido van Rossum.", "Python.org")
    ]

    fact_checker = create_fact_checker(facts)

    print(fact_checker("The Eiffel Tower is located in Paris."))
    # Output: ('Wikipedia', True)

    print(fact_checker("Python was created by Guido van Rossum."))
    # Output: ('Python.org', True)

    print(fact_checker("Mars has rings like Saturn."))  # This fact should not be found
    # Output: (None, False)
```