SUPERPOSITION FOR LAMBDA-FREE HIGHER-ORDER LOGIC Motivation: - - PowerPoint PPT Presentation

superposition for lambda free higher order logic
SMART_READER_LITE
LIVE PREVIEW

SUPERPOSITION FOR LAMBDA-FREE HIGHER-ORDER LOGIC Motivation: - - PowerPoint PPT Presentation

1 ALEXANDER BENTKAMP JASMIN BLANCHETTE SIMON CRUANES UWE WALDMANN SUPERPOSITION FOR LAMBDA-FREE HIGHER-ORDER LOGIC Motivation: Sledgehammer 2 Proof goal from Isabelle Fact selection Translation to FOL Superposition provers


slide-1
SLIDE 1

SUPERPOSITION FOR 
 LAMBDA-FREE HIGHER-ORDER LOGIC

ALEXANDER BENTKAMP JASMIN BLANCHETTE SIMON CRUANES UWE WALDMANN

1

slide-2
SLIDE 2

Motivation: Sledgehammer

2

Fact selection Translation to FOL Superposition provers Proof reconstruction Proof goal 
 from Isabelle Proof text
 in Isabelle SMT provers

slide-3
SLIDE 3

Motivation: Sledgehammer

2

Fact selection Translation to FOL Superposition provers Proof reconstruction Proof goal 
 from Isabelle Proof text
 in Isabelle LEO-II/III Satallax SMT provers

slide-4
SLIDE 4

Motivation: Sledgehammer

2

Fact selection Translation to FOL Superposition provers Proof reconstruction Proof goal 
 from Isabelle Proof text
 in Isabelle LEO-II/III Satallax A complete HO superposition prover SMT provers

slide-5
SLIDE 5

DESIGN PRINCIPLE: BE GRACEFUL

HO superposition on first-order problems should coincide with FO superposition

3

slide-6
SLIDE 6

FOL λ-free HOL / applicative FOL predicate-free HOL HOL

Our way to higher-order superposition

partial application 
 & applied variables λ-expressions /
 comprehension 
 axioms boolean formulas 
 nested in terms

4

slide-7
SLIDE 7

Translation to FOL: applicative encoding

f (H f) app(f, app(H, f)) is translated to λ-free HOL FOL

5

slide-8
SLIDE 8

Translation to FOL: applicative encoding

NOT GRACEFUL!

f (H f) app(f, app(H, f)) is translated to λ-free HOL FOL

5

slide-9
SLIDE 9

Term orders for λ-free HOL

6

Compatibility with arguments?
 t > s ⇒ t u > s u

slide-10
SLIDE 10

Term orders for λ-free HOL

6

Compatibility with arguments?
 t > s ⇒ t u > s u Yes:
 Completeness proof works as in FOL

KBO without argument 
 coefficients

slide-11
SLIDE 11

Term orders for λ-free HOL

6

Compatibility with arguments?
 t > s ⇒ t u > s u No:
 This is the topic

  • f my talk

LPO KBO with argument 
 coefficients

Yes:
 Completeness proof works as in FOL

KBO without argument 
 coefficients

slide-12
SLIDE 12

The superposition rule

7

C ∨ (¬) s[u] = s’ (D ∨ C ∨ (¬) s[t’] = s’)σ σ = mgu(t,u) D ∨ t = t’

+ order conditions

slide-13
SLIDE 13

Superposition only into argument subterms

f a (h b c) f a (h b c)

Prefix subterms: Argument subterms:

8

slide-14
SLIDE 14

Superposition only into argument subterms

f a (h b c) f a (h b c)

Prefix subterms: Argument subterms:

g = f g a ≠ b f a ≠ b SUP

8

slide-15
SLIDE 15

Argument congruence rule C ∨ t = s C ∨ t X = s X ARGCONG

9

slide-16
SLIDE 16

Argument congruence rule C ∨ t = s C ∨ t X = s X ARGCONG g = f g a ≠ b f a ≠ b SUP g X = f X ARGCONG

Example:

9

slide-17
SLIDE 17

Argument congruence rule C ∨ t = s C ∨ t X = s X ARGCONG

BUT ISN’T THIS RULE ALWAYS REDUNDANT?

10

slide-18
SLIDE 18

Floor encoding

11

Encode ground λ-free HOL terms into FOL:

⎣f a⎦= f1(a0) ⎣f⎦= f0

Redundancy is defined with respect to this encoding.

slide-19
SLIDE 19

Floor encoding

12

Example: g = f g X = f X g0 = f0 g1 a0 = f1 a0 ARGCONG

Not redundant!

slide-20
SLIDE 20

What changes in the proof?

13

Refutational completeness: 
 Let N be saturated up to redundancy, ⊥∉ N. 
 Then N has a model.

slide-21
SLIDE 21

What changes in the proof?

13

Refutational completeness: 
 Let N be saturated up to redundancy, ⊥∉ N. 
 Then N has a model.

N G(N) model of G(N) model of N

model construction

Proof sketch for FOL:

slide-22
SLIDE 22

What changes in the proof?

14

Refutational completeness: 
 Let N be saturated up to redundancy, ⊥∉ N. 
 Then N has a model.

N G(N) model of G(N) model of N ⎣G(N)⎦ model of⎣G(N)⎦

model construction

Proof sketch for λ-free HOL:

slide-23
SLIDE 23

Issue: superposition into variables

15

C = … X … X a …

Given g > f, it is unclear whether X := g or X:= f 
 will yield the smaller clause

Example:

slide-24
SLIDE 24

Issue: superposition into variables

15

C = … X … X a …

Given g > f, it is unclear whether X := g or X:= f 
 will yield the smaller clause Solution #1: 
 purifying calculus … X u̅ … X v̅ … … X u̅ … Y v̅ … ∨ X ≠ Y

is purified to if u̅ ≠ v̅

Example:

slide-25
SLIDE 25

Issue: superposition into variables

15

C = … X … X a …

Given g > f, it is unclear whether X := g or X:= f 
 will yield the smaller clause Solution #1: 
 purifying calculus … X u̅ … X v̅ … … X u̅ … Y v̅ … ∨ X ≠ Y

is purified to if u̅ ≠ v̅

Solution #2: 
 nonpurifying calculus Perform superpositions at variables 
 if the order situation is unclear

Example:

slide-26
SLIDE 26

Evaluation of our prototype

16

TPTP benchmarks Judgment Day 
 λ-free HOL benchmarks

# unsat

FO HO 32 facts 512 facts

first-order mode

181

  • applicative encoding

151 677 873 843

purifying calculus

180 647 851 908

nonpurifying calculus

179 669 866 889

using the Zipperposition theorem prover

slide-27
SLIDE 27

Evaluation of our prototype

16

TPTP benchmarks Judgment Day 
 λ-free HOL benchmarks

# unsat

FO HO 32 facts 512 facts

first-order mode

181

  • applicative encoding

151 677 873 843

purifying calculus

180 647 851 908

nonpurifying calculus

179 669 866 889

using the Zipperposition theorem prover

slide-28
SLIDE 28

Evaluation of our prototype

16

TPTP benchmarks Judgment Day 
 λ-free HOL benchmarks

# unsat

FO HO 32 facts 512 facts

first-order mode

181

  • applicative encoding

151 677 873 843

purifying calculus

180 647 851 908

nonpurifying calculus

179 669 866 889

using the Zipperposition theorem prover

slide-29
SLIDE 29

Evaluation of our prototype

16

TPTP benchmarks Judgment Day 
 λ-free HOL benchmarks

# unsat

FO HO 32 facts 512 facts

first-order mode

181

  • applicative encoding

151 677 873 843

purifying calculus

180 647 851 908

nonpurifying calculus

179 669 866 889

using the Zipperposition theorem prover

slide-30
SLIDE 30

Evaluation of our prototype

16

TPTP benchmarks Judgment Day 
 λ-free HOL benchmarks

# unsat

FO HO 32 facts 512 facts

first-order mode

181

  • applicative encoding

151 677 873 843

purifying calculus

180 647 851 908

nonpurifying calculus

179 669 866 889

using the Zipperposition theorem prover

slide-31
SLIDE 31

In summary

  • We developed refutationally complete calculi 


for λ-free HOL


  • They reduce the gap between HO proof assistants 


and superposition provers


  • They are promising as a stepping stone towards a 


HO superposition calculus

17