"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 13:43:04.524040
"""

```python
from typing import List, Dict

class ReasoningEngine:
    """
    A basic reasoning engine that implements a simple rule-based system.
    """

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

    def add_rule(self, condition: str, action: str) -> None:
        """
        Adds a new rule to the knowledge base.

        :param condition: The condition under which the action should be taken. 
                          A string that represents a logical expression.
        :param action: The action or response when the condition is met.
                       A string representing an action to be performed.
        """
        if condition not in self.knowledge_base:
            self.knowledge_base[condition] = []
        self.knowledge_base[condition].append(action)

    def infer(self, facts: List[str]) -> Dict[str, str]:
        """
        Infers actions based on the given list of facts.

        :param facts: A list of strings representing current known facts.
        :return: A dictionary where keys are conditions and values are inferred actions.
        """
        inferences = {}
        for condition, actions in self.knowledge_base.items():
            if all(fact in condition for fact in facts):
                for action in actions:
                    inferences[condition] = action
        return inferences

# Example usage:

if __name__ == "__main__":
    engine = ReasoningEngine()
    # Adding rules
    engine.add_rule("A and B", "C")
    engine.add_rule("B or C", "D")
    engine.add_rule("E and not D", "F")

    # Performing inference with given facts
    facts = ["A", "B"]
    inferences = engine.infer(facts)
    print(inferences)  # Output: {'A and B': 'C'}

```