automating expressive non-classical logics and their...
TRANSCRIPT
![Page 1: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/1.jpg)
Automating Expressive Non-classical Logics
and their Combinations
in Classical Higher Order Logic
Christoph Benzmüller
FU Berlin
Presentation at Potsdam University on November 15, 2011
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 1
![Page 2: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/2.jpg)
Research Background
Artificial
Intelligence
Formal
Methods
Comp.
Linguistics
Formal
Logic
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 2
![Page 3: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/3.jpg)
Research Background
Artificial Intelligence
Formal Methods
For
mal
Logic
Com
putatio
nal
Lin
guistics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 3
![Page 4: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/4.jpg)
Research Background
Artificial Intelligence
Formal Methods
For
mal
Logic
Com
putatio
nal
Lin
guistics
Theory
Modeling
Implementation
Application
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 3
![Page 5: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/5.jpg)
Research Background
Artificial Intelligence
Formal Methods
For
mal
Logic
Com
putatio
nal
Lin
guistics
ProofAssistants
AutomatedTheorem-Proving
Class.&Non-Class.Reasoning
Specification &Verification
MultiagentSystems
Service-orientedArchitectures
Computation& Reasoning
FormalOntologies
KnowledgeRepresentation
Proof Planning
KnowledgeManagement
NL Dialog
UserInterfaces
MachineLearning
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 3
![Page 6: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/6.jpg)
Talk Overview
Core Questions:
1 Classical Higher Order Logic (HOL) as Universal Logic?
2 HOL Provers & Model Finders as Generic Reasoning Tools?
3 Combinations with Specialist Reasoners (if available)?
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 4
![Page 7: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/7.jpg)
Talk Overview
Core Questions:
1 Classical Higher Order Logic (HOL) as Universal Logic?
2 HOL Provers & Model Finders as Generic Reasoning Tools?
3 Combinations with Specialist Reasoners (if available)?
Outline:
What is HOL?
Mechanization & Automation of HOL
Examples of Natural Fragments of HOL: Multimodal Logics & Others
Automation of Logics and Logic Combinations in HOL
Automation of Meta-Properties of Logics in HOL
Conclusion
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 4
![Page 8: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/8.jpg)
What is HOL?(Classical Higher Order Logic/Church’s Type Theory)
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 5
![Page 9: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/9.jpg)
What is HOL? (Church’s Type Theory, Alonzo Church, 1940)
Expressivity FOL HOL Example
Quantification over- Individuals X X ∀X p(f (X ))- Functions - X ∀F p(F (a))- Predicates/Sets/Rels - X ∀P P(f (a))
Unnamed- Functions - X (λX X )- Predicates/Sets/Rels - X (λX X 6= a)
Statements about- Functions - X continuous(λX X )- Predicates/Sets/Rels - X reflexive(= )
Powerful abbreviations - X reflexive =λR λX R(X ,X )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 6
![Page 10: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/10.jpg)
What is HOL? (Church’s Type Theory, Alonzo Church, 1940)
Expressivity FOL HOL Example
Quantification over- Individuals X X ∀X ι pιo(f ιι(X ι))- Functions - X ∀F ιι pιo(F ιo(aι))- Predicates/Sets/Rels - X ∀P ιo P ιo(f ιι(aι))
Unnamed- Functions - X (λX ι X ι)- Predicates/Sets/Rels - X (λX ιι X ιι 6= ιιp a)ι)
Statements about- Functions - X continuous(ιι)o(λX ι X ι)
- Predicates/Sets/Rels - X reflexive(ιιo)o(= ιιo)
Powerful abbreviations - X reflexive(ιιo)o =λR(ιιo) λX ι R
Simple Types: Prevent Paradoxes and Inconsistencies
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 6
![Page 11: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/11.jpg)
What is HOL? (Alonzo Church, 1940)
Simple Types α ::= ι | o | α1 α2
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 12: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/12.jpg)
What is HOL? (Alonzo Church, 1940)
Simple Types α ::= ι | o | α1 α2
Individuals
Booleans (True and False)
Functions
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 13: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/13.jpg)
What is HOL? (Alonzo Church, 1940)
Simple Types α ::= ι | µ | o | α1 α2
Possible worlds
Individuals
Booleans (True and False)
Functions
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 14: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/14.jpg)
What is HOL? (Alonzo Church, 1940)
HOL Syntax
s, t ::= pα | Xα
| (λXα sβ)αβ | (sαβ tα)β
| (¬oo so)o | (so∨ooo to)o | (∀Xα to)o
Constant SymbolsVariable Symbols
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 15: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/15.jpg)
What is HOL? (Alonzo Church, 1940)
HOL Syntax
s, t ::= pα | Xα
| (λXα sβ)αβ | (sαβ tα)β
| (¬oo so)o | (so∨ooo to)o | (∀Xα to)o
Constant SymbolsVariable SymbolsAbstractionApplication
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 16: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/16.jpg)
What is HOL? (Alonzo Church, 1940)
HOL Syntax
s, t ::= pα | Xα
| (λXα sβ)αβ | (sαβ tα)β
| (¬oo so)o | (so∨ooo to)o | (∀Xα to)o
Constant SymbolsVariable SymbolsAbstractionApplicationLogical Connectives
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 17: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/17.jpg)
What is HOL? (Alonzo Church, 1940)
HOL Syntax
s, t ::= pα | Xα
| (λXα sβ)αβ | (sαβ tα)β
| (¬oo so)o | (so∨ooo to)o | (∀Xα to)o︸ ︷︷ ︸
(Π(αo)o (λXα to))o
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 18: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/18.jpg)
What is HOL? (Alonzo Church, 1940)
HOL Syntax
s, t ::= pα | Xα
| (λXα sβ)αβ | (sαβ tα)β
| (¬oo so)o | (so∨ooo to)o | (Π(αo)o (λXα to))o
HOL is (meanwhile) well understood- Origin [Church, J.Symb.Log., 1940]
- Henkin-Semantics [Henkin, J.Symb.Log., 1950]
[Andrews, J.Symb.Log., 1971, 1972]
- Extens./Intens. [Benzmüller et al., J.Symb.Log., 2004]
[Muskens, J.Symb.Log., 2007]
HOL with Henkin-Semantics: semi-decidable & compact (like FOL)
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 7
![Page 19: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/19.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 20: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/20.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 21: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/21.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 22: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/22.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 23: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/23.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 24: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/24.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 25: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/25.jpg)
Semantics of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 8
![Page 26: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/26.jpg)
HOL is Expressive: Sets and Relations
Sets and Relations in HOL
∈ := λx λA A(x)∅ := λx ⊥∩ := λA λB (λx x ∈ A ∧ x ∈ B) x | x ∈ Aorx ∈ B∪ := λA λB (λx x ∈ A ∨ x ∈ B)\ := λA λB (λx x ∈ A ∨ x /∈ B). . .⊆ := λA λB (∀x x ∈ A⇒ x ∈ B)P := λA (λB B ⊆ A). . .reflexive := λR (∀x R(x , x))transitive := λR (∀x , y , z (R(x , y) ∧ R(y , z))⇒ R(x , z)). . .
[BenzmüllerEtAl., Journal of Applied Logic, 2008]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 9
![Page 27: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/27.jpg)
HOL is Expressive: Sets and Relations
Typed Sets and Relations in HOL
∈ := λxα λAα→o A(x)∅ := λxα ⊥∩ := λAα→o λBα→o (λxα x ∈ A ∧ x ∈ B)∪ := λAα→o λBα→o (λxα x ∈ A ∨ x ∈ B)\ := λAα→o λBα→o (λxα x ∈ A ∨ x /∈ B). . .
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 10
![Page 28: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/28.jpg)
HOL is Expressive: Sets and Relations
Typed Sets and Relations in HOL
∈ := λxα λAα→o A(x)∅ := λxα ⊥∩ := λAα→o λBα→o (λxα x ∈ A ∧ x ∈ B)∪ := λAα→o λBα→o (λxα x ∈ A ∨ x ∈ B)\ := λAα→o λBα→o (λxα x ∈ A ∨ x /∈ B). . .
Polymorphism is a Challenge for Automation
One source of indeterminism / blind guessing[TheissBenzmüller, IWIL-WS@LPAR, 2006]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 10
![Page 29: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/29.jpg)
Mechanization & Automation of HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 11
![Page 30: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/30.jpg)
Mechanization & Automation of HOL: Motivation 1
HOL Applications in Formal Methods
Systems:Cambridge/München
Isabelle/HOL ,Cambridge
HOL4 ,INTEL
HOL-Light,SRI
PVS,Cornell
Nuprl, . . . , OMEGA
Project example (formal verification)
Flyspeck (Th. Hales, U Pittsburgh)
Goal: formal verification of his proofof Keppler’s Conjecture (1611)Application of HOL-Light & Isabelle/HOL & . . .’may take up to 20 work-years’ (Flyspeck website)
Crucial resource: user interaction
Countermeasure: improving the automation support
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 12
![Page 31: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/31.jpg)
Mechanization & Automation of HOL: Motivation 2
Knowledge Representation Agent Systems Formal Methods Security
Knowledge Obligations
Spatial Structures Time
Counterfactuals Rights
NormsExtension/Intension Constructivism
Beliefs. . . . . .
Computational Linguistics Philosophy Mathematics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 13
![Page 32: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/32.jpg)
Mechanization & Automation of HOL: Motivation 2
Knowledge Representation Agent Systems Formal Methods Security
Knowledge Obligations
Spatial Structures Time
Counterfactuals Rights
NormsExtension/Intension Constructivism
Beliefs. . . . . .
Computational Linguistics Philosophy Mathematics
Application areas for
non-classical logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 13
![Page 33: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/33.jpg)
Mechanization & Automation of HOL: Motivation 2
Knowledge Representation Agent Systems Formal Methods Security
Knowledge Obligations
Spatial Structures Time
Counterfactuals Rights
NormsExtension/Intension Constructivism
Beliefs. . . . . .
Computational Linguistics Philosophy Mathematics
Many relevant non-classical logics
Many relevant combinations of logics
Few proof systems for individual logics
Fewer proof systems for logic combinations
Very few generic approaches
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 13
![Page 34: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/34.jpg)
Mechanization & Automation of HOL: Motivation 2
Knowledge Representation Agent Systems Formal Methods Security
Knowledge Obligations
Spatial Structures Time
Counterfactuals Rights
NormsExtension/Intension Constructivism
Beliefs. . . . . .
Computational Linguistics Philosophy Mathematics
Core Questions:
1 Classical Higher Order Logic (HOL) as Universal Logic?
2 HOL Provers & Model Finders as Generic Reasoning Tools?
3 Combinations with Specialist Reasoners (if available)?
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 13
![Page 35: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/35.jpg)
Automation of HOL: A Nightmare?
Undecidable and InfinitaryUnification
∃Fι→ι F (g(x)) = g(F (x))
(1) F ← λyi y
(2) F ← λyi g(y)(3) F ← λyi g(g(y))(4) . . .
−→ enforce decidability
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 14
![Page 36: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/36.jpg)
Automation of HOL: A Nightmare?
Primitive Substitution
Example Theorem: ∃S reflexive(S)Negation and Expansion of Definitions:
¬∃S (∀xι S(x , x))
Clause Normalisation (a(S) Skolem term):
¬S(a(S), a(S))
Guess some suitable instances for S
S ← λy λz ⊤ ¬⊤
S ← λy λz V (y , z)=W (y , z) V (a(S), a(S)) 6= W (a(S), a(S))
S ← . . .
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 15
![Page 37: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/37.jpg)
Automation of HOL: A Nightmare?
Cut rule
A⇒ C C⇒ B
A⇒ Bconsidered as bad in ATP
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 16
![Page 38: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/38.jpg)
Automation of HOL: A Nightmare?
Cut rule
A⇒ C C⇒ B
A⇒ Bconsidered as bad in ATP
[IJCAR-06]: Axioms that imply Cut
Axiom of excluded middle
Comprehension axioms
Functional and Boolean extensionality
Leibniz and other definitions of equality
Axiom of induction
Axiom of choice
Axiom of description
[BenzmüllerEtAl., Logical Methods in Computer Science, 2009]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 16
![Page 39: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/39.jpg)
Automation of HOL: A Nightmare?
Cut rule
A⇒ C C⇒ B
A⇒ Bconsidered as bad in ATP
Calculi that avoid axioms
Axiom of excluded middle X
Comprehension axioms X
Functional and Boolean extensionality X[CADE-98,PhD-99]
Leibniz and other definitions of equality X[CADE-99,PhD-99]
Axiom of induction ?
Axiom of choice X(see recent work of Brown)
Axiom of description X(see recent work of Brown)
[BenzmüllerEtAl., Logical Methods in Computer Science, 2009]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 16
![Page 40: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/40.jpg)
LEO-II employs FO-ATPs: E, Spass, Vampire
Download and further Information: www.leoprover.org
[BenzmüllerEtAl., IJCAR, 2008]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 17
![Page 41: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/41.jpg)
Motivation for LEO-II
TPS system of Peter Andrews et al.
LEO hardwired to Ωmega (predecessor of LEO-II)
Agent-based architecture Ω-Ants(with V. Sorge) [AIMSA-98,EPIA-99,Calculemus-00]
Collaboration of LEO with FO-ATP via Ω-Ants(with V. Sorge) [KI-01,LPAR-05,JAL-08]
Progress in Higher-Order Termindexing(with F. Theiss and A. Fietzke) [IWIL-06]
=⇒ Development of LEO-II with L. Paulson at Cambridge University
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 18
![Page 42: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/42.jpg)
Architecture of LEO-II
which ...
’first−order like’ clausesLEO−II detects
in its search spaceand ...
... passes them (after syntaxtransformation) to a
first−order prover
refute these clauses... tries to
efficientlyoutput (proof)
input (problem)
Exp
ress
ivity
ofH
igher
-Ord
erLog
ic Effi
ciency
ofFirst-O
rder
Logic
Automatic Knowledge Re-Representation
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 19
![Page 43: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/43.jpg)
Outline of the LEO-II Loop
Main Termination Criterion: generation of empty clause, then raise excepetion/stop
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 20
![Page 44: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/44.jpg)
Outline of the LEO-II Loop
Main Termination Criterion: generation of empty clause, then raise excepetion/stopPre-Processing
abbreviation expansion, splitting, extensional normalisation and debth-bound extensionalpre-unification, Skolemization, primitive substitution, simplification, etc.
initialize clause sets: passive=emptyset, active=results from above
call fo-atp with fo-like clauses; stop if refutation found
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 20
![Page 45: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/45.jpg)
Outline of the LEO-II Loop
Main Termination Criterion: generation of empty clause, then raise excepetion/stopPre-Processing
abbreviation expansion, splitting, extensional normalisation and debth-bound extensionalpre-unification, Skolemization, primitive substitution, simplification, etc.
initialize clause sets: passive=emptyset, active=results from above
call fo-atp with fo-like clauses; stop if refutation found
LEO-II Loop
while ’Reasoning-Timeout’ not yet reached do
increment loop counter (stop when maximal number of loops reached)call fo-atp with fo-like clauses; stop if refutation foundchoose new lightest clause form active and rename free varsif lightest is-subsumed-by passive then nothing else
remove subsumed clauses from active and add lightest clause to passiveresolve all clauses in active against lightest clauses(apply primitive substitution to ligtest clause)(apply positive boolean extensionality to lightest clause)apply restricted factorization to lightest clauseprocess resulting clauses with: extensional normalisation anddebth-bound extensional pre-unification, simplificationadd resulting clauses to active
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 20
![Page 46: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/46.jpg)
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 21
![Page 47: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/47.jpg)
Examples of Natural Fragments of HOL:Quantified Multimodal Logics & Others
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 22
![Page 48: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/48.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 49: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/49.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 50: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/50.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 51: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/51.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 52: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/52.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 53: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/53.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 54: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/54.jpg)
Combining the Kripke View and the Tarski View on Logics
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 23
![Page 55: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/55.jpg)
Multimodal Logics in HOL
Syntax (MML): s, t ::= P | ¬ s | s ∨ t | r s
HOL
Syntax MML- formulas sKripke Semantics- worlds w- accessibility relations r
First Order Logicexplicit
transformation
e.g. work of Ohlbach
Not Needed!
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 24
![Page 56: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/56.jpg)
Multimodal Logics in HOL
Syntax (MML): s, t ::= P | ¬ s | s ∨ t | r s
HOL
Syntax MML- formulas sKripke Semantics- worlds w- accessibility relations r
−→ terms sιo
−→ terms wι
−→ terms rιιo
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 24
![Page 57: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/57.jpg)
Multimodal Logics in HOL
Syntax (MML): s, t ::= P | ¬ s | s ∨ t | r s
HOL
Syntax MML- formulas sKripke Semantics- worlds w- accessibility relations r
−→ terms sιo
−→ terms wι
−→ terms rιιo
MML Syntax as Abbreviations of HOL-Terms
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
[BenzmüllerPaulson, Log.J.IGPL, 2010], [BenzmüllerPaulson, Logica Universalis, to appear]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 24
![Page 58: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/58.jpg)
Multimodal Logics in HOL Quantifiers
Syntax (MML): s, t ::= P | ¬ s | s ∨ t | r s
HOL
Syntax MML- formulas sKripke Semantics- worlds w- accessibility relations r
−→ terms sιo
−→ terms wι
−→ terms rιιo
MML Syntax as Abbreviations of HOL-Terms
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
(∀p), ∀µ = λQµ(ιo) λWι ∀Xµ (Q X W )
[BenzmüllerPaulson, Log.J.IGPL, 2010], [BenzmüllerPaulson, Logica Universalis, to appear]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 24
![Page 59: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/59.jpg)
Multimodal Logics in HOL Quantifiers Conditional Logics . . .
Syntax (MML): s, t ::= P | ¬ s | s ∨ t | r s
HOL
Syntax MML- formulas sKripke Semantics- worlds w- accessibility relations r
−→ terms sιo
−→ terms wι
−→ terms rιιo
MML Syntax as Abbreviations of HOL-Terms
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
(∀p), ∀µ = λQµ(ιo) λWι ∀Xµ (Q X W )
s ⇒ t = λSιo λTιo λWι ∀Vι ¬(f W S V ) ∨ (T V )
[BenzmüllerGenovese, NCMPL, 2011], [BenzmüllerGabbayGenoveseRispoli, Logica Universalis, to appear]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 24
![Page 60: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/60.jpg)
Embedding Meta-Level Notions
Validity
valid = λφιo ∀Wι φW
Also
Satisfiability
Countersatisfiability
Unsatisfiability
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 25
![Page 61: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/61.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 62: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/62.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 63: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/63.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ s = λTιo λWι (s W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 64: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/64.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ s t = λWι (s W ) ∨ (t W )
= λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 65: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/65.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )(∨ s t)W = (s W ) ∨ (t W )
= λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 66: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/66.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 67: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/67.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 68: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/68.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W )r = λSιo λWι ∀Vι ¬(r W V ) ∨ (S V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 69: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/69.jpg)
Embedding Multimodal Conditional Logics in HOL
Kripke style semantics higher-order selection function!
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
M,w |= scond⇒ t iff M, v |= t for all v ∈ f (w , [s])
with [s] = u | M, u |= s
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
cond⇒ = λSιo λTιo λWι ∀Vι ¬(f W S V ) ∨ (T V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 70: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/70.jpg)
Embedding Multimodal Conditional Logics in HOL
Kripke style semantics higher-order selection function!
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
M,w |= scond⇒ t iff M, v |= t for all v ∈ f (w , [s])
with [s] = u | M, u |= s
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )
cond⇒ = λSιo λTιo λWι ∀Vι ¬(f W S V ) ∨ (T V )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 71: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/71.jpg)
Embedding Multimodal Logics in HOL
Kripke style semantics higher-order selection function!
M,w |= P arbitraryM,w |= ¬s iff not M,w |= s
M,w |= s ∨ t iff M,w |= s or M,w |= s
M,w |= r s iff M, u |= s for all v mit r(w , v)
M,w |= scond⇒ t iff M, v |= t for all v ∈ f (w , [s])
with [s] = u | M, u |= s
Semantic embedding: ML −→ HOL terms of type ι o
Base type ι is identified with set of worlds W 6= ∅
P = λWι (Pιo W ) = Pιo
¬ = λSιo λWι ¬(S W )∨ = λSιo λTιo λWι (S W ) ∨ (T W ) = λRιιo λSιo λWι ∀Vι ¬(R W V ) ∨ (S V )∀µ = λQµ(ιo) λWι ∀Xµ (Q X W )
∀p = λQ(ιo)(ιo) λWι ∀Pιo (Q P W )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 26
![Page 72: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/72.jpg)
Trivial Examples
Remember
valid = λφιo ∀Wι φW
Examples on blackboard
valid ∀µX (m X )
valid ∀µX r (m X )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 27
![Page 73: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/73.jpg)
Quantified Modal Logics: Constant versus Cumulative Domain
Constant Domain
∀µ
= λQ λWι ∀Xµ (Q X W )
[BenzmüllerPaulson, Logica Universalis, to appear]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 28
![Page 74: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/74.jpg)
Quantified Modal Logics: Constant versus Cumulative Domain
Constant Domain
∀µ
= λQ λWι ∀Xµ (Q X W )
[BenzmüllerPaulson, Logica Universalis, to appear]
Cumulative Domain
∀µ
= λQ λWι ∀Xµ (exInW X W ) ⇒ (Q X W )
1: ∀Xµ,Vι,Wι (exInW X V )∧ (r V W ) ⇒ (exInW X W )2: ∀Wι ∃Xµ (exInW X W )3(c): ∀Wι (exInW c W )
[ongoing work with Otten and Raths]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 28
![Page 75: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/75.jpg)
Region Connection Calculus (RCC) is a Fragment of HOL
Region Connection Calculus for spatial reasoning [RandellCuiCohn, 1992]
disconnected : dc = λXτ λYτ ¬(c X Y )
part of : p = λXτ λYτ ∀Z ((c Z X )⇒ (c Z Y ))
identical with : eq = λXτ λYτ ((p X Y ) ∧ (p Y X ))
overlaps : o = λXτ λYτ ∃Z ((p Z X ) ∧ (p Z Y ))
partially o : po = λXτ λYτ ((o X Y ) ∧ ¬(p X Y ) ∧ ¬(p Y X ))
ext. connected : ec = λXτ λYτ ((c X Y ) ∧ ¬(o X Y ))
proper part : pp = λXτ λYτ ((p X Y ) ∧ ¬(p Y X ))
tangential pp : tpp = λXτ λYτ ((pp X Y ) ∧ ∃Z ((ec Z X ) ∧ (ec Z Y )))
nontang. pp : ntpp = λXτ λYτ ((pp X Y ) ∧ ¬∃Z ((ec Z X ) ∧ (ec Z Y )))
[Benzmüller, AMAI, 2011]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 29
![Page 76: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/76.jpg)
Semantic Web Language OWL is a Fragment of HOL
Class expressions become terms of type ι o
Class membership becomes class application (C a)
Role expressions become terms of type ι ι o
Role membership becomes role application (R a b)
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 30
![Page 77: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/77.jpg)
Semantic Web Language OWL is a Fragment of HOL
Class expressions become terms of type ι o
Class membership becomes class application (C a)
Role expressions become terms of type ι ι o
Role membership becomes role application (R a b)
The class connectives ⊥,⊤,¬,⊔, ∀,≥n can be defined as
⊤ = λXι ⊤
⊥ = λXι ⊥
¬ = λCιo λXι ¬(C X )
⊔ = λCιo λDιo λXι (C X ) ∨ (C X )
∀ = λRιιo λCιo λXι ∀Yι (R X Y )⇒ (C Y )
≥n = λRιιo λCιo λXι ((# λYι (R X Y ) ∧ (C Y )) ≥ n)
(# is an appropriately defined set cardinality function)
Role inverse R− is defined as − = λRιιo λXι λYι (R Y X )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 30
![Page 78: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/78.jpg)
Semantic Web Language OWL is a Fragment of HOL
Class expressions become terms of type ι o
Class membership becomes class application (C a)
Role expressions become terms of type ι ι o
Role membership becomes role application (R a b)
Definition of further connectives
⊑1 = λCιo λDιo ∀Xι (C X )⇒ (D X )
⊑2 = λRιιo λSιιo ∀Xι ∀Yι (R X Y )⇒ (S X Y )
Dis = λRιιo λSιιo ¬∃Xι ∃Yι (R X Y ) ∧ (S X Y )
= λRιιo λSιιo λXι λYι ∃Zι (R X Z ) ∧ (S Z Y )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 30
![Page 79: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/79.jpg)
Semantic Web Language OWL is a Fragment of HOL
Class expressions become terms of type ι o
Class membership becomes class application (C a)
Role expressions become terms of type ι ι o
Role membership becomes role application (R a b)
As we have seen before:
OWL connectives are just abbreviations of HOL terms
[Benzmüller, Research Proposal]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 30
![Page 80: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/80.jpg)
Soundness and Completeness
|=ML s iff |=HOL valid sιo
Propositional Multimodal Logics [BenzmüllerPaulson, Log.J.IGPL, 2010]
Quantified Multimodal Logics [BenzmüllerPaulson, CLIMA XI, 2010]
[Benzmüller, AMAI, 2011], [BenzmüllerPaulson, Logica Universal., to appear]
Propositional & Quantified Conditional Logics[BenzmüllerGenovese, NCMPL, 2011], [BenzmüllerGenoveseGabbayRispoli,
submitted, 2011]
Temporal Logics: use semantic modeling of ’irreflexive’
Intuitionistic Logics: [BenzmüllerPaulson, Log.J.IGPL, 2010]
Access Control Logics: [Benzmüller, IFIP SEC, 2009]
Work in progress
Spatial Reasoning ’RCC’ [Benzmüller, AMAI, 2011]
Semantic Web Language ’OWL’ [Benzmüller, Research Proposal, 2010]
. . .C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 31
![Page 81: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/81.jpg)
Automation of Logics and Logic Combinations in HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 32
![Page 82: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/82.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 83: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/83.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 84: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/84.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation ∀Wι (¬(a b P)W ) ∨ (a P W )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 85: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/85.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation ∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 86: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/86.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation ∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 87: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/87.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation ∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 88: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/88.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
expanded abbreviation ∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
. . .
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 89: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/89.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
. . .
∀Wι ¬(. . . . . . . . . . . . W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 90: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/90.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
. . .
∀Wι ¬(. . . . . . . . . . . . W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
HOL model finder Nitpick (IsabelleN) quickly finds a countermodel
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 91: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/91.jpg)
A Simple Example
Problem in Multimodal Logic K ¬(a b P) ∨a P
Problem in HOL valid ¬(a b P) ∨a P
∀Wι (¬(a b P)∨a P)W
∀Wι (¬(a b P)W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (a P W )
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(a W V ) ∨ (P W ))
∀Wι ¬(a b P W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
. . .
∀Wι ¬(. . . . . . . . . . . . W ) ∨ (∀Vι ¬(aιιo W V ) ∨ (Pιo W ))
HOL model finder Nitpick (IsabelleN) quickly finds a countermodel
Countermodel for ¬(a b P) ∨a P
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 33
![Page 92: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/92.jpg)
Further Examples
Exemplary study of combinations of logics
Agent scenarios (e.g. Wise Men Puzzle)
common knowledge & knowledge of single agents & time
[Benzmüller, AMAI, 2011]
Novel combinations
knowledge of agents & spatial reasoning
[Benzmüller, DagstuhlSeminar, 2010]
Combinations that are relevant for expressive ontologies (SUMO)
knowledge & belief & time & spatial reasoning & . . .
[BenzmüllerPease, ARCOE-WS@ECAI, 2010]
[BenzmüllerPease, PAAR-WS@IJCAR, 2010]
[BenzmüllerPease, AICom, to appear]
[BenzmüllerPease, JWS, in revision]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 34
![Page 93: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/93.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 94: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/94.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 95: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/95.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
(formalization adapted from: [Baldoni, PhD, 1998])
epistemic modalities (knowledge):a ,b ,c : individual knowledge of the men
fool : common knowledge
predicate symbol:ws: ’has white spot’
axioms for common knowledge (S4)
valid ∀pφ fool φ ⇒ φ (M)
valid ∀pφ fool φ ⇒ fool fool φ (4)
inclusion axioms
valid∀pφ fool φ ⇒ X φ
X ∈ a, b, c
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 96: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/96.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
(formalization adapted from: [Baldoni, PhD, 1998])
common knowledge:
at least one of the men has a white spot
valid fool (ws a) ∨ (ws b) ∨ (ws c)
if X has a white spot, then Y knows this
valid fool (ws X ) ⇒ Y (ws X )
X 6= Y ∈ a, b, c
if X does not have a white spot, then Y knows this
valid fool ¬ (ws X ) ⇒ Y ¬ (ws X )
X 6= Y ∈ a, b, c
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 97: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/97.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
(formalization adapted from: [Baldoni, PhD, 1998])
if X knows φ, then Y knows that X knows φ
valid ∀pφ (X φ ⇒ Y X φ)
X 6= Y ∈ a, b, c
if X does not know φ, then Y knows that X doesnot know φ
valid ∀pφ (¬X φ ⇒ Y ¬X φ)
X 6= Y ∈ a, b, c
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 98: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/98.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
(formalization adapted from: [Baldoni, PhD, 1998])
a does not know his spot is white
valid ¬a (ws a)
b does not know his spot is white
valid ¬b (ws b)
to prove: c does know, that he has a white spot
. . . ⊢HOL validc (ws c)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 99: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/99.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
(formalization adapted from: [Baldoni, PhD, 1998])
a does not know his spot is white
valid ¬a (ws a)
b does not know his spot is white
valid ¬b (ws b)
to prove: c does know, that he has a white spot
. . . ⊢HOL validc (ws c)
LEO-II can do this effectively
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 100: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/100.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
temporal modality (time):t : ’in the future it will be the case that’
after waiting some time, two wise men stilldon’t know the color of their spot
valid t ¬a (ws a)
valid t t ¬b (ws b)
shortly later the third wise men then knows thecolor of his spot
. . . ⊢HOL valid t t t c (ws c)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 101: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/101.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
wait a second: t has not yet beencharacterized as temporal modality
relation t is transitive: ∀pφ t φ⇒ t t φ
relation t is irreflexive: ???
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 102: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/102.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
wait a second: t has not yet beencharacterized as temporal modality
relation t is transitive: ∀pφ t φ⇒ t t φ
relation t is irreflexive: (irreflexive t)
irreflexive = λRιιo ∀Wι ¬(R W W )
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 103: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/103.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
wait a second: t has not yet beencharacterized as temporal modality
relation t is transitive: (transitive t)
relation t is irreflexive: (irreflexive t)
irreflexive = λRιιo ∀Wι ¬(R W W )
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 104: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/104.jpg)
Further Examples Wise Men Puzzle
Wise Men Puzzle
Once upon a time, a king wan-
ted to find the wisest out of his
three wisest men. He arranged
them in a circle and told them
that he would put a white or
a black spot on their foreheads
and that one of the three spots
would certainly be white. The
three wise men could see and
hear each other but, of course,
they could not see their faces
reflected anywhere. The king,
then, asked to each of them to
find out the color of his own
spot. After a while, the wisest
correctly answered that his spot
was white.
wait a second: t has not yet beencharacterized as temporal modality
relation t is transitive: (transitive t)
relation t is irreflexive: (irreflexive t)
irreflexive = λRιιo ∀Wι ¬(R W W )
LEO-II can solve the modified puzzle effectively
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 35
![Page 105: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/105.jpg)
Further Examples Epistemic & Spatial
Region Connection Calculus (RCC) [RandellCuiCohn, 1992]
as fragment of HOL:
disconnected : dc = λXτ λYτ ¬(c X Y )
part of : p = λXτ λYτ ∀Z ((c Z X )⇒ (c Z Y ))
identical with : eq = λXτ λYτ ((p X Y ) ∧ (p Y X ))
overlaps : o = λXτ λYτ ∃Z ((p Z X ) ∧ (p Z Y ))
partially o : po = λXτ λYτ ((o X Y ) ∧ ¬(p X Y ) ∧ ¬(p Y X ))
ext. connected : ec = λXτ λYτ ((c X Y ) ∧ ¬(o X Y ))
proper part : pp = λXτ λYτ ((p X Y ) ∧ ¬(p Y X ))
tangential pp : tpp = λXτ λYτ ((pp X Y ) ∧ ∃Z ((ec Z X ) ∧ (ec Z Y )))
nontang. pp : ntpp = λXτ λYτ ((pp X Y ) ∧ ¬∃Z ((ec Z X ) ∧ (ec Z Y )))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 36
![Page 106: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/106.jpg)
Further Examples Epistemic & Spatial
A trivial problem for RCC:
Catalunya is a border region of Spain (tpp catalunya spain),
Spain and France share a border (ec spain france),
Paris is a region inside France (ntpp paris france)
⊢HOL
Catalunya and Paris are disconnected (dc catalunya paris)
∧
Spain and Paris are disconnected (dc spain paris)
[Benzmüller, AMAI, 2011]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 37
![Page 107: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/107.jpg)
Further Examples Epistemic & Spatial
A trivial problem for RCC:
Catalunya is a border region of Spain (tpp catalunya spain),
Spain and France share a border (ec spain france),
Paris is a region inside France (ntpp paris france)
⊢HOL2.3s
Catalunya and Paris are disconnected (dc catalunya paris)
∧
Spain and Paris are disconnected (dc spain paris)
[Benzmüller, AMAI, 2011]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 37
![Page 108: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/108.jpg)
Further Examples Epistemic & Spatial
valid ∀φ fool φ ⊃ bob φ,
valid fool (λW (ec spain france)),
valid bob (λW (tpp catalunya spain)),
valid bob (λW (ntpp paris france))
⊢HOL valid bob (λW ((dc catalunya paris) ∧ (dc spain paris)))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 38
![Page 109: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/109.jpg)
Further Examples Epistemic & Spatial
valid ∀φ fool φ ⊃ bob φ,
valid fool (λW (ec spain france)),
valid bob (λW (tpp catalunya spain)),
valid bob (λW (ntpp paris france))
⊢HOL20.4s valid bob (λW ((dc catalunya paris) ∧ (dc spain paris)))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 38
![Page 110: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/110.jpg)
Further Examples Epistemic & Spatial
valid ∀φ fool φ ⊃ bob φ,
valid fool (λW (ec spain france)),
valid bob (λW (tpp catalunya spain)),
valid bob (λW (ntpp paris france))
⊢HOL20.4s valid bob (λW ((dc catalunya paris) ∧ (dc spain paris)))
6⊢HOL valid fool (λW ((dc catalunya paris) ∧ (dc spain paris)))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 38
![Page 111: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/111.jpg)
Further Examples Epistemic & Spatial
valid ∀φ fool φ ⊃ bob φ,
valid fool (λW (ec spain france)),
valid bob (λW (tpp catalunya spain)),
valid bob (λW (ntpp paris france))
⊢HOL20.4s valid bob (λW ((dc catalunya paris) ∧ (dc spain paris)))
6⊢HOL39.7s valid fool (λW ((dc catalunya paris) ∧ (dc spain paris)))
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 38
![Page 112: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/112.jpg)
Further Examples Epistemic & Spatial
valid ∀φ fool φ ⊃ bob φ,
valid fool (λW (ec spain france)),
valid bob (λW (tpp catalunya spain)),
valid bob (λW (ntpp paris france))
⊢HOL20.4s valid bob (λW ((dc catalunya paris) ∧ (dc spain paris)))
6⊢HOL39.7s valid fool (λW ((dc catalunya paris) ∧ (dc spain paris)))
Key idea is “Lifting” of RCC propositions to modal predicates:
(tpp catalunya spain)︸ ︷︷ ︸
type o
−→ (λW (tpp catalunya spain))︸ ︷︷ ︸
type ιo
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 38
![Page 113: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/113.jpg)
Automation of Meta-Properties of Logics in HOL
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 39
![Page 114: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/114.jpg)
Automation of Meta-Properties of Logics in HOL: Correspondence
Correspondences between properties of accessibility relations like
symmetric = λR ∀S ,T R S T ⇒ R T S
serial = λR ∀S ∃T R S T
and corresponding axioms
∀R symmetricR ⇐
⇒ valid ∀pφ φ ⊃ R R φ (B)
∀R serial R ⇐
⇒ valid ∀pφ R φ ⊃ R φ (D)
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 40
![Page 115: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/115.jpg)
Automation of Meta-Properties of Logics in HOL: Correspondence
Correspondences between properties of accessibility relations like
symmetric = λR ∀S ,T R S T ⇒ R T S
serial = λR ∀S ∃T R S T
and corresponding axioms
∀R symmetricR0.0s⇐0.0s⇒ valid ∀pφ φ ⊃ R R φ (B)
∀R serial R0.0s⇐0.0s⇒ valid ∀pφ R φ ⊃ R φ (D)
Such proofs — including axioms D, M, 4, B, 5 — can be automated withLEO-II in no-time!
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 40
![Page 116: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/116.jpg)
Automation of Meta-Properties of Logics in HOL: Modal Cube
K KB
M B = MB
S4 S5 = M5 ≡ MB5 ≡ M4B5
≡ M45 ≡ M4B ≡ D4B
≡ D4B5 ≡ DB5
K4 KB5 ≡ K4B5 ≡ K4B
D
D4
K45
D45
DB
K5
D5
K
M
4
5
B
modal cube reproduced from [?]
[J. Garson, Modal Logic, SEP 2009]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 41
![Page 117: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/117.jpg)
Automation of Meta-Properties of Logics in HOL: M5⇔ D4B
∀R
valid ∀pφ R φ ⊃ φ∧ valid ∀pφ R φ ⊃ R R φ
M5
⇔
valid ∀pφ R φ ⊃ R φ∧ valid ∀pφ R φ ⊃ R R φ∧ valid ∀pφ φ ⊃ R R φ
D4B
[Benzmüller, Festschrift Walther, 2010]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 42
![Page 118: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/118.jpg)
Automation of Meta-Properties of Logics in HOL: M5⇔ D4B
∀R
valid ∀pφ R φ ⊃ φ∧ valid ∀pφ R φ ⊃ R R φ
M5
⇔
serial R
∧ valid ∀pφ R φ ⊃ R R φ∧ symmetric R
D4B
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 42
![Page 119: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/119.jpg)
Automation of Meta-Properties of Logics in HOL: M5⇔ D4B
∀R
reflexive R
∧ euclidean R
M5
⇔
serial R
∧ transitive R
∧ symmetric R
D4B
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 42
![Page 120: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/120.jpg)
Automation of Meta-Properties of Logics in HOL: M5⇔ D4B
∀R
reflexive R
∧ euclidean R
M5
0.1s⇔
serial R
∧ transitive R
∧ symmetric R
D4B
Proof with LEO-II in 0.1s[Benzmüller, Festschrift Walther, 2010]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 42
![Page 121: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/121.jpg)
Automation of Meta-Properties of Logics in HOL: M5⇔ D4B
∀R
reflexive R
∧ euclidean R
M5
⇔
serial R
∧ transitive R
∧ symmetric R
D4B
[Benzmüller, Festschrift Walther, 2010]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 42
![Page 122: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/122.jpg)
Automation of Meta-Properties of Logics in HOL: Modal Cube
K KB
M B = MB
S4 S5 = M5.1
≡ MB5.2
≡ M4B5.2
≡ M45.1
≡ M4B.1
≡ D4B.2
≡ D4B5.1
≡ DB5
K4 KB5 .2
≡ K4B5.1
≡ K4B
D
D4
K45
D45
DB
K5
D5
.4
.6
3.1
.4
14.3.7
1.6
1.6 .4
.4
.7
3
.4
3.1
.4
4
.5
.3 .6
.1
.1.1
.3
.3
.3
.7
fastest results by:
LEO-II (prover)
Satallax (prover)
TPS (prover)
Satallax (mod.find.)
IsabelleN (mod.find.)
IsabelleM (mod.find.)
∑< 40sec.
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 43
![Page 123: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/123.jpg)
Meta-Properties of Logics in HOL: Modal Cube
Automation of meta-level properties [Benzmüller, Festschrift Walther, 2010]
Correspondences between axioms and semantic propertiesvalid ∀φ r φ ⊃ r r φ (axiom 4)⇔ (transitive r)
Dependence/independence of axiomsbase modal logic K 6|= axiom 4?
Consistency of logics and logic combinationsIs logic S4 (K+M+4) consistent?
Inclusion/non-inclusion relations between logicsIs logic K45 (K+M+5) included in logic S4 (K+M+4)? Why not?
Running experiments (thousands of problems): exploration of
Modal Logics with Geoff Sutcliffe
Conditional Logics with Valerio Genovese, Dov Gabbay
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 44
![Page 124: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/124.jpg)
Automation of Meta-Properties of Logics in HOL: Segerberg
[Segerberg, 1973]
[Segerberg, 1973] discusses a 2-dimensional logic providing two S5modalities a and b.He adds further axioms stating that these modalities are commutativeand orthogonal.It actually turns out that orthogonality is already implied in thiscontext.
reflexive a, transitive a, euclid. a,
reflexive b, transitive b, euclid. b,
valid ∀φ a b φ ⇔ b a φ
⊢HOL
valid ∀φ, ψ a (a φ ∨b ψ) ⊃ (a φ ∨a ψ)
∧ valid ∀φ, ψ b (a φ ∨b ψ) ⊃ (b φ ∨b ψ)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 45
![Page 125: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/125.jpg)
Automation of Meta-Properties of Logics in HOL: Segerberg
[Segerberg, 1973]
[Segerberg, 1973] discusses a 2-dimensional logic providing two S5modalities a and b.He adds further axioms stating that these modalities are commutativeand orthogonal.It actually turns out that orthogonality is already implied in thiscontext.
reflexive a, transitive a, euclid. a,
reflexive b, transitive b, euclid. b,
valid ∀φ a b φ ⇔ b a φ
⊢HOL
valid ∀φ, ψ a (a φ ∨b ψ) ⊃ (a φ ∨a ψ)
∧ valid ∀φ, ψ b (a φ ∨b ψ) ⊃ (b φ ∨b ψ)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 45
![Page 126: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/126.jpg)
Automation of Meta-Properties of Logics in HOL: Segerberg
[Segerberg, 1973]
[Segerberg, 1973] discusses a 2-dimensional logic providing two S5modalities a and b.He adds further axioms stating that these modalities are commutativeand orthogonal.It actually turns out that orthogonality is already implied in thiscontext.
reflexive a, transitive a, euclid. a,
reflexive b, transitive b, euclid. b,
valid ∀φ a b φ ⇔ b a φ
⊢HOL
valid ∀φ, ψ a (a φ ∨b ψ) ⊃ (a φ ∨a ψ)
∧ valid ∀φ, ψ b (a φ ∨b ψ) ⊃ (b φ ∨b ψ)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 45
![Page 127: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/127.jpg)
Automation of Meta-Properties of Logics in HOL: Segerberg
[Segerberg, 1973]
[Segerberg, 1973] discusses a 2-dimensional logic providing two S5modalities a and b.He adds further axioms stating that these modalities are commutativeand orthogonal.It actually turns out that orthogonality is already implied in thiscontext.
reflexive a, transitive a, euclid. a,
reflexive b, transitive b, euclid. b,
valid ∀φ a b φ ⇔ b a φ
⊢HOL proof by LEO-II in 0.2s
valid ∀φ, ψ a (a φ ∨b ψ) ⊃ (a φ ∨a ψ)
∧ valid ∀φ, ψ b (a φ ∨b ψ) ⊃ (b φ ∨b ψ)
[Benzmüller, AMAI, 2011]C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 45
![Page 128: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/128.jpg)
Many experiments can be foudn in my recent papers
Essential: TPTP infrastructure for HOL (tptp.org) (with G. Sutcliffe)
project result of: EU FP7 IIF grant THFTPTP
standardized THF syntax for HOL (& more)
problem library
prover competition
online access ≥ 6 ATPs/model finders
tools for proof verification, . . .
www.tptp.org −→ PUZ087ˆ1/2.p (Wise Men Puzzle)
[SutcliffeBenzmüller, Journal of Formalized Reasoning, 2010]
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 46
![Page 129: Automating Expressive Non-classical Logics and their …page.mi.fu-berlin.de/cbenzmueller/papers/2011_Potsdam.pdf · Automating Expressive Non-classical Logics and their Combinations](https://reader033.vdocument.in/reader033/viewer/2022060908/60a25e7ed3d0e02bbd5b52a9/html5/thumbnails/129.jpg)
Conclusion
Core Questions:
1 Classical Higher Order Logic (HOL) as Universal Logic?
2 HOL Provers & Model Finders as Generic Reasoning Tools?
3 Combinations with Specialist Reasoners (if available)?
(1)&(2) are interesting and relevant: Evidence given in talk!?
(3) not further discussed: – ongoing and future work
My vision is an automated (& interactive) generic logic enginewith HOL theorem provers and model finders as backbone,and with integrated, more effective specialist reasoners (ifavailable) as collaborating agents.
Don’t forget: There are many reasons for the automation of HOL!
C. Benzmüller Automating Expressive Non-classical Logics and their Combinations in HOL 47