basic definitions
play

Basic definitions Let A be a model (a logical structure). - PDF document

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


  1. 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

  2. 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

  3. 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

  4. 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