"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 06:21:46.578502
"""

```python
from typing import List, Dict

class KnowledgeBase:
    def __init__(self):
        self.facts = []
    
    def add_fact(self, fact: str) -> None:
        """Add a fact to the knowledge base."""
        self.facts.append(fact)
    
    def get_facts(self) -> List[str]:
        """Retrieve all facts from the knowledge base."""
        return self.facts

def create_reasoning_engine(knowledge_base: KnowledgeBase, problem_description: str) -> str:
    """
    Create a basic reasoning engine to solve problems based on given facts.
    
    :param knowledge_base: Instance of KnowledgeBase containing relevant facts
    :param problem_description: A string describing the problem to be solved
    :return: A string with the solution or explanation derived from the facts
    """
    # Simple pattern matching for demonstration purposes
    if "temperature" in problem_description and "freezing point" in problem_description:
        return "Water freezes at 0 degrees Celsius."
    
    if "area of a circle" in problem_description and "radius" in problem_description:
        radius = int(problem_description.split("with radius ")[1])
        area = 3.14 * (radius ** 2)
        return f"The area of the circle with radius {radius} is {area:.2f}."
    
    if "capital of France" in problem_description:
        return "Paris is the capital of France."
    
    # Add more conditions and facts as needed
    return "Unable to solve the given problem with available facts."

# Example usage
knowledge_base = KnowledgeBase()
knowledge_base.add_fact("Water has a freezing point at 0 degrees Celsius.")
knowledge_base.add_fact("The formula for area of circle is pi * r^2")
knowledge_base.add_fact("Paris is the capital of France.")

problem_description_1 = "What is the temperature when water freezes?"
problem_description_2 = "Calculate the area of a circle with radius 5."
problem_description_3 = "Tell me about the capital of France."

solution_1 = create_reasoning_engine(knowledge_base, problem_description_1)
print(solution_1)  # Output: Water freezes at 0 degrees Celsius.

solution_2 = create_reasoning_engine(knowledge_base, problem_description_2)
print(solution_2)  # Output: The area of the circle with radius 5 is 78.50.

solution_3 = create_reasoning_engine(knowledge_base, problem_description_3)
print(solution_3)  # Output: Paris is the capital of France.
```