"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 21:47:44.528792
"""

```python
from typing import List, Dict


class ReasoningEngine:
    """
    A simple reasoning engine that evaluates a set of conditions against given facts.
    """

    def __init__(self):
        self.facts = {}

    def add_fact(self, key: str, value: bool) -> None:
        """
        Adds or updates a fact.

        :param key: The identifier for the fact.
        :param value: The boolean value of the fact.
        """
        self.facts[key] = value

    def evaluate_condition(self, condition: str) -> bool:
        """
        Evaluates a logical condition based on added facts.

        :param condition: A string representing a logical expression (e.g., "fact1 and not fact2").
        :return: The result of the evaluation as a boolean.
        """
        try:
            return eval(condition, {"__builtins__": None}, self.facts)
        except KeyError:
            raise ValueError(f"Unknown variable in condition: {condition}")

    def get_results(self) -> Dict[str, bool]:
        """
        Retrieves all evaluated results based on the added facts.

        :return: A dictionary of conditions and their boolean evaluation results.
        """
        return {
            f"{key} => {value}": self.evaluate_condition(key)
            for key, value in self.facts.items()
        }


# Example usage
if __name__ == "__main__":
    reasoning_engine = ReasoningEngine()
    
    # Adding facts
    reasoning_engine.add_fact("fact1", True)
    reasoning_engine.add_fact("fact2", False)

    # Evaluating conditions
    print(reasoning_engine.evaluate_condition("fact1 and not fact2"))  # Output: True

    # Getting all results
    print(reasoning_engine.get_results())
```