Deductive Agent Reasoning: From Facts to Guaranteed Conclusions

An agent may store observations and rules yet still need to decide whether a proposed conclusion is justified. Deductive agent reasoning draws conclusions that follow necessarily from the agent's stated knowledge. You use it when a conclusion must be supported by explicit facts and rules. Here, the setting is finite, two-valued propositional logic: each proposition is true or false in a complete interpretation, even when the agent does not know which.

Knowledge and guaranteed conclusions

Write the agent's knowledge base as KK and its query as qq. A model represents one possibility compatible with everything stored. Entailment means that the query holds in every such possibility:


K⊨q⟺every model of K satisfies q.K \models q \quad\Longleftrightarrow\quad \text{every model of }K\text{ satisfies }q.


This guarantee is relative to the stored knowledge. If an observation or rule misrepresents the environment, a valid deduction need not describe the environment correctly.


For example, let VV mean a credential is verified and EE mean entry is permitted. From VV and V⇒EV\Rightarrow E, the agent can conclude EE. From EE and V⇒EV\Rightarrow E, however, it cannot conclude VV: the implication allows entry permission to be true for another reason.


A countermodel is enough to defeat an entailment claim. You do not need to show that the query is always false; one compatible possibility where it fails is sufficient.

Proofs and their guarantees

A proof procedure applies inference rules to stored sentences. Write K⊢qK\vdash q when that procedure derives qq. The symbols ⊢\vdash and ⊨\models answer different questions: what can this procedure derive, and what follows in every model?


A procedure's soundness requires:


K⊢q⟹K⊨q.K\vdash q\quad\Longrightarrow\quad K\models q.


Its completeness supplies the reverse direction within the procedure's stated scope. Neither property alone promises efficient execution. Also, a search that has merely stopped running is different from a completed decision procedure.


A knowledge base feeds a proof procedure that produces a derived sentence.



Chaining rules without inventing facts

Many agents use definite Horn rules. For example:


A∧B⇒C.A\land B\Rightarrow C.


Forward chaining adds CC once both AA and BB are available. It repeats rule applications until no new atom can be added. For a finite propositional definite Horn knowledge base, this completed process derives exactly the entailed positive atoms.


Example: If the facts are AA and BB, and the rules are A∧B⇒CA\land B\Rightarrow C and C⇒DC\Rightarrow D, chaining derives CC and then DD. Reapplying a rule does not create a new fact when its conclusion is already stored.


Under an open-world interpretation, an unproved atom is not automatically false. Inferring negation from absence would require an additional assumption beyond classical entailment.

Unknown queries and inconsistent knowledge

For a consistent knowledge base, distinguish three query statuses:


Status of the query

Semantic test

Agent's justified conclusion

Entailed

Every model satisfies qq

Accept qq

Refuted

Every model satisfies ¬q\neg q

Accept ¬q\neg q

Undetermined

Some models satisfy qq and others satisfy ¬q\neg q

Preserve uncertainty


One general test is to add the negated query:


K⊨q⟺K∧¬q has no model.K\models q \quad\Longleftrightarrow\quad K\land\neg q\text{ has no model}.


A resolution proof can establish this by deriving the empty clause, which represents contradiction. For example, resolving P∨QP\lor Q with ¬P\neg P yields QQ.



What to remember

  • Entailment requires truth in every compatible model.
  • A sound proof supports a conclusion; an unfinished or incomplete search does not settle failure.
  • Missing facts can remain unknown.
  • Refutation proves a query by showing that its negation contradicts the knowledge base.

Example: Establishing permission at a secure archive

An archive agent uses four propositions: CC means a credential is verified, TT means training is complete, EE means entry is permitted, and LL means a supervisor notification is logged. Initially, its entire knowledge base is:


K={C, (C∧T)⇒E, E⇒L}.K=\{C,\ (C\land T)\Rightarrow E,\ E\Rightarrow L\}.


Use classical propositional logic. Missing observations are not automatically false, and the atom set for the agent's stored state is exactly {C,T,E,L}\{C,T,E,L\}.


a) Before receiving any training observation, is EE entailed, refuted, or undetermined? Justify your answer with compatible assignments.


First, inspect the available facts. The initial forward-chaining closure contains ________ atom, namely CC. The entry rule cannot fire because its training premise is unavailable. This failure alone does not establish ¬E\neg E.


Next, test both possibilities. Consider these complete assignments, written in the order (C,T,E,L)(C,T,E,L):


I1=(T,F,F,F),I2=(T,F,T,T).I_1=(T,F,F,F),\qquad I_2=(T,F,T,T).


Both satisfy CC. In both, the premise C∧TC\land T is false, so the entry rule is satisfied. The logging rule holds in the first assignment because EE is false, and in the second because both EE and LL are true.


The first assignment makes EE false, while the second makes it true. Therefore entry permission is undetermined: K⊭EK\not\models E and K⊭¬EK\not\models\neg E.


b) The agent now receives the observation TT. Find the completed positive forward-chaining closure and its number of distinct atoms.


First, update the starting facts. The observed facts are now CC and TT, giving ________ starting atoms. Each observation is counted once.


Next, apply the entry rule. Both premises are available, so (C∧T)⇒E(C\land T)\Rightarrow E adds ________ to the closure.


Then, apply the logging rule. Since EE is now available, E⇒LE\Rightarrow L adds LL. Every rule conclusion is already present after this addition, so further applications add nothing.


The completed closure is {C,T,E,L}\{C,T,E,L\}, containing 4 distinct atoms. Both entry permission and logging are entailed after the training observation; the new evidence supplies the previously missing premise.


c) Using the updated knowledge base, prove LL by resolution refutation.


First, write the rules as clauses and negate the query. Replacing each implication with its equivalent disjunction gives:


C,T,¬C∨¬T∨E,¬E∨L.C,\quad T,\quad \neg C\lor\neg T\lor E,\quad \neg E\lor L.


For refutation, also assume ¬L\neg L. The aim is to show that these clauses cannot all hold together.


Next, resolve backward from the negated query. Resolving ¬L\neg L with ¬E∨L\neg E\lor L produces ________. Resolving that result with the entry clause produces ________.


¬L¬E∨L¬E¬E¬C∨¬T∨E¬C∨¬T\frac{\neg L\qquad\neg E\lor L}{\neg E} \qquad \frac{\neg E\qquad\neg C\lor\neg T\lor E}{\neg C\lor\neg T}


Finally, use the observed facts. Resolve ¬C∨¬T\neg C\lor\neg T with CC to obtain ¬T\neg T, then resolve ¬T\neg T with the observed TT to obtain the empty clause:


¬C∨¬TC¬T¬TT□.\frac{\neg C\lor\neg T\qquad C}{\neg T} \qquad \frac{\neg T\qquad T}{\square}.


The updated knowledge base together with ¬L\neg L is inconsistent. Therefore K∪{T}⊨LK\cup\{T\}\models L. The contradiction refutes the added negated query; the updated knowledge base itself remains consistent, as the all-true assignment demonstrates.

An access-control agent stores exactly R⇒VR\Rightarrow V and VV, where RR means a request is approved and VV means its credential is valid. Under classical propositional logic, what is justified about RR?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A monitoring agent uses PP for a primary sensor alert, QQ for a backup sensor alert, and RR for a recorded alarm. Its knowledge base is K=(P∨Q)∧(P⇒R)K=(P\lor Q)\land(P\Rightarrow R). Complete both result columns using T for true and F for false. The final column tests whether a row is a countermodel to the query RR.

PQRKK and not R
TTT
TTF
TFT
TFF
FTT
FTF
FFT
FFF

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A software agent represents a validation pipeline with five Boolean atoms A,B,C,D,EA,B,C,D,E. Its entire knowledge base is (A⇒B)∧(B⇒C)∧D(A\Rightarrow B)\land(B\Rightarrow C)\land D; no sentence mentions EE. How many assignments to these five atoms satisfy the knowledge base? Give the exact integer count, to zero decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice