28
Omer Bar-Ilan Oded Fuhrmann Shlomo Hoory Ohad Shacham Ofer Strichman

BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

������������� ������������� ����������

Omer Bar-Ilan Oded FuhrmannShlomo Hoory Ohad Shacham

Ofer Strichman��������

Page 2: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����� ����

� Resolution:

� Modern SAT solvers are implicit resolution engines� Learn new clauses through resolution.� Upon request, they produce a resolution proof.

Page 3: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

�������������� ����������

� Extraction of unsatisfiable core� The subset of original clauses that were used in the proof

� Computing Interpolants� For unbounded SAT-based model checking

� Incremental satisfiability� Which learned clauses can be reused in the next instance

Page 4: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

������������������

� Many techniques for shrinking the proof / core� Minimum core: �2-complete� Minimal core: [B03,H05,LM04,OMASM04,..]� Small core: [ZM03, GKS06] � All exponential� Most popular: run-till-fix

� Smaller proofs � shorter verification time � A good criterion:

By how much can you shrink the core in the first T sec?

Page 5: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��������������������������

Linear-time Reductions of Resolution Proofs

� (linear in the size of the proof graph)

� We propose two techniques:

1. Recycle – units

2. Recycle – pivots

Page 6: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����!���� ����"�����������

� When learning (resolving) a new clause in SAT, � The resolving clauses are not satisfied� Hence, the resolution-variable is unassigned� What if we learn it later on ?

� �� �� �

����

Page 7: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����!���� ����"���!����

# � $%

$ #% �$

#%

� & � �&

#%

Page 8: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����!���� ����"���!����

# � $%

$ #% �$

#%

� & � �&

#%

Page 9: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����!���� ����

#

# �$

#%

� & � �&

#%

#

#

Page 10: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

����!���� ����

#

#

� & � �&

� Reduced proof by 4 clauses� Reduced core by 1 clause

Page 11: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

����!���� ����"���������!����

#

$ #% �$

#%

� & � �&

'!����������������������������

�!�������������

Page 12: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

����!���� ����"���������!����

� Solution: � mark antecedents of units� apply only to marked nodes

#

$ #% �$

#%

� & � �&

� $%

#%

Page 13: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

����!���� ����"���������!����

� A little tricky to make efficient. � The graph changes all the time.� Inefficient to update antecedents relations.

� Strategy� Maintain a projection of the graph to units.

Page 14: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

����!���� ����"�������� ���������

���

�����

Page 15: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"()����*����+

#&%,

$ ,

-1 -2 51 3 4

1 2 3 -2 4

-2 3 4 5

Page 16: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"()����*����+

#&%,

$ ,

-1 -2 51 3 4

1 2 3 -2 4

-$.-�$.

-$/ .-$/� .

-$/� /�$. -$/� .

-2 4

-2 3 4 5-2 4

4 6

Page 17: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"()����*����+

$ , -2 4

4 6

��� ���������!& ��� ������ ��������!$ ��� ���

Page 18: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"012�

� Resolution graphs are DAGs� So, a node is on more than one path to the empty clause

3 4 5 6

$ ,

-1 -2 51 3 4

1 2 3 -2 4

-2 3 4 5

Page 19: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

$����!����������"012�

� Resolution graphs are DAGs� So, a node is on more than one path to the empty clause

$ ,

-1 -2 5

1 2 3 -2 4

-2 4

-2 4

4 6

Page 20: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

$����!����������"012�

$ ,

-1 -2 5

1 2 3 -2 4

1 3 4

-2 3 4 5

3 4 5 6

Page 21: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"012�

$ ,

-1 -2 5

1 2 3 -2 4

1 3 4

-2 3 4 5

3 4 5 6

0���1 �������' �

0���������������������� ����3*4(4���454+

1

'

��

������6�������� ��������������

Page 22: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"012�

� Our current implementation:� Stop propagating information across nodes with more than

one child.

#&%,

$ ,

-1 -2 51 3 4

1 2 3 -2 4

-$.-�$.

-$/ .-$/� .

-$/� /�$. -$/� .

-2 3 4 5

Page 23: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!����������"��� �������� ����

� Regular resolution (Tseitin 1970): no pivot is used twice along a path.

� Computationally weaker than general resolution� There are formulas in which regular proof >> general proof� Because sometimes this forces a tree resolution

� We make the graph regular as long as it does not require splitting nodes

Page 24: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

()��������"7������8�

� 67 unsat instances from the public IBM benchmarks that took run-till-fix more than 10 sec.

������

Page 25: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

()��������"��������8�

� 67 unsat instances from the public IBM benchmarks that took run-till-fix more than 10 sec.

���

Page 26: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

9 ��!

� Linear reductions are less effective that exponential ones� ...but worth it in the realm of short time outs.

� Double-pivot reduces proof size by 12% in no time. � In use internally in IBM.

� Left to check: � Measure influence on interpolant-based prover.� Check combination with other minimization techniques.� Try to make efficient for incremental satisfiability.

Page 27: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

91��������� ����������

� Resolution is sound and complete for CNF formulas� There exists a decision procedure that deduces the empty

clause if and only if the input formula is unsatisfiable.

� Modern SAT solvers are implicit resolution engines� Learn new clauses through resolution.� Upon request, they produce a resolution proof.

Page 28: BarilanFuhrmannHooryShachamStrichman 39 · Title: Microsoft PowerPoint - BarilanFuhrmannHooryShachamStrichman_39.ppt Author: hanac Created Date: 11/12/2008 21:28:25

��

$����!���������"�����!

� A restriction on general resolution: Regular resolution� no pivot is used twice along a path.

#

$ -2 3

-2 4 3 -4

2 3 -2 -4

:����� ���

$�� ��������