SlideShare a Scribd company logo
A Constructivist
Approach to Rule-Bases
Giovanni Sileno (g.sileno@uva.nl),
Alexander Boer, Tom van Engers
Leibniz Center for Law
University of Amsterdam
11 January 2015 - ICAART @ Lisbon
●
Samuel lives in a sunny country. He
never checks the weather before
going out.
●
Samuel lives in a sunny country. He
never checks the weather before
going out.
●
Raphael lives in a rainy country. He
always checks the weather before
going out.
●
Samuel lives in a sunny country. He
never checks the weather before
going out.
●
Raphael lives in a rainy country. He
always checks the weather before
going out.
●
They both take the umbrella if it rains,
however.
●
Samuel lives in a sunny country. He
never checks the weather before
going out.
●
Raphael lives in a rainy country. He
always checks the weather before
going out.
●
They both take the umbrella if it rains,
however.
●
What do you expect if they switch
country of residence?
Deliberation and Performance
●
In everyday life, we do not deliberate at each
moment what to do next.
●
Our practical reasoning is mostly based on
applying already structured behavioural scripts.
●
Such scripts are constructed by education and
experience, and refined by some adaptation
process.
Deliberation and Performance
in the legal system
●
Structuration exemplified by
– Stare deciris (binding precedent) principle
– existence and maintenance of sources of law.
●
Sources of law are artifacts which describe and
prescribe the institutional powers and duties
of the social components, including institutional
agencies (e.g. public administrations)
Simplified target architecture
regulatory
system
regulated
system
environment
provides
rules to..
interacts, according
to the rules, with..
Simplified target architecture
regulatory
system
regulated
system
environment
●
Focus on rule bases
provides
rules to..
interacts, according
to the rules, with..
Consistency
First problem: Consistency
regulatory
system
regulated
system
environment
●
When a new rule is introduced what happens to
the rest of the rule base?
provides
rules to..
interacts, according
to the rules, with..
●
On Sunday we eat outdoor.
r1: sunday -> eat_outdoor
A simple* example
* We are neglecting predication, deontic characterizations,
intentionality, causation, etc..
●
On Sunday we eat outdoor.
r1: sunday -> eat_outdoor
●
If it is raining, we never eat outdoor.
r2: raining -> -eat_outdoor
A simple example
classic negation
●
On Sunday we eat outdoor.
r1: sunday -> eat_outdoor
●
If it is raining, we never eat outdoor.
r2: raining -> -eat_outdoor
●
What to do when it is Sunday and it is raining?
A simple example
●
On Sunday we eat outdoor.
r1: sunday -> eat_outdoor
●
If it is raining, we never eat outdoor.
r2: raining -> -eat_outdoor
●
A possible solution is defining the priority between
rules. e.g. r2 > r1
●
From a formal characterization, we are in the
domain of defeasible reasoning.
Priority-based representation
● lex posterior derogat priori
→ the most recent law is stronger
● lex specialis derogat generali
→ the law with lower abstraction is stronger
● lex superior derogat inferiori
→ the hierachical order in the legal system counts
r1: you have to pay taxes at the end of the year.
r2: if you are at loss with your activity, you don't
have to pay taxes.
Institutional mechanisms
“natural” meta-rules
defining priorities
●
Alternative solution: modify the premises of the
relevant rules with less priority.
Constraint-based representation
●
Alternative solution: modify the premises of the
relevant rules with less priority.
●
If it is raining, we never eat outdoor.
r2: rain -> -eat_outdoor
Constraint-based representation
●
Alternative solution: modify the premises of the
relevant rules with less priority.
●
On Sunday we eat outdoor, unless it is raining.
r1': sunday and -rain -> eat_outdoor
●
If it is raining, we never eat outdoor.
r2: rain -> -eat_outdoor
Constraint-based representation
●
Alternative solution: modify the premises of the
relevant rules with less priority.
●
On Sunday we eat outdoor, unless it is raining.
r1': sunday and -rain -> eat_outdoor
●
If it is raining, we never eat outdoor.
r2: rain -> -eat_outdoor
Constraint-based representation
→ cf. “distinguishing”
action in common law
●
Horty (2011) has analyzed the mechanisms of
precedential reasoning, proposing an algorithm of
conversion
- from priority-based to constraint-based
Conversion algorithms
Horty, J. F. (2011). Rules and Reasons in the Theory of
Precedent. Legal Theory, 17(01):1–33.
●
Our work presents algorithms and a computational
implementation for the full cycle of conversions:
- from priority-based (PB) to constraint-based (CB)
- from CB to full-tabular CB
- from full-tabular CB to minimal CB
- from full-tabular CB to PB (given the priority)
http://justinian.leibnizcenter.org/rulebaseconverter
Conversion algorithms
a→ p
b→¬ p
priority
higher
lower
PB
a→ pa∧¬b→ p
PB(intermediate) CB
b→¬ pb→¬ p
remove the domain already
evaluated
priority
higher
lower
a→ pa∧¬b→ p
full-tabular CB PB(intermediate) CB
b→¬ pb→¬ p
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
¬a∧¬b→?
expand the premises
to all relevant factors
a→ pa∧¬b→ p
full-tabular CB PB(intermediate) CB
b→¬ pb→¬ p
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
¬a∧¬b→?
Apply Quine-McCluskey
to reduce to the minimal canonical form
minimal CB
a∧¬b→ p
b→¬ p
a→ pa∧¬b→ p
full-tabular CB PB(intermediate) CB
b→¬ pb→¬ p
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
¬a∧¬b→?
minimal CB
a∧¬b→ p
b→¬ p
Quine-McCluskey et
similar algorithms are
commonly used for logic
ports synthesis
Constraint-based
a∧¬b→ p
b→¬ p
Constraint-basedpriority
1
2
label the rules
with priority
a∧¬b→ p
b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
allocate
situations with
the relevant
factors
relevant situations
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
for each rule, check if it applies to
situations yet to be evaluated
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
for each rule, check if it applies to
situations yet to be evaluated
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
for each rule, check if it applies to
situations yet to be evaluated
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
apply Quine-McCluskey
on the remaining
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
apply Quine-McCluskey
on the remaining
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Priority-based
b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
remove
evaluated
situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
For each rule, check if it applies to
situations yet to be evaluated
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
For each rule, check if it applies to
situations yet to be evaluated
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧¬b
a∧b
¬a∧b
¬a∧¬b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
apply Quine-McCluskey
on the remaining...
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧b
¬a∧b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
removing
estabilished
facts
apply Quine-McCluskey
on the remaining...
a∧¬b
¬a∧¬b
Constraint-basedpriority
1
2 a∧¬b→ p
b→¬ p
a∧b
¬a∧b
relevant situations
full-tabular CB
a∧¬b→ p
a∧b→¬ p
¬a∧b→¬ p
removing
estabilished
facts
apply Quine-McCluskey
on the remaining...
a→ p
Priority-based
a∧¬b
¬a∧¬b
Adaptation
Second problem: Adaptation
regulatory
system
regulated
system
environment
●
How an existing rule-base is “adapted” to a
certain environment?
provides
rules to..
interacts, according
to the rules, with..
Two perspectives on adaptation
top-down, design
optimization theory : adaptation comes from the
agent's efforts to obtain a better overall pay-off.
bottom-up, emergence
e.g. theory of predictable behaviour (Heiner 1983):
behavioural regularities arise in the presence of
uncertainty about the "right" course of action
Heiner, R. (1983). The origin of predictable behavior.
The American economic review, 73(4):560–595.
Payoff analysis
E[ payoff ]=p(success)⋅E[ payoff of success]
+ p( failure)⋅E[ payoff of failure]
Investigation payoff analysis
E[ payoff ]=p(success)⋅E[ payoff of concluding C]
+ p( failure)⋅E[ payoff of not concluding C]
Externalizing costs...
E[ payoff ]=p(success)⋅E[ payoff of concluding C]
+ p( failure)⋅E[ payoff of not concluding C]
−cost
Rule application payoff analysis
E[ payoff ]=p(success)⋅E[ payoff of concluding C]
+ p( failure)⋅E[ payoff of not concluding C]
r :c1∧c2∧...∧cn→C
p(success)= p(c1∧c2∧...∧cn)
●
A rule may be seen as an investigation about a
conclusion C.
−cost
Rule application payoff analysis
E[ payoff ]=p(success)⋅E[ payoff of concluding C]
+ p( failure)⋅E[ payoff of not concluding C]
●
Furthermore, we assume that the not-
applicability of a certain rule does not entail
other consequences beside the cost.
−cost
Optimization constraint
E[ payoff ]=p(success)⋅E[ payoff of concluding C]
●
The use of a rule is worth if
or, equivalently:
−cost
E[ payoff ]>0
E[ payoff of concluding C]>
cost
p(success)
=
cost
p(c1∧..∧cn)
p(c1∧..∧cn)>
cost
E[ payoff of concluding C]
Initial story
●
If it rains, take the umbrella.
r: rain -> umbrella
Initial story
●
If it rains, take the umbrella.
r: rain -> umbrella
E[ payoff ]=p(rain)⋅G−cost({rain}, K)
The payoff of applying r is :
– G is the payoff of deciding to take the
umbrella (indipendent from the rule used).
– cost({rain}, K) is the cost of inferring the
fact rain, given the knowledge base K.
Initial story
●
If it rains, take the umbrella.
r: rain -> umbrella
E[ payoff ]=p(rain)⋅G−cost({rain}, K)
The payoff of applying r is :
●
Imagine the agent has no clue about rain
– Raphael (rainy country): p(rain) significant E > 0→
Initial story
●
If it rains, take the umbrella.
r: rain -> umbrella
E[ payoff ]=p(rain)⋅G−cost({rain}, K)
The payoff of applying r is :
●
Imagine the agent has no clue about rain
– Raphael (rainy country): p(rain) significant E > 0→
– Samuel (sunny country): p(rain) ~ 0 → E < 0!
Default assumptions (ASP syntax)
●
If it rains, take the umbrella.
rain -> umbrella
●
If you don't know if it rains, than it doesn't rain.
not rain -> -rain.
●
When the payoff may be negative (e.g. Samuel),
we may introduce a default rule which overrides
the investigation.
classic negationdefault negation
(negation as failure)
Better payoff higher priority→
●
The analysis of evaluation payoffs provides an
optimal order of investigation: choose the r which
maximises payoff!
●
To be used for CB to PB optimal conversions.
Construction and reconstruction
Events concerning rule-bases
●
incremental modifications, determining a
partial reconfiguration of the operational
knowledge used by the agent.
Events concerning rule-bases
●
incremental modifications, determining a
partial reconfiguration of the operational
knowledge used by the agent.
– because of distinguishing actions, the new rules brings
to the foreground factors left implicit in the previous rules.
Events concerning rule-bases
●
incremental modifications, determining a
partial reconfiguration of the operational
knowledge used by the agent.
– because of distinguishing actions, the new rules brings
to the foreground factors left implicit in the previous rules.
●
ad-hoc reorganizations, aiming for better
adaptation.
Events concerning rule-bases
●
incremental modifications, determining a
partial reconfiguration of the operational
knowledge used by the agent.
– because of distinguishing actions, the new rules brings
to the foreground factors left implicit in the previous rules.
●
ad-hoc reorganizations, aiming for better
adaptation.
– When a rule base is “compiled” to a more efficient
priority-based form, we lose the reasons motivating that
structure (e.g. probabilistic assumptions)
Reconstruction
●
To rewrite the rule base again, the agent has to
reflect over the rule base.
Reconstruction
●
To rewrite the rule base again, the agent has to
reflect over the rule base.
●
He has to unveil the underlying constraint-based
representation, removing all default assumptions
and recompute the priority indexes.
Reconstruction
●
To rewrite the rule base again, the agent has to
reflect over the rule base.
●
He has to unveil the underlying constraint-based
representation, removing all default assumptions
and recompute the priority indexes.
●
Why the agent should do that?
Reconstruction
●
To rewrite the rule base again, the agent has to
reflect over the rule base.
●
He has to unveil the underlying constraint-based
representation, removing all default assumptions
and recompute the priority indexes.
●
Why the agent should do that?
– e.g. because of a number of practical
failures exceeding a certain threshold.
Holistic view
regulatory
system
regulated
system
environment
practical
failures
statistical,
probabilistic
data
Conclusion
●
Our analysis has not targeted beliefs, as in belief
revision.
●
We have not used a model of theory revision
accounting both facts and rules, as in machine
learning.
●
Our work focuses “just” on rules, already
defined at symbolic level, and on rule-based
systems.
– affinity with expert systems literature
Conclusion
●
The paper started with the intention of completing
Horty's work on the conversion between CB and
PB representations.
●
The additional adaption analysis grew up from our
experience with default assumptions in ASP.
Conclusion
●
The paper started with the intention of completing
Horty's work on the conversion between CB and
PB representations.
●
The additional adaption analysis grew up from our
experience with default assumptions in ASP.
●
Obviously, many research directions remain:
– formal analysis, computational complexity
– bottom-up adaptation
– interactions with other theoretical frameworks
– considering “real” rule-bases

More Related Content

More from Giovanni Sileno

Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!
Giovanni Sileno
 
DPCL: a Language Template for Normative Specifications
DPCL: a Language Template for Normative SpecificationsDPCL: a Language Template for Normative Specifications
DPCL: a Language Template for Normative Specifications
Giovanni Sileno
 
Unexpectedness and Bayes' Rule
Unexpectedness and Bayes' RuleUnexpectedness and Bayes' Rule
Unexpectedness and Bayes' Rule
Giovanni Sileno
 
On Mapping Values in AI Governance
On Mapping Values in AI GovernanceOn Mapping Values in AI Governance
On Mapping Values in AI Governance
Giovanni Sileno
 
Accounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible NetworkingAccounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible Networking
Giovanni Sileno
 
Code Driven Law?
Code Driven Law?Code Driven Law?
Code Driven Law?
Giovanni Sileno
 
Operationalizing Declarative and Procedural Knowledge
Operationalizing Declarative and Procedural KnowledgeOperationalizing Declarative and Procedural Knowledge
Operationalizing Declarative and Procedural Knowledge
Giovanni Sileno
 
History of AI, Current Trends, Prospective Trajectories
History of AI, Current Trends, Prospective TrajectoriesHistory of AI, Current Trends, Prospective Trajectories
History of AI, Current Trends, Prospective Trajectories
Giovanni Sileno
 
The Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AIThe Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AI
Giovanni Sileno
 
Computing Contrast on Conceptual Spaces
Computing Contrast on Conceptual SpacesComputing Contrast on Conceptual Spaces
Computing Contrast on Conceptual Spaces
Giovanni Sileno
 
On the problems of interface: explainability, conceptual spaces, relevance
On the problems of interface: explainability, conceptual spaces, relevanceOn the problems of interface: explainability, conceptual spaces, relevance
On the problems of interface: explainability, conceptual spaces, relevance
Giovanni Sileno
 
A Computational Model of Moral and Legal Responsibility via Simplicity Theory
A Computational Model of Moral and Legal Responsibility via Simplicity TheoryA Computational Model of Moral and Legal Responsibility via Simplicity Theory
A Computational Model of Moral and Legal Responsibility via Simplicity Theory
Giovanni Sileno
 
Aligning Law and Action
Aligning Law and ActionAligning Law and Action
Aligning Law and Action
Giovanni Sileno
 
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
Giovanni Sileno
 
A Petri net-based notation for normative modeling: evaluation on deontic para...
A Petri net-based notation for normative modeling: evaluation on deontic para...A Petri net-based notation for normative modeling: evaluation on deontic para...
A Petri net-based notation for normative modeling: evaluation on deontic para...
Giovanni Sileno
 
Legal Knowledge Conveyed by Narratives: towards a representational model
Legal Knowledge Conveyed by Narratives: towards a representational modelLegal Knowledge Conveyed by Narratives: towards a representational model
Legal Knowledge Conveyed by Narratives: towards a representational model
Giovanni Sileno
 
Implementing Explanation-Based Argumentation using Answer Set Programming
Implementing Explanation-Based Argumentation using Answer Set ProgrammingImplementing Explanation-Based Argumentation using Answer Set Programming
Implementing Explanation-Based Argumentation using Answer Set ProgrammingGiovanni Sileno
 
From Inter-Agent to Intra-Agent Representations
From Inter-Agent to Intra-Agent RepresentationsFrom Inter-Agent to Intra-Agent Representations
From Inter-Agent to Intra-Agent RepresentationsGiovanni Sileno
 

More from Giovanni Sileno (18)

Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!
 
DPCL: a Language Template for Normative Specifications
DPCL: a Language Template for Normative SpecificationsDPCL: a Language Template for Normative Specifications
DPCL: a Language Template for Normative Specifications
 
Unexpectedness and Bayes' Rule
Unexpectedness and Bayes' RuleUnexpectedness and Bayes' Rule
Unexpectedness and Bayes' Rule
 
On Mapping Values in AI Governance
On Mapping Values in AI GovernanceOn Mapping Values in AI Governance
On Mapping Values in AI Governance
 
Accounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible NetworkingAccounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible Networking
 
Code Driven Law?
Code Driven Law?Code Driven Law?
Code Driven Law?
 
Operationalizing Declarative and Procedural Knowledge
Operationalizing Declarative and Procedural KnowledgeOperationalizing Declarative and Procedural Knowledge
Operationalizing Declarative and Procedural Knowledge
 
History of AI, Current Trends, Prospective Trajectories
History of AI, Current Trends, Prospective TrajectoriesHistory of AI, Current Trends, Prospective Trajectories
History of AI, Current Trends, Prospective Trajectories
 
The Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AIThe Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AI
 
Computing Contrast on Conceptual Spaces
Computing Contrast on Conceptual SpacesComputing Contrast on Conceptual Spaces
Computing Contrast on Conceptual Spaces
 
On the problems of interface: explainability, conceptual spaces, relevance
On the problems of interface: explainability, conceptual spaces, relevanceOn the problems of interface: explainability, conceptual spaces, relevance
On the problems of interface: explainability, conceptual spaces, relevance
 
A Computational Model of Moral and Legal Responsibility via Simplicity Theory
A Computational Model of Moral and Legal Responsibility via Simplicity TheoryA Computational Model of Moral and Legal Responsibility via Simplicity Theory
A Computational Model of Moral and Legal Responsibility via Simplicity Theory
 
Aligning Law and Action
Aligning Law and ActionAligning Law and Action
Aligning Law and Action
 
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
Similarity and Contrast on Conceptual Spaces for Pertinent Description Genera...
 
A Petri net-based notation for normative modeling: evaluation on deontic para...
A Petri net-based notation for normative modeling: evaluation on deontic para...A Petri net-based notation for normative modeling: evaluation on deontic para...
A Petri net-based notation for normative modeling: evaluation on deontic para...
 
Legal Knowledge Conveyed by Narratives: towards a representational model
Legal Knowledge Conveyed by Narratives: towards a representational modelLegal Knowledge Conveyed by Narratives: towards a representational model
Legal Knowledge Conveyed by Narratives: towards a representational model
 
Implementing Explanation-Based Argumentation using Answer Set Programming
Implementing Explanation-Based Argumentation using Answer Set ProgrammingImplementing Explanation-Based Argumentation using Answer Set Programming
Implementing Explanation-Based Argumentation using Answer Set Programming
 
From Inter-Agent to Intra-Agent Representations
From Inter-Agent to Intra-Agent RepresentationsFrom Inter-Agent to Intra-Agent Representations
From Inter-Agent to Intra-Agent Representations
 

Recently uploaded

ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 

Recently uploaded (20)

ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 

A Constructivist Approach to Rule Bases

  • 1. A Constructivist Approach to Rule-Bases Giovanni Sileno (g.sileno@uva.nl), Alexander Boer, Tom van Engers Leibniz Center for Law University of Amsterdam 11 January 2015 - ICAART @ Lisbon
  • 2. ● Samuel lives in a sunny country. He never checks the weather before going out.
  • 3. ● Samuel lives in a sunny country. He never checks the weather before going out. ● Raphael lives in a rainy country. He always checks the weather before going out.
  • 4. ● Samuel lives in a sunny country. He never checks the weather before going out. ● Raphael lives in a rainy country. He always checks the weather before going out. ● They both take the umbrella if it rains, however.
  • 5. ● Samuel lives in a sunny country. He never checks the weather before going out. ● Raphael lives in a rainy country. He always checks the weather before going out. ● They both take the umbrella if it rains, however. ● What do you expect if they switch country of residence?
  • 6. Deliberation and Performance ● In everyday life, we do not deliberate at each moment what to do next. ● Our practical reasoning is mostly based on applying already structured behavioural scripts. ● Such scripts are constructed by education and experience, and refined by some adaptation process.
  • 7. Deliberation and Performance in the legal system ● Structuration exemplified by – Stare deciris (binding precedent) principle – existence and maintenance of sources of law. ● Sources of law are artifacts which describe and prescribe the institutional powers and duties of the social components, including institutional agencies (e.g. public administrations)
  • 9. Simplified target architecture regulatory system regulated system environment ● Focus on rule bases provides rules to.. interacts, according to the rules, with..
  • 11. First problem: Consistency regulatory system regulated system environment ● When a new rule is introduced what happens to the rest of the rule base? provides rules to.. interacts, according to the rules, with..
  • 12. ● On Sunday we eat outdoor. r1: sunday -> eat_outdoor A simple* example * We are neglecting predication, deontic characterizations, intentionality, causation, etc..
  • 13. ● On Sunday we eat outdoor. r1: sunday -> eat_outdoor ● If it is raining, we never eat outdoor. r2: raining -> -eat_outdoor A simple example classic negation
  • 14. ● On Sunday we eat outdoor. r1: sunday -> eat_outdoor ● If it is raining, we never eat outdoor. r2: raining -> -eat_outdoor ● What to do when it is Sunday and it is raining? A simple example
  • 15. ● On Sunday we eat outdoor. r1: sunday -> eat_outdoor ● If it is raining, we never eat outdoor. r2: raining -> -eat_outdoor ● A possible solution is defining the priority between rules. e.g. r2 > r1 ● From a formal characterization, we are in the domain of defeasible reasoning. Priority-based representation
  • 16. ● lex posterior derogat priori → the most recent law is stronger ● lex specialis derogat generali → the law with lower abstraction is stronger ● lex superior derogat inferiori → the hierachical order in the legal system counts r1: you have to pay taxes at the end of the year. r2: if you are at loss with your activity, you don't have to pay taxes. Institutional mechanisms “natural” meta-rules defining priorities
  • 17. ● Alternative solution: modify the premises of the relevant rules with less priority. Constraint-based representation
  • 18. ● Alternative solution: modify the premises of the relevant rules with less priority. ● If it is raining, we never eat outdoor. r2: rain -> -eat_outdoor Constraint-based representation
  • 19. ● Alternative solution: modify the premises of the relevant rules with less priority. ● On Sunday we eat outdoor, unless it is raining. r1': sunday and -rain -> eat_outdoor ● If it is raining, we never eat outdoor. r2: rain -> -eat_outdoor Constraint-based representation
  • 20. ● Alternative solution: modify the premises of the relevant rules with less priority. ● On Sunday we eat outdoor, unless it is raining. r1': sunday and -rain -> eat_outdoor ● If it is raining, we never eat outdoor. r2: rain -> -eat_outdoor Constraint-based representation → cf. “distinguishing” action in common law
  • 21. ● Horty (2011) has analyzed the mechanisms of precedential reasoning, proposing an algorithm of conversion - from priority-based to constraint-based Conversion algorithms Horty, J. F. (2011). Rules and Reasons in the Theory of Precedent. Legal Theory, 17(01):1–33.
  • 22. ● Our work presents algorithms and a computational implementation for the full cycle of conversions: - from priority-based (PB) to constraint-based (CB) - from CB to full-tabular CB - from full-tabular CB to minimal CB - from full-tabular CB to PB (given the priority) http://justinian.leibnizcenter.org/rulebaseconverter Conversion algorithms
  • 24. a→ pa∧¬b→ p PB(intermediate) CB b→¬ pb→¬ p remove the domain already evaluated priority higher lower
  • 25. a→ pa∧¬b→ p full-tabular CB PB(intermediate) CB b→¬ pb→¬ p a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p ¬a∧¬b→? expand the premises to all relevant factors
  • 26. a→ pa∧¬b→ p full-tabular CB PB(intermediate) CB b→¬ pb→¬ p a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p ¬a∧¬b→? Apply Quine-McCluskey to reduce to the minimal canonical form minimal CB a∧¬b→ p b→¬ p
  • 27. a→ pa∧¬b→ p full-tabular CB PB(intermediate) CB b→¬ pb→¬ p a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p ¬a∧¬b→? minimal CB a∧¬b→ p b→¬ p Quine-McCluskey et similar algorithms are commonly used for logic ports synthesis
  • 29. Constraint-basedpriority 1 2 label the rules with priority a∧¬b→ p b→¬ p
  • 30. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b allocate situations with the relevant factors relevant situations
  • 31. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 32. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations for each rule, check if it applies to situations yet to be evaluated full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 33. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations for each rule, check if it applies to situations yet to be evaluated full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 34. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations for each rule, check if it applies to situations yet to be evaluated full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 35. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations apply Quine-McCluskey on the remaining full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 36. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations apply Quine-McCluskey on the remaining full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p Priority-based b→¬ p
  • 37. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations remove evaluated situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p
  • 38. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p For each rule, check if it applies to situations yet to be evaluated
  • 39. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p For each rule, check if it applies to situations yet to be evaluated
  • 40. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧¬b a∧b ¬a∧b ¬a∧¬b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p apply Quine-McCluskey on the remaining...
  • 41. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧b ¬a∧b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p removing estabilished facts apply Quine-McCluskey on the remaining... a∧¬b ¬a∧¬b
  • 42. Constraint-basedpriority 1 2 a∧¬b→ p b→¬ p a∧b ¬a∧b relevant situations full-tabular CB a∧¬b→ p a∧b→¬ p ¬a∧b→¬ p removing estabilished facts apply Quine-McCluskey on the remaining... a→ p Priority-based a∧¬b ¬a∧¬b
  • 44. Second problem: Adaptation regulatory system regulated system environment ● How an existing rule-base is “adapted” to a certain environment? provides rules to.. interacts, according to the rules, with..
  • 45. Two perspectives on adaptation top-down, design optimization theory : adaptation comes from the agent's efforts to obtain a better overall pay-off. bottom-up, emergence e.g. theory of predictable behaviour (Heiner 1983): behavioural regularities arise in the presence of uncertainty about the "right" course of action Heiner, R. (1983). The origin of predictable behavior. The American economic review, 73(4):560–595.
  • 46. Payoff analysis E[ payoff ]=p(success)⋅E[ payoff of success] + p( failure)⋅E[ payoff of failure]
  • 47. Investigation payoff analysis E[ payoff ]=p(success)⋅E[ payoff of concluding C] + p( failure)⋅E[ payoff of not concluding C]
  • 48. Externalizing costs... E[ payoff ]=p(success)⋅E[ payoff of concluding C] + p( failure)⋅E[ payoff of not concluding C] −cost
  • 49. Rule application payoff analysis E[ payoff ]=p(success)⋅E[ payoff of concluding C] + p( failure)⋅E[ payoff of not concluding C] r :c1∧c2∧...∧cn→C p(success)= p(c1∧c2∧...∧cn) ● A rule may be seen as an investigation about a conclusion C. −cost
  • 50. Rule application payoff analysis E[ payoff ]=p(success)⋅E[ payoff of concluding C] + p( failure)⋅E[ payoff of not concluding C] ● Furthermore, we assume that the not- applicability of a certain rule does not entail other consequences beside the cost. −cost
  • 51. Optimization constraint E[ payoff ]=p(success)⋅E[ payoff of concluding C] ● The use of a rule is worth if or, equivalently: −cost E[ payoff ]>0 E[ payoff of concluding C]> cost p(success) = cost p(c1∧..∧cn) p(c1∧..∧cn)> cost E[ payoff of concluding C]
  • 52. Initial story ● If it rains, take the umbrella. r: rain -> umbrella
  • 53. Initial story ● If it rains, take the umbrella. r: rain -> umbrella E[ payoff ]=p(rain)⋅G−cost({rain}, K) The payoff of applying r is : – G is the payoff of deciding to take the umbrella (indipendent from the rule used). – cost({rain}, K) is the cost of inferring the fact rain, given the knowledge base K.
  • 54. Initial story ● If it rains, take the umbrella. r: rain -> umbrella E[ payoff ]=p(rain)⋅G−cost({rain}, K) The payoff of applying r is : ● Imagine the agent has no clue about rain – Raphael (rainy country): p(rain) significant E > 0→
  • 55. Initial story ● If it rains, take the umbrella. r: rain -> umbrella E[ payoff ]=p(rain)⋅G−cost({rain}, K) The payoff of applying r is : ● Imagine the agent has no clue about rain – Raphael (rainy country): p(rain) significant E > 0→ – Samuel (sunny country): p(rain) ~ 0 → E < 0!
  • 56. Default assumptions (ASP syntax) ● If it rains, take the umbrella. rain -> umbrella ● If you don't know if it rains, than it doesn't rain. not rain -> -rain. ● When the payoff may be negative (e.g. Samuel), we may introduce a default rule which overrides the investigation. classic negationdefault negation (negation as failure)
  • 57. Better payoff higher priority→ ● The analysis of evaluation payoffs provides an optimal order of investigation: choose the r which maximises payoff! ● To be used for CB to PB optimal conversions.
  • 59. Events concerning rule-bases ● incremental modifications, determining a partial reconfiguration of the operational knowledge used by the agent.
  • 60. Events concerning rule-bases ● incremental modifications, determining a partial reconfiguration of the operational knowledge used by the agent. – because of distinguishing actions, the new rules brings to the foreground factors left implicit in the previous rules.
  • 61. Events concerning rule-bases ● incremental modifications, determining a partial reconfiguration of the operational knowledge used by the agent. – because of distinguishing actions, the new rules brings to the foreground factors left implicit in the previous rules. ● ad-hoc reorganizations, aiming for better adaptation.
  • 62. Events concerning rule-bases ● incremental modifications, determining a partial reconfiguration of the operational knowledge used by the agent. – because of distinguishing actions, the new rules brings to the foreground factors left implicit in the previous rules. ● ad-hoc reorganizations, aiming for better adaptation. – When a rule base is “compiled” to a more efficient priority-based form, we lose the reasons motivating that structure (e.g. probabilistic assumptions)
  • 63. Reconstruction ● To rewrite the rule base again, the agent has to reflect over the rule base.
  • 64. Reconstruction ● To rewrite the rule base again, the agent has to reflect over the rule base. ● He has to unveil the underlying constraint-based representation, removing all default assumptions and recompute the priority indexes.
  • 65. Reconstruction ● To rewrite the rule base again, the agent has to reflect over the rule base. ● He has to unveil the underlying constraint-based representation, removing all default assumptions and recompute the priority indexes. ● Why the agent should do that?
  • 66. Reconstruction ● To rewrite the rule base again, the agent has to reflect over the rule base. ● He has to unveil the underlying constraint-based representation, removing all default assumptions and recompute the priority indexes. ● Why the agent should do that? – e.g. because of a number of practical failures exceeding a certain threshold.
  • 68. Conclusion ● Our analysis has not targeted beliefs, as in belief revision. ● We have not used a model of theory revision accounting both facts and rules, as in machine learning. ● Our work focuses “just” on rules, already defined at symbolic level, and on rule-based systems. – affinity with expert systems literature
  • 69. Conclusion ● The paper started with the intention of completing Horty's work on the conversion between CB and PB representations. ● The additional adaption analysis grew up from our experience with default assumptions in ASP.
  • 70. Conclusion ● The paper started with the intention of completing Horty's work on the conversion between CB and PB representations. ● The additional adaption analysis grew up from our experience with default assumptions in ASP. ● Obviously, many research directions remain: – formal analysis, computational complexity – bottom-up adaptation – interactions with other theoretical frameworks – considering “real” rule-bases