Resolution proof reduction via local context rewriting

In proof theory, an area of mathematical logic, resolution proof reduction via local context rewriting is a technique for resolution proof reduction via local context rewriting.[1] This proof compression method was presented as an algorithm named ReduceAndReconstruct, that operates as a post-processing of resolution proofs.

ReduceAndReconstruct is based on a set of local proof rewriting rules that transform a subproof into an equivalent or stronger one.[1] Each rule is defined to match a specific context.

A context[1] involves two pivots (p and q) and five clauses (\alpha, \beta, \gamma, \delta and \eta). The structure of a context is shown in (1). Note that this implies that p is contained in \beta and \gamma (with opposite polarity) and q is contained in \delta and \alpha (also with opposite polarity).

\cfrac{\cfrac{\beta \qquad \gamma}{\delta} \, p \qquad \alpha}{\eta} \, q

 

 

 

 

(1)

The table below shows the rewriting rules proposed by Simone et al..[1] The idea of the algorithm is to reduce proof size by opportunistically applying these rules.

Context Rule
Case A1: s \notin \alpha, t \in \gamma

\cfrac{\cfrac{stC \qquad \overline{s} tD}{tCD} \, \operatorname{var}(s) \qquad \overline{t} E}{CDE} \, \operatorname{var}(t) \Rightarrow 
\cfrac{\cfrac{stC \qquad \overline{t} E}{sCE}\, \operatorname{var}(t) \qquad \cfrac{\overline{t} E \qquad \overline{s} tD}{\overline{s}DE}\, \operatorname{var}(t)}{CDE} \, \operatorname{var}(s)

Case A2: s \notin \alpha, t \notin \gamma

\cfrac{\cfrac{stC \qquad \overline{s} D}{tCD} \, \operatorname{var}(s) \qquad \overline{t} E}{CDE} \, \operatorname{var}(t) \Rightarrow 
\cfrac{\cfrac{stC \qquad \overline{t} E}{sCE} \, \operatorname{var}(t) \qquad \overline{s} D}{CDE} \, \operatorname{var}(s)

Case B1: s \in \alpha, t \in \gamma

\cfrac{\cfrac{stC \qquad \overline{s}tD}{tCD} \, \operatorname{var}(s) \qquad s \overline{t} E}{sCDE} \, \operatorname{var}(t) \Rightarrow
\cfrac{stC \qquad s \overline{t} E}{sCE}\, \operatorname{var}(t)

Case B2: s \in \alpha, t \notin \gamma

\cfrac{\cfrac{stC \qquad \overline{s}D}{tDC} \, \operatorname{var}(s) \qquad s \overline{t} E}{sCDE} \, \operatorname{var}(t) \Rightarrow
\cfrac{\cfrac{stC \qquad s \overline{t} E}{sCE} \, \operatorname{var}(t) \qquad \overline{s} D}{CDE} \, \operatorname{var}(s)

Case B3: \overline{s} \in \alpha, t \notin \gamma

\cfrac{\cfrac{stC \qquad \overline{s}D}{tDC} \, \operatorname{var}(s) \qquad \overline{s} \overline{t} E}{\overline{s} CDE} \, \operatorname{var}(t) \Rightarrow
\overline{s} D

Case A1'

\cfrac{\cfrac{stC \qquad \overline{s} tD}{tCD} \, \operatorname{var}(s) \qquad \overline{t} E}{CDE} \, \operatorname{var}(t) \Leftarrow 
\cfrac{\cfrac{stC \qquad \overline{t} E}{sCE}\, \operatorname{var}(t) \qquad \cfrac{\overline{t} E \qquad \overline{s} tD}{\overline{s}DE}\, \operatorname{var}(t)}{CDE} \, \operatorname{var}(s)

Case B2': t \notin \gamma

\cfrac{\cfrac{stC \qquad \overline{s} D}{tCD} \, \operatorname{var}(s) \qquad s \overline{t} E}{sCDE} \, \operatorname{var}(t) \Rightarrow 
\cfrac{stC \qquad s \overline{t} E}{sCE}\, \operatorname{var}(t)

The first five rules were introduced in an earlier paper.[2] In addition:

The following example[1] shows a situation where the proof becomes illegal after the application of B2' rule:


\cfrac{\cfrac{\cfrac{\cfrac{\mathbf{pq} \qquad \mathbf{\overline{p} o}}{\mathbf{qo}}\, p \qquad \mathbf{p \overline{q}}}{\mathbf{po}}\, q \qquad \cfrac{qr \qquad \overline{p} \overline{q}}{\overline{p} r}\, q}{or}\, p \qquad \overline{o} s}{rs}\, o

 

 

 

 

(2)

Applying rule B2' to the highlighted context:


\cfrac{\cfrac{\cfrac{\mathbf{pq} \qquad \mathbf{p \overline{q}}}{\mathbf{p}}\, q \qquad \cfrac{qr \qquad \overline{p} \overline{q}}{\overline{p} r}\, q}{or}\, p \qquad \overline{o} s}{rs}\, o

 

 

 

 

(3)

The proof is now illegal because the literal o is missing from the transformed root clause. To reconstruct the proof, one can remove o together with the last resolution step (that is now redundant). The final result is the following legal (and stronger) proof:


\cfrac{\cfrac{pq \qquad p \overline{q}}{p}\, q \qquad \cfrac{qr \qquad \overline{p} \overline{q}}{\overline{p} r}\, q}{r}\, p

 

 

 

 

(4)

A further reduction of this proof by applying rule A2 to create a new opportunity to apply rule B2'.[1]

There are usually a huge number of contexts where rule A2 may be applied, so an exhaustive approach is not feasible in general. One proposal[1] is to execute ReduceAndReconstruct as a loop with two termination criteria: number of iterations and a timeout (what is reached first). The pseudocode[1] below shows this.

 1  function ReduceAndReconstruct(\pi /* a proof */, timelimit, maxIterations):
 2      for i = 1 to maxIterations do
 3          ReduceAndReconstructLoop();
 4          if time > timelimit then        // timeout
 5              break;
 6      end for
 7  end function

ReduceAndReconstruct uses the function ReduceAndReconstructLoop, which is specified below. The first part of the algorithm does a topological ordering of the resolution graph (considering that edges goes from antecedentes to resolvents). This is done to ensure that each node is visited after its antecedents (this way, broken resolution steps are always found and fixed).[1]

 1  function ReduceAndReconstructLoop(\pi /* a proof */):
 2      TS = TopologicalSorting(\pi);
 3      for each node n in TS
 4          if n is not a leaf
 5              if n_\text{piv} \in n_\text{clause}^\text{left} and \overline{n_\text{piv}} \in n_\text{clause}^\text{right} then
 6                  n_\text{clause} = Resolution(n_\text{clause}^\text{left}, n_\text{clause}^\text{right});
 7                  Determine left context of n, if any;
 8                  Determine right context of n, if any;
 9                  Heuristically choose one context (if any) and apply the corresponding rule;
10              else if n_\text{piv} \notin n_\text{clause}^\text{left} and \overline{n_\text{piv}} \in n_\text{clause}^\text{right} then
11                  Substitute n with n^\text{left};
12              else if n_\text{piv} \in n_\text{clause}^\text{left} and \overline{n_\text{piv}} \notin n_\text{clause}^\text{right} then
13                  Substitute n with n^\text{right};
14              else if n_\text{piv} \notin n_\text{clause}^\text{left} and \overline{n_\text{piv}} \notin n_\text{clause}^\text{right} then
15                  Heuristically choose an antecedent n^\text{left} or n^\text{right};
16                  Substitute n with n^\text{left} or n^\text{right};
17      end for
18  end function

If the input proof is not a tree (in general, resolution graphs are directed acyclic graphs), then the clause \delta of a context may be involved in more than one resolution step. In this case, to ensure that an application of a rewriting rule is not going to interfere with other resolution steps, a safe solution is to create a copy of the node represented by clause \delta.[1] This solution increases proof size and some caution is needed when doing this.

The heuristic for rule selection is important to achieve a good compression performance. Simone et al. [1] use the following order of preference for the rules (if applicable to the given context): B2 > B3 > { B2', B1 } > A1' > A2 (X > Y means that X is preferred over Y).

Experiments have shown that ReduceAndReconstruct alone has a worse compression/time ratio than the algorithm RecyclePivots.[3] However, while RecyclePivots can be applied only once to a proof, ReduceAndReconstruct may be applied multiple times to produce a better compression. An attempt to combine ReduceAndReconstruct and RecyclePivots algorithms has led to good results.[1]

Notes

  1. 1 2 3 4 5 6 7 8 9 10 11 12 Simone, S.F. ; Brutomesso, R. ; Sharygina, N. "An Efficient and Flexible Approach to Resolution Proof Reduction". 6th Haifa Verification Conference, 2010.
  2. Bruttomesso, R. ; Rollini, S. ; Sharygina, N.; Tsitovich, A. "Flexible Interpolation with Local Proof Transformations". The International Conference on Computer-Aided Design, 2010.
  3. Bar-Ilan, O. ; Fuhrmann, O. ; Hoory, S. ; Shacham, O. ; Strichman, O. "Linear-Time Reductions of Resolution Proofs". HVC, 2008.
This article is issued from Wikipedia - version of the Monday, November 03, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.