SlideShare a Scribd company logo
The Complexity of Contextual Abduction
in Human Reasoning Tasks
Emmanuelle-Anna Dietz Saldanha1 Steffen H¨olldobler1,2 Tobias Philipp1
1International Center for Computational Logic, TU Dresden, Germany
2North-Caucasus Federal University, Stavropol, Russian Federation
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the brakes are pressed, then the car slows down
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the brakes are not OK, then the car does not slow down
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the car accelerates, then the car does not slow down
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the road is slippery, then the car does not slow down
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the road is icy, then the road is slippery
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the road is downhill, then the car accelerate
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the car has snow chains on the wheels, then the road
is not slippery for the car
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
Modeling Human Reasoning Tasks
Car Brake Scenario
Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition.
Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of
Interpretation. In: Decision.
If the car has snow chains on the wheels and the brakes
are pressed, then the car does not accelerate when the
road is downhill
In this talk
1. The Weak Completion Semantics with Contextual Logic Programs
2. Contextual Abduction
3. Complexity of Contextual Abductive Reasoning
1
The Weak Completion Semantics
The Weak Completion Semantics (1)
Propositional Variables A
slow down, press, brakes ok
Literal L A or ¬A
¬brakes ok
Logic Program P finite set of
rule A ←L1 ∧ . . . ∧ Lm
fact A ←
assumption A ←⊥
P = {slow down ← press ∧ ¬ab1, ab1 ← ⊥}
Dietz Saldanha, H¨olldobler, Pereira: Contextual Reasoning: Usually Birds can Abductively
Fly. In: LPNMR 2017.
Contextual Logic Program P finite set of
rule A ←L1 ∧ . . . ∧ Lm ∧ ctxt(Lm+1) ∧ . . . ∧ ctxt(Lm+p)
2
The Weak Completion Semantics (2)
Weak Completion wcP
1. Replace all clauses with the same head A ← Body1, . . . , A ← Bodyn by
A ← Body1 ∨ Body2 ∨ . . . ∨ Bodyn
2. Replace ← by ↔
wcP1 = {slow down ↔ press ∧ ¬ab1, ab1 ↔ ⊥}
Three-Valued Interpretation I = I , I⊥
F ¬F
⊥
⊥
U U
∧ U ⊥
U ⊥
U U U ⊥
⊥ ⊥ ⊥ ⊥
∨ U ⊥
U U U
⊥ U ⊥
← U ⊥
U U
⊥ ⊥ U
L ctxt(L)
⊥ ⊥
U ⊥
P entails F under the weak completion semantics, P |=WCS F
I1 = {slow down, press}, {ab1}
MP1
= {}, {ab1}
3
The Weak Completion Semantics (3)
Stenning and van Lambalgen Operator Φ ΦP (I) = J , J⊥
J = {A | there is A ← body ∈ P such that I(body) = }
J⊥ = {A | there is A ← body ∈ P
and for all A ← body ∈ P, we find that I(body) = ⊥}
H¨olldobler, Kencana Ramli: Logic Programs under Three-Valued Lukasiewicz Semantics.
In: ICLP 2009.
For context-free logic programs:
1. ΦP is monotonic
2. MP is the least fixed point of ΦP
Dietz Saldanha, H¨olldobler, Pereira: Contextual Reasoning: Usually Birds can Abductively Fly.
In: LPNMR 2017.
For contextual logic programs:
1. ΦP is not monotonic
2. lfp ΦP exists, if P is acyclic
4
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5. If the road is icy and nothing is abnormal (ab2), then the road is slippery
slippery ← icy road ∧ ¬ab2 ab2 ← ⊥
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5. If the road is icy and nothing is abnormal (ab2), then the road is slippery
slippery ← icy road ∧ ¬ab2 ab2 ← ⊥
6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates
accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5. If the road is icy and nothing is abnormal (ab2), then the road is slippery
slippery ← icy road ∧ ¬ab2 ab2 ← ⊥
6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates
accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥
7. If the car has snow chains, then something is abnormal w.r.t. ab2
ab2 ← ctxt(snow chain)
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5. If the road is icy and nothing is abnormal (ab2), then the road is slippery
slippery ← icy road ∧ ¬ab2 ab2 ← ⊥
6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates
accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥
7. If the car has snow chains, then something is abnormal w.r.t. ab2
ab2 ← ctxt(snow chain)
8. If the car has snow chains and the brakes are pressed, then something is abnormal w.r.t. ab3
ab3 ← ctxt(snow chain) ∧ press
5
The Car Brake Scenario (1)
Stenning, van Lambalgen: Human Reasoning and Cognitive Science.
1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down
slow down ← press ∧ ¬ab1 ab1 ← ⊥
2. If the brakes are not OK, then something is abnormal w.r.t. ab1
ab1 ← ctxt(¬brakes ok)
3. If the car accelerates, then something is abnormal w.r.t. ab1
ab1 ← ctxt(accelerate)
4. If the road is slippery, then something is abnormal w.r.t. ab1
ab1 ← ctxt(slippery)
5. If the road is icy and nothing is abnormal (ab2), then the road is slippery
slippery ← icy road ∧ ¬ab2 ab2 ← ⊥
6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates
accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥
7. If the car has snow chains, then something is abnormal w.r.t. ab2
ab2 ← ctxt(snow chain)
8. If the car has snow chains and the brakes are pressed, then something is abnormal w.r.t. ab3
ab3 ← ctxt(snow chain) ∧ press
lfp ΦP = ∅, {ab1, ab2, ab3}
5
Contextual Abduction
Contextual Abduction
Abductive Problem X = P, A, O
P is an acyclic contextual program
A ⊆ AP is the set of abducibles
AP = {A ← | A is undefined in P or A is head of an exception clause in P}
∪ {A ← ⊥ | A is undefined in P and ¬A is not assumed in P}
O is a finite set of literals, called observation
E is a contextual explanation of X
1. E ⊆ A
2. P ∪ E |=wcs O
3. for all A ← ∈ E and A ← ⊥ ∈ E there is L ∈ O such that
L strongly depends on A
6
Strongly Depends on Relation
Strongly depends relation smallest transitive relation such that
A ← L1 ∧ · · · ∧ Lm ∧ ctxt(Lm+1) ∧ · · · ∧ ctxt(Lm+p)
A strongly depends on Li for i ∈ {1, . . . , m}
If L strongly depends on L , then L strongly depends on L
If L strongly depends on L , then L strongly depends on L
P = { p ← r, p ← ctxt(q) }
p strongly depends on r, ¬p strongly depends on r, . . .
p does not strongly depend on q, neither on ctxt(q)
7
When it is slippery and the car does not slow down,..
Pctxt
car is as follows:
slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2
ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3
ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain)
ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press
ab1 ← ⊥ ab2 ← ⊥
ab3 ← ⊥
Assume that
O = {¬slow down, slippery}
E = {icy road ← } is a contextual explanation for O and is the only minimal one
8
When it is slippery and the car does not slow down,..
Pctxt
car is as follows:
slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2
ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3
ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain)
ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press
ab1 ← ⊥ ab2 ← ⊥
ab3 ← ⊥
Assume that
O = {¬slow down, slippery}
E = {icy road ← } is a contextual explanation for O and is the only minimal one
8
When it is slippery and the car does not slow down,..
Pctxt
car is as follows:
slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2
ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3
ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain)
ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press
ab1 ← ⊥ ab2 ← ⊥
ab3 ← ⊥
Assume that
O = {¬slow down, slippery}
E = {icy road ← } is a contextual explanation for O and is the only minimal one
8
When it is slippery and the car does not slow down,..
Pctxt
car is as follows:
slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2
ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3
ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain)
ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press
ab1 ← ⊥ ab2 ← ⊥
ab3 ← ⊥
Assume that
O = {¬slow down, slippery}
E = {icy road ← } is a contextual explanation for O and is the only minimal one
8
Complexity of
Contextual Abductive Reasoning
Modifications
H¨olldobler, Philipp, Wernhard: An Abductive Model for Human Reasoning. In: Commonsense
Reasoning 2011.
Contextual Logic Programs
Abducibles
AP = {A ← ⊥, A ← | A does not occur in a head in P}
Strongly depends on relation
9
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Complexity Results
EX Does there exists an explanation?
MIN Is E a minimal explanation?
SE F follows skeptically from X
1. X has an explanation
2. for all explanations E for X it holds that P ∪ E |=wcs F
PTIME
N
P
NPC
co-N
P
DPC
D
P
PSPACE
EX
MIN
SE
cEX
cMIN
cSE
10
Conclusion
Contextual programs: usual case vs the exception cases
Theorem
deciding consistency is NP-complete
deciding whether F follows skeptically is DP-complete
deciding whether a contextual explanation is minimal is in PSPACE
Future Work
Better bounds for minimality
11
The Complexity of Contextual Abduction
in Human Reasoning Tasks
Emmanuelle-Anna Dietz Saldanha1 Steffen H¨olldobler1,2 Tobias Philipp1
1International Center for Computational Logic, TU Dresden, Germany
2North-Caucasus Federal University, Stavropol, Russian Federation
Thank you for your attention!
References
Keith Stenning and Michiel van Lambalgen. Human Reasoning and Cognitive
Science. A Bradford Book. MIT Press, Cambridge, MA, 2008. ISBN
9780262195836.
Keith Stenning, Laura Martignon, and Alexandra Varga. Adaptive reasoning:
integrating fast and frugal heuristics with a logic of interpretation. Decision, in
press.
Steffen H¨olldobler, Tobias Philipp, and Christoph Wernhard. An abductive model for
human reasoning. In Logical Formalizations of Commonsense Reasoning, Papers
from the AAAI 2011 Spring Symposium, AAAI Spring Symposium Series Technical
Reports, pages 135–138, Cambridge, MA, 2011. AAAI Press.
12

More Related Content

PDF
Fuzzing and Verifying RAT Refutations with Deletion Information
PDF
An Expressive Model for Instance Decomposition Based Parallel SAT Solvers
PDF
Unsatisfiability Proofs for Parallel SAT Solver Portfolios with Clause Sharin...
PDF
A Verified Decision Procedure for Pseudo-Boolean Formulas
PDF
PBLib - A Library for Encoding Pseudo-Boolean Constraints into CNF
PDF
Checking Unsatisfiability Proofs in Parallel
PDF
Anwendungen der Logik in der IT-Sicherheit
PDF
Formal Verification with Ada/SPARK
Fuzzing and Verifying RAT Refutations with Deletion Information
An Expressive Model for Instance Decomposition Based Parallel SAT Solvers
Unsatisfiability Proofs for Parallel SAT Solver Portfolios with Clause Sharin...
A Verified Decision Procedure for Pseudo-Boolean Formulas
PBLib - A Library for Encoding Pseudo-Boolean Constraints into CNF
Checking Unsatisfiability Proofs in Parallel
Anwendungen der Logik in der IT-Sicherheit
Formal Verification with Ada/SPARK

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
KodekX | Application Modernization Development
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx
KodekX | Application Modernization Development
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Ad
Ad

The Complexity of Contextual Abduction in Human Reasoning Tasks

  • 1. The Complexity of Contextual Abduction in Human Reasoning Tasks Emmanuelle-Anna Dietz Saldanha1 Steffen H¨olldobler1,2 Tobias Philipp1 1International Center for Computational Logic, TU Dresden, Germany 2North-Caucasus Federal University, Stavropol, Russian Federation
  • 2. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the brakes are pressed, then the car slows down In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 3. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the brakes are not OK, then the car does not slow down In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 4. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the car accelerates, then the car does not slow down In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 5. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the road is slippery, then the car does not slow down In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 6. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the road is icy, then the road is slippery In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 7. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the road is downhill, then the car accelerate In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 8. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the car has snow chains on the wheels, then the road is not slippery for the car In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 9. Modeling Human Reasoning Tasks Car Brake Scenario Cummins: Naive Theories and Causal Deduction. In: Memory & Cognition. Stenning et. al.: Adaptive Reasoning: Integrating Fast and Frugal Heuristics with a Logic of Interpretation. In: Decision. If the car has snow chains on the wheels and the brakes are pressed, then the car does not accelerate when the road is downhill In this talk 1. The Weak Completion Semantics with Contextual Logic Programs 2. Contextual Abduction 3. Complexity of Contextual Abductive Reasoning 1
  • 10. The Weak Completion Semantics
  • 11. The Weak Completion Semantics (1) Propositional Variables A slow down, press, brakes ok Literal L A or ¬A ¬brakes ok Logic Program P finite set of rule A ←L1 ∧ . . . ∧ Lm fact A ← assumption A ←⊥ P = {slow down ← press ∧ ¬ab1, ab1 ← ⊥} Dietz Saldanha, H¨olldobler, Pereira: Contextual Reasoning: Usually Birds can Abductively Fly. In: LPNMR 2017. Contextual Logic Program P finite set of rule A ←L1 ∧ . . . ∧ Lm ∧ ctxt(Lm+1) ∧ . . . ∧ ctxt(Lm+p) 2
  • 12. The Weak Completion Semantics (2) Weak Completion wcP 1. Replace all clauses with the same head A ← Body1, . . . , A ← Bodyn by A ← Body1 ∨ Body2 ∨ . . . ∨ Bodyn 2. Replace ← by ↔ wcP1 = {slow down ↔ press ∧ ¬ab1, ab1 ↔ ⊥} Three-Valued Interpretation I = I , I⊥ F ¬F ⊥ ⊥ U U ∧ U ⊥ U ⊥ U U U ⊥ ⊥ ⊥ ⊥ ⊥ ∨ U ⊥ U U U ⊥ U ⊥ ← U ⊥ U U ⊥ ⊥ U L ctxt(L) ⊥ ⊥ U ⊥ P entails F under the weak completion semantics, P |=WCS F I1 = {slow down, press}, {ab1} MP1 = {}, {ab1} 3
  • 13. The Weak Completion Semantics (3) Stenning and van Lambalgen Operator Φ ΦP (I) = J , J⊥ J = {A | there is A ← body ∈ P such that I(body) = } J⊥ = {A | there is A ← body ∈ P and for all A ← body ∈ P, we find that I(body) = ⊥} H¨olldobler, Kencana Ramli: Logic Programs under Three-Valued Lukasiewicz Semantics. In: ICLP 2009. For context-free logic programs: 1. ΦP is monotonic 2. MP is the least fixed point of ΦP Dietz Saldanha, H¨olldobler, Pereira: Contextual Reasoning: Usually Birds can Abductively Fly. In: LPNMR 2017. For contextual logic programs: 1. ΦP is not monotonic 2. lfp ΦP exists, if P is acyclic 4
  • 14. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 5
  • 15. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 5
  • 16. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 5
  • 17. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5
  • 18. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5. If the road is icy and nothing is abnormal (ab2), then the road is slippery slippery ← icy road ∧ ¬ab2 ab2 ← ⊥ 5
  • 19. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5. If the road is icy and nothing is abnormal (ab2), then the road is slippery slippery ← icy road ∧ ¬ab2 ab2 ← ⊥ 6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥ 5
  • 20. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5. If the road is icy and nothing is abnormal (ab2), then the road is slippery slippery ← icy road ∧ ¬ab2 ab2 ← ⊥ 6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥ 7. If the car has snow chains, then something is abnormal w.r.t. ab2 ab2 ← ctxt(snow chain) 5
  • 21. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5. If the road is icy and nothing is abnormal (ab2), then the road is slippery slippery ← icy road ∧ ¬ab2 ab2 ← ⊥ 6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥ 7. If the car has snow chains, then something is abnormal w.r.t. ab2 ab2 ← ctxt(snow chain) 8. If the car has snow chains and the brakes are pressed, then something is abnormal w.r.t. ab3 ab3 ← ctxt(snow chain) ∧ press 5
  • 22. The Car Brake Scenario (1) Stenning, van Lambalgen: Human Reasoning and Cognitive Science. 1. If the brakes are pressed and nothing is abnormal (¬ab1), then the car slows down slow down ← press ∧ ¬ab1 ab1 ← ⊥ 2. If the brakes are not OK, then something is abnormal w.r.t. ab1 ab1 ← ctxt(¬brakes ok) 3. If the car accelerates, then something is abnormal w.r.t. ab1 ab1 ← ctxt(accelerate) 4. If the road is slippery, then something is abnormal w.r.t. ab1 ab1 ← ctxt(slippery) 5. If the road is icy and nothing is abnormal (ab2), then the road is slippery slippery ← icy road ∧ ¬ab2 ab2 ← ⊥ 6. If the road is downhill and nothing is abnormal w.r.t. (ab3), then the car accelerates accelerate ← downhill ∧ ¬ab3 ab3 ← ⊥ 7. If the car has snow chains, then something is abnormal w.r.t. ab2 ab2 ← ctxt(snow chain) 8. If the car has snow chains and the brakes are pressed, then something is abnormal w.r.t. ab3 ab3 ← ctxt(snow chain) ∧ press lfp ΦP = ∅, {ab1, ab2, ab3} 5
  • 24. Contextual Abduction Abductive Problem X = P, A, O P is an acyclic contextual program A ⊆ AP is the set of abducibles AP = {A ← | A is undefined in P or A is head of an exception clause in P} ∪ {A ← ⊥ | A is undefined in P and ¬A is not assumed in P} O is a finite set of literals, called observation E is a contextual explanation of X 1. E ⊆ A 2. P ∪ E |=wcs O 3. for all A ← ∈ E and A ← ⊥ ∈ E there is L ∈ O such that L strongly depends on A 6
  • 25. Strongly Depends on Relation Strongly depends relation smallest transitive relation such that A ← L1 ∧ · · · ∧ Lm ∧ ctxt(Lm+1) ∧ · · · ∧ ctxt(Lm+p) A strongly depends on Li for i ∈ {1, . . . , m} If L strongly depends on L , then L strongly depends on L If L strongly depends on L , then L strongly depends on L P = { p ← r, p ← ctxt(q) } p strongly depends on r, ¬p strongly depends on r, . . . p does not strongly depend on q, neither on ctxt(q) 7
  • 26. When it is slippery and the car does not slow down,.. Pctxt car is as follows: slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2 ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3 ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain) ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press ab1 ← ⊥ ab2 ← ⊥ ab3 ← ⊥ Assume that O = {¬slow down, slippery} E = {icy road ← } is a contextual explanation for O and is the only minimal one 8
  • 27. When it is slippery and the car does not slow down,.. Pctxt car is as follows: slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2 ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3 ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain) ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press ab1 ← ⊥ ab2 ← ⊥ ab3 ← ⊥ Assume that O = {¬slow down, slippery} E = {icy road ← } is a contextual explanation for O and is the only minimal one 8
  • 28. When it is slippery and the car does not slow down,.. Pctxt car is as follows: slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2 ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3 ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain) ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press ab1 ← ⊥ ab2 ← ⊥ ab3 ← ⊥ Assume that O = {¬slow down, slippery} E = {icy road ← } is a contextual explanation for O and is the only minimal one 8
  • 29. When it is slippery and the car does not slow down,.. Pctxt car is as follows: slow down ← press ∧ ¬ab1 slippery ← icy road ∧ ¬ab2 ab1 ← ctxt(slippery) accelerate ← downhill ∧ ¬ab3 ab1 ← ctxt(¬brakes ok) ab2 ← ctxt(snow chain) ab1 ← ctxt(accelerate) ab3 ← ctxt(snow chain) ∧ press ab1 ← ⊥ ab2 ← ⊥ ab3 ← ⊥ Assume that O = {¬slow down, slippery} E = {icy road ← } is a contextual explanation for O and is the only minimal one 8
  • 31. Modifications H¨olldobler, Philipp, Wernhard: An Abductive Model for Human Reasoning. In: Commonsense Reasoning 2011. Contextual Logic Programs Abducibles AP = {A ← ⊥, A ← | A does not occur in a head in P} Strongly depends on relation 9
  • 32. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 33. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 34. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 35. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 36. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 37. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 38. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 39. Complexity Results EX Does there exists an explanation? MIN Is E a minimal explanation? SE F follows skeptically from X 1. X has an explanation 2. for all explanations E for X it holds that P ∪ E |=wcs F PTIME N P NPC co-N P DPC D P PSPACE EX MIN SE cEX cMIN cSE 10
  • 40. Conclusion Contextual programs: usual case vs the exception cases Theorem deciding consistency is NP-complete deciding whether F follows skeptically is DP-complete deciding whether a contextual explanation is minimal is in PSPACE Future Work Better bounds for minimality 11
  • 41. The Complexity of Contextual Abduction in Human Reasoning Tasks Emmanuelle-Anna Dietz Saldanha1 Steffen H¨olldobler1,2 Tobias Philipp1 1International Center for Computational Logic, TU Dresden, Germany 2North-Caucasus Federal University, Stavropol, Russian Federation Thank you for your attention!
  • 42. References Keith Stenning and Michiel van Lambalgen. Human Reasoning and Cognitive Science. A Bradford Book. MIT Press, Cambridge, MA, 2008. ISBN 9780262195836. Keith Stenning, Laura Martignon, and Alexandra Varga. Adaptive reasoning: integrating fast and frugal heuristics with a logic of interpretation. Decision, in press. Steffen H¨olldobler, Tobias Philipp, and Christoph Wernhard. An abductive model for human reasoning. In Logical Formalizations of Commonsense Reasoning, Papers from the AAAI 2011 Spring Symposium, AAAI Spring Symposium Series Technical Reports, pages 135–138, Cambridge, MA, 2011. AAAI Press. 12