1 / 5

Un-interpreted function symbols

Un-interpreted function symbols. Checking satisfiability , interpretation for variables function and predicate symbols Conjunction of literals in quantifier-free FOL SAT solver handles disjunctions Flatten the literals, so they become one of: x=y x y x=f(y 1 ,..., y n )

naasir
Download Presentation

Un-interpreted function symbols

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Un-interpreted function symbols • Checking satisfiability, interpretation for • variables • function and predicate symbols • Conjunction of literals in quantifier-free FOL • SAT solver handles disjunctions • Flatten the literals, so they become one of: x=yxyx=f(y1,...,yn) where x,y,yi are free variables.

  2. Check satisfiability of Conjunction of x=y, xy, x=f(y1,...,yn) relevant terms T are variables and f(y1,...,yn). |T| is finite (at most 2n for n conjuncts) Let r0 = {(t1,t2) | (t1=t2) is an input conjunct} Closure: add elements to satisfy • reflexivity, symmetry, transitivity(preserves that r0 T2) • congruence on elements of T: if arguments are related, so should the result • Iterate until fixpoint (monotonic operator) => least congruence T2 containing r0 : CC(r0)

  3. Satisfiability for Function Symbols • If xy appears but (x,y) in CC(r0), then we have contradiction, since (x=y) is a consequence of equalities. Assume not. • Let the domain be the equivalence classes of CC(r0), union any extra disjoint set • Define interpretation of variable x to be [x] • If f(x1,...,xn) is in T (in the formula), definef([x1],...,[xn]) = [f(x1,...,xn)] • otherwise, define it arbitrarily • This interpretation satisfies the formula

  4. Term algebras • Checking satisfiability, find interpretation for variables, which range over ground terms Node(Node(x,y),z) = Node(u,Node(p,q)) holds iff Node(x,y) = u z = Node(p,q) Technique: unification

  5. Satisfiability for term algebras • Conjunction of x=y, xy, x=f(y1,...,yn) where this time f is a constructor (with 0 or more args) • Bidirectional closure f(x)=f(y) iff x=y • Let T be the terms appearing in input • Find most-general unifier U for positive ones • Check whether for each xy, we have U(x)=U(y) (identical substitution). If yes, contradiction • Otherwise, we can pick the variables so that disequality does hold, by Independence of disequations lemma(see Lemma 2 inDecision Procedures for Algebraic Data Types with Abstractions , POPL'10)

More Related