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 A complete HO


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 LEO-II/III Satallax A complete HO superposition prover SMT provers

slide-3
SLIDE 3

DESIGN PRINCIPLE: BE GRACEFUL

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

3

slide-4
SLIDE 4

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-5
SLIDE 5

Translation to FOL: applicative encoding

NOT GRACEFUL!

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

5

slide-6
SLIDE 6

Term orders for λ-free HOL

6

Compatibility with arguments?
 t > s ⇒ t u > s u No:
 This talk

LPO KBO with argument 
 coefficients

Yes:
 Petar’s talk

KBO without argument 
 coefficients

slide-7
SLIDE 7

The superposition rule

7

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

+ order conditions

slide-8
SLIDE 8

Superposition only at 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-9
SLIDE 9

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-10
SLIDE 10

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

BUT ISN’T THIS RULE ALWAYS REDUNDANT?

10

slide-11
SLIDE 11

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-12
SLIDE 12

Floor encoding

12

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

Not redundant!

slide-13
SLIDE 13

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-14
SLIDE 14

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-15
SLIDE 15

Issue: superposition at 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-16
SLIDE 16

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-17
SLIDE 17

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