Cognition · Software component
Symbolic Logic Engine
Software componentCognitionCognition & Memoryarc:SymbolicLogicEngine
A deterministic inference component that identifies which formal rules apply to formalised premises and invokes predefined logic functions to derive valid conclusions.
Responsibility. Derives conclusions by explicit application of formal logic rules.
Also known as: Logic function invoker (Logic Agent stage 2), Structured logic invocation, Inference engine, Rule engine, Production rule inference engine, Symbolic reasoning engine (cooperative/embedded)
When to choose. Choose for formal domains with clear inference rules where validity is non-negotiable (legal, mathematical proof, regulatory compliance, security attack-path analysis); struggles with ambiguous, context-dependent or informal reasoning.
Relationships
is configured by structural
- Conflict Resolution Policy abstract Ch5.11
invokes dependency
is invoked by dependency
reads dependency
writes dependency
receives data from dynamic
sends data to dynamic
is orchestrated by control
Design guidance
- SHOULD use forward chaining when multiple goals are possible and all consequences of the evidence should be explored, accepting higher memory use.
- SHOULD use backward chaining when a specific hypothesis must be verified efficiently, keeping only facts relevant to the proof path.
- MUST apply refraction (no immediate refiring of a rule on the same facts) to prevent infinite loops.
- SHOULD NOT let combinations of low-confidence facts yield spuriously high-confidence conclusions when propagating certainty factors.
Classification
- Patterns
- Modus ponensSyllogismContrapositive reasoningLogic Agent frameworkMatch-resolve-act cycleForward chaining (data-driven)Backward chaining (goal-driven)Hybrid forward/backward chainingRefractionCertainty-factor propagationGoal stack tracking
- Quality attributes
- Functional suitability: correctness and validity (ISO/IEC 25010 | NIST AI RMF: valid)Explainability (NIST AI RMF: explainable and interpretable)Reliability (ISO/IEC 25010 | NIST AI RMF: valid and reliable)
- Risks mitigated
- Fluent but logically invalid pattern-based reasoningError compounding across multi-step inference chainsInfinite rule refiring loopsUnbounded backward-chaining recursion
Sources
- Ch3.9: T. Nguyen, "Reasoning Quality," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.9. ISBN: 9798244538229.
- Ch5.11: T. Nguyen, "Rule-Based Decision Making Fundamentals," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.11. ISBN: 9798244538229.
- Ch5.13: T. Nguyen, "Hybrid Decision Systems Fundamentals," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.13. ISBN: 9798244538229.