Multiple Context-free Grammars
|
|
- Roland Alexander Stevenson
- 5 years ago
- Views:
Transcription
1 Multiple Context-free Grammars Course 4: pumping properties Sylvain Salvati INRI Bordeaux Sud-Ouest ESSLLI 2011
2 The pumping Lemma for CFL Outline The pumping Lemma for CFL Weak pumping Lemma for MCFL No strong pumping Lemma for MCFL MCFL wn and mild context sensitivity
3 The pumping Lemma for CFL Ogden s pumping Lemma for CFL Ogden (1967)
4 The pumping Lemma for CFL The pumping Lemma s proof pump u x v y w u x y w The pump is one of the lowest xvy < K The derivation is minimal in size xy ɛ x v y
5 The pumping Lemma for CFL characterization of the recursive power of CFL Berstel (1979) Theorem Let L X be an algebraic language, and let π be a non-degenerated iterative pair in L. For any algebraic grammar generating L there exists an iterative pair π deduced from π and grammatical with respect to G.
6 Outline The pumping Lemma for CFL Weak pumping Lemma for MCFL No strong pumping Lemma for MCFL MCFL wn and mild context sensitivity
7 Generalization of pumbability: k-pumpability Definition (pumpability) language L is pumpable if there is K such that for all w such that w > K, w = uxvyw with: xy ɛ for all n N, ux n vy n w is in L Definition (k-pumpability) language L is k-pumpable if there is K such that for all w such that w > K, w = v 1 x 1 v 2 x 2...v k x k v k+1 with: x 1... x k ɛ for all n N, v 1 x n 1 v 2x n 2...v k x n k v k+1 pumpability = 2-pumpability k-pumpability k + 1-pumpability
8 Generalization of pumbability: k-pumpability Definition (pumpability) language L is pumpable if there is K such that for all w such that w > K, w = uxvyw with: xy ɛ for all n N, ux n vy n w is in L Definition (k-pumpability) language L is k-pumpable if there is K such that for all w such that w > K, w = v 1 x 1 v 2 x 2...v k x k v k+1 with: x 1... x k ɛ for all n N, v 1 x n 1 v 2x n 2...v k x n k v k+1 pumpability = 2-pumpability k-pumpability k + 1-pumpability
9 Generalization of pumbability: k-pumpability Definition (pumpability) language L is pumpable if there is K such that for all w such that w > K, w = uxvyw with: xy ɛ for all n N, ux n vy n w is in L Definition (k-pumpability) language L is k-pumpable if there is K such that for all w such that w > K, w = v 1 x 1 v 2 x 2...v k x k v k+1 with: x 1... x k ɛ for all n N, v 1 x n 1 v 2x n 2...v k x n k v k+1 pumpability = 2-pumpability k-pumpability k + 1-pumpability
10 Generalization of pumbability: k-pumpability Definition (pumpability) language L is pumpable if there is K such that for all w such that w > K, w = uxvyw with: xy ɛ for all n N, ux n vy n w is in L Definition (k-pumpability) language L is k-pumpable if there is K such that for all w such that w > K, w = v 1 x 1 v 2 x 2...v k x k v k+1 with: x 1... x k ɛ for all n N, v 1 x n 1 v 2x n 2...v k x n k v k+1 pumpability = 2-pumpability k-pumpability k + 1-pumpability
11 Iteration of the derivation tree (x 1 v 1 x 2, x 3 v 2 x 4 ) (x 1 x 1 v 1 x 2 x 2, x 3 x 3 v 2 x 4 x 4 ) (v 1, v 2 ) Even pump (v 1, v 2 )
12 Iteration of the derivation tree (x 1 v 1 x 2 v 2 x 3, x 4 ) (x 1 x 1 v 1 x 2 v 2 x 3 x 2 x 4 x 3, x 4 ) (v 1, v 2 ) Uneven pump (v 1, v 2 )
13 Even m-pump (x 1 v 1 y 1,..., x mv my m) Even m-pump (v 1,..., v m)
14 Even m-pump Definition rule of a m-mcfg: (s 1,..., s k ) B 1 (x 1 1,..., x 1 k 1 ),..., B n(x n 1,..., x n k n ) is m-proper in the i th premiss when k = k i = m and s j = w 1 x i j w 2. (y 1 x 1 y 2, x 2 ) B(x 1, x 2 ), C(y 1, y 2 ) (x 1 v 1 y 1,..., x mv my m) (v 1,..., v m) Even m-pump
15 Even m-pump Definition rule of a m-mcfg: (s 1,..., s k ) B 1 (x 1 1,..., x 1 k 1 ),..., B n(x n 1,..., x n k n ) is m-proper in the i th premiss when k = k i = m and s j = w 1 x i j w 2. (y 1 x 1 y 2, x 2 ) B(x 1, x 2 ), C(y 1, y 2 ) (x 1 v 1 y 1,..., x mv my m) only m-proper rules π 1 π k Even m-pump (v 1,..., v m)
16 Deviding the problem Strings that have a derivation tree containing an even m-pump are 2m-pumpable. The set of derivation trees that contain an even m-pump is recognizable. From a m-mcfg wn, G, we can construct two grammars G 1 and G 2, such that: L(G) = L(G1 ) L(G 2 ) the derivation trees of G 1 all contain an even m-pump no derivation tree of G 2 contains an even m-pump It remains to show that L(G 2 ) is 2m-pumpable.
17 Deviding the problem Strings that have a derivation tree containing an even m-pump are 2m-pumpable. The set of derivation trees that contain an even m-pump is recognizable. From a m-mcfg wn, G, we can construct two grammars G 1 and G 2, such that: L(G) = L(G1 ) L(G 2 ) the derivation trees of G 1 all contain an even m-pump no derivation tree of G 2 contains an even m-pump It remains to show that L(G 2 ) is 2m-pumpable.
18 Deviding the problem Strings that have a derivation tree containing an even m-pump are 2m-pumpable. The set of derivation trees that contain an even m-pump is recognizable. From a m-mcfg wn, G, we can construct two grammars G 1 and G 2, such that: L(G) = L(G1 ) L(G 2 ) the derivation trees of G 1 all contain an even m-pump no derivation tree of G 2 contains an even m-pump It remains to show that L(G 2 ) is 2m-pumpable.
19 Deviding the problem Strings that have a derivation tree containing an even m-pump are 2m-pumpable. The set of derivation trees that contain an even m-pump is recognizable. From a m-mcfg wn, G, we can construct two grammars G 1 and G 2, such that: L(G) = L(G1 ) L(G 2 ) the derivation trees of G 1 all contain an even m-pump no derivation tree of G 2 contains an even m-pump It remains to show that L(G 2 ) is 2m-pumpable.
20 Kanazawa s Lemma Kanazawa (2010) Lemma n m-mcfg wn whose derivation trees do not contain even m-pumps as an equivalent m 1-MCFG wn.
21 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
22 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
23 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
24 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
25 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
26 Proof of the Lemma Proof. eliminate m-proper rules by unfolding Make rules deriving non-terminal of arity m have no premise of arity m (relies on well-nestedness): (s 1,..., s m) B(x 1,..., x m), Γ (t 1,..., t m) D(y 1,..., y p), Γ 1 D(u 1,..., u p) B(x 1,..., x m), Γ 2 Unfold the rules of non-terminal of arity m The resulting grammar defines the same language and does not use non-terminals of arity m: it is an m 1-MCFG wn Thus by induction on m (the case where m = 1 is the CFL case), L(G 2 ) is 2(m 1)-pumpable and therefore m-pumpable.
27 Kanazawa s Theorems Kanazawa (2010) Theorem m-mcfl wn are 2m-pumpable. Theorem 2-MCFL are 4-pumpable.
28 Weak pumping Lemma for MCFL Outline The pumping Lemma for CFL Weak pumping Lemma for MCFL No strong pumping Lemma for MCFL MCFL wn and mild context sensitivity
29 Weak pumping Lemma for MCFL Seki et al. pumping lemma Seki, Matsumura, Fujii, Kasami Theorem In a infinite m-mcfl L, there is a string w that is 2m-pumpable in L.
30 Weak pumping Lemma for MCFL Proof of the Theorem Take an ordered grammar.
31 Weak pumping Lemma for MCFL Proof of the Theorem Take an ordered grammar. Iterate the pump until the variables are fixed. (x 1,..., x k )
32 Weak pumping Lemma for MCFL Proof of the Theorem Take an ordered grammar. Iterate the pump until the variables are fixed. Now iterating the pump results in an iteration on the string. (x 1,..., x k )
33 Weak pumping Lemma for MCFL n example The pump: (u 1 x 1 u 2 x 2 u 3, u 4 ) One iteration: The variables are fixed. Second iteration: (u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3, u 4 ) (u 1 u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3 u 2 u 4 u 3, u 4 )
34 Weak pumping Lemma for MCFL n example The pump: (u 1 x 1 u 2 x 2 u 3, u 4 ) One iteration: The variables are fixed. Second iteration: (u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3, u 4 ) (u 1 u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3 u 2 u 4 u 3, u 4 )
35 Weak pumping Lemma for MCFL n example The pump: (u 1 x 1 u 2 x 2 u 3, u 4 ) One iteration: The variables are fixed. Second iteration: (u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3, u 4 ) (u 1 u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3 u 2 u 4 u 3, u 4 )
36 Weak pumping Lemma for MCFL n example The pump: (u 1 x 1 u 2 x 2 u 3, u 4 ) One iteration: The variables are fixed. Second iteration: (u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3, u 4 ) (u 1 u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3 u 2 u 4 u 3, u 4 )
37 Weak pumping Lemma for MCFL n example The pump: (u 1 x 1 u 2 x 2 u 3, u 4 ) One iteration: The variables are fixed. Second iteration: (u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3, u 4 ) (u 1 u 1 u 1 x 1 u 2 x 2 u 3 u 2 u 4 u 3 u 2 u 4 u 3, u 4 )
38 No strong pumping Lemma for MCFL Outline The pumping Lemma for CFL Weak pumping Lemma for MCFL No strong pumping Lemma for MCFL MCFL wn and mild context sensitivity
39 No strong pumping Lemma for MCFL mythic pumping Lemma Radzinski (1991) I has then been assumed to hold: Groenink 1997, Kracht 2003
40 No strong pumping Lemma for MCFL Constructing a counter-example We must take a m-mcfl so that m > 2 It must not contain proper rules H(x 2 ) G(x 1, x 2, x 3 ) G(ax 1, y 1 cx 2 cdy 2 dx 3, y 3 b) G(x 1, x 2, x 3 ) G(y 1, y 2, y 3 ) G(a, ɛ, b)
41 No strong pumping Lemma for MCFL The language and binary trees H(x 2 ) G(x 1, x 2, x 3 ) G(ax 1, y 1 cx 2 cdy 2 dx 3, y 3 b) G(x 1, x 2, x 3 ) G(y 1, y 2, y 3 ) G(a, ɛ, b) Let ϕ be a morphism such that ϕ(a) = ϕ(b) = ɛ and leaves the other letter unchanged. Lemma ϕ(l(h)) is the CFL described by the grammar V cv cdv d ɛ The language L(V ) represent binary trees. The language L(H) can be seen as: a l cw 1 cdw 2 db k k l w 1 w 2
42 No strong pumping Lemma for MCFL The language and binary trees H(x 2 ) G(x 1, x 2, x 3 ) G(ax 1, y 1 cx 2 cdy 2 dx 3, y 3 b) G(x 1, x 2, x 3 ) G(y 1, y 2, y 3 ) G(a, ɛ, b) Let ϕ be a morphism such that ϕ(a) = ϕ(b) = ɛ and leaves the other letter unchanged. Lemma ϕ(l(h)) is the CFL described by the grammar V cv cdv d ɛ The language L(V ) represent binary trees. The language L(H) can be seen as: a l cw 1 cdw 2 db k k l w 1 w 2
43 No strong pumping Lemma for MCFL The language and binary trees H(x 2 ) G(x 1, x 2, x 3 ) G(ax 1, y 1 cx 2 cdy 2 dx 3, y 3 b) G(x 1, x 2, x 3 ) G(y 1, y 2, y 3 ) G(a, ɛ, b) Let ϕ be a morphism such that ϕ(a) = ϕ(b) = ɛ and leaves the other letter unchanged. Lemma ϕ(l(h)) is the CFL described by the grammar V cv cdv d ɛ The language L(V ) represent binary trees. The language L(H) can be seen as: a l cw 1 cdw 2 db k k l w 1 w 2
44 No strong pumping Lemma for MCFL 3-MCFL are not finitely pumpable Kanazawa, Kobele, S., Yoshinaka 2011 Theorem L(H) is not k-pumpable for any k Proof. Every string representing complete binary tree is not k-pumpable in L(H) for any k.
45 MCFL wn and mild context sensitivity Outline The pumping Lemma for CFL Weak pumping Lemma for MCFL No strong pumping Lemma for MCFL MCFL wn and mild context sensitivity
46 MCFL wn and mild context sensitivity MCFL wn and cross serial dependencies Joshi s informal notion I(x1y1,y2x2) J(x1,x2), K (y1,y2) I(x1y1,x2y2) J(x1,x2), K (y1,y2) (x1z1, z2x2y1, y2y3x3) B(x1, x2, x3) C(y1, y2, y3) D(z1, z2) (z1x1, y1x2z2y2x3, y3) B(x1, x2, x3) C(y1, y2, y3) D(z1, z2)
47 MCFL wn and mild context sensitivity MCFL wn and cross serial dependencies Joshi, Vijay Shanker, Weir (1991) Conjecture: MIX is not a MCFL wn
48 MCFL wn and mild context sensitivity MCFL wn and cross serial dependencies Groenink (PhD dissertation): finite pumpability k-mcfl wn are 2k-pumpable.
49 MCFL wn and mild context sensitivity MCFL wn and cross serial dependencies Kallmeyer (course Düsseldorf): finite copying For every k N, {w k w T } is a k-mcfl wn.
50 MCFL wn and mild context sensitivity MCFL wn and constant growth property Vijay Shanker, Weir, Joshi (1987) Theorem The language defined by an MCFG wn is semilinear.
51 MCFL wn and mild context sensitivity MCFL wn Polynomial parsing Membership Universal Membership m-mcfg LOGCFL-complete NP-complete (when m 2) m-mcfg wn LOGCFL-complete P-complete MCFG LOGCFL-complete PSPCE-complete/ EXPTIME-complete MCFG wn LOGCFL-complete PSPCE-complete/??
The word problem in Z 2 and formal language theory
The word problem in Z 2 and formal language theory Sylvain Salvati INRIA Bordeaux Sud-Ouest Topology and languages June 22-24 Outline The group language of Z 2 A similar problem in computational linguistics
More informationMultiple Context-Free Grammars
Ogden s Lemma, Multiple Context-Free Grammars, and the Control Language Hierarchy Makoto Kanazawa National Institute of Informatics and SOKENDAI Japan Multiple Context-Free Grammars Introduced by Seki,
More informationThe Failure of the Strong Pumping Lemma for Multiple Context-Free Languages
The Failure of the Strong Pumping Lemma for Multiple Context-Free Languages Makoto Kanazawa, Gregory Kobele, Jens Michaelis, Sylvain Salvati, Ryo Yoshinaka To cite this version: Makoto Kanazawa, Gregory
More informationWell-Nestedness Properly Subsumes Strict Derivational Minimalism
A revised version is to appear in: S. Pogodalla and J.-P. Prost (eds.), Logical Aspects of Computational Linguistics (LACL 2011), Lecture Notes in Artificial Intelligence Vol. 6736, pp. 112-128, Springer,
More informationTree Adjoining Grammars
Tree Adjoining Grammars TAG: Parsing and formal properties Laura Kallmeyer & Benjamin Burkhardt HHU Düsseldorf WS 2017/2018 1 / 36 Outline 1 Parsing as deduction 2 CYK for TAG 3 Closure properties of TALs
More informationOgden s Lemma, Multiple Context-Free Grammars, and the Control Language Hierarchy
Ogden s Lemma, Multiple Context-Free Grammars, and the Control Language Hierarchy Makoto Kanazawa? National Institute of Informatics and SOKENDAI, 2 1 2 Hitotsubashi, Chiyoda-ku, Tokyo, 101 8430, Japan
More informationMultiple Context Free Grammars
Multiple Context Free Grammars Siddharth Krishna September 14, 2013 Abstract Multiple context-free grammars (MCFGs) are a generalization of context-free grammars that deals with tuples of strings. This
More informationComputational complexity of commutative grammars
Computational complexity of commutative grammars Jérôme Kirman Sylvain Salvati Bordeaux I University - LaBRI INRIA October 1, 2013 Free word order Some languages allow free placement of several words or
More informationMIX Is Not a Tree-Adjoining Language
MIX Is Not a Tree-Adjoining Language Makoto Kanazawa National Institute of Informatics 2 1 2 Hitotsubashi, Chiyoda-ku Tokyo, 101 8430, Japan kanazawa@nii.ac.jp Sylvain Salvati INRIA Bordeaux Sud-Ouest,
More informationLCFRS Exercises and solutions
LCFRS Exercises and solutions Laura Kallmeyer SS 2010 Question 1 1. Give a CFG for the following language: {a n b m c m d n n > 0, m 0} 2. Show that the following language is not context-free: {a 2n n
More informationOgden s Lemma for CFLs
Ogden s Lemma for CFLs Theorem If L is a context-free language, then there exists an integer l such that for any u L with at least l positions marked, u can be written as u = vwxyz such that 1 x and at
More informationComputational Models - Lecture 5 1
Computational Models - Lecture 5 1 Handout Mode Iftach Haitner. Tel Aviv University. November 28, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice Herlihy, Brown University.
More informationPlan for 2 nd half. Just when you thought it was safe. Just when you thought it was safe. Theory Hall of Fame. Chomsky Normal Form
Plan for 2 nd half Pumping Lemma for CFLs The Return of the Pumping Lemma Just when you thought it was safe Return of the Pumping Lemma Recall: With Regular Languages The Pumping Lemma showed that if a
More informationTHEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET
THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages
More informationThe Pumping Lemma for Context Free Grammars
The Pumping Lemma for Context Free Grammars Chomsky Normal Form Chomsky Normal Form (CNF) is a simple and useful form of a CFG Every rule of a CNF grammar is in the form A BC A a Where a is any terminal
More informationContext-Free Languages (Pre Lecture)
Context-Free Languages (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Context-Free Languages (Pre Lecture) Fall 2017 1 / 34 Outline Pumping Lemma
More information6.1 The Pumping Lemma for CFLs 6.2 Intersections and Complements of CFLs
CSC4510/6510 AUTOMATA 6.1 The Pumping Lemma for CFLs 6.2 Intersections and Complements of CFLs The Pumping Lemma for Context Free Languages One way to prove AnBn is not regular is to use the pumping lemma
More informationComputational Models - Lecture 4 1
Computational Models - Lecture 4 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 3/8, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice
More informationNPDA, CFG equivalence
NPDA, CFG equivalence Theorem A language L is recognized by a NPDA iff L is described by a CFG. Must prove two directions: ( ) L is recognized by a NPDA implies L is described by a CFG. ( ) L is described
More informationA short proof that O 2 is an MCFL
A short proof that O 2 is an MCFL Mark-Jan Nederhof School of Computer Science University of St Andrews, UK Astract We present a new proof that O 2 is a multiple context-free language. It contrasts with
More informationParsing beyond context-free grammar: Parsing Multiple Context-Free Grammars
Parsing beyond context-free grammar: Parsing Multiple Context-Free Grammars Laura Kallmeyer, Wolfgang Maier University of Tübingen ESSLLI Course 2008 Parsing beyond CFG 1 MCFG Parsing Multiple Context-Free
More informationEinführung in die Computerlinguistik
Einführung in die Computerlinguistik Context-Free Grammars formal properties Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2018 1 / 20 Normal forms (1) Hopcroft and Ullman (1979) A normal
More informationProperties of Context-Free Languages. Closure Properties Decision Properties
Properties of Context-Free Languages Closure Properties Decision Properties 1 Closure Properties of CFL s CFL s are closed under union, concatenation, and Kleene closure. Also, under reversal, homomorphisms
More informationFirst order wave equations. Transport equation is conservation law with J = cu, u t + cu x = 0, < x <.
First order wave equations Transport equation is conservation law with J = cu, u t + cu x = 0, < x
More informationMovement-Generalized Minimalist Grammars
Movet-Generalized Minimalist Grammars Thomas Graf tgraf@ucla.edu tgraf.bol.ucla.edu University of California, Los Angeles LACL 2012 July 2, 2012 Outline 1 Monadic Second-Order Logic (MSO) Talking About
More informationSharpening the empirical claims of generative syntax through formalization
Sharpening the empirical claims of generative syntax through formalization Tim Hunter University of Minnesota, Twin Cities ESSLLI, August 2015 Part 1: Grammars and cognitive hypotheses What is a grammar?
More informationCS375: Logic and Theory of Computing
CS375: Logic and Theory of Computing Fuhua (Frank) Cheng Department of Computer Science University of Kentucky 1 Table of Contents: Week 1: Preliminaries (set algebra, relations, functions) (read Chapters
More informationIntroduction to Theory of Computing
CSCI 2670, Fall 2012 Introduction to Theory of Computing Department of Computer Science University of Georgia Athens, GA 30602 Instructor: Liming Cai www.cs.uga.edu/ cai 0 Lecture Note 3 Context-Free Languages
More informationMA/CSSE 474 Theory of Computation
MA/CSSE 474 Theory of Computation Bottom-up parsing Pumping Theorem for CFLs Recap: Going One Way Lemma: Each context-free language is accepted by some PDA. Proof (by construction): The idea: Let the stack
More informationFinite Automata and Formal Languages TMV026/DIT321 LP Useful, Useless, Generating and Reachable Symbols
Finite Automata and Formal Languages TMV026/DIT321 LP4 2012 Lecture 13 Ana Bove May 7th 2012 Overview of today s lecture: Normal Forms for Context-Free Languages Pumping Lemma for Context-Free Languages
More informationSYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES
Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,
More informationProblem 2.6(d) [4 pts] Problem 2.12 [3pts] Original CFG:
Problem 2.6(d) [4 pts] S X T#X X#T T#X#T X axa bxb #T# # T at bt #T ε Problem 2.12 [3pts] Original CFG: R XRX S S atb bta T XTX X ε X a b q start ε, ε $ ε, R X ε, ε R ε, ε X ε, R S ε, T X ε, T ε ε, X a
More informationProperties of Context-Free Languages
Properties of Context-Free Languages Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr
More informationEfficient Parsing of Well-Nested Linear Context-Free Rewriting Systems
Efficient Parsing of Well-Nested Linear Context-Free Rewriting Systems Carlos Gómez-Rodríguez 1, Marco Kuhlmann 2, and Giorgio Satta 3 1 Departamento de Computación, Universidade da Coruña, Spain, cgomezr@udc.es
More informationParsing Linear Context-Free Rewriting Systems
Parsing Linear Context-Free Rewriting Systems Håkan Burden Dept. of Linguistics Göteborg University cl1hburd@cling.gu.se Peter Ljunglöf Dept. of Computing Science Göteborg University peb@cs.chalmers.se
More informationMIX is a 2-MCFL and the word problem in Z 2 is solved by a third-order collapsible pushdown automaton
MIX is a 2-MCFL and the word problem in Z 2 is solved by a third-order collapsible pushdown automaton Sylvain Salvati To cite this version: Sylvain Salvati. MIX is a 2-MCFL and the word problem in Z 2
More informationProperties of context-free Languages
Properties of context-free Languages We simplify CFL s. Greibach Normal Form Chomsky Normal Form We prove pumping lemma for CFL s. We study closure properties and decision properties. Some of them remain,
More informationWell-Nestedness Properly Subsumes Strict Derivational Minimalism
Well-Nestedness Properly Subsumes Strict Derivational Minimalism Makoto Kanazawa, Jens Michaelis, Sylvain Salvati, Ryo Yoshinaka To cite this version: Makoto Kanazawa, Jens Michaelis, Sylvain Salvati,
More informationFinal exam study sheet for CS3719 Turing machines and decidability.
Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,
More informationNote: In any grammar here, the meaning and usage of P (productions) is equivalent to R (rules).
Note: In any grammar here, the meaning and usage of P (productions) is equivalent to R (rules). 1a) G = ({R, S, T}, {0,1}, P, S) where P is: S R0R R R0R1R R1R0R T T 0T ε (S generates the first 0. R generates
More informationWeak vs. Strong Finite Context and Kernel Properties
ISSN 1346-5597 NII Technical Report Weak vs. Strong Finite Context and Kernel Properties Makoto Kanazawa NII-2016-006E July 2016 Weak vs. Strong Finite Context and Kernel Properties Makoto Kanazawa National
More informationThis lecture covers Chapter 7 of HMU: Properties of CFLs
This lecture covers Chapter 7 of HMU: Properties of CFLs Chomsky Normal Form Pumping Lemma for CFs Closure Properties of CFLs Decision Properties of CFLs Additional Reading: Chapter 7 of HMU. Chomsky Normal
More informationSCHEME FOR INTERNAL ASSESSMENT TEST 3
SCHEME FOR INTERNAL ASSESSMENT TEST 3 Max Marks: 40 Subject& Code: Automata Theory & Computability (15CS54) Sem: V ISE (A & B) Note: Answer any FIVE full questions, choosing one full question from each
More informationSecond-Order Abstract Categorial Grammars
Second-Order Abstract Categorial Grammars Makoto Kanazawa July 28, 2009 1 Some Context-Free Grammar Formalisms 1.1 Top-Down Rewriting and Bottom-Up Deduction When Chomsky first introduced the context-free
More informationChap. 7 Properties of Context-free Languages
Chap. 7 Properties of Context-free Languages 7.1 Normal Forms for Context-free Grammars Context-free grammars A where A N, (N T). 0. Chomsky Normal Form A BC or A a except S where A, B, C N, a T. 1. Eliminating
More informationChapter 16: Non-Context-Free Languages
Chapter 16: Non-Context-Free Languages Peter Cappello Department of Computer Science University of California, Santa Barbara Santa Barbara, CA 93106 cappello@cs.ucsb.edu Please read the corresponding chapter
More informationUpper Bounds of Dynamic Chromatic Number
Upper Bounds of Dynamic Chromatic Number Hong-Jian Lai, Bruce Montgomery and Hoifung Poon Department of Mathematics West Virginia University, Morgantown, WV 26506-6310 June 22, 2000 Abstract A proper vertex
More informationSolution. S ABc Ab c Bc Ac b A ABa Ba Aa a B Bbc bc.
Section 12.4 Context-Free Language Topics Algorithm. Remove Λ-productions from grammars for langauges without Λ. 1. Find nonterminals that derive Λ. 2. For each production A w construct all productions
More informationNotes for Comp 497 (454) Week 10
Notes for Comp 497 (454) Week 10 Today we look at the last two chapters in Part II. Cohen presents some results concerning the two categories of language we have seen so far: Regular languages (RL). Context-free
More informationTheory of Computation (IX) Yijia Chen Fudan University
Theory of Computation (IX) Yijia Chen Fudan University Review The Definition of Algorithm Polynomials and their roots A polynomial is a sum of terms, where each term is a product of certain variables and
More informationSharpening the empirical claims of generative syntax through formalization
Sharpening the empirical claims of generative syntax through formalization Tim Hunter University of Minnesota, Twin Cities NASSLLI, June 2014 Part 1: Grammars and cognitive hypotheses What is a grammar?
More informationContext-Free and Noncontext-Free Languages
Examples: Context-Free and Noncontext-Free Languages a*b* is regular. A n B n = {a n b n : n 0} is context-free but not regular. A n B n C n = {a n b n c n : n 0} is not context-free The Regular and the
More informationCSE 355 Test 2, Fall 2016
CSE 355 Test 2, Fall 2016 28 October 2016, 8:35-9:25 a.m., LSA 191 Last Name SAMPLE ASU ID 1357924680 First Name(s) Ima Regrading of Midterms If you believe that your grade has not been added up correctly,
More informationComputational Models - Lecture 4 1
Computational Models - Lecture 4 1 Handout Mode Iftach Haitner. Tel Aviv University. November 21, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice Herlihy, Brown University.
More informationFoundations of Informatics: a Bridging Course
Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html
More informationGrammar formalisms Tree Adjoining Grammar: Formal Properties, Parsing. Part I. Formal Properties of TAG. Outline: Formal Properties of TAG
Grammar formalisms Tree Adjoining Grammar: Formal Properties, Parsing Laura Kallmeyer, Timm Lichte, Wolfgang Maier Universität Tübingen Part I Formal Properties of TAG 16.05.2007 und 21.05.2007 TAG Parsing
More informationStochastic Finite Learning of Some Mildly Context-Sensitive Languages
Stochastic Finite Learning of Some Mildly Context-Sensitive Languages John Case 1, Ryo Yoshinaka 2, and Thomas Zeugmann 3 1 Department of Computer and Information Sciences, University of Delaware case@mail.eecis.udel.edu
More informationIntroduction to Kleene Algebras
Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)
More informationAn Additional Observation on Strict Derivational Minimalism
10 An Additional Observation on Strict Derivational Minimalism Jens Michaelis Abstract We answer a question which, so far, was left an open problem: does in terms of derivable string languages the type
More informationContext-Free Languages
CS:4330 Theory of Computation Spring 2018 Context-Free Languages Non-Context-Free Languages Haniel Barbosa Readings for this lecture Chapter 2 of [Sipser 1996], 3rd edition. Section 2.3. Proving context-freeness
More informationCS481F01 Prelim 2 Solutions
CS481F01 Prelim 2 Solutions A. Demers 7 Nov 2001 1 (30 pts = 4 pts each part + 2 free points). For this question we use the following notation: x y means x is a prefix of y m k n means m n k For each of
More informationCS5371 Theory of Computation. Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL)
CS5371 Theory of Computation Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL) Objectives Introduce Pumping Lemma for CFL Apply Pumping Lemma to show that some languages are non-cfl Pumping Lemma
More informationFinite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018
Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 14 Ana Bove May 14th 2018 Recap: Context-free Grammars Simplification of grammars: Elimination of ǫ-productions; Elimination of
More informationCS 420, Spring 2018 Homework 4 Solutions. 1. Use the Pumping Lemma to show that the following languages are not regular: (a) {0 2n 10 n n 0};
CS 420, Spring 2018 Homework 4 Solutions 1. Use the Pumping Lemma to show that the following languages are not regular: (a) {0 2n 10 n n 0}; Solution: Given p 1, choose s = 0 2p 10 p. Then, s is in the
More informationPushdown Automata (2015/11/23)
Chapter 6 Pushdown Automata (2015/11/23) Sagrada Familia, Barcelona, Spain Outline 6.0 Introduction 6.1 Definition of PDA 6.2 The Language of a PDA 6.3 Euivalence of PDA s and CFG s 6.4 Deterministic PDA
More informationStrongly chordal and chordal bipartite graphs are sandwich monotone
Strongly chordal and chordal bipartite graphs are sandwich monotone Pinar Heggernes Federico Mancini Charis Papadopoulos R. Sritharan Abstract A graph class is sandwich monotone if, for every pair of its
More informationComment: The induction is always on some parameter, and the basis case is always an integer or set of integers.
1. For each of the following statements indicate whether it is true or false. For the false ones (if any), provide a counter example. For the true ones (if any) give a proof outline. (a) Union of two non-regular
More informationFinite Automata Theory and Formal Languages TMV026/TMV027/DIT321 Responsible: Ana Bove
Finite Automata Theory and Formal Languages TMV026/TMV027/DIT321 Responsible: Ana Bove Tuesday 28 of May 2013 Total: 60 points TMV027/DIT321 registration VT13 TMV026/DIT321 registration before VT13 Exam
More informationModule 2: First-Order Partial Differential Equations
Module 2: First-Order Partial Differential Equations The mathematical formulations of many problems in science and engineering reduce to study of first-order PDEs. For instance, the study of first-order
More informationNonlinear Integral Equation Formulation of Orthogonal Polynomials
Nonlinear Integral Equation Formulation of Orthogonal Polynomials Eli Ben-Naim Theory Division, Los Alamos National Laboratory with: Carl Bender (Washington University, St. Louis) C.M. Bender and E. Ben-Naim,
More informationEinführung in die Computerlinguistik
Einführung in die Computerlinguistik Context-Free Grammars (CFG) Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2016 1 / 22 CFG (1) Example: Grammar G telescope : Productions: S NP VP NP
More informationAlgebraic Approach to Automata Theory
Algebraic Approach to Automata Theory Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 20 September 2016 Outline 1 Overview 2 Recognition via monoid
More informationApplications of Regular Algebra to Language Theory Problems. Roland Backhouse February 2001
1 Applications of Regular Algebra to Language Theory Problems Roland Backhouse February 2001 Introduction 2 Examples: Path-finding problems. Membership problem for context-free languages. Error repair.
More informationNon-context-Free Languages. CS215, Lecture 5 c
Non-context-Free Languages CS215, Lecture 5 c 2007 1 The Pumping Lemma Theorem. (Pumping Lemma) Let be context-free. There exists a positive integer divided into five pieces, Proof for for each, and..
More informationLegendre s Equation. PHYS Southern Illinois University. October 18, 2016
Legendre s Equation PHYS 500 - Southern Illinois University October 18, 2016 PHYS 500 - Southern Illinois University Legendre s Equation October 18, 2016 1 / 11 Legendre s Equation Recall We are trying
More informationA C 0 coarse structure for families of pseudometrics and the Higson-Roe functor
A C 0 coarse structure for families of pseudometrics and the Higson-Roe functor Jesús P. Moreno-Damas arxiv:1410.2756v1 [math.gn] 10 Oct 2014 Abstract This paper deepens into the relations between coarse
More informationFall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in
Fall 1999 Formal Language Theory Dr. R. Boyer Week Four: Regular Languages; Pumping Lemma 1. There are other methods of nding a regular expression equivalent to a nite automaton in addition to the ones
More informationParikh s theorem. Håkan Lindqvist
Parikh s theorem Håkan Lindqvist Abstract This chapter will discuss Parikh s theorem and provide a proof for it. The proof is done by induction over a set of derivation trees, and using the Parikh mappings
More informationEven More on Dynamic Programming
Algorithms & Models of Computation CS/ECE 374, Fall 2017 Even More on Dynamic Programming Lecture 15 Thursday, October 19, 2017 Sariel Har-Peled (UIUC) CS374 1 Fall 2017 1 / 26 Part I Longest Common Subsequence
More informationHarvard CS 121 and CSCI E-207 Lecture 12: General Context-Free Recognition
Harvard CS 121 and CSCI E-207 Lecture 12: General Context-Free Recognition Salil Vadhan October 11, 2012 Reading: Sipser, Section 2.3 and Section 2.1 (material on Chomsky Normal Form). Pumping Lemma for
More informationFundamentele Informatica II
Fundamentele Informatica II Answer to selected exercises 5 John C Martin: Introduction to Languages and the Theory of Computation M.M. Bonsangue (and J. Kleijn) Fall 2011 5.1.a (q 0, ab, Z 0 ) (q 1, b,
More informationContext-free Grammars and Languages
Context-free Grammars and Languages COMP 455 002, Spring 2019 Jim Anderson (modified by Nathan Otterness) 1 Context-free Grammars Context-free grammars provide another way to specify languages. Example:
More informationAutomata & languages. A primer on the Theory of Computation. Laurent Vanbever. ETH Zürich (D-ITET) October,
Automata & languages A primer on the Theory of Computation Laurent Vanbever www.vanbever.eu ETH Zürich (D-ITET) October, 5 2017 Part 3 out of 5 Last week, we learned about closure and equivalence of regular
More informationPart 3 out of 5. Automata & languages. A primer on the Theory of Computation. Last week, we learned about closure and equivalence of regular languages
Automata & languages A primer on the Theory of Computation Laurent Vanbever www.vanbever.eu Part 3 out of 5 ETH Zürich (D-ITET) October, 5 2017 Last week, we learned about closure and equivalence of regular
More informationContext Free Languages: Decidability of a CFL
Theorem 14.1 Context Free Languages: Decidability of a CFL Statement: Given a CFL L and string w, there is a decision procedure that determines whether w L. Proof: By construction. 1. Proof using a grammar
More informationCS21 Decidability and Tractability
CS21 Decidability and Tractability Lecture 8 January 24, 2018 Outline Turing Machines and variants multitape TMs nondeterministic TMs Church-Turing Thesis So far several models of computation finite automata
More informationComputational Models - Lecture 3
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models - Lecture 3 Equivalence of regular expressions and regular languages (lukewarm leftover
More informationX-MA2C01-1: Partial Worked Solutions
X-MAC01-1: Partial Worked Solutions David R. Wilkins May 013 1. (a) Let A, B and C be sets. Prove that (A \ (B C)) (B \ C) = (A B) \ C. [Venn Diagrams, by themselves without an accompanying logical argument,
More informationBefore We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions?
Before We Start The Pumping Lemma Any questions? The Lemma & Decision/ Languages Future Exam Question What is a language? What is a class of languages? Context Free Languages Context Free Languages(CFL)
More informationContext Free Languages. Automata Theory and Formal Grammars: Lecture 6. Languages That Are Not Regular. Non-Regular Languages
Context Free Languages Automata Theory and Formal Grammars: Lecture 6 Context Free Languages Last Time Decision procedures for FAs Minimum-state DFAs Today The Myhill-Nerode Theorem The Pumping Lemma Context-free
More informationSolution to CS375 Homework Assignment 11 (40 points) Due date: 4/26/2017
Solution to CS375 Homework Assignment 11 (40 points) Due date: 4/26/2017 1. Find a Greibach normal form for the following given grammar. (10 points) S bab A BAa a B bb Ʌ Solution: (1) Since S does not
More informationPhilippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages
Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages Frédérique Bassino and Cyril Nicaud LIGM, Université Paris-Est & CNRS December 16, 2011 I first met Philippe in
More informationComputational Models - Lecture 4
Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push
More informationEinführung in die Computerlinguistik Kontextfreie Grammatiken - Formale Eigenschaften
Normal forms (1) Einführung in die Computerlinguistik Kontextfreie Grammatiken - Formale Eigenschaften Laura Heinrich-Heine-Universität Düsseldorf Sommersemester 2013 normal form of a grammar formalism
More informationParsing Beyond Context-Free Grammars: Tree Adjoining Grammars
Parsing Beyond Context-Free Grammars: Tree Adjoining Grammars Laura Kallmeyer & Tatiana Bladier Heinrich-Heine-Universität Düsseldorf Sommersemester 2018 Kallmeyer, Bladier SS 2018 Parsing Beyond CFG:
More informationContext Free Grammars: Introduction. Context Free Grammars: Simplifying CFGs
Context Free Grammars: Introduction CFGs are more powerful than RGs because of the following 2 properties: 1. Recursion Rule is recursive if it is of the form X w 1 Y w 2, where Y w 3 Xw 4 and w 1, w 2,
More informationParsing. Context-Free Grammars (CFG) Laura Kallmeyer. Winter 2017/18. Heinrich-Heine-Universität Düsseldorf 1 / 26
Parsing Context-Free Grammars (CFG) Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Winter 2017/18 1 / 26 Table of contents 1 Context-Free Grammars 2 Simplifying CFGs Removing useless symbols Eliminating
More informationProperties of Context-free Languages. Reading: Chapter 7
Properties of Context-free Languages Reading: Chapter 7 1 Topics 1) Simplifying CFGs, Normal forms 2) Pumping lemma for CFLs 3) Closure and decision properties of CFLs 2 How to simplify CFGs? 3 Three ways
More informationWhat we have done so far
What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.
More information2. Syntactic Congruences and Monoids
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 3: Algebra and Languages David Mix Barrington and Alexis Maciel July 19, 2000 1.
More information