Logic-Independent Premise Selection for Automated Theorem Proving - - PowerPoint PPT Presentation

logic independent premise selection for automated theorem
SMART_READER_LITE
LIVE PREVIEW

Logic-Independent Premise Selection for Automated Theorem Proving - - PowerPoint PPT Presentation

29 March 2017 Logic-Independent Premise Selection | 1 FACULTY OF COMPUTER SCIENCE Logic-Independent Premise Selection for Automated Theorem Proving Eugen Kuksa AITP 2017 Obergurgl 29 March 2017 Logic-Independent Premise Selection | 2 FACULTY


slide-1
SLIDE 1

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 1

Logic-Independent Premise Selection for Automated Theorem Proving

Eugen Kuksa

AITP 2017 Obergurgl

slide-2
SLIDE 2

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 2

Outline

  • 1. Introduction
  • 2. Theoretical Foundation: Entailment Relations
  • 3. Case Study
  • 4. There’s More: Signatures and Logic Translations.
  • 5. Conclusion
slide-3
SLIDE 3

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 3

Introduction

slide-4
SLIDE 4

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 4

Automated Theorem Proving

  • A theorem proving problem consists of Axioms and a conjecture.
  • An automated theorem prover (ATP) runs an algorithm to find

a proof.

  • A typical ATP is efficient on small problems.
  • Large problems lead to combinatorial explosion.
  • ATP reach their time or memory limit.
  • Return with no result.
slide-5
SLIDE 5

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 5

Example

  • Suggested Upper Merged Ontology (SUMO)
  • Formalised in FOF and THF in the TPTP library
  • Problems with (tens of) thousands of axioms
  • Pick CSR119^3 (THF): ≈5000 Axioms
  • Higher-Order Prover Leo-II runs into a timeout (60 seconds)
slide-6
SLIDE 6

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 6

Solution: Premise Selection

  • Reduce the set of axioms for the proving task
  • Proving time decreases or proving even becomes possible at all
  • The SUMO example CSR119^3 passes in less than a second
  • The axiom set was reduced to 390 out of over 5000 axioms by

SInE

slide-7
SLIDE 7

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 7

Logic Dependence

Problem:

  • There are many premise selection algorithms
  • Implemented only for FOF or some higher order logics
  • . . . even though some are described logic-independently

Solution:

  • Lift the algorithms to logic-independence
  • Run them in an abstract notion of ‘logic’
  • Transfer results to the concrete logic
slide-8
SLIDE 8

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 8

Tool Support

Problem: Many provers operate on one logic/syntax only

  • FaCT, Pellet: Description logic with OWL
  • Darwin, E-Prover, Geo-III, SPASS, Vampire: First-order logic

with TPTP/FOF

  • Leo-II, Satallax, Isabelle: Higher-order logic with TPTP/THF
  • Isabelle/HOL’s own logic
  • . . .

Solution:

  • Lift the algorithms to logic-independence
  • Run them in an abstract notion of ‘logic’
  • Transfer results to the concrete logic
slide-9
SLIDE 9

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 9

Theoretical Foundation: Entailment Relations

slide-10
SLIDE 10

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 10

Entailment relation

An entailment relation with symbols (Sen, Sym ⊢, symbols) consists

  • f
  • A set of sentences Sen
  • A set of symbols Sym
  • A relation ⊢ ⊆ P(Sen) × Sen which is
  • reflexive (Axioms are theorems)
  • transitive (We may use lemmas)
  • monotonic (We may use premise selection)
  • A function symbols : Sen → P(Sym) giving the symbols that
  • ccur in a sentence
slide-11
SLIDE 11

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 11

Case Study

slide-12
SLIDE 12

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 12

Implementation: Ontohub

  • Web application: https://ontohub.org
  • Version controlled repository for
  • ntologies/specifications/theories
  • Version control (git)
  • Integrated editor for small files
  • Analyses theories
  • Has interfaces with ATPs
  • Back-end: Hets
slide-13
SLIDE 13

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 13

Implementation: Ontohub cont’d

  • Supports different logics
  • Propositional Logic
  • OWL
  • FOL / TPTP-FOF
  • FOL + Induction
  • CASL
  • Modal Logic
  • Common Logic
  • HOL / TPTP-THF
  • Isabelle/HOL
  • . . .
  • Brings tool support
  • FaCT, Pellet
  • CVC4, Darwin, E-Prover, Geo-III, SPASS, Vampire
  • Leo-II, Satallax, Isabelle
  • . . .
slide-14
SLIDE 14

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 14

Premise Selection: The Algorithm ‘SInE’

  • Developed by Kryštof Hoder
  • Fully automatic with a few user-defined parameters
  • Operates on syntax
  • Selects recursively the axioms that share a symbol with the

conjecture or an already selected axiom

  • The shared symbol that allows to select an axiom must hold

more conditions

  • Selection stops after n recursion steps
  • We implemented SInE in Ontohub
slide-15
SLIDE 15

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 15

Data Flow

slide-16
SLIDE 16

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 16

slide-17
SLIDE 17

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 17

slide-18
SLIDE 18

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 18

slide-19
SLIDE 19

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 19

slide-20
SLIDE 20

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 20

slide-21
SLIDE 21

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 21

slide-22
SLIDE 22

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 22

Experiments: Setup

We applied our implementation of SInE to

  • All 2078 problems of the MPTP2078 (FOF)
  • A subset (501 problems) of a formalisation into THF0 of the

Automath formalization of Landau’s ‘Grundlagen der Analysis’

slide-23
SLIDE 23

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 23

Results: FOF

slide-24
SLIDE 24

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 24

Results: THF0

slide-25
SLIDE 25

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 25

There’s More: Signatures and Logic Translations.

slide-26
SLIDE 26

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 26

Special handling of THF

Problem:

  • THF (among other logics) is typed
  • Symbols must be declared with a formula before their first use
  • Such ‘signature-defining delarations’ must not be removed

Solution:

  • Preserve the needed ‘signature-defining declarations’ after the

premise selection

slide-27
SLIDE 27

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 27

Theoretical Foundation: Entailment Systems

An entailment system with symbols (Sign, Sen, Sym, ⊢, symbols) consists of

  • a category Sign of signatures and signature morphisms
  • a functor Sen : Sign → Set giving the set of sentences over a

signature

  • a faithful functor Sym : Sign → Set giving the set of symbols of

a signature

  • for each Σ ∈ |Sign| a relation ⊢Σ ⊆ P(Sen(Σ)) × Sen(Σ) which
  • is reflexive, transitive, monotonic
  • and satisfies ⊢-translation: Given a signature morphism

σ : Σ1 → Σ2, we have Γ ⊢Σ1 ϕ ⇒ Sen(σ)(Γ) ⊢Σ2 Sen(σ)(ϕ)

  • a natural transformation symbols : Sen → P ◦ Sym giving the

symbols of a sentence

slide-28
SLIDE 28

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 28

Tool Support for Logics

Problem:

  • Some logics don’t have direct tool support, e.g. CASL, Common

Logic, modal logic

  • People need to formalise the theory in tool-supported logics
  • . . . or cannot use ATP (with premise selection)

Solution:

  • Run premise selection in the desired logic
  • Translate the modified theory to logic with tool support
  • Run the prover on the translation
slide-29
SLIDE 29

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 29

Theoretical Foundation: Entailment relation morphism

An entailment relation morphism α : (SenS, SymS, ⊢S, symbolsS) → (SenT , SymT , ⊢T , symbolsT ) is a function α : SenS → SenT such that for all Γ ⊆ SenS, ϕ ∈ SenS : Γ ⊢S ϕ implies α(Γ) ⊢T α(ϕ) α is called conservative if for all Γ ⊆ SenS, ϕ ∈ SenS : Γ ⊢S ϕ if and only if α(Γ) ⊢T α(ϕ)

slide-30
SLIDE 30

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 30

Theoretical Foundation: Theoroidal entailment relation morphism

A conservative theoroidal entailment relation morphism (α, ∆) contains

  • a function α : (SenS, SymS, ⊢S, symbolsS)

→ (SenT , SymT , ⊢T , symbolsT )

  • a base set of sentences ∆ ⊆ SenT

that hold for all Γ ⊆ SenS, ϕ ∈ SenS : Γ ⊢S ϕ if and only if ∆∪α(Γ) ⊢T α(ϕ)

slide-31
SLIDE 31

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 31

Hets

  • Evaluation component of Ontohub
  • Actually analyses theories
  • Translates theories
  • Interfaces with provers
slide-32
SLIDE 32

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 32

Data Flow

slide-33
SLIDE 33

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 33

Conclusion

slide-34
SLIDE 34

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 34

Conclusion and Future Work

Conclusion

  • Premise selection improves proving performance significantly
  • Entailment relation morphisms allow its use with different logics
  • And different reasoning tools
  • SInE in Ontohub is only a proof of concept

Future Work

  • Develop more premise selection algorithms and deploy them to

Ontohub

  • Learn from found proofs and disproofs (after premise selection)
  • Use modular structure (signature morphisms)
slide-35
SLIDE 35

FACULTY OF COMPUTER SCIENCE

29 March 2017 Logic-Independent Premise Selection | 35

Thank you for listening! Questions?