~/ learn/ comp-456/ cards/ Branch-and-bound & reasoning as search
1 of 4

Inference rules as graph arcs (reasoning-as-search), in Prolog

Inference rules as graph arcs (reasoning-as-search), in Prolog

Answer

mortal(X) :- man(X). man(socrates). ?- mortal(socrates).

Each clause is an arc in a reasoning state space: the fact man(socrates) is a start state; the rule mortal(X):-man(X) is an inference arc; the query ?- mortal(socrates) asks whether a path of rule applications reaches the goal fact. Prolog's proof IS a goal-driven (backward) search.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/3a200620-dc41-4f05-b827-aa0e2e509717/flashcard utf-8 LF