1/23/2010 Basic definitions Let A be a model (a logical structure). โข Satisfaction : ๐ต โจ ๐ ๐ is true in ๐ต . Logical definability over Example : ๐ธ, โค โจ โ๐ง โ๐ฆ ,๐ง โค ๐ฆ- finite models ( D is finite) Let T be a theory (a set of logical sentences). Steven Lindell โข Deduction : ๐ โข ๐ ๐ is proved from ๐ . Haverford College Example : T is the theory of a strict total order. USA ๐ โข โ๐ฆ โ๐ง ,๐ฆ < ๐ง โ ๐ง โฎ ๐ฆ- 1/23/2010 ISLA 2010 1 1/23/2010 ISLA 2010 2 Completeness Compactness theorem Theorem [Gรถdel]: profound correspondence Theorem : A set of first-order sentences has a These are equivalent: model if and only if every finite subset does. Proof : follows from completeness via deduction โข semantic validity (truth) ๐ โจ ๐ Corollary : if a sentence has arbitrarily large Every model of ๐ is a model of ๐ . finite models, then it has an infinite model. Idea : consider the theory consisting of the โข syntactic validity (proof) ๐ โข ๐ original sentence together with sentences that express increasingly large cardinality. There is a proof of ๐ from ๐ . 1/23/2010 ISLA 2010 3 1/23/2010 ISLA 2010 4 Models of computation Why be concerned? โข Growth rates โ need to process large data sets Sequential model โ single processor (automata) โข Data is processed serially n log n n 2 2 n โข One-at-a-time access to memory 1 0 1 2 2 1 4 4 5 2 25 32 Concurrent model โ multiple processors with 10 3 100 1024 read/write access to a common memory (CRAM) 20 4 400 1048576 50 5 2,500 1.3 10 15 โข Data is processed in parallel 100 7 10,000 1.27 10 30 โข Simultaneous access (must resolve conflicts) 1000 10 1,000,000 1.07 10 301 10 6 20 1,000,000,000,000 hopelessly large 1/23/2010 ISLA 2010 5 1/23/2010 ISLA 2010 6 1
1/23/2010 Complexity Classes Graphs are universal โข Precise definitions only matter for linear cases Given a query in any vocabulary, it can be because models turn out to be all equivalent. translated into an equivalent query over (directed) graphs. A simple example would be a Sequential Space Concurrent Time query over binary words (a linear order with a O (1) constant-space constant-time single monadic predicate). The idea is to O (log n ) Logspace (A)logtime perform a simple translation from one O ( n ) linear-space linear-time vocabulary to the other which is first order O ( n k ) definable in both directions. PSPACE Polytime 1/23/2010 ISLA 2010 7 1/23/2010 ISLA 2010 8 Translating binary strings to graphs Diagram Definition : The diagram of a finite graph is a first- 1 0 1 0 ๏ฐ order sentence which describes it completely. < < < โผ ๏ก {0, 1, 2, 3}, <, U ๏ฑ ๏ก {0, 1, 2, 3}, E ๏ฑ ๐ โจ ๐ ๐ป โ ๐ โ ๐ป = ๐ 1 , โฆ , ๐ ๐ , ๐น ๐ ๐ป = โ๐ฆ 1 โฆ ๐ฆ ๐ ๐ฆ ๐ โ ๐ฆ ๐ & โ๐ง ๐ง = ๐ฆ ๐ ๏ฐ : ๏ u < v ๏ [ u = v ๏ U ( u )] E ( u , v ) ๐โ ๐ 1โค๐โค๐ ๏ฐ -1 : x < y ๏ x ๏น y ๏ E ( x , y ) ๐น(๐ฆ ๐ , ๐ฆ ๐ ) ยฌ๐น(๐ฆ ๐ , ๐ฆ ๐ ) ๏ฐ -1 : U ( z ) ๏ E ( z , z ) ๐ปโจ๐น(๐ ๐ ,๐ ๐ ) ๐ปโญ๐น(๐ ๐ ,๐ ๐ ) 1/23/2010 ISLA 2010 9 1/23/2010 ISLA 2010 10 Boolean queries on graphs Definable queries Let K be the collection of finite directed graphs. Logic provides a natural means for classifying I.e. each G = ๏ก V G , E G ๏ฑ in K is of the form queries. Let ๐ ๐ฟ = *๐ป โ ๐ฟ โถ ๐ป โจ ๐+ be the Boolean query defined by a sentence ๐ over K . E G ๏ V G ๏ด V G V G = { 1, โฆ, n } Definition : A Boolean query Q is elementary if it Definition : A Boolean query Q on K is an is definable by some first-order sentence. I.e. โ๐ป isomorphism-closed subset of K , i.e., Q ๏ K and for all G , H ๏๏ K , ๐ป โ ๐ โ ๐ป โจ ๐ i.e. ๐ = ๐ ๐ฟ G ๏ H ๏ ( G ๏๏ Q ๏ H ๏ Q ) 1/23/2010 ISLA 2010 11 1/23/2010 ISLA 2010 12 2
1/23/2010 Trivial properties The theory of finite linear ordering A query over the class of finite models F which is โข The sentences true in all finite linear orders: finite or co-finite: | Q | < ๏ฅ ; or | F โ Q | < ๏ฅ . ฮ = ๐: ๐ธ, < โจ ๐ for all finite ๐ธ (closure under finite consequence) Fact : Every trivial query is elementary. โข Every infinite model looks like: ( W any order) Proof : Q is first-order definable via the ๐ + ๐ ร (๐ โ + ๐) + ๐ โ sentence: ฮด ๐ป if Q is finite, or ๐ปโ๐ โข All of them are elementarily equivalent , i.e. ยฌฮด ๐ป if Q is co-finite. they satisfy the same first order sentences. ๐ปโ๐ 1/23/2010 ISLA 2010 13 1/23/2010 ISLA 2010 14 Infinite models of ๏ Parity Definition : A binary string ๏ณ 1 ๏๏๏ ๏ณ n is said to have ฮฃ = ฮ โช *โ๐ฆ 1 โฆ ๐ฆ ๐ ๐ฆ ๐ โ ๐ฆ ๐ : ๐ = 1, 2, โฆ + even parity if ๏ณ 1 ๏ ๏๏๏ ๏ ๏ณ n = 0. ๐โ ๐ Corollary : PARITY is not elementary. is complete . I.e. for every ๏ฑ either ฮฃ โจ ฮธ or ฮฃ โจ ยฌฮธ . Proof : a binary string of all ones, i.e. ๏ข x U ( x ), Theorem : Over ๏ , every first-order sentence is has even parity if and only if its length is even. eventually true or eventually false (i.e. trivial). Harder : What about sparse strings? I.e. the Proof : apply compactness possibly easier problem of computing the parity of a string with very few ones, all of which are Corollary : The query EVEN consisting of even length (very) far apart. linear orders is not elementary. 1/23/2010 ISLA 2010 15 1/23/2010 ISLA 2010 16 Sparse parity ๏ ๏ FO(<) Proof using saturated models Proof : Consider an ๏ 1 -saturated model A = ๏ก A, <, P ๏ฑ of ๏. Let ๏ be the Consider the class C of finite structures of the theory of infinite discrete linear orders (with endpoints). Observe that form ๏ก A , <, P ๏ฑ where P ๏ A , and | P | ยซ | A |. Let the substructure P = ๏ก P, < ๏ฑ of A is an ๏ 1 -saturated model of ๏ , because we can relativize the types in A to P . For adjacent p and q in P , let [ p , ๏ ๏ = Th( C ) together with P ( min ), P ( max ), the q ] be the interval { a ๏ A : p < a < q } and see that ๏ก [ p , q ] , < ๏ฑ is an ๏ 1 - saturated model of ๏ , for the same reason. axioms for P being infinite, and that the We aim to show that any two ๏ 1 -saturated models A and A ' of ๏ are elements of P are infinitely far apart. Clearly, ๏ is isomorphic. Since ๏ is complete, the respective saturated substructures P and P ' are isomorphic, say by f . To extend the isomorphism, notice finitely consistent with arbitrarily large even and that for each a ๏ A \ P there are adjacent p and q in P such that p < a < odd parity finite models. q (since this property is a first-order sentence in Th( C )), and similarly f ( a ) is in between adjacent f ( p ) and f ( q ) in P' . Again, since ๏ is Lemma : ๏ is complete. complete, and because the models are saturated, ๏ก [ p , q ] , < ๏ฑ ๏๏ ๏ก [ f ( p ), f ( q )] , < ๏ฑ . Therefore f can be extended to all of A and A' . เธ Corollary : Sparse parity is not first-order over C . 1/23/2010 ISLA 2010 17 1/23/2010 ISLA 2010 18 3
1/23/2010 Elementary non-definability Elementary reductions Lesson : Standard techniques from model theory Say P โค Q if P can be first -order defined using Q. such as compactness and completeness can be Examples : acyclicity, connectivity โค TC used to show that a property of finite models is ( ๏ข z ) ๏ E + ( z , z ) ( ๏ข xy ) E + ( x , y ) not first-order definable. Exercise : parity โค connectivity, acyclicity. Hint : Outline of method using nonstandard models : use the historical switching circuit over ordering. Every nontrivial first-order sentence has infinite Corollary : transitive-closure ๏ FO. models which make it true and false (not simultaneously!). Find a way to complete the Proof : PARITY is not elementary, and parity โค infinitary theory while preserving non-triviality. acyclicity, connectivity โค transitive -closure. 1/23/2010 ISLA 2010 19 1/23/2010 ISLA 2010 20 Path problems are not elementary Second-order logic 1 ) We concentrate on the purely existential ( ฮฃ 1 Questions : What about undirected reachability? 1 ) fragments. The and purely universal ( ฮ 1 โข REACH( a , b ) ๏ there is a path from a to b monadic fragment is restricted to quantification Exercise : REACH is not elementary. Hint : go back 1 and m ฮ 1 1 ). over subsets (m ฮฃ 1 to the switching circuit and utilize the minimal Exercise : Parity over binary strings ๏ก B , <, U ๏ฑ . and maximal elements. Hint : Introduce a set S such that between โข How about defining a connected component ? adjacent elements of S , there are exactly two elements of U (deal with endpoints separately). Given a simple graph and an identified vertex, 1 and m ฮ 1 1 . Write this as a formula in both m ฮฃ 1 find all the nodes connected to it. Is this in FO? 1/23/2010 ISLA 2010 22 1/23/2010 ISLA 2010 23 1 1 Undirected acyclicity is in m ฮ 1 Undirected Connectivity is in m ฮ 1 There is no 2-regular (finite) subgraph: โ๐ธ โ๐ฆ๐ธ ๐ฆ โง โ๐งยฌ๐ธ ๐ง โ โ๐ฆ, ๐ง ๐ธ ๐ฆ โง ยฌ๐ธ ๐ง โง ๐น ๐ฆ, ๐ง ยฌโ๐ โ โ โ๐ค โ ๐ โ 2 ๐ฃ โ ๐ ๐น(๐ฃ, ๐ค) Idea : there is always an edge between the two Idea : It is enough to say the relativized degrees pieces of any non-trivial partition of the graph. are at least two. This guarantees a cycle if the โข Not in m ฮฃ 1 1 . graph is finite. On the other hand, if there is a cycle then a minimal one is a 2-regular subgraph. What about โin same connected componentโ? 1/23/2010 ISLA 2010 24 1/23/2010 ISLA 2010 25 4
Recommend
More recommend