SlideShare a Scribd company logo
1 of 46
Download to read offline
Operationalizing Declarative
CAUSAL2020 Workshop on Causal Reasoning and
Explanation in Logic Programming @ ICLP2020
Giovanni Sileno g.sileno@uva.nl
Informatics Institute, University of Amsterdam
a benchmark on Logic Programming Petri Nets (LPPNs)
19 September 2020
and Procedural Knowledge
● Regulations concern systems of norms, that in abstract,
in a fixed point in time, may be approached atemporally.
● However, when applied, regulations deal with a
continuous flow of events.
● Prototypical encounter: legal cases.
● More general but similar problem: narratives, stories.
Problem: reasoning with cases
While John was walking
his dog, the dog ate
Paul’s flowers.
Problem: reasoning with cases
While John was walking
his dog, the dog ate
Paul’s flowers.
Problem: reasoning with cases
How to entail that John is
responsible to pay Paul?
While John was walking
his dog, the dog ate
Paul’s flowers.
Problem: reasoning with cases
The owner of an animal has to
pay for the damages it produces.
(example of underlying norm)
How to entail that John is
responsible to pay Paul?
While John was walking
his dog, the dog ate
Paul’s flowers.
Problem: reasoning with cases
The owner of an animal has to
pay for the damages it produces.
A conceptual gap exists between the concrete domain
and the legal abstraction that applies on it.
(example of underlying norm)
How to entail that John is
responsible to pay Paul?
While John was
walking his dog, the
dog ate Paul’s flowers.
The owner of an animal has to
pay for the damages it produces.
dogs are
animals
eating an object
destroys the object
destruction is damage
flowers are
objects
While John was
walking his dog, the
dog ate Paul’s flowers.
The owner of an animal has to
pay for the damages it produces.
dogs are
animals
eating an object
destroys the object
destruction is damage
flowers are
objects
some connections are
terminological (e.g.
taxonomical relations)
other provides
causal meaning
Types of Knowledge
● Declarative knowledge, concerning objects (physical,
mental, institutional) and their logical relationships—
typically reified by means of symbols
● Procedural knowledge, concerning patterns of
events/actions, mechanisms, or processes (involving
objects)—often tacit, internalized
We need a notation
to specify both!
● Physical systems can be approached from steady state
(equilibrium) or transient (non-equilibrium, dynamic)
perspectives
● Steady states
descriptions omit
transient
characteristics
ex. Ohm's Law. V = R * I
Perspectives on Modelling
We need a notation
to specify both!
● Possible analogies:
– steady state approach with
● Logic
● Declarative programming
focus on
What
Specifying transients
and steady states
We need a notation
to specify both!
● Possible analogies:
– steady state approach with
● Logic
● Declarative programming
– transient approach
● Process modelling
● Procedural programming
focus on
What
focus on
How
Specifying transients
and steady states
We need a notation
to specify both!
● Possible analogies:
– steady state approach with
● Logic
● Declarative programming
– transient approach
● Process modelling
● Procedural programming
focus on
What
focus on
How
Petri Nets!
Specifying transients
and steady states
We need a notation
to specify both!
focus on
What
focus on
How
Petri Nets!
● Possible analogies:
– steady state approach with
● Logic
● Declarative programming
– transient approach
● Process modeling
● Procedural programming
Answer Set
Programming
Specifying transients
and steady states
focus on
What
focus on
How
Petri Nets!
● Possible analogies:
– steady state approach with
● Logic
● Declarative programming
– transient approach
● Process modeling
● Procedural programming
Answer Set
Programming
LPPNs
logic programming petri nets
Specifying transients
and steady states
+
=
Logic Programming Petri Nets
Logic Programming Petri Net (LPPN)
● An LPPN consists of three components:
– a procedural net (places, transitions)
– a declarative net for places
– a declarative net for transitions
causal
mechanisms
logical dependencies
between objects
logical dependencies
between events
Procedural LPPN
(same as Condition/Event PN)
transition
place
● Petri net: bipartite directed graph made of places
(circles) and transitions (boxes).
transition
place
token
Procedural LPPN
(same as Condition/Event PN)
● tokens may occupy places.
● Execution semantics (token game): if any of its input
places is not occupied, the transition is disabled. It
cannot fire.
Procedural LPPN
(same as Condition/Event PN)
disabled
● Execution semantics (token game): if all of its input
places are occupied, the transition is enabled. It can
fire.
Procedural LPPN
(same as Condition/Event PN)
enabled
● Execution semantics (token game): when the transition
fires it will consume tokens from the input places.
Procedural LPPN
(same as Condition/Event PN)
firing
● Execution semantics (token game): ...and produce tokens
in the output places.
Procedural LPPN
(same as Condition/Event PN)
firing
● For our purposes, this maps to a reactive rule (ECA):
Procedural LPPN
(same as Condition/Event PN)
#t1 : p1, p2 => -p1, -p2, +p3.
● Constructed from the ASP program:
p6 :- p4, p5.
p5.
Declarative LPPN for places
● Equivalent to
p6 :- p4, p5.
p5.
Declarative LPPN for places
entails
p5.
answer set
● Equivalent to
p6 :- p4, p5.
p4. p5.
Declarative LPPN for places
● Equivalent to
p6 :- p4, p5.
p4. p5.
Declarative LPPN for places
p4. p5. p6.
entails
answer set
● Equivalent to
#t3 :- #t2, p9.
#t4 :- #t2, p8.
#t2. p7. p8.
Declarative LPPN for transitions
● Equivalent to
#t3 :- #t2, p9.
#t4 :- #t2, p8.
#t2. p7. p8.
Declarative LPPN for transitions
#t2. p7. p8. #t4.
entails
answer set
propagation
● Equivalent to
#t3 :- #t2, p9.
#t4 :- #t2, p8.
#t2. p7. p8.
Declarative LPPN for transitions
#t2. p7. p8. #t4.
produces
p11.
entails
answer set
dog. flower. dog-walking. #dog-eats-flower.
animal :- dog.
object :- flower.
damage :- destruction.
#eat-object :- #dog-eats-flower.
#destroy-object :- #eat-object.
#destroy-object : object => -object, +destruction.
while John was walking his dog,
the dog ate Paul’s flowers (“story”)
causal mechanisms
logical dependencies
at level of events
logical dependencies
at level of objects
Initial example (partial model)
Execution semantics
Execution semantics
● The paper presents two semantics:
– a denotational semantics, mapping causal
mechanisms to ASP using Event Calculus → ASP solver
Execution semantics
● The paper presents two semantics:
– a denotational semantics, mapping causal
mechanisms to ASP using Event Calculus
– a hybrid semantics, consisting of 4 steps:
1. solve logical dependencies of objects
2. select one enabled transition to fire
3. solve logical dependencies of events
4. execute the selected firing using the Petri Net
→ ASP solver
→ ASP solver
direct computation
direct computation
Execution semantics
● The paper presents two semantics:
– a denotational semantics, mapping causal
mechanisms to ASP using Event Calculus
– a hybrid semantics, consisting of 4 steps:
1. solve logical dependencies of objects
2. select one enabled transition to fire
3. solve logical dependencies of events
4. execute the selected firing using the Petri Net
→ ASP solver
→ ASP solver
direct computation
direct computation
Question: how they compare in terms of
computational performance?
Execution semantics
● The paper presents two semantics:
– a denotational semantics, mapping causal
mechanisms to ASP using Event Calculus
– a hybrid semantics, consisting of 4 steps:
1. solve logical dependencies of objects
2. select one enabled transition to fire
3. solve logical dependencies of events
4. execute the selected firing using the Petri Net
→ ASP solver
→ ASP solver
direct computation
direct computation
Question: how they compare in terms of
computational performance? Why they should differ?
Experiment
Experiment
● We considered two basic reiterable structures at
process level:
– Serial composition (deterministic)
– Forking (non-deterministic)
● We executed a benchmark on nets obtained by iterating
these basic structures, with one token in the initial place
– for N iterations = 1, 11, …, 91 (serial)
– for N iterations = 1, 2, …, 10 (forking)
Code available at http://github.com/s1l3n0/pypneu
Results
Serial composition
Linear scale
Log scale
time
(ms)
Results
Forking composition
Log scale
Linear scale
time
(ms)
Why this difference? (intuition)
Denotational semantics:
Model execution as search
● Situation Calculus, Event Calculus, Fluent Calculus all
rely on some form of timestamp.
● Causal mechanisms are mapped to logical
dependences between timestamped snapshots
Causation in model => Logical constraints
● Petri nets do not require to reify the global state to
perform execution.
● They are directly mappable to individual instructions in
imperative programs, they utilize some (local) input to
produce some (local) output.
Causation in model => Computational causation
Hybrid semantics:
Model execution as execution
Conclusion
● The paper presents an empirical experiment with LPPNs,
a logic programming-based extension of Petri Nets.
● LPPNs were introduced with a practical goal: a visual
modelling notation, relatively simple for non-experts,
handling declarative and procedural aspects of the
target domain.
● Here the focus has been put on their computational
properties, showing that maintaining the two levels
separated has the potential to bring better
performances. The benchmark needs to be extended.
Conclusion
● The paper presents an empirical experiment with LPPNs,
a logic programming-based extension of Petri Nets.
● LPPNs were introduced with a practical goal: a visual
modelling notation, relatively simple for non-experts,
handling declarative and procedural aspects of the
target domain.
● Here the focus has been put on their computational
properties, showing that maintaining the two levels
separated has the potential to bring better
performances. The benchmark needs to be extended.
● Future developments: extension to predicate logic,
optimization of execution model, “canonic” models

More Related Content

Similar to Operationalizing Declarative and Procedural Knowledge

Presentation iswc
Presentation iswcPresentation iswc
Presentation iswcSydGillani
 
Semantical Cognitive Scheduling
Semantical Cognitive SchedulingSemantical Cognitive Scheduling
Semantical Cognitive Schedulingigalshilman
 
Introduction to Bayesian Analysis in Python
Introduction to Bayesian Analysis in PythonIntroduction to Bayesian Analysis in Python
Introduction to Bayesian Analysis in PythonPeadar Coyle
 
Process mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comProcess mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comkashif kashif
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIAI Frontiers
 
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...Sergey Staroletov
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardAnimesh Chaturvedi
 
Shared objects and synchronization
Shared objects and synchronization Shared objects and synchronization
Shared objects and synchronization Dr. C.V. Suresh Babu
 
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITION
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITIONSEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITION
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITIONcscpconf
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdfMemMem25
 
Data Structures- Part2 analysis tools
Data Structures- Part2 analysis toolsData Structures- Part2 analysis tools
Data Structures- Part2 analysis toolsAbdullah Al-hazmy
 
Semantic Complex Event Processing
Semantic Complex Event ProcessingSemantic Complex Event Processing
Semantic Complex Event ProcessingAdrian Paschke
 
Master Thesis Presentation
Master Thesis PresentationMaster Thesis Presentation
Master Thesis PresentationMohamed Sobh
 

Similar to Operationalizing Declarative and Procedural Knowledge (20)

Presentation iswc
Presentation iswcPresentation iswc
Presentation iswc
 
Semantical Cognitive Scheduling
Semantical Cognitive SchedulingSemantical Cognitive Scheduling
Semantical Cognitive Scheduling
 
Introduction to Bayesian Analysis in Python
Introduction to Bayesian Analysis in PythonIntroduction to Bayesian Analysis in Python
Introduction to Bayesian Analysis in Python
 
Process mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comProcess mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.com
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AI
 
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...
MODEL OF A PROGRAM AS MULTITHREADED STOCHASTIC AUTOMATON AND ITS EQUIVALENT T...
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
AI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, FlexudyAI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, Flexudy
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Shared objects and synchronization
Shared objects and synchronization Shared objects and synchronization
Shared objects and synchronization
 
Reaction RuleML 1.0
Reaction RuleML 1.0Reaction RuleML 1.0
Reaction RuleML 1.0
 
Slides
SlidesSlides
Slides
 
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITION
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITIONSEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITION
SEMANTIC STUDIES OF A SYNCHRONOUS APPROACH TO ACTIVITY RECOGNITION
 
Chapter two
Chapter twoChapter two
Chapter two
 
Logic programming in python
Logic programming in pythonLogic programming in python
Logic programming in python
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
Data Structures- Part2 analysis tools
Data Structures- Part2 analysis toolsData Structures- Part2 analysis tools
Data Structures- Part2 analysis tools
 
Semantic Complex Event Processing
Semantic Complex Event ProcessingSemantic Complex Event Processing
Semantic Complex Event Processing
 
Master Thesis Presentation
Master Thesis PresentationMaster Thesis Presentation
Master Thesis Presentation
 

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
 
On Mapping Values in AI Governance
On Mapping Values in AI GovernanceOn Mapping Values in AI Governance
On Mapping Values in AI GovernanceGiovanni Sileno
 
Accounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible NetworkingAccounting Value Effects for Responsible Networking
Accounting Value Effects for Responsible NetworkingGiovanni 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 TrajectoriesGiovanni 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 AIGiovanni Sileno
 
Computing Contrast on Conceptual Spaces
Computing Contrast on Conceptual SpacesComputing Contrast on Conceptual Spaces
Computing Contrast on Conceptual SpacesGiovanni 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, relevanceGiovanni 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 TheoryGiovanni 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
 
Reading Agendas Between the Lines, an exercise
Reading Agendas Between the Lines, an exerciseReading Agendas Between the Lines, an exercise
Reading Agendas Between the Lines, an exerciseGiovanni Sileno
 
Bridging Representation of Laws, of Implementations and of Behaviours
Bridging Representation of Laws, of Implementations and of BehavioursBridging Representation of Laws, of Implementations and of Behaviours
Bridging Representation of Laws, of Implementations and of BehavioursGiovanni Sileno
 
Revisiting Constitutive Rules
Revisiting Constitutive RulesRevisiting Constitutive Rules
Revisiting Constitutive RulesGiovanni Sileno
 
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...Commitments, Expectations, Affordances and Susceptibilities: Towards Position...
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...Giovanni Sileno
 
A Constructivist Approach to Rule Bases
A Constructivist Approach to Rule BasesA Constructivist Approach to Rule Bases
A Constructivist Approach to Rule BasesGiovanni Sileno
 
On the Interactional Meaning of Fundamental Legal Concepts
On the Interactional Meaning of Fundamental Legal ConceptsOn the Interactional Meaning of Fundamental Legal Concepts
On the Interactional Meaning of Fundamental Legal ConceptsGiovanni 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 modelGiovanni 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
 

More from Giovanni Sileno (20)

Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!Code-driven Law NO, Normware SI!
Code-driven Law NO, Normware SI!
 
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?
 
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...
 
Reading Agendas Between the Lines, an exercise
Reading Agendas Between the Lines, an exerciseReading Agendas Between the Lines, an exercise
Reading Agendas Between the Lines, an exercise
 
Bridging Representation of Laws, of Implementations and of Behaviours
Bridging Representation of Laws, of Implementations and of BehavioursBridging Representation of Laws, of Implementations and of Behaviours
Bridging Representation of Laws, of Implementations and of Behaviours
 
Revisiting Constitutive Rules
Revisiting Constitutive RulesRevisiting Constitutive Rules
Revisiting Constitutive Rules
 
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...Commitments, Expectations, Affordances and Susceptibilities: Towards Position...
Commitments, Expectations, Affordances and Susceptibilities: Towards Position...
 
A Constructivist Approach to Rule Bases
A Constructivist Approach to Rule BasesA Constructivist Approach to Rule Bases
A Constructivist Approach to Rule Bases
 
On the Interactional Meaning of Fundamental Legal Concepts
On the Interactional Meaning of Fundamental Legal ConceptsOn the Interactional Meaning of Fundamental Legal Concepts
On the Interactional Meaning of Fundamental Legal Concepts
 
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
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementDr. Deepak Mudgal
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...HenryBriggs2
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 

Recently uploaded (20)

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 

Operationalizing Declarative and Procedural Knowledge

  • 1. Operationalizing Declarative CAUSAL2020 Workshop on Causal Reasoning and Explanation in Logic Programming @ ICLP2020 Giovanni Sileno g.sileno@uva.nl Informatics Institute, University of Amsterdam a benchmark on Logic Programming Petri Nets (LPPNs) 19 September 2020 and Procedural Knowledge
  • 2. ● Regulations concern systems of norms, that in abstract, in a fixed point in time, may be approached atemporally. ● However, when applied, regulations deal with a continuous flow of events. ● Prototypical encounter: legal cases. ● More general but similar problem: narratives, stories. Problem: reasoning with cases
  • 3. While John was walking his dog, the dog ate Paul’s flowers. Problem: reasoning with cases
  • 4. While John was walking his dog, the dog ate Paul’s flowers. Problem: reasoning with cases How to entail that John is responsible to pay Paul?
  • 5. While John was walking his dog, the dog ate Paul’s flowers. Problem: reasoning with cases The owner of an animal has to pay for the damages it produces. (example of underlying norm) How to entail that John is responsible to pay Paul?
  • 6. While John was walking his dog, the dog ate Paul’s flowers. Problem: reasoning with cases The owner of an animal has to pay for the damages it produces. A conceptual gap exists between the concrete domain and the legal abstraction that applies on it. (example of underlying norm) How to entail that John is responsible to pay Paul?
  • 7. While John was walking his dog, the dog ate Paul’s flowers. The owner of an animal has to pay for the damages it produces. dogs are animals eating an object destroys the object destruction is damage flowers are objects
  • 8. While John was walking his dog, the dog ate Paul’s flowers. The owner of an animal has to pay for the damages it produces. dogs are animals eating an object destroys the object destruction is damage flowers are objects some connections are terminological (e.g. taxonomical relations) other provides causal meaning
  • 9. Types of Knowledge ● Declarative knowledge, concerning objects (physical, mental, institutional) and their logical relationships— typically reified by means of symbols ● Procedural knowledge, concerning patterns of events/actions, mechanisms, or processes (involving objects)—often tacit, internalized
  • 10. We need a notation to specify both! ● Physical systems can be approached from steady state (equilibrium) or transient (non-equilibrium, dynamic) perspectives ● Steady states descriptions omit transient characteristics ex. Ohm's Law. V = R * I Perspectives on Modelling
  • 11. We need a notation to specify both! ● Possible analogies: – steady state approach with ● Logic ● Declarative programming focus on What Specifying transients and steady states
  • 12. We need a notation to specify both! ● Possible analogies: – steady state approach with ● Logic ● Declarative programming – transient approach ● Process modelling ● Procedural programming focus on What focus on How Specifying transients and steady states
  • 13. We need a notation to specify both! ● Possible analogies: – steady state approach with ● Logic ● Declarative programming – transient approach ● Process modelling ● Procedural programming focus on What focus on How Petri Nets! Specifying transients and steady states
  • 14. We need a notation to specify both! focus on What focus on How Petri Nets! ● Possible analogies: – steady state approach with ● Logic ● Declarative programming – transient approach ● Process modeling ● Procedural programming Answer Set Programming Specifying transients and steady states
  • 15. focus on What focus on How Petri Nets! ● Possible analogies: – steady state approach with ● Logic ● Declarative programming – transient approach ● Process modeling ● Procedural programming Answer Set Programming LPPNs logic programming petri nets Specifying transients and steady states + =
  • 17. Logic Programming Petri Net (LPPN) ● An LPPN consists of three components: – a procedural net (places, transitions) – a declarative net for places – a declarative net for transitions causal mechanisms logical dependencies between objects logical dependencies between events
  • 18. Procedural LPPN (same as Condition/Event PN) transition place ● Petri net: bipartite directed graph made of places (circles) and transitions (boxes).
  • 19. transition place token Procedural LPPN (same as Condition/Event PN) ● tokens may occupy places.
  • 20. ● Execution semantics (token game): if any of its input places is not occupied, the transition is disabled. It cannot fire. Procedural LPPN (same as Condition/Event PN) disabled
  • 21. ● Execution semantics (token game): if all of its input places are occupied, the transition is enabled. It can fire. Procedural LPPN (same as Condition/Event PN) enabled
  • 22. ● Execution semantics (token game): when the transition fires it will consume tokens from the input places. Procedural LPPN (same as Condition/Event PN) firing
  • 23. ● Execution semantics (token game): ...and produce tokens in the output places. Procedural LPPN (same as Condition/Event PN) firing
  • 24. ● For our purposes, this maps to a reactive rule (ECA): Procedural LPPN (same as Condition/Event PN) #t1 : p1, p2 => -p1, -p2, +p3.
  • 25. ● Constructed from the ASP program: p6 :- p4, p5. p5. Declarative LPPN for places
  • 26. ● Equivalent to p6 :- p4, p5. p5. Declarative LPPN for places entails p5. answer set
  • 27. ● Equivalent to p6 :- p4, p5. p4. p5. Declarative LPPN for places
  • 28. ● Equivalent to p6 :- p4, p5. p4. p5. Declarative LPPN for places p4. p5. p6. entails answer set
  • 29. ● Equivalent to #t3 :- #t2, p9. #t4 :- #t2, p8. #t2. p7. p8. Declarative LPPN for transitions
  • 30. ● Equivalent to #t3 :- #t2, p9. #t4 :- #t2, p8. #t2. p7. p8. Declarative LPPN for transitions #t2. p7. p8. #t4. entails answer set propagation
  • 31. ● Equivalent to #t3 :- #t2, p9. #t4 :- #t2, p8. #t2. p7. p8. Declarative LPPN for transitions #t2. p7. p8. #t4. produces p11. entails answer set
  • 32. dog. flower. dog-walking. #dog-eats-flower. animal :- dog. object :- flower. damage :- destruction. #eat-object :- #dog-eats-flower. #destroy-object :- #eat-object. #destroy-object : object => -object, +destruction. while John was walking his dog, the dog ate Paul’s flowers (“story”) causal mechanisms logical dependencies at level of events logical dependencies at level of objects Initial example (partial model)
  • 34. Execution semantics ● The paper presents two semantics: – a denotational semantics, mapping causal mechanisms to ASP using Event Calculus → ASP solver
  • 35. Execution semantics ● The paper presents two semantics: – a denotational semantics, mapping causal mechanisms to ASP using Event Calculus – a hybrid semantics, consisting of 4 steps: 1. solve logical dependencies of objects 2. select one enabled transition to fire 3. solve logical dependencies of events 4. execute the selected firing using the Petri Net → ASP solver → ASP solver direct computation direct computation
  • 36. Execution semantics ● The paper presents two semantics: – a denotational semantics, mapping causal mechanisms to ASP using Event Calculus – a hybrid semantics, consisting of 4 steps: 1. solve logical dependencies of objects 2. select one enabled transition to fire 3. solve logical dependencies of events 4. execute the selected firing using the Petri Net → ASP solver → ASP solver direct computation direct computation Question: how they compare in terms of computational performance?
  • 37. Execution semantics ● The paper presents two semantics: – a denotational semantics, mapping causal mechanisms to ASP using Event Calculus – a hybrid semantics, consisting of 4 steps: 1. solve logical dependencies of objects 2. select one enabled transition to fire 3. solve logical dependencies of events 4. execute the selected firing using the Petri Net → ASP solver → ASP solver direct computation direct computation Question: how they compare in terms of computational performance? Why they should differ?
  • 39. Experiment ● We considered two basic reiterable structures at process level: – Serial composition (deterministic) – Forking (non-deterministic) ● We executed a benchmark on nets obtained by iterating these basic structures, with one token in the initial place – for N iterations = 1, 11, …, 91 (serial) – for N iterations = 1, 2, …, 10 (forking) Code available at http://github.com/s1l3n0/pypneu
  • 42. Why this difference? (intuition)
  • 43. Denotational semantics: Model execution as search ● Situation Calculus, Event Calculus, Fluent Calculus all rely on some form of timestamp. ● Causal mechanisms are mapped to logical dependences between timestamped snapshots Causation in model => Logical constraints
  • 44. ● Petri nets do not require to reify the global state to perform execution. ● They are directly mappable to individual instructions in imperative programs, they utilize some (local) input to produce some (local) output. Causation in model => Computational causation Hybrid semantics: Model execution as execution
  • 45. Conclusion ● The paper presents an empirical experiment with LPPNs, a logic programming-based extension of Petri Nets. ● LPPNs were introduced with a practical goal: a visual modelling notation, relatively simple for non-experts, handling declarative and procedural aspects of the target domain. ● Here the focus has been put on their computational properties, showing that maintaining the two levels separated has the potential to bring better performances. The benchmark needs to be extended.
  • 46. Conclusion ● The paper presents an empirical experiment with LPPNs, a logic programming-based extension of Petri Nets. ● LPPNs were introduced with a practical goal: a visual modelling notation, relatively simple for non-experts, handling declarative and procedural aspects of the target domain. ● Here the focus has been put on their computational properties, showing that maintaining the two levels separated has the potential to bring better performances. The benchmark needs to be extended. ● Future developments: extension to predicate logic, optimization of execution model, “canonic” models