• Aucun résultat trouvé

A universal prover

N/A
N/A
Protected

Academic year: 2022

Partager "A universal prover"

Copied!
10
0
0

Texte intégral

(1)

A universal prover

Patrick Th´evenon, PhD Student Universit´e de Savoie,Chamb´ery

Laboratoire de math´ematiques,LAMA

(2)

Introduction

• Aim : having a prover able to deal with – any logic given (Universal prover)

– Hints given to guide the proof

• Main features : – Functor

– Inverse resolution

– Clauses balanced by weights

(3)

The prover as a functor

module Prover : functor (Logic : Logic) ->

sig

Exception Prove fails

val prove : ( formula * int * constraints) list -> formula

-> unit

(* raises Prove fails when no proof is found *) end

To have a prover : – give a logic

– apply the functor to it.

(4)

Logic required

module type Logic = sig

type formula (form)

val elim all neg : form -> form . . .

type substitution (subs) type constraints (csts)

val unif : csts -> form -> csts -> form ->

int * subs * csts * form * form list val get rules : csts -> form -> bool ->

(string * int * subs * csts * form list ) list end

(5)

Architecture

C

Cdt

Increasing weight Seen

Already Clauses

Candidate

Clauses

Between clauses C and clause Cdt add new candidates All resolutions

(6)

Decomposition and resolution

Inverse resolution : a clause is a set of lite- rals, which are formulas that are not necessarily atomic.

Lazy decomposition : formulas are seen as black boxes, and decomposed only when a sub- formula can be unified with an other literal.

Decomposing formulas can be seen as ma- king resolution with rule clauses...

(7)

...

Example :

Let {F,Γ} be a clause with F = (A → B) From F ↔ (A → B) we obtain two clauses : {A,Γ} and {B,Γ}

It can be seen as resolutions with the following clauses on the literal F ≡ X1 → X2 :

{X1, X1 → X2} and {X2, X1 → X2}

→ Decomposing is making resolution with rule clauses.

→ get rules asks for each formula which rules can be applied.

(8)

The constraints

For each unification - applying rules or ma- king resolutions - constraints may be given and used.

Examples :

1. Skolemization : Decomposing ∃x.P(x), Make a clause with P(x), x a new variable with a constraint saying that x depends only on the free variables of P. This avoids the use of the choice axiom for higher order logic.

2. Contraction : Contracting C = {A, A0,Γ}, add a constraint A 6= A0 in C, to avoid possibly subsumption with clauses coming from {Aσ,Γσ}.

3. Intuitionistic logic ? 4. Linear logic ?

(9)

Dealing with Hints

H := A ∧ B H0 := A → C H1 := D

` C

By H0 and H trivial.

Hypotheses have a lighter weight when they are named.

H := ∀x.B(x) H0 := C(x0)

` ∃x.B(x) ∧ C(x)

By H with x = x0, by H0 trivial.

The hint x = x0 can be given as a constraint.

A unification that changes x into x0 has a ligh- ter weight.

(10)

Conclusion

A very young prover that

• needs great improvements but

• may offer a good solution for the DemoNat project

Références

Documents relatifs

Another example illustrates the complexity of the variables in question: the fact that young people having experienced their parents' process of divorce and lived with their

According to the literature of AP task in social media, the methods that build high level features based on relationships among groups of authors have been useful for boosting

Since the value of the LP relaxation is at least the size of the maximum matching, our algorithm also runs in time O ∗ (2.6181 k−m ) where k is the size of the minimum vertex cover

The sound palette is made up of a day long sound walk I made through the streets of the old section of Quebec City, excepts from my double CD anthology Enormouslessness of Cloud

The Forum was organized by Memorial University of Newfoundland, specifically by the Leslie Harris Centre of Regional Policy and Development (based on the St.

If entities representation makes possible to dynamically identify active, passive, and labile properties of entities, then entities representation becomes unified, and a simulation

La confé- rence Baveno VI recommande la pose d ’un TIPS précoce en cas de rupture de VCT chez les patients à haut risque de récidive (Child-Pugh B avec saignement actif au moment de

In preparing the Brief, the Conseil conducted a review of literature to trace the history of services offered by institutions in the education network, and collected various data