Partial orders, Lattices, etc.

Similar documents
Class notes Program Analysis course given by Prof. Mooly Sagiv Computer Science Department, Tel Aviv University second lecture 8/3/2007

So let us begin our quest to find the holy grail of real analysis.


Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

Just the Factors, Ma am

4. CLASSES OF RINGS 4.1. Classes of Rings class operator A-closed Example 1: product Example 2:

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

1 if 1 x 0 1 if 0 x 1

Quotient Rings and Field Extensions

INTRODUCTORY SET THEORY

Discrete Mathematics. Hans Cuypers. October 11, 2007

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

ON DEGREES IN THE HASSE DIAGRAM OF THE STRONG BRUHAT ORDER

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

1. Prove that the empty set is a subset of every set.

CONTENTS 1. Peter Kahn. Spring 2007

Continued Fractions and the Euclidean Algorithm

Stupid Divisibility Tricks

Algebraic Properties and Proofs

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Lecture 13 - Basic Number Theory.

PYTHAGOREAN TRIPLES KEITH CONRAD

Lecture 16 : Relations and Functions DRAFT

Matrix Representations of Linear Transformations and Changes of Coordinates

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

Boolean Algebra Part 1

Handout #1: Mathematical Reasoning

EMBEDDING COUNTABLE PARTIAL ORDERINGS IN THE DEGREES

k, then n = p2α 1 1 pα k

(a) Write each of p and q as a polynomial in x with coefficients in Z[y, z]. deg(p) = 7 deg(q) = 9

THE SEARCH FOR NATURAL DEFINABILITY IN THE TURING DEGREES

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

C H A P T E R Regular Expressions regular expression

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Geometric Transformations

1 = (a 0 + b 0 α) (a m 1 + b m 1 α) 2. for certain elements a 0,..., a m 1, b 0,..., b m 1 of F. Multiplying out, we obtain

Continued Fractions. Darren C. Collins

3. Prime and maximal ideals Definitions and Examples.

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Dimitris Chatzidimitriou. Corelab NTUA. June 28, 2013

Finite Projective demorgan Algebras. honoring Jorge Martínez

Embeddability and Decidability in the Turing Degrees

THE PRODUCT SPAN OF A FINITE SUBSET OF A COMPLETELY BOUNDED ARTEX SPACE OVER A BI-MONOID

Algebraic Structures II

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Online EFFECTIVE AS OF JANUARY 2013

1 Symmetries of regular polyhedra

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

Lecture 1. Basic Concepts of Set Theory, Functions and Relations

Markov random fields and Gibbs measures

Math 319 Problem Set #3 Solution 21 February 2002

6.1. The Exponential Function. Introduction. Prerequisites. Learning Outcomes. Learning Style

fg = f g Ideals. An ideal of R is a nonempty k-subspace I R closed under multiplication by elements of R:

Reading 13 : Finite State Automata and Regular Expressions

No: Bilkent University. Monotonic Extension. Farhad Husseinov. Discussion Papers. Department of Economics

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Thursday, August 16, :30 to 11:30 a.m.

INCIDENCE-BETWEENNESS GEOMETRY

Class One: Degree Sequences

Permutation Groups. Tom Davis April 2, 2003

Pattern Co. Monkey Trouble Wall Quilt. Size: 48" x 58"

Module1. x y 800.

4.2 Euclid s Classification of Pythagorean Triples

Section IV.21. The Field of Quotients of an Integral Domain

Applications of Fermat s Little Theorem and Congruences

Fair testing vs. must testing in a fair setting

Regular Languages and Finite Automata

8 Divisibility and prime numbers

Automata on Infinite Words and Trees

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Mathematics for Econometrics, Fourth Edition

Section 4.2: The Division Algorithm and Greatest Common Divisors

Section 1.1 Real Numbers

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 4 Nancy Lynch

THIN GROUPS OF FRACTIONS

Some Special Artex Spaces Over Bi-monoids

The common ratio in (ii) is called the scaled-factor. An example of two similar triangles is shown in Figure Figure 47.1

The Minimal Dependency Relation for Causal Event Ordering in Distributed Computing

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

9. Quotient Groups Given a group G and a subgroup H, under what circumstances can we find a homomorphism φ: G G ', such that H is the kernel of φ?

Outline 2.1 Graph Isomorphism 2.2 Automorphisms and Symmetry 2.3 Subgraphs, part 1

26 Ideals and Quotient Rings

CMPSCI 250: Introduction to Computation. Lecture #19: Regular Expressions and Their Languages David Mix Barrington 11 April 2013

INTERSECTION MATH And more! James Tanton

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

x a x 2 (1 + x 2 ) n.

Notes on Algebraic Structures. Peter J. Cameron

Today s Topics. Primes & Greatest Common Divisors

Omega Automata: Minimization and Learning 1

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series

S on n elements. A good way to think about permutations is the following. Consider the A = 1,2,3, 4 whose elements we permute with the P =

facultad de informática universidad politécnica de madrid

Math Workshop October 2010 Fractions and Repeating Decimals

Transcription:

Partial orders, Lattices, etc.

In our context We aim at computing properties on programs How can we represent these properties? Which kind of algebraic features have to be satisfied on these representations? Which conditions guarantee that this computation terminates?

Motivating Example (1) Consider the renovation of the building of a firm. In this process several tasks are undertaken Remove asbestos Replace windows Paint walls Refinish floors Assign offices Move in office furniture

Motivating Example (2) Clearly, some things had to be done before others could begin Asbestos had to be removed before anything (except assigning offices) Painting walls had to be done before refinishing floors to avoid ruining them, etc. On the other hand, several things could be done concurrently: Painting could be done while replacing the windows Assigning offices could be done at anytime before moving in office furniture This scenario can be nicely modeled using partial orderings

Partial Orderings: Definitions Definitions: A relation R on a set S is called a partial order if it is Reflexive Antisymmetric Transitive A set S together with a partial ordering R is called a partially ordered set (poset, for short) and is denote (S,R) Partial orderings are used to give an order to sets that may not have a natural one In our renovation example, we could define an ordering such that (a,b) R if a must be done before b can be done

Partial Orderings: Notation We use the notation: a p b, when (a,b) R a p b, when (a,b) R and a b The notation p is not to be mistaken for less than (p versus ) The notation p is used to denote any partial ordering

Comparability: Definition Definition: The elements a and b of a poset (S, p) are called comparable if either apb or bpa. When for a,b S, we have neither apb nor bpa, we say that a,b are incomparable Consider again our renovation example Remove Asbestos p a i for all activities a i except assign offices Paint walls p Refinish floors Some tasks are incomparable: Replacing windows can be done before, after, or during the assignment of offices

Total orders: Definition Definition: If (S,p) is a poset and every two elements of S are comparable, S is called a totally ordered set. The relation p is said to be a total order Example The relation less than or equal to over the set of integers (Z, ) since for every a,b Z, it must be the case that a b or b a What happens if we replace with <? The relation < is not reflexive, and (Z,<) is not a poset

Hasse Diagrams Like relations and functions, partial orders have a convenient graphical representation: Hasse Diagrams Consider the digraph representation of a partial order Because we are dealing with a partial order, we know that the relation must be reflexive and transitive Thus, we can simplify the graph as follows Remove all self loops Remove all transitive edges Remove directions on edges assuming that they are oriented upwards The resulting diagram is far simpler

Hasse Diagram: Example a 4 a 5 a 4 a 5 a 2 a 3 a 2 a 3 a 1 a 1

Hasse Diagrams: Example (1) Of course, you need not always start with the complete relation in the partial order and then trim everything. Rather, you can build a Hasse Diagram directly from the partial order Example: Draw the Hasse Diagram for the following partial ordering: {(a,b) a b } on the set {1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60} (these are the divisors of 60 which form the basis of the ancient Babylonian base-60 numeral system)

Hasse Diagram: Example (2) 60 12 20 30 4 6 10 15 2 3 5 1

Example g c d e f a b L= {a,b,c,d,e,f,g} p ={(a,c), (a,e), (b,d), (b,f), (c,g), (d,g), (e,g), (f,g)} RT (L, p) is a partial order

Example 6 5 4 3 2 1 0 L= N (natural numbers) p ={(0,1), (1,2), (2,3), (3,4), (4,5), } RT (L, p) is a totally ordered set (infinite)

Example 9 8 7 6 5 4 3 2 L= N (natural numbers) p ={(n,m): $ k such that m=n*k} (L, p) is a partially ordered set (infinite)

Example On the same set E={1,2,3,4,6,12} we can define different partial orders: 12 6 4 3 2 1 3 6 1 12 2 4 12 6 4 2 3 1

Example All possible partial orders on a set of three elements (modulo renaming)

Extremal Elements: Summary We will define the following terms: A maximal/minimal element in a poset (S, p) The maximum (greatest)/minimum (least) element of a poset (S, p) An upper/lower bound element of a subset A of a poset (S, p) The greatest lower/least upper bound element of a subset A of a poset (S, p)

Extremal Elements: Maximal Definition: An element a in a poset (S, p) is called maximal if it is not less than any other element in S. That is: ($b S (apb)) If there is one unique maximal element a, we call it the maximum element (or the greatest element)

Extremal Elements: Minimal Definition: An element a in a poset (S, p) is called minimal if it is not greater than any other element in S. That is: ($b S (bpa)) If there is one unique minimal element a, we call it the minimum element (or the least element)

Extremal Elements: Upper Bound Definition: Let (S,p) be a poset and let A S. If u is an element of S such that a p u for all a A then u is an upper bound of A An element x that is an upper bound on a subset A and is less than all other upper bounds on A is called the least upper bound on A. We abbreviate it as lub.

Extremal Elements: Lower Bound Definition: Let (S,p) be a poset and let A S. If l is an element of S such that l p a for all a A then l is an lower bound of A An element x that is a lower bound on a subset A and is greater than all other lower bounds on A is called the greatest lower bound on A. We abbreviate it glb.

Example N x N Y (x 1,y 1 ) N x N (x 2,y 2 ) x 1 N x 2 y 1 N y 2

Example N N upper bounds of Y Y lub(y) glb(y) lower bounds of Y (x 1,y 1 ) N x N (x 2,y 2 ) x 1 N x 2 y 1 N y 2

Extremal Elements: Example 1 c d a b What are the minimal, maximal, minimum, maximum elements? Minimal: {a,b} Maximal: {c,d} There are no unique minimal or maximal elements, thus no minimum or maximum

Extremal Elements: Example 2 Give lower/upper bounds & glb/lub of the sets: {d,e,f}, {a,c} and {b,d} {d,e,f} Lower bounds:, thus no glb Upper bounds:, thus no lub g h i {a,c} Lower bounds:, thus no glb Upper bounds: {h}, lub: h d e f {b,d} Lower bounds: {b}, glb: b a b c Upper bounds: {d,g}, lub: d because dpg

Extremal Elements: Example 3 Minimal/Maximal elements? i j Minimal & Minimum element: a Maximal elements: b,d,i,j f g h Bounds, glb, lub of {c,e}? e Lower bounds: {a,c}, thus glb is c Upper bounds: {e,f,g,h,i,j}, thus lub is e b c d Bounds, glb, lub of {b,i}? Lower bounds: {a}, thus glb is c a Upper bounds:, thus lub DNE

Lattices A special structure arises when every pair of elements in a poset has an lub and a glb Definition: A lattice is a partially ordered set in which every pair of elements has both a least upper bound and a greatest lower bound

Lattices: Example 1 Is the example from before a lattice? i j f g h No, because the pair {b,c} does not have a least upper bound e b c d a

Lattices: Example 2 What if we modified it as shown here? i j f g h Yes, because for any pair, there is an lub & a glb e b c d a

A Lattice Or Not a Lattice? To show that a partial order is not a lattice, it suffices to find a pair that does not have an lub or a glb (i.e., a counter-example) For a pair not to have an lub/glb, the elements of the pair must first be incomparable (Why?) You can then view the upper/lower bounds on a pair as a sub-hasse diagram: If there is no maximum/minimum element in this subdiagram, then it is not a lattice

Complete lattices Definition: A lattice A is called a complete lattice if every subset S of A admits a glb and a lub in A. Exercise: Show that for any (possibly infinite) set E, (P(E), ) is a complete lattice (P(E) denotes the powerset of E, i.e. the set of all subsets of E).

Example g Y c d e f a b L= {a,b,c,d,e,f,g} ={(a,c), (a,e), (b,d), (b,f), (c,g), (d,g), (e,g), (f,g)} T (L, ) is not a lattice: a and b are lower bounds of Y, but a and b are not comparable

Exercise Prove that Every finite lattice is a complete lattice.

Example {1,2,3} lub(y) Y {1,2} {1,3} {2,3} {1} {2} {3} L= ({1,2,3}) p = lub(y) = Y glb(y) = Y glb(y)

Example T -4-3 -2-1 0 1 2 3 4 L= Z {T,^} ^ " n Z : ^ p n p T

Example L= Z + p total order on Z + lub = max glb = min It is a lattice, but not complete: For instance, the set of even numbers has no lub 6 5 4 3 2 1 0 37

Example T L= Z + {T} p total order on Z + {T} lub = max glb = min This is a complete lattice 6 5 4 3 2 1 0

Examples L=R (real numbers) with p = (total order) (R, ) is not a complete lattice: for instance {x R x > 2} has no lub On the other hand, for each x<y in R, ([x,y], ) is a complete lattice L=Q (rational numbers) with p = (total order) (Q, ) is not a complete lattice The set {x Q x 2 < 2} has upper bounds but there is no least upper bound in Q.

Theorem: Let (L, p) be a partial order. The following conditions are equivalent: 1. L is a complete lattice 2. Each subset of L has a least upper bound 3. Each subset of L has a greatest lower bound Proof: 1 2 e 1 3 by definition In order to prove that 2 1, let us define for each Y L glb(y) = lub({l L " l Y : l l })

upper bounds of Z glb(y)= lub({l L " l Y : l l }) {1,2,3} Y {1,2} {1,3} {2,3} lub(z) {1} {2} {3} Z= {l L " l Y : l l }

Functions on partial orders Let (P, P ) and (Q, Q ) two partial orders. A function j from P to Q is said: monotone (order preserving) if p 1 P p 2 j p 1 ) Q j p 2 ) embedding if p 1 P p 2 j p 1 ) Q j p 2 ) Isomorphism if it is a surjective embedding

Examples b d j 1 a) j 1 is not monotone a c j 1 d) j 1 b)=j 1 c) e b d c j 2 d)=j 2 e) j 2 b)=j 2 c) j 2 a) j 2 is monotone, but it is not an embedding:j 2 b) Q j 2 c) but it is not true that b P c a

Examples e b d c j 3 e) j 3 c)=j 3 d) j 3 a)=j 3 b) j 3 is monotone but it is not an embedding:j 3 b) Q j 3 c) but it is not true that b P c a j 4 d) b d c j 4 b) j 4 c) j 4 is an embedding, but not an isomorphism. a j 4 a)

Isomorphism j j i g h g i h e f d d e f a b a b c c

Monotone? Embedding? Isomorphism? j from (Z, ) to (Z, ), defined by: j(x)=x+1 j from( (S), ) to 1 0, defined by: j(u)=1 if U is nonempty, j( )=0. j from ( (Z), ) to ( (Z), ), defined by: j(u)={1} if 1 U j(u)={2} if 2 U and 1 does not belong to U j(u)= otherwise

Ascending chains A sequence (l n ) n N of elements in a partial order L is an ascending chain if n m l n l m A sequence (l n ) n N converges if and only if $ n 0 N : " n N : n 0 n l n0 = l n A partial order (L, ) satisfes the ascending chain condition (ACC) iff each ascending chain converges.

Example 12 10 8 6 4 2 0 The set of even natural numbers satisfies the descending chain condition, but not the ascending chain condition

Example... Infinite set Satisfies both ACC and DCC

Lattices and ACC If P is a lattice, it has a bottom element and satisfies ACC, tyen it is a complete lattice If P is a lattice without infinite chains, then it is complete

Continuity In Calculus, a function is continuous if it preserves the limits. Given two partial orders (P, P ) and (Q, Q ), a functoin j from P to Q is continuous id for every chain S in P j lub S)) = lub{ j(x) x S } (P, P ) j (Q, Q ) S j(s)

Fixpoints Consider a monotone function f: (P, P ) (P, P ) on a partial order P. An element x of P is a fixpoint of f if f(x)=x. The set of fixpoints of f is a subset of P called Fix(f): Fix(f) ={ l P f(l)=l}

Fixpoint on Complete Lattices Consider a monotone function f:l L on a complete lattice L. Fix(f) is also a complete lattice: lfp(f) = glb(fix(f)) gfp(f) = lub(fix(f)) Fix(f) Fix(f) Tarski Theorem: Let L be a complete lattice. If f:l L is monotone then lfp(f) = glb{ l L f(l) l } gfp(f) = lub{ l L l f(l) }

Fixpoints on Complete Lattices { l L f(l) P l} Fix(f) ={ l L f(l)=l} gfp(f) = lub{ l L l f(l) } lfp(f) = glb{ l L f(l) l } { l L l P f(l)}

Kleene Theorem Let f be a monotone function: (P, P ) (P, P ) on a complete lattice P. Let a= n 0 f n (^) If a Fix(f) then a= lfp(f) Kleene Theorem If f is continuous then the least fixpoint of f esists, and it is equal to a