Superposition with Lambdas
Alexander Bentkamp Jasmin Blanchette Sophie Tourret Petar Vukmirović Uwe Waldmann
1
Superposition with Lambdas Alexander Bentkamp Jasmin Blanchette - - PowerPoint PPT Presentation
Superposition with Lambdas Alexander Bentkamp Jasmin Blanchette Sophie Tourret Petar Vukmirovi Uwe Waldmann 1 Motivation: Sledgehammer Proof goal from Isabelle Fact selection Translation to FOL A complete HO LEO-II/III
Alexander Bentkamp Jasmin Blanchette Sophie Tourret Petar Vukmirović Uwe Waldmann
1
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
2
FOL λ-free HOL / applicative FOL Boolean-free HOL HOL
3
4
Undecidability & no most general unifier Our approach: dovetailing Flex-flex pairs Huet’s preunification algorithm requires constrained clauses Our approach: Jensen & Pietrzykowski’s algorithm Future work: More efficient unification algorithms (complete or incomplete)
5
yields Superposition “half below” a variable?
6
add artificial context
Unifier of Y (f a) and X a : Y ↦ λu. Z a u u X ↦ λv. Z v (f v) (f a)
superpose This is a new inference rule: FluidSup
7
Then, by compatibility with contexts:
Then, by compatibility with contexts:
8
no prefix subterms not below applied variables not below λs
Superposition only at green subterms ArgCong, FluidSup, and the extensionality axiom access other subterms
9
X (diff X Y) ≠ Y (diff X Y) ∨ X = Y C ∨ s = t C ∨ (sσ) X̅ = (tσ) X̅
ArgCong
D ∨ t = t’ C ∨ [¬] s[u] = s’ (D ∨ C ∨ [¬] s[t’] = s’)σ
Sup σ∈CSU(t,u)
C ∨ s’ = t’ ∨ s = t (C ∨ t ≠ t’ ∨ s = t’)σ
EqFact σ∈CSU(s,s’)
C ∨ s ≠ t Cσ
EqRes σ∈CSU(s,t)
D ∨ t = t’ C ∨ [¬] s[u] = s’ (D ∨ C ∨ [¬] s[Z t’] = s’)σ
FluidSup σ∈CSU(Z t,u) Ext
All clauses are kept in β-normal η-short form.
10
175 350 525 700
λ-free TPTP Sledgehammer (256 facts) Sledgehammer (16 facts)
λfree-Zip λZip-full λZip-pragmatic
Comparison with λ-free Superposition
Number of solved problems
λfree-Zip (λ-lifted) λZip-full λZip-pragmatic λfree-Zip (λ-lifted) λZip-full λZip-pragmatic
11
175 350 525 700
Boolean-free TPTP Sledgehammer (256 facts) Sledgehammer (16 facts)
Leo-III Leo-III-meta Satallax Satallax-meta λZip-full λZip-pragmatic
Comparison with other higher-order provers
Number of solved problems
Leo-III Leo-III-meta Satallax Satallax-meta λZip-full λZip-pragmatic Leo-III Leo-III-meta Satallax Satallax-meta λZip-full λZip-pragmatic
12
Complete superposition calculus for Boolean-free HOL Promising experimental results for an incomplete variant
Many remaining challenges: First-class Boolean type More efficient unification More efficient treatment of extensionality More efficient alternatives to FluidSup Implementation in E
13