"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 10:46:08.378866
"""

```python
from typing import List, Set, Dict
from functools import lru_cache

class FactChecker:
    """
    A class that checks facts against a given knowledge base.
    Utilizes memoization to limit reasoning sophistication and enhance efficiency.

    Args:
        knowledge_base (Set[str]): The set of known facts represented as strings.

    Methods:
        __init__(self, knowledge_base: Set[str])
        check_fact(self, fact_to_check: str) -> bool
    """

    def __init__(self, knowledge_base: Set[str]):
        self.knowledge_base = knowledge_base

    @lru_cache(maxsize=1024)
    def check_fact(self, fact_to_check: str) -> bool:
        """
        Check if the given fact is in the knowledge base.

        Args:
            fact_to_check (str): The fact to be checked.

        Returns:
            bool: True if the fact is in the knowledge base, False otherwise.
        """
        return fact_to_check in self.knowledge_base


# Example usage
if __name__ == "__main__":
    # Simulated knowledge base of facts
    knowledge_base = {"The Earth orbits around the Sun", "Water boils at 100 degrees Celsius",
                      "Humans have 5 fingers on each hand"}

    fact_checker = FactChecker(knowledge_base)

    print(fact_checker.check_fact("The Earth orbits around the Sun"))  # Expected: True
    print(fact_checker.check_fact("The Moon is a planet"))             # Expected: False

```