Top Banner
Lecture 9 Illustrations Lattices. Fixpoints Abstract Interpretation
12

Lecture 9 Illustrations

Feb 22, 2016

Download

Documents

hadar

Lecture 9 Illustrations. Lattices. Fixpoints Abstract Interpretation. Partially Ordered Set (A, ≤). x ≤ x x ≤ y /\ y ≤ x  x = y (else it is only pre-order) x ≤ y /\ y ≤ z  x ≤ z Typical example: (A, ), where A  2 U for some U. Hasse diagram. Key Terminology. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 9 Illustrations

Lecture 9 Illustrations

Lattices. FixpointsAbstract Interpretation

Page 2: Lecture 9 Illustrations

Partially Ordered Set (A, ≤)x ≤ xx ≤ y /\ y ≤ x x = y (else it is only pre-order)x ≤ y /\ y ≤ z x ≤ z

Typical example: (A,), where A 2U for some U

Hasse diagram

Page 3: Lecture 9 Illustrations

Key Terminology

Let S A.upper bound of S: bigger than all

dual: lower boundmaximal element of S: there’s no bigger

dual: minimal elementgreatest element of S: upper bound on S, in S

dual: least element

Page 4: Lecture 9 Illustrations

Least Upper Bound

Denoted lub(S), least upper bound of S is an element M, if it exists, such that M is the least element of the set U = {x | x is upper bound on S}

In other words:• M is an upper bound on S• For every other upper bound M’ on S, we have that

M ≤ M’Note: same definition as “inf” in real analysis– applies not only to total orders, but any partial order

Page 5: Lecture 9 Illustrations

Real Analysis

Take as S the open interval of reals (0,1) = { x | 0 < x < 1 }Then– S has no maximal element– S thus has no greatest element– 2, 2.5, 3, … are all upper bounds on S– lub(S)=1

If we had rational numbers, there would be no lub(S’) in general.

Page 6: Lecture 9 Illustrations

Shorthand

a1 a2 denotes lub({a1,a2})

(…(a1 a2) ) an is, in fact, lub({a1,…, an})

So the operation is ACU• associative• commutative• idempotent

Page 7: Lecture 9 Illustrations

Consider sets of all subsets of U

Do these exist, and if so, what are they?• lub({s1,s2}) • lub(S)

Page 8: Lecture 9 Illustrations

Two More Examples

Page 9: Lecture 9 Illustrations

Does every pair of elements in this order have least upper bound?

Dually, does it have greatest lower bound?

Page 10: Lecture 9 Illustrations

Approximation of Sets by Supersets

Page 11: Lecture 9 Illustrations

Domain of Intervals

The domain elements, D, are • pairs (L,U) where– L is an integer or minus infinity– U is an integer or plus infinity– if L and U are integers, then L ≤ U

• The special element representing empty setThe associated set of elementsgamma : D 2Z

Page 12: Lecture 9 Illustrations

Definition of gamma, ordering, lub