SlideShare a Scribd company logo
Logic and Automated Reasoning
Or: Machine languages for everything?
Alexander Steen
University of Luxembourg
Elements of AI, Webinar III, 2021
C.
B.
Francke,
Herzog
Anton
Ulrich-Museum
”If we had it [a characteristica unversalis],
we should be able to reason in metaphysics
and morals in much the same way as in
geometry and analysis.”
— G.W. Leibniz, 1677
(translated by Russell, 1900)
C.
B.
Francke,
Herzog
Anton
Ulrich-Museum
”If we had it [a characteristica universalis],
we should be able to reason in metaphysics
and morals in much the same way as in
geometry and analysis.”
— G.W. Leibniz, 1677
(translated by Russell, 1900)
Leibniz’ Vision
”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos
computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule-
mus”
— G.W. Leibniz, 1684
”[...] if controversies were to arise, there would be no more need of disputation between two
philosophers than between two calculators. For it would suffice for them to take their pencils in
their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.”
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
Leibniz’ Vision
”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos
computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule-
mus”
— G.W. Leibniz, 1684
”[...] if controversies were to arise, there would be no more need of disputation between two
philosophers than between two calculators. For it would suffice for them to take their pencils in
their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.”
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
Leibniz’ Vision
”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos
computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule-
mus”
— G.W. Leibniz, 1684
”[...] if controversies were to arise, there would be no more need of disputation between two
philosophers than between two calculators. For it would suffice for them to take their pencils in
their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.”
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
Leibniz’ Vision (2)
The ultimate goal
”[...] it would suffice [...] to say [...]: Let us calculate”
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
Leibniz’ Vision (2)
The ultimate goal
”[...] it would suffice [...] to say [...]: Let us calculate”
Dispute
Â
National
Gallery
of
Victoria,
Melbourne/Felton
Bequest,
via
NGV
Formalization
Â
Calculation
Â
Result
Â
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
Leibniz’ Vision (2)
The ultimate goal
”[...] it would suffice [...] to say [...]: Let us calculate”
Dispute
Â
National
Gallery
of
Victoria,
Melbourne/Felton
Bequest,
via
NGV
Formalization
Â
Calculation
Â
Result
Â
↑
Characteristica universalis
↑
Calculus ratiocinator
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
Leibniz’ Vision (2)
The ultimate goal
”[...] it would suffice [...] to say [...]: Let us calculate”
Dispute
Â
National
Gallery
of
Victoria,
Melbourne/Felton
Bequest,
via
NGV
Formalization
Â
Calculation
Â
Result
Â
↑
Characteristica universalis
↑
Calculus ratiocinator
≈ Logic ≈ (Automated) Reasoning
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
Leibniz’ Vision (2)
The ultimate goal
”[...] it would suffice [...] to say [...]: Let us calculate”
Dispute
Â
National
Gallery
of
Victoria,
Melbourne/Felton
Bequest,
via
NGV
Formalization
Â
Calculation
Â
Result
Â
↑
Characteristica universalis
↑
Calculus ratiocinator
≈ Logic (?) ≈ (Automated) Reasoning (?)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
AI and Logic
What does this has to do with AI?
Automated Reasoning is a core subfield of Artificial Intelligence
also: ”good old-fashioned AI (GOFAI)”
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
AI and Logic
What does this has to do with AI?
A ”dispute” can be anything:
É Internal decision processes of banks for loans Is this person eligible for a loan?
É Emergency actions of autonomous vehicles Which action should be taken?
É Facial recognition Does this picture show person X?
É Planning Which route is the fastest/shortest?
É ... and much more ...
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
AI and Logic
What does this has to do with AI?
A ”dispute” can be anything:
É Internal decision processes of banks for loans Is this person eligible for a loan?
É Emergency actions of autonomous vehicles Which action should be taken?
É Facial recognition Does this picture show person X?
É Planning Which route is the fastest/shortest?
É ... and much more ...
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Important property: Unambiguous
Consider the sentence ”Time flies like an arrow”
What do we mean?
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Important property: Unambiguous
Consider the sentence ”Time flies like an arrow”
What do we mean? (1) There is species of flies, called time flies, that like a specific arrow
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Important property: Unambiguous
Consider the sentence ”Time flies like an arrow”
What do we mean? (2) Time (considered as an ”object”) flies through space like an arrow
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Important property: Unambiguous
Consider the sentence ”Time flies like an arrow”
What do we mean? (3) Time passes quite quickly
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Example:
1. It’s daytime or it’s nighttime (day ∨ night)
2. If the sun is shining, it is not nighttime (sun → ¬night)
3. The sun is shining (sun)
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Formal Logic and Reasoning
What is a Logic?
(1) A language
Composed by number of building blocks:
É not A (¬A)
É A and B (A ∧ B)
É A or B (A ∨ B)
É if A then B (A → B)
É ... many more possible
(2) Collection of reasoning patterns
Recipes for processing information
(rules for argumentation):
É If A → B holds and A holds
then B follows (modus ponens)
É If A ∨ B holds and ¬A holds
then B follows (modus tollens)
É ...
Example:
1. It’s daytime or it’s nighttime (day ∨ night)
2. If the sun is shining, it is not nighttime (sun → ¬night)
3. The sun is shining (sun)











It follows: It’s daytime
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
Logical Reasoning in AI
Reasoning: How is this useful in AI?
Deduction
From
A → B
and
A
to
B
Given: Rules, Situation
Search: Conclusions
⇒ Decide on actions
Induction
From
A
and
B
to
A → B
Given: Situation, Conclusions
Search: Rules
⇒ Learn principles
Abduction
From
A → B
and
B
to
A
Given: Rules, Conclusions
Search: Situation
⇒ Explain actions
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
Logical Reasoning in AI
Reasoning: How is this useful in AI?
Deduction
From
A → B
and
A
to
B
Given: Rules, Situation
Search: Conclusions
⇒ Decide on actions
Induction
From
A
and
B
to
A → B
Given: Situation, Conclusions
Search: Rules
⇒ Learn principles
Abduction
From
A → B
and
B
to
A
Given: Rules, Conclusions
Search: Situation
⇒ Explain actions
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
Logical Reasoning in AI
Reasoning: How is this useful in AI?
Deduction
From
A → B
and
A
to
B
Given: Rules, Situation
Search: Conclusions
⇒ Decide on actions
Induction
From
A
and
B
to
A → B
Given: Situation, Conclusions
Search: Rules
⇒ Learn principles
Abduction
From
A → B
and
B
to
A
Given: Rules, Conclusions
Search: Situation
⇒ Explain actions
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
Logical Reasoning in AI
Reasoning: How is this useful in AI?
Deduction
From
A → B
and
A
to
B
Given: Rules, Situation
Search: Conclusions
⇒ Decide on actions
Induction
From
A
and
B
to
A → B
Given: Situation, Conclusions
Search: Rules
⇒ Learn principles
Abduction
From
A → B
and
B
to
A
Given: Rules, Conclusions
Search: Situation
⇒ Explain actions
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
Logical Reasoning in AI
Reasoning: How is this useful in AI?
Deduction
From
A → B
and
A
to
B
Given: Rules, Situation
Search: Conclusions
⇒ Decide on actions
Induction
From
A
and
B
to
A → B
Given: Situation, Conclusions
Search: Rules
⇒ Learn principles
Abduction
From
A → B
and
B
to
A
Given: Rules, Conclusions
Search: Situation
⇒ Explain actions
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É Therefore, every coin is a penny (prediction)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 1: A bag of coins, pick some:
É First pick: A penny
É Second pick: ... penny
É Third pick: ... penny
É Therefore, every coin is a penny (prediction)
Shortcoming: Sample set may be too small
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 2: Considering ancestry:
É My grandfather is bald
É Jeremie’s grandfather is bald
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 2: Considering ancestry:
É My grandfather is bald
É Jeremie’s grandfather is bald
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 2: Considering ancestry:
É My grandfather is bald
É Jeremie’s grandfather is bald
É
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 2: Considering ancestry:
É My grandfather is bald
É Jeremie’s grandfather is bald
É Therefore, all grandfathers are bald
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction
Automated Deduction: What is it not?
É Autom. Deduction is not machine learning (ML) as such
É Usually associated un-/supervised (deep) learning, neural
networks, ...
Key difference: ML is related to inductive reasoning
É Arguing using empirical evidence
É Observations do not necessarily imply actual causality
É Example 2: Considering ancestry:
É My grandfather is bald
É Jeremie’s grandfather is bald
É Therefore, all grandfathers are bald
Shortcoming: Learning set may be biased
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 1:
É If X is human, then X is mortal.
É Socrates is human
É
Sting/Wikimedia
Commons,
CC
BY-SA
2.5
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 1:
É If X is human, then X is mortal.
É Socrates is human
É
Sting/Wikimedia
Commons,
CC
BY-SA
2.5
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 1:
É If X is human, then X is mortal.
É Socrates is human
É
Sting/Wikimedia
Commons,
CC
BY-SA
2.5
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 1:
É If X is human, then X is mortal.
É Socrates is human
É Question: Therefore, Socrates is mortal?
Sting/Wikimedia
Commons,
CC
BY-SA
2.5
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 1:
É If X is human, then X is mortal.
É Socrates is human
É Question: Therefore, Socrates is mortal?
AR can derive this conclusion; it is implicitly contained in the
rules already
Sting/Wikimedia
Commons,
CC
BY-SA
2.5
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 2:
É If X is human, then X is mortal.
É Socrates is human
É
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 2:
É If X is human, then X is mortal.
É Socrates is human
É
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 2:
É If X is human, then X is mortal.
É Socrates is human
É
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 2:
É If X is human, then X is mortal.
É Socrates is human
É Question: Therefore, Plato is mortal?
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
É Example 2:
É If X is human, then X is mortal.
É Socrates is human
É Question: Therefore, Plato is mortal?
Not necessarily.
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Deduction: Introduction (2)
Automated Deduction: What is it then?
É Could also call it ”information discovery”
É Of course, this is also a form of learning
Key difference to ML: It represents deductive reasoning
É Arguing using logical inferences
É Deductive conclusions are sound and reliable
Advantages: No false negatives, no false positives, explainable.
Disadvantages: Translation of domain knowledge is expensive
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
Automated Reasoning
How does automated reasoning work?
1. Translate problem to logic
É Rules: Knowledge about the world (axioms)
É Goal: What is to be to solved (conjecture)
2. Run reasoner for obtaining a solution
É Certificate: Describes the solution (proof)
— or —
É Counter example: Explanation why there
is no solution (model)
3. Translate solution to world
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
Automated Reasoning
How does automated reasoning work?
1. Translate problem to logic
É Rules: Knowledge about the world (axioms)
É Goal: What is to be to solved (conjecture)
2. Run reasoner for obtaining a solution
É Certificate: Describes the solution (proof)
— or —
É Counter example: Explanation why there
is no solution (model)
3. Translate solution to world
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
Automated Reasoning
How does automated reasoning work?
1. Translate problem to logic
É Rules: Knowledge about the world (axioms)
É Goal: What is to be to solved (conjecture)
2. Run reasoner for obtaining a solution
É Certificate: Describes the solution (proof)
— or —
É Counter example: Explanation why there
is no solution (model)
3. Translate solution to world
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
Automated Deduction
How does automated deduction work?
É Usage of formal inference rules
É Iterative deduction of facts
É Formalization acts as assumptions
É A derivation of a goal forms a
mathematical proof
É Proofs can be verified externally
É Act as explicit justification
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 11
Automated Deduction
How does automated deduction work?
É Usage of formal inference rules
É Iterative deduction of facts
É Formalization acts as assumptions
É A derivation of a goal forms a
mathematical proof
É Proofs can be verified externally
É Act as explicit justification
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 11
Automated Reasoning: Systems
State of the art system output
É System output may be (very) large
É often unreadable, machine-oriented
Small sample proof:
(TPTP THF format, widely accepted standard format for proofs)
thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A
thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (
thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A)
thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)).
thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex
thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)]
thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])).
thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st
thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)).
thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status(
thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])).
thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file
thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf
thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in
thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in
thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @
thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen
thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference
thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr
thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm
thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8
thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st
thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)).
thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status(
thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])).
thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file
thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf
thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
Automated Reasoning: Systems
State of the art system output
É System output may be (very) large
É often unreadable, machine-oriented
Small sample proof:
(TPTP THF format, widely accepted standard format for proofs)
thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A
thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (
thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A)
thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)).
thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex
thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)]
thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])).
thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st
thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)).
thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status(
thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])).
thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file
thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf
thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in
thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in
thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @
thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen
thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference
thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr
thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm
thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8
thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st
thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)).
thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status(
thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])).
thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file
thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf
thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
Automated Reasoning: Systems
State of the art system output
É System output may be (very) large
É often unreadable, machine-oriented
Small sample proof:
(TPTP THF format, widely accepted standard format for proofs)
thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A
thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (
thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A)
thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)).
thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex
thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)]
thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])).
thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st
thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)).
thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status(
thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])).
thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file
thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf
thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in
thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in
thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @
thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen
thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @
thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference
thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr
thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm
thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8
thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A
thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st
thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)).
thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu
thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status(
thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])).
thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file
thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf
thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
Applications: Brief look I
Classical applications: Mathematics/Computer Science and Verification
Mathematics/CS: Analysis of the Pythagorean Triples problem
Approx. 200 terabytes in proofs, 16000 CPU hours used
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 13
Applications: Brief look I
Classical applications: Mathematics/Computer Science and Verification
Software verification: Safety-critical and mission-critical components, e.g.
É NASA: Verification of mission components using PVS (NASA Langley)
É SNCF: Verification of train systems using ProMeLa/Spin
É ...
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 13
Applications: Brief look II
AI and Law: Normative Reasoning and Computational Law
É Standards for normative/legal languages (e.g. LegalRuleML)
É Tools for business compliance (e.g. Guido Governatori et al.)
É Automation of normative logics
É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
Applications: Brief look II
AI and Law: Normative Reasoning and Computational Law
É Standards for normative/legal languages (e.g. LegalRuleML)
É Tools for business compliance (e.g. Guido Governatori et al.)
É Automation of normative logics
É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE)
(c)
Guido
Governatori
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
Applications: Brief look II
AI and Law: Normative Reasoning and Computational Law
É Standards for normative/legal languages (e.g. LegalRuleML)
É Tools for business compliance (e.g. Guido Governatori et al.)
É Automation of normative logics
É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
Applications: Brief look II
AI and Law: Normative Reasoning and Computational Law
É Standards for normative/legal languages (e.g. LegalRuleML)
É Tools for business compliance (e.g. Guido Governatori et al.)
É Automation of normative logics
É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
Applications: Brief look II
AI and Law: Normative Reasoning and Computational Law
É Standards for normative/legal languages (e.g. LegalRuleML)
É Tools for business compliance (e.g. Guido Governatori et al.)
É Automation of normative logics
É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE)
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
Applications: Brief look III
Automated Reasoning in Philosophy [Benzmüller and Woltzenlogel Paleo, since 2013]
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 15
Re: Characteristica Universalis
How far have we progressed?
Recall: Initial idea of logic as universal language
Not yet there: Zoo of logics
classical logics, constructive logics, free logics, ...
Dynamic logics, epistemic logics, higher-order logics, ..
Many-valued logics, fuzzy logics, dynamic logics, constructive logics, temporal logic,
...
Multi modal logics, epistemic logics, alethic logics, temporal logics, public announce-
ment logics, dynamic logics, deontic logics, paraconsistent logics, paracomplete log-
ics, ...
Modal logics, deontic logics, epistemic logics, temporal logics, argumentation logics,
dialog logics, I/O logics, paraconsistent logics, ...
...
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 16
Summary
Conclusion
É Logical reasoning core part of AI
É Automated reasoning systems
É Applications examples (only partly addressed)
É Software/hardware verification
É Computer Science and Mathematics (also in teaching)
É Legal AI, Computational Law, Normative reasoning
É Reasoning in Metaphysics, Ethics, ...
Thank you!
Questions?
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 17
Summary
Conclusion
É Logical reasoning core part of AI
É Automated reasoning systems
É Applications examples (only partly addressed)
É Software/hardware verification
É Computer Science and Mathematics (also in teaching)
É Legal AI, Computational Law, Normative reasoning
É Reasoning in Metaphysics, Ethics, ...
Thank you!
Questions?
,
Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 17

More Related Content

Similar to Elements of AI Luxembourg - session 3

Edwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic ProgramsEdwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic Programs
Valeria de Paiva
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
Valeria de Paiva
 
Cognitive Psychology and Content Design
Cognitive Psychology and Content DesignCognitive Psychology and Content Design
Cognitive Psychology and Content Design
Chris Atherton @finiteattention
 
Striving to Demystify Bayesian Computational Modelling
Striving to Demystify Bayesian Computational ModellingStriving to Demystify Bayesian Computational Modelling
Striving to Demystify Bayesian Computational Modelling
Marco Wirthlin
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
Phanindra Mortha
 
Intelligence and artificial intelligence
Intelligence and artificial intelligenceIntelligence and artificial intelligence
Intelligence and artificial intelligence
Dr. Uday Saikia
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
Sabu Francis
 
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docxCSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
faithxdunce63732
 
Developmental Psychology Theoretical Approaches Essay
 Developmental Psychology Theoretical Approaches Essay Developmental Psychology Theoretical Approaches Essay
Developmental Psychology Theoretical Approaches Essay
Patty Buckley
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third LectureWouter Beek
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
Umesh Meher
 
Lecture 1: Introduction
Lecture 1: IntroductionLecture 1: Introduction
Lecture 1: Introduction
David Evans
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicPalGov
 
Weapons of Math Construction
Weapons of Math ConstructionWeapons of Math Construction
Weapons of Math Construction
Valeria de Paiva
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
Valeria de Paiva
 
Jsai
JsaiJsai
Logic for everyone
Logic for everyoneLogic for everyone
Logic for everyone
ble nature
 
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica Two Dif...
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica  Two Dif...Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica  Two Dif...
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica Two Dif...
Lisa Muthukumar
 
A career in Mathematics
A career in MathematicsA career in Mathematics
A career in Mathematics
Valeria de Paiva
 
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
Muthu78825
 

Similar to Elements of AI Luxembourg - session 3 (20)

Edwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic ProgramsEdwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic Programs
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 
Cognitive Psychology and Content Design
Cognitive Psychology and Content DesignCognitive Psychology and Content Design
Cognitive Psychology and Content Design
 
Striving to Demystify Bayesian Computational Modelling
Striving to Demystify Bayesian Computational ModellingStriving to Demystify Bayesian Computational Modelling
Striving to Demystify Bayesian Computational Modelling
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
 
Intelligence and artificial intelligence
Intelligence and artificial intelligenceIntelligence and artificial intelligence
Intelligence and artificial intelligence
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docxCSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
CSC375CSCM75Logic for Computer ScienceUlrich Berger.docx
 
Developmental Psychology Theoretical Approaches Essay
 Developmental Psychology Theoretical Approaches Essay Developmental Psychology Theoretical Approaches Essay
Developmental Psychology Theoretical Approaches Essay
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third Lecture
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Lecture 1: Introduction
Lecture 1: IntroductionLecture 1: Introduction
Lecture 1: Introduction
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
 
Weapons of Math Construction
Weapons of Math ConstructionWeapons of Math Construction
Weapons of Math Construction
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 
Jsai
JsaiJsai
Jsai
 
Logic for everyone
Logic for everyoneLogic for everyone
Logic for everyone
 
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica Two Dif...
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica  Two Dif...Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica  Two Dif...
Analytical Reasoning and Problem-Solving in Diophantus s Arithmetica Two Dif...
 
A career in Mathematics
A career in MathematicsA career in Mathematics
A career in Mathematics
 
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
 

Recently uploaded

How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

Elements of AI Luxembourg - session 3

  • 1. Logic and Automated Reasoning Or: Machine languages for everything? Alexander Steen University of Luxembourg Elements of AI, Webinar III, 2021
  • 2. C. B. Francke, Herzog Anton Ulrich-Museum ”If we had it [a characteristica unversalis], we should be able to reason in metaphysics and morals in much the same way as in geometry and analysis.” — G.W. Leibniz, 1677 (translated by Russell, 1900)
  • 3. C. B. Francke, Herzog Anton Ulrich-Museum ”If we had it [a characteristica universalis], we should be able to reason in metaphysics and morals in much the same way as in geometry and analysis.” — G.W. Leibniz, 1677 (translated by Russell, 1900)
  • 4. Leibniz’ Vision ”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule- mus” — G.W. Leibniz, 1684 ”[...] if controversies were to arise, there would be no more need of disputation between two philosophers than between two calculators. For it would suffice for them to take their pencils in their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.” , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
  • 5. Leibniz’ Vision ”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule- mus” — G.W. Leibniz, 1684 ”[...] if controversies were to arise, there would be no more need of disputation between two philosophers than between two calculators. For it would suffice for them to take their pencils in their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.” , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
  • 6. Leibniz’ Vision ”[...] quando orientur controversiae, non magis disputatione opus erit inter duos philosophus, quam inter duos computistas. Sufficiet enim calamos in manus sumere sedereque ad abacos, et sibi mutuo [...] dicere: calcule- mus” — G.W. Leibniz, 1684 ”[...] if controversies were to arise, there would be no more need of disputation between two philosophers than between two calculators. For it would suffice for them to take their pencils in their hands and to sit down at the abacus, and to say to each other [...]: Let us calculate.” , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 3
  • 7. Leibniz’ Vision (2) The ultimate goal ”[...] it would suffice [...] to say [...]: Let us calculate” , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
  • 8. Leibniz’ Vision (2) The ultimate goal ”[...] it would suffice [...] to say [...]: Let us calculate” Dispute  National Gallery of Victoria, Melbourne/Felton Bequest, via NGV Formalization  Calculation  Result  , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
  • 9. Leibniz’ Vision (2) The ultimate goal ”[...] it would suffice [...] to say [...]: Let us calculate” Dispute  National Gallery of Victoria, Melbourne/Felton Bequest, via NGV Formalization  Calculation  Result  ↑ Characteristica universalis ↑ Calculus ratiocinator , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
  • 10. Leibniz’ Vision (2) The ultimate goal ”[...] it would suffice [...] to say [...]: Let us calculate” Dispute  National Gallery of Victoria, Melbourne/Felton Bequest, via NGV Formalization  Calculation  Result  ↑ Characteristica universalis ↑ Calculus ratiocinator ≈ Logic ≈ (Automated) Reasoning , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
  • 11. Leibniz’ Vision (2) The ultimate goal ”[...] it would suffice [...] to say [...]: Let us calculate” Dispute  National Gallery of Victoria, Melbourne/Felton Bequest, via NGV Formalization  Calculation  Result  ↑ Characteristica universalis ↑ Calculus ratiocinator ≈ Logic (?) ≈ (Automated) Reasoning (?) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 4
  • 12. AI and Logic What does this has to do with AI? Automated Reasoning is a core subfield of Artificial Intelligence also: ”good old-fashioned AI (GOFAI)” , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
  • 13. AI and Logic What does this has to do with AI? A ”dispute” can be anything: É Internal decision processes of banks for loans Is this person eligible for a loan? É Emergency actions of autonomous vehicles Which action should be taken? É Facial recognition Does this picture show person X? É Planning Which route is the fastest/shortest? É ... and much more ... , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
  • 14. AI and Logic What does this has to do with AI? A ”dispute” can be anything: É Internal decision processes of banks for loans Is this person eligible for a loan? É Emergency actions of autonomous vehicles Which action should be taken? É Facial recognition Does this picture show person X? É Planning Which route is the fastest/shortest? É ... and much more ... , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 5
  • 15. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 16. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 17. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 18. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Important property: Unambiguous Consider the sentence ”Time flies like an arrow” What do we mean? Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 19. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Important property: Unambiguous Consider the sentence ”Time flies like an arrow” What do we mean? (1) There is species of flies, called time flies, that like a specific arrow Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 20. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Important property: Unambiguous Consider the sentence ”Time flies like an arrow” What do we mean? (2) Time (considered as an ”object”) flies through space like an arrow Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 21. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Important property: Unambiguous Consider the sentence ”Time flies like an arrow” What do we mean? (3) Time passes quite quickly Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 22. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 23. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Example: 1. It’s daytime or it’s nighttime (day ∨ night) 2. If the sun is shining, it is not nighttime (sun → ¬night) 3. The sun is shining (sun) Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 24. Formal Logic and Reasoning What is a Logic? (1) A language Composed by number of building blocks: É not A (¬A) É A and B (A ∧ B) É A or B (A ∨ B) É if A then B (A → B) É ... many more possible (2) Collection of reasoning patterns Recipes for processing information (rules for argumentation): É If A → B holds and A holds then B follows (modus ponens) É If A ∨ B holds and ¬A holds then B follows (modus tollens) É ... Example: 1. It’s daytime or it’s nighttime (day ∨ night) 2. If the sun is shining, it is not nighttime (sun → ¬night) 3. The sun is shining (sun)            It follows: It’s daytime Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 6
  • 25. Logical Reasoning in AI Reasoning: How is this useful in AI? Deduction From A → B and A to B Given: Rules, Situation Search: Conclusions ⇒ Decide on actions Induction From A and B to A → B Given: Situation, Conclusions Search: Rules ⇒ Learn principles Abduction From A → B and B to A Given: Rules, Conclusions Search: Situation ⇒ Explain actions Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
  • 26. Logical Reasoning in AI Reasoning: How is this useful in AI? Deduction From A → B and A to B Given: Rules, Situation Search: Conclusions ⇒ Decide on actions Induction From A and B to A → B Given: Situation, Conclusions Search: Rules ⇒ Learn principles Abduction From A → B and B to A Given: Rules, Conclusions Search: Situation ⇒ Explain actions , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
  • 27. Logical Reasoning in AI Reasoning: How is this useful in AI? Deduction From A → B and A to B Given: Rules, Situation Search: Conclusions ⇒ Decide on actions Induction From A and B to A → B Given: Situation, Conclusions Search: Rules ⇒ Learn principles Abduction From A → B and B to A Given: Rules, Conclusions Search: Situation ⇒ Explain actions , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
  • 28. Logical Reasoning in AI Reasoning: How is this useful in AI? Deduction From A → B and A to B Given: Rules, Situation Search: Conclusions ⇒ Decide on actions Induction From A and B to A → B Given: Situation, Conclusions Search: Rules ⇒ Learn principles Abduction From A → B and B to A Given: Rules, Conclusions Search: Situation ⇒ Explain actions Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
  • 29. Logical Reasoning in AI Reasoning: How is this useful in AI? Deduction From A → B and A to B Given: Rules, Situation Search: Conclusions ⇒ Decide on actions Induction From A and B to A → B Given: Situation, Conclusions Search: Rules ⇒ Learn principles Abduction From A → B and B to A Given: Rules, Conclusions Search: Situation ⇒ Explain actions Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 7
  • 30. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 31. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 32. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 33. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 34. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 35. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 36. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É Therefore, every coin is a penny (prediction) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 37. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 1: A bag of coins, pick some: É First pick: A penny É Second pick: ... penny É Third pick: ... penny É Therefore, every coin is a penny (prediction) Shortcoming: Sample set may be too small , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 38. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 2: Considering ancestry: É My grandfather is bald É Jeremie’s grandfather is bald É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 39. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 2: Considering ancestry: É My grandfather is bald É Jeremie’s grandfather is bald É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 40. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 2: Considering ancestry: É My grandfather is bald É Jeremie’s grandfather is bald É , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 41. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 2: Considering ancestry: É My grandfather is bald É Jeremie’s grandfather is bald É Therefore, all grandfathers are bald , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 42. Automated Deduction: Introduction Automated Deduction: What is it not? É Autom. Deduction is not machine learning (ML) as such É Usually associated un-/supervised (deep) learning, neural networks, ... Key difference: ML is related to inductive reasoning É Arguing using empirical evidence É Observations do not necessarily imply actual causality É Example 2: Considering ancestry: É My grandfather is bald É Jeremie’s grandfather is bald É Therefore, all grandfathers are bald Shortcoming: Learning set may be biased , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 8
  • 43. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 44. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 45. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 1: É If X is human, then X is mortal. É Socrates is human É Sting/Wikimedia Commons, CC BY-SA 2.5 Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 46. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 1: É If X is human, then X is mortal. É Socrates is human É Sting/Wikimedia Commons, CC BY-SA 2.5 Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 47. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 1: É If X is human, then X is mortal. É Socrates is human É Sting/Wikimedia Commons, CC BY-SA 2.5 Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 48. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 1: É If X is human, then X is mortal. É Socrates is human É Question: Therefore, Socrates is mortal? Sting/Wikimedia Commons, CC BY-SA 2.5 Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 49. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 1: É If X is human, then X is mortal. É Socrates is human É Question: Therefore, Socrates is mortal? AR can derive this conclusion; it is implicitly contained in the rules already Sting/Wikimedia Commons, CC BY-SA 2.5 Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 50. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 2: É If X is human, then X is mortal. É Socrates is human É Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 51. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 2: É If X is human, then X is mortal. É Socrates is human É Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 52. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 2: É If X is human, then X is mortal. É Socrates is human É Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 53. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 2: É If X is human, then X is mortal. É Socrates is human É Question: Therefore, Plato is mortal? , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 54. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable É Example 2: É If X is human, then X is mortal. É Socrates is human É Question: Therefore, Plato is mortal? Not necessarily. , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 55. Automated Deduction: Introduction (2) Automated Deduction: What is it then? É Could also call it ”information discovery” É Of course, this is also a form of learning Key difference to ML: It represents deductive reasoning É Arguing using logical inferences É Deductive conclusions are sound and reliable Advantages: No false negatives, no false positives, explainable. Disadvantages: Translation of domain knowledge is expensive Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 9
  • 56. Automated Reasoning How does automated reasoning work? 1. Translate problem to logic É Rules: Knowledge about the world (axioms) É Goal: What is to be to solved (conjecture) 2. Run reasoner for obtaining a solution É Certificate: Describes the solution (proof) — or — É Counter example: Explanation why there is no solution (model) 3. Translate solution to world Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
  • 57. Automated Reasoning How does automated reasoning work? 1. Translate problem to logic É Rules: Knowledge about the world (axioms) É Goal: What is to be to solved (conjecture) 2. Run reasoner for obtaining a solution É Certificate: Describes the solution (proof) — or — É Counter example: Explanation why there is no solution (model) 3. Translate solution to world Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
  • 58. Automated Reasoning How does automated reasoning work? 1. Translate problem to logic É Rules: Knowledge about the world (axioms) É Goal: What is to be to solved (conjecture) 2. Run reasoner for obtaining a solution É Certificate: Describes the solution (proof) — or — É Counter example: Explanation why there is no solution (model) 3. Translate solution to world Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 10
  • 59. Automated Deduction How does automated deduction work? É Usage of formal inference rules É Iterative deduction of facts É Formalization acts as assumptions É A derivation of a goal forms a mathematical proof É Proofs can be verified externally É Act as explicit justification , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 11
  • 60. Automated Deduction How does automated deduction work? É Usage of formal inference rules É Iterative deduction of facts É Formalization acts as assumptions É A derivation of a goal forms a mathematical proof É Proofs can be verified externally É Act as explicit justification , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 11
  • 61. Automated Reasoning: Systems State of the art system output É System output may be (very) large É often unreadable, machine-oriented Small sample proof: (TPTP THF format, widely accepted standard format for proofs) thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => ( thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A) thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)). thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)] thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])). thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)). thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status( thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])). thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @ thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8 thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)). thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status( thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])). thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
  • 62. Automated Reasoning: Systems State of the art system output É System output may be (very) large É often unreadable, machine-oriented Small sample proof: (TPTP THF format, widely accepted standard format for proofs) thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => ( thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A) thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)). thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)] thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])). thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)). thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status( thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])). thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @ thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8 thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)). thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status( thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])). thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
  • 63. Automated Reasoning: Systems State of the art system output É System output may be (very) large É often unreadable, machine-oriented Small sample proof: (TPTP THF format, widely accepted standard format for proofs) thf(6,axiom,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => (A thf(18,plain,((! [A:(nat > $o)]: (((A @ zero) & ! [B:nat]: ((A @ B) => ( thf(24,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A) thf(1,axiom,((? [A:nat]: ~ (p @ A))),file(’oded_2.p’,8)). thf(7,plain,((? [A:nat]: ~ (p @ A))),inference(defexp_and_simp_and_etaex thf(8,plain,((~ (! [A:nat]: (p @ A)))),inference(miniscope,[status(thm)] thf(9,plain,((~ (p @ sk1))),inference(cnf,[status(esa)],[8])). thf(506,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(660,plain,((~ (p @ zero)) | (p @ (sk2 @ (p)))),inference(pre_uni,[st thf(5,axiom,((p @ zero)),file(’oded_2.p’,4)). thf(17,plain,((p @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(716,plain,(~ ($true) | (p @ (sk2 @ (p)))),inference(rewrite,[status( thf(717,plain,((p @ (sk2 @ (p)))),inference(simp,[status(thm)],[716])). thf(3,axiom,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),file thf(13,plain,((! [A:nat]: ((p @ (succ @ A)) = ((p @ A) & (q @ A))))),inf thf(14,plain,(! [A:nat] : (((p @ (succ @ A)) = ((p @ A) & (q @ A))))),in thf(15,plain,(! [A:nat] : ((((p @ A) & (q @ A)) = (p @ (succ @ A))))),in thf(844,plain,(! [A:nat] : (((q @ A) = (p @ (succ @ A))) | ((p @ (sk2 @ thf(845,plain,(((q @ (sk2 @ (p))) = (p @ (succ @ (sk2 @ (p)))))),inferen thf(23,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(33,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (~ (A @ (succ @ thf(69,plain,((~ (p @ zero)) | (~ (p @ (succ @ (sk2 @ (p)))))),inference thf(90,plain,(~ ($true) | (~ (p @ (succ @ (sk2 @ (p)))))),inference(rewr thf(91,plain,((~ (p @ (succ @ (sk2 @ (p)))))),inference(simp,[status(thm thf(861,plain,((~ (q @ (sk2 @ (p))))),inference(rewrite,[status(thm)],[8 thf(869,plain,(! [B:nat,A:(nat > $o)] : ((~ (A @ zero)) | (A @ (sk2 @ (A thf(882,plain,((~ (q @ zero)) | (q @ (sk2 @ (q)))),inference(pre_uni,[st thf(4,axiom,((q @ zero)),file(’oded_2.p’,5)). thf(16,plain,((q @ zero)),inference(defexp_and_simp_and_etaexpand,[statu thf(901,plain,(~ ($true) | (q @ (sk2 @ (q)))),inference(rewrite,[status( thf(902,plain,((q @ (sk2 @ (q)))),inference(simp,[status(thm)],[901])). thf(2,axiom,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),file thf(10,plain,((! [A:nat]: ((q @ (succ @ A)) = ((q @ A) | (r @ A))))),inf thf(11,plain,(! [A:nat] : (((q @ (succ @ A)) = ((q @ A) | (r @ A))))),in Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 12
  • 64. Applications: Brief look I Classical applications: Mathematics/Computer Science and Verification Mathematics/CS: Analysis of the Pythagorean Triples problem Approx. 200 terabytes in proofs, 16000 CPU hours used , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 13
  • 65. Applications: Brief look I Classical applications: Mathematics/Computer Science and Verification Software verification: Safety-critical and mission-critical components, e.g. É NASA: Verification of mission components using PVS (NASA Langley) É SNCF: Verification of train systems using ProMeLa/Spin É ... , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 13
  • 66. Applications: Brief look II AI and Law: Normative Reasoning and Computational Law É Standards for normative/legal languages (e.g. LegalRuleML) É Tools for business compliance (e.g. Guido Governatori et al.) É Automation of normative logics É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
  • 67. Applications: Brief look II AI and Law: Normative Reasoning and Computational Law É Standards for normative/legal languages (e.g. LegalRuleML) É Tools for business compliance (e.g. Guido Governatori et al.) É Automation of normative logics É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE) (c) Guido Governatori , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
  • 68. Applications: Brief look II AI and Law: Normative Reasoning and Computational Law É Standards for normative/legal languages (e.g. LegalRuleML) É Tools for business compliance (e.g. Guido Governatori et al.) É Automation of normative logics É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
  • 69. Applications: Brief look II AI and Law: Normative Reasoning and Computational Law É Standards for normative/legal languages (e.g. LegalRuleML) É Tools for business compliance (e.g. Guido Governatori et al.) É Automation of normative logics É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
  • 70. Applications: Brief look II AI and Law: Normative Reasoning and Computational Law É Standards for normative/legal languages (e.g. LegalRuleML) É Tools for business compliance (e.g. Guido Governatori et al.) É Automation of normative logics É Own projects: NAI (jww. T. Libal) and Automated Reasoning with Legal Entities (AuReLeE) , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 14
  • 71. Applications: Brief look III Automated Reasoning in Philosophy [Benzmüller and Woltzenlogel Paleo, since 2013] , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 15
  • 72. Re: Characteristica Universalis How far have we progressed? Recall: Initial idea of logic as universal language Not yet there: Zoo of logics classical logics, constructive logics, free logics, ... Dynamic logics, epistemic logics, higher-order logics, .. Many-valued logics, fuzzy logics, dynamic logics, constructive logics, temporal logic, ... Multi modal logics, epistemic logics, alethic logics, temporal logics, public announce- ment logics, dynamic logics, deontic logics, paraconsistent logics, paracomplete log- ics, ... Modal logics, deontic logics, epistemic logics, temporal logics, argumentation logics, dialog logics, I/O logics, paraconsistent logics, ... ... , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 16
  • 73. Summary Conclusion É Logical reasoning core part of AI É Automated reasoning systems É Applications examples (only partly addressed) É Software/hardware verification É Computer Science and Mathematics (also in teaching) É Legal AI, Computational Law, Normative reasoning É Reasoning in Metaphysics, Ethics, ... Thank you! Questions? , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 17
  • 74. Summary Conclusion É Logical reasoning core part of AI É Automated reasoning systems É Applications examples (only partly addressed) É Software/hardware verification É Computer Science and Mathematics (also in teaching) É Legal AI, Computational Law, Normative reasoning É Reasoning in Metaphysics, Ethics, ... Thank you! Questions? , Logic and Automated Reasoning, Elements of AI, Webinar III, 2021 17