Decision Procedures in First Order Logic

Similar documents
Decision Procedures in First Order Logic

Decision Procedures for Equality Logic. Daniel Kroening and Ofer Strichman 1

NP-Completeness. Algorithms

Computability Theory

Faster parameterized algorithms for Minimum Fill-In

Faster parameterized algorithms for Minimum Fill-In

Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv

Polygon Triangulation. (slides partially by Daniel Vlasic )

The Resolution Algorithm

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 14: Combinatorial Problems as Linear Programs I. Instructor: Shaddin Dughmi

NP and computational intractability. Kleinberg and Tardos, chapter 8

Reductions and Satisfiability

NOTE ON MINIMALLY k-connected GRAPHS

Chordal Graphs: Theory and Algorithms

An Annotated Language

8.1 Polynomial-Time Reductions

Where Can We Draw The Line?

NP-Complete Reductions 2

Lecture 2: Symbolic Model Checking With SAT

Lecture Notes on Real-world SMT

Chordal deletion is fixed-parameter tractable

These notes present some properties of chordal graphs, a set of undirected graphs that are important for undirected graphical models.

The Encoding Complexity of Network Coding

Vertex Cover is Fixed-Parameter Tractable

Fixed-Parameter Algorithms, IA166

3 No-Wait Job Shops with Variable Processing Times

Notes for Recitation 8

SAT-CNF Is N P-complete

Ma/CS 6b Class 4: Matchings in General Graphs

Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes

Range Allocation for Separation Logic

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

Binary Decision Diagrams

Ch9: Exact Inference: Variable Elimination. Shimi Salant, Barak Sternberg

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Ma/CS 6b Class 26: Art Galleries and Politicians

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

Recitation 4: Elimination algorithm, reconstituted graph, triangulation

Some Hardness Proofs

Module 11. Directed Graphs. Contents

Ma/CS 6b Class 5: Graph Connectivity

Heat Kernels and Diffusion Processes

Deductive Methods, Bounded Model Checking

PCP and Hardness of Approximation

FOUR EDGE-INDEPENDENT SPANNING TREES 1

Polygon Triangulation. (slides partially by Daniel Vlasic )

Assignment 4 Solutions of graph problems

9.1 Cook-Levin Theorem

Chordal graphs and the characteristic polynomial

SPERNER S LEMMA MOOR XU

Applied Mathematics Letters. Graph triangulations and the compatibility of unrooted phylogenetic trees

Voronoi Diagrams and Delaunay Triangulations. O Rourke, Chapter 5

Ma/CS 6b Class 2: Matchings

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

Matchings. Examples. K n,m, K n, Petersen graph, Q k ; graphs without perfect matching. A maximal matching cannot be enlarged by adding another edge.

9 About Intersection Graphs

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

1 Definition of Reduction

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

Complexity of clique coloring and related problems

Ma/CS 6b Class 11: Kuratowski and Coloring

arxiv: v2 [cs.ds] 30 Nov 2012

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Homework 4 Solutions

Chapter 10 Part 1: Reduction

Chordal graphs MPRI

A taste of perfect graphs (continued)

Boolean Satisfiability with Transitivity Constraints

HW Graph Theory SOLUTIONS (hbovik) - Q

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Graph Theory Questions from Past Papers

On the Max Coloring Problem

Examples of P vs NP: More Problems

Topology Homework 3. Section Section 3.3. Samuel Otten

Instructions. Notation. notation: In particular, t(i, 2) = 2 2 2

ON SWELL COLORED COMPLETE GRAPHS

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

10. EXTENDING TRACTABILITY

Monotone Paths in Geometric Triangulations

Graphs and Discrete Structures

P and NP (Millenium problem)

10. EXTENDING TRACTABILITY

9 Connectivity. Contents. 9.1 Vertex Connectivity

A New Reduction from 3-SAT to Graph K- Colorability for Frequency Assignment Problem

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

Discrete mathematics , Fall Instructor: prof. János Pach

Computer Science Technical Report

A Vizing-like theorem for union vertex-distinguishing edge coloring

Graph Definitions. In a directed graph the edges have directions (ordered pairs). A weighted graph includes a weight function.

Problem Set 1. Solution. CS4234: Optimization Algorithms. Solution Sketches

arxiv: v2 [cs.cc] 29 Mar 2010

COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS

CS 512, Spring 2017: Take-Home End-of-Term Examination

QED Q: Why is it called the triangle inequality? A: Analogue with euclidean distance in the plane: picture Defn: Minimum Distance of a code C:

Motivation. CS389L: Automated Logical Reasoning. Lecture 5: Binary Decision Diagrams. Historical Context. Binary Decision Trees

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Transcription:

in irst Order Logic for Equality Logic Part III for Equality Logic and Uninterpreted unctions Algorithm I rom Equality to Propositional Logic Adding transitivity constraints Making the graph chordal An improved procedure: consider polarity Algorithm II Range-Allocation What is the small-model property? inding a small adequate range (domain) to each variable Reducing to Propositional Logic Daniel Kroening and Ofer Strichman 1 An algorithmic point of view 2 for Equality Logic We will first investigate methods that solve Equality Logic. Uninterpreted functions are eliminated with one of the reduction schemes. rom Equality to Propositional Logic Bryant & Velev 2000: the Sparse method φ E = x 1 = x 2 x 2 = x 3 x 1 x 3 φ enc = e 1 e 2 e 3 e 3 e 2 e1 Our starting point: the E-Graph G E (φ E ) Recall: G E (φ E ) represents an abstraction of φ E: It represents ALL equality formulas with the same set of equality predicates as φ E An algorithmic point of view 3 Encode all edges with Boolean variables (note: for now, ignore polarity) his is an abstraction ransitivity of equality is lost! Must add transitivity constraints! An algorithmic point of view 4 1

rom Equality to Propositional Logic rom Equality to Propositional Logic φ E = (x 1 = x 2 x 2 = x 3 x 1 x 3 φ enc = e 1 e 2 e 3 e 3 e 2 e1 here can be an exponential number of cycles, so let s try to make it better. hm: it suffices to constrain simple cycles only. or each cycle add a transitivity constraint φ trans = (e 1 e 2 e 3 ) (e 1 e 3 e 2 ) (e 3 e 2 e 1 ) e 1 e 2 e 3 e4 e 6? e 5 Check: φ enc φ trans An algorithmic point of view 5 An algorithmic point of view 6 rom Equality to Propositional Logic rom Equality to Propositional Logic Still, there is an exponential number of simple cycles. hm [Bryant & Velev]: It suffices to constrain chordfree simple cycles Still, there can be an exponential number of chordfree simple cycles.? e 1 e 2 e 5 e 3 e 4. An algorithmic point of view 7 An algorithmic point of view 8 2

rom Equality to Propositional Logic rom Equality to Propositional Logic Still, there can be an exponential number of chordfree simple cycles Still, there can be an exponential number of chordfree simple cycles... An algorithmic point of view 9 An algorithmic point of view 10 rom Equality to Propositional Logic rom Equality to Propositional Logic Still, there can be an exponential number of chordfree simple cycles Still, there can be an exponential number of chordfree simple cycles.. Solution: make the graph chordal by adding edges. An algorithmic point of view 11 An algorithmic point of view 12 3

rom Equality to Propositional Logic rom Equality to Propositional Logic Dfn: A graph is chordal iff every cycle of size 4 or more has a chord. How to make a graph chordal? eliminate vertices one at a time, and connect their neighbors. Once the graph is chordal, we can constrain only the triangles.? An algorithmic point of view 13 Note that this procedure adds not more than a polynomial # of edges, and results in a polynomial number of constraints. An algorithmic point of view 14 Improvement So far we did not consider the polarity of the edges. Claim: in the following graph φ rtc = e 3 e 2 e 1 is sufficient Skipping rest of this set of slides. Left here for completeness (but they need work). e 3 e 1 e 2 his is only true because of monotonicity of NN An algorithmic point of view 15 An algorithmic point of view 16 4

Definitions Dfn: A contradictory Cycle C is constrained under formula if does not allow this assignment Main theorem If R constrains all simple contradictory cycles, and or every assignment α S, α S - S α S - R C = then rom the Sparse method φ E is satisfiable iff B R is satisfiable An algorithmic point of view 17 he Equality ormula An algorithmic point of view 18 ransitivity: 5 constraints RC: 0 constraints Proof of the main theorem ( ) φ E is satisfiable B S is satisfiable B R is satisfiable ransitivity: 5 constraints RC: 1 constraint ( ) Proof strategy: Let α R be a satisfying assignment to B R We will construct α S that satisfies B S rom this we will conclude that φe is satisfiable An algorithmic point of view 19 Skip proof An algorithmic point of view 20 5

Definitions for the proof A Violating cycle under an assignment α R : More definitions for the proof An edge e = (v i,v j ) is equal under an assignment α iff there is an equality path between v i and v j all assigned under α. Denote: e e 1 Either dashed or solid e 2 his assignment violates S but not necessarily R v 1 v2 An algorithmic point of view 21 An algorithmic point of view 22 More definitions for the proof An edge e = (v i,v j ) is disequal under an assignment α iff there is a disequality path between v i and v j in which the solid edge is the only one assigned false by α. Denote: v 1 v2 Proof Observation 1: he combination is impossible if α= α R (recall: α R ² R) Observation 2: if (v 1, ) is solid, then v 1 v2 An algorithmic point of view 23 An algorithmic point of view 24 6

ReConstructing α S ReConstructing α S ype 1: It is not the case that ype 2: Otherwise it is not the case that Starting from α R, repeat until convergence: α(e ) := in all ype 1 cycles α(e ) := in all ype 2 cycles v 1 v2 v 1 v 2 All ype 1 and ype 2 triangles now satisfy S B is still satisfied (monotonicity of NN) Left to prove: all contradictory cycles are still satisfied Assign α S (e 23 ) = Assign α (e 13 ) = In all other cases α S = α R An algorithmic point of view 25 An algorithmic point of view 26 Proof Invariant: contradictory cycles are not violating throughout the reconstruction. Proof Invariant: contradictory cycles are not violating throughout the reconstruction. v 1 v 2 contradicts the precondition to make this assignment An algorithmic point of view 27 v 1 v 2 contradicts the precondition to make this assignment An algorithmic point of view 28 7

Applying RC How can we use the theorem without enumerating contradictory cycles? Answer: Consider the chordal graph. Constrain triangles if they are part of a (simple) contradictory cycle How? he RC algorithm Bi-Connected Component (BCC) maximal set of edges s.t. any two edges in the set lie on a common simple cycle. ind all BCC-s with one solid edge. Add solid chords from the graph, and auxiliary dashed chords to make the BCC chordal. An algorithmic point of view 29 An algorithmic point of view 30 Should we constrain this triangle? In which direction? Is this constraint necessary? Decomposing the graph ocus on Bi-connected dashed components built on top of a solid edge Includes all contradictory cycles involving this edge An algorithmic point of view 31 An algorithmic point of view 32 8

Make the component chordal Chordal-ity guarantees: every cycle contains a simplicial vertex, i.e. a vertex that its neighbors are connected. he RC algorithm Constraints cache: e 2 e 3 e 1 e 4 e 7 e 2 e 5 e 8 e 4 5 8 4 9 6 3 1 2 7 11 12 An algorithmic point of view 33 An algorithmic point of view 34 Constrains all contradictory cycles Constraints cache: Results random graphs e 2 e 3 e 1 e 4 e 7 e 2 e 6 e 3 e 4 5 8 4 9 6 3 1 2 7 11 12 V=200, E=800, 16 random topologies An algorithmic point of view 35 An algorithmic point of view 36 9

Random graphs (Satisfiable) An algorithmic point of view 37 10