Documentation

ExistentialRules.AtomsAndRules.Basic

Atoms, Facts, Rules and the like #

In this directory, we define the next layers of building blocks above terms. This includes first and foremost FunctionFreeAtom and Fact but also Rule, RuleSet, Database and KnowledgeBase to name a few.

The atom-like datastructures are all expressed in terms of a GeneralizedAtom. This will turn out convenient when defining substitutions and homomorphisms next since these can (for the most part) just be defines as generic mapping over GeneralizedAtom.

structure GeneralizedAtom (P : Preds) (T : Type u) [DecidableEq P.symbol] :
Type (max u u_1)

A GeneralizedAtom consists of a predicate symbol and a list of terms of an arbitrary type such that the number of terms matches the predicate's arity.

Instances For
    def instDecidableEqGeneralizedAtom.decEq {P✝ : Preds} {T✝ : Type u_2} {inst✝ : DecidableEq P✝.symbol} [DecidableEq T✝] (x✝ x✝¹ : GeneralizedAtom P✝ T✝) :
    Decidable (x✝ = x✝¹)
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      If two atoms have the same predicate, then they thave an equal number of terms