CARIBOO
An Induction Based Proof Tool for Termination with Strategies
- O. Fissore, I. Gnaedig, H. Kirchner
PROTHEO Project
Nancy-Saarbruecken Workshop on Logic, Proofs and Programs June 17–18, 2004
1
C A RIB OO An Induction Based Proof Tool for Termination with - - PowerPoint PPT Presentation
C A RIB OO An Induction Based Proof Tool for Termination with Strategies O. Fissore, I. Gnaedig, H. Kirchner PROTHEO Project Nancy-Saarbruecken Workshop on Logic, Proofs and Programs June 1718, 2004 1 Overview 1. Introduction: Motivations
Nancy-Saarbruecken Workshop on Logic, Proofs and Programs June 17–18, 2004
1
2
Goal: to provide programmers with adapted and accessible tools for confluence, sufficient completeness, termination, . . . For this: finer proof techniques and algorithms than those existing:
strategies, . . . And: to make them easily accessible to non specialists:
3
The universal termination problem: a lot of techniques
Path orderings, polynomial interpretations...
Semantic labelling, dependency pairs... Rule based languages: one needs more specific tools
4
5
⇒ there is no infinite rewrite chain starting from t
⇒ t terminates)
6
f(0, 1, x) → f(x, x, x) g(x, y) → x g(x, y) → y f(t, u, v)
t↓=0 u↓=1
g(t, u)
u↓
7
abstraction (simulating normalization) applying the induction hypothesis on the direct subterms g(t1, . . . , tm)
if tref ≻ t1, . . . , tm
(tref > ti) stored in C abstraction constraints (ti↓= Xi) stored in A
8
narrowing (simulating reduction) top narrowing in all possible ways in one step ({g(X1, . . . , Xm)}, A, C)
1}, σ1A, C)
. . . ({t′
l}, σlA, C)
if g(X1, . . . , Xm) ǫ
σi t′ i and σi compatible with A
9
t
a normal form
StopN
u = f(u1, . . . , un)
t≻u1,...,un
t≻v
branch cut by induction
Stop . . . . . .
11
– innermost strategy – outermost strategy – local strategies
12
specification file signature variables TRS
inference rules + strategies
delegated
features user’s answers
(display) proof options rewriting strategy interaction level
for the specification file
Strategies
Abstract Narrow StopA StopN Stop
Integrated features Inference rules
embedding ordering usable rules narrowing unsatisfiability of A
termination property of a term satisfiability of A
Delegated features
ELAN strategy operators
14
Related work: the dependency pair method [Arts & Giesl 1996, 2000]: – no other strategies
Related work: context-sensitive rewriting [Lucas 1996, 2001, 2002, Zantema 1997, Giesl & Middeldorp 1999]
– also studied for functional languages [Panitz & Schmidt-Schauss 1997] – on-demand strategy annotations [Alpuente, Escobar, Gramlich & Lucas 2002] – lazy rewriting inspired by graph rewriting with labels [Lucas 2002]
15
16
– To other rewriting strategies (lazy, needed reductions, . . . ) – To equational theories (AC) – To conditional rewriting – To the caracterisation of terminating subsets – To a proof of non-termination
– Connection with other proof tools – Automatic criterion for (un)satisfiability of constraints – Deduction of good strategies
17