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.
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✝) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
instance instDecidableEqGeneralizedAtom {P✝ : Preds} {T✝ : Type u_2} {inst✝ : DecidableEq P✝.symbol} [DecidableEq T✝] :
DecidableEq (GeneralizedAtom P✝ T✝)
theorem GeneralizedAtom.length_terms_eq_of_predicate_eq {P : Preds} {T : Type u} [DecidableEq P.symbol] {a b : GeneralizedAtom P T} :
If two atoms have the same predicate, then they thave an equal number of terms