Hostname: page-component-74656f9884-qr5l4 Total loading time: 0 Render date: 2026-11-03T16:39:13.754Z Has data issue: false hasContentIssue false

Multi-paradigm Logic Programming in the $\mathcal{E}$rgoAI System

Published online by Cambridge University Press:  27 October 2026

MICHAEL KIFER
Affiliation:
Computer Science, Stony Brook University, USA (e-mail: kifer@cs.stonybrook.edu)
THERESA SWIFT
Affiliation:
Coherent Knowledge Systems, Arlington, USA (e-mail: theresasturn@gmail.com)
Rights & Permissions [Opens in a new window]

Abstract

$\mathcal{E}$rgoAI is a high-level, multi-paradigm logic programming language and system developed by Coherent Knowledge Systems as an enhancement of and a successor to the popular $\mathcal{F}$lora-2 system. $\mathcal{E}$rgoAI is oriented toward scalable knowledge representation and reasoning and can exploit = structured knowledge as well as knowledge derived from external sources such as vector databases. From their inception, $\mathcal{E}$rgoAI (and $\mathcal{F}$lora-2 before it) were designed to exploit the well-founded semantics for reasoning in a multi-paradigm environment, including object-based logic (F-logic) with non-monotonic inheritance; higher-order syntax in the style of HiLog; defeasibility of rules; semantically clean transactional updates; subgoal delay for handling unsafe queries and for better performance; and optional support for bounded rationality at a module level. Although $\mathcal{E}$rgoAI programs are compiled into XSB and adopt many Prolog features, $\mathcal{E}$rgoAI is altogether a different language and system. Under consideration in Theory and Practice of Logic Programming (TPLP).

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Fig. 1. E$\mathcal{E}$rgoAI program to illustrate positive recursion handling in tabling.

Figure 1

Fig. 2. E$\mathcal{E}$rgoAI programs to illustrate WFS and SLG.

Figure 2

Fig. 3. E$\mathcal{E}$rgoAI instance frames with a fragment of a classification hierarchy.

Figure 3

Fig. 4. E$\mathcal{E}$rgoAI class signatures.

Figure 4

Fig. 5. A fragment of a belief logic.

Figure 5

Fig. 6. Simplified pseudo-code for GCLP, E$\mathcal{E}$rgoAI’s default argumentation theory.

Figure 6

Fig. 7. Schematic evaluation of non-ground default negation.

Figure 7

Fig. 8. A schematic architecture for E$\mathcal{E}$rgoAI.

Figure 8

Fig. 9. Illustration of a 1-safe petri net.

Figure 9

Fig. 10. E$\mathcal{E}$rgoAI /XSB elapsed time and space for petri net reachability.

Figure 10

Fig. 11. CPU time/elapsed time in seconds, and space for left-recursive transitive closure.

Figure 11

Fig. 12. Test predicates to compare non-tabled resolution.

Figure 12

Fig. 13. Elapsed times in seconds to create lists of varying lengths using makelist/2.

Figure 13

Fig. 14. Elapsed times in seconds for varying iterations using iter/1 in E$\mathcal{E}$rgoAI and/or XSB.

Figure 14

Fig. A1. Tabled prolog program for reachability in a 1-safe petri net.

Figure 15

Fig. A2. E$\mathcal{E}$rgoAI program for reachability in a 1-safe petri net.

Figure 16

Fig. A3. E$\mathcal{E}$rgoAI code for transitive closure over large cycles.

Figure 17

Fig A4. Prolog code for transitive closure over large cycles.

Figure 18

Fig. A5. E$\mathcal{E}$rgoAI quasi-prolog rules used for benchmarking.