1 Part 11. Extending Concept of Dependency, as Defined by Permission.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
CSCI 115 Chapter 6 Order Relations and Structures.
4.5 Inherently Ambiguous Context-free Language For some context-free languages, such as arithmetic expressions, may have many different CFG’s to generate.
Chapter 5 Pushdown Automata
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Closure Properties of CFL's
Grammars, constituency and order A grammar describes the legal strings of a language in terms of constituency and order. For example, a grammar for a fragment.
Representing Relations Using Matrices
8.4 Closures of Relations. Intro Consider the following example (telephone line, bus route,…) abc d Is R, defined above on the set A={a, b, c, d}, transitive?
Algebraic Structures DEFINITIONS: PROPERTIES OF BINARY OPERATIONS Let S be a set and let  denote a binary operation on S. (Here  does not necessarily.
1 Conditional XPath, the first order complete XPath dialect Maarten Marx Presented by: Einav Bar-Ner.
Courtesy Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Transparency No. P2C5-1 Formal Language and Automata Theory Part II Chapter 5 The Pumping Lemma and Closure properties for Context-free Languages.
November 10, 2009Theory of Computation Lecture 16: Computation on Strings I 1Diagonalization Another example: Let TOT be the set of all numbers p such.
Math Foundations Week 12 Graphs (2). Agenda Paths Connectivity Euler paths Hamilton paths 2.
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Technion 1 (Yet another) decision procedure for Equality Logic Ofer Strichman and Orly Meir Technion.
CSE115/ENGR160 Discrete Mathematics 03/31/11
Transparency No. P2C5-1 Formal Language and Automata Theory Part II Chapter 5 The Pumping Lemma and Closure properties for Context-free Languages.
Monadic Predicate Logic is Decidable Boolos et al, Computability and Logic (textbook, 4 th Ed.)
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
CS 473 All Pairs Shortest Paths1 CS473 – Algorithms I All Pairs Shortest Paths.
Relations Chapter 9.
Applied Discrete Mathematics Week 10: Equivalence Relations
Methods of Proof & Proof Strategies
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
Sequences and Series (T) Students will know the form of an Arithmetic sequence.  Arithmetic Sequence: There exists a common difference (d) between each.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
CSE 3813 Introduction to Formal Languages and Automata Chapter 8 Properties of Context-free Languages These class notes are based on material from our.
Section 5.3. Section Summary Recursively Defined Functions Recursively Defined Sets and Structures Structural Induction.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
CSC-2259 Discrete Structures
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
Regular Expressions and Languages A regular expression is a notation to represent languages, i.e. a set of strings, where the set is either finite or contains.
Universidad Nacional de ColombiaUniversidad Nacional de Colombia Facultad de IngenieríaFacultad de Ingeniería Departamento de Sistemas- 2002Departamento.
Week 6 - Friday.  What did we talk about last time?  Solving recurrence relations.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Mathematical Preliminaries
1 Part 13. Tubular Rulesets. 2 Def. For a given state s with rule set R, triple E is tubular if for every triple T that E depends on, T is a tube of E:
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
CS 203: Introduction to Formal Languages and Automata
Chapter 3 Regular Expressions, Nondeterminism, and Kleene’s Theorem Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction.
Grammars A grammar is a 4-tuple G = (V, T, P, S) where 1)V is a set of nonterminal symbols (also called variables or syntactic categories) 2)T is a finite.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
Chapter 8 Properties of Context-free Languages These class notes are based on material from our textbook, An Introduction to Formal Languages and Automata,
Transparency No. P2C5-1 Formal Language and Automata Theory Part II Chapter 5 The Pumping Lemma and Closure properties for Context-free Languages.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
1 Part 5. Permission Rules for Two-Level Systems Controlling access (visibility or scope) of static references. Analogous to “private” in C/C++/Java.
Chapter 1 Logic and Proof.
Representing Relations Using Digraphs
Markov Chains and Random Walks
Relations Chapter 9.
PDAs Accept Context-Free Languages
Mathematical Induction Recursion
DPDA Deterministic PDA
Deterministic PDAs - DPDAs
Applied Discrete Mathematics Week 9: Integer Properties
CSE322 Regular Expressions and their Identities
DPDA Deterministic PDA
Part 7. Phantoms: Legal States That Cannot Be Constructed
Closures of Relations Epp, section 10.1,10.2 CS 202.
Representing Relations Using Matrices
Recursion.
Presentation transcript:

1 Part 11. Extending Concept of Dependency, as Defined by Permission

2 Review. In a ruleset R, if variable (type) t has a product  1 o  2 … o  n as in t  …   1 o  2 … o  n  … then we say type t depends on sequence according to R We write this as a production t  R ( 1  2 …  n ) or as t  R  We also say t depends on each symbol of the sequence t  R  i Review: A type (variable) depends on a sequence of types    11 22 ii nn t …… The R “subscript” on  and is omitted when obvious from context

3 Suppose SoP ruleset R has production t  R (  1  2 …  n ) Suppose state s contains triple T = (x 0 t x n ) as well as this path (sequence of triples)  = ( 1  2 …  n ) = (x 0  1 x 1, x 1  2 x 2, …, x n-1  n x n ) then we say T depends on  written as T  R  We also say triple T depends on each triple  i written as T  R  i Extension: A triple (tuple) depends on a sequence of triples    11 22 ii nn T ……

4 Suppose SoP ruleset R has this production R i  R (V 1 V 2 … V m ) Consider these two type sequences:  1 = (R 1 R 2 … R i … R n )  2 = (R 1 R 2 … V 1 V 2 … V m … R n ) In  1, R i is replaced by (V1 V2 … Vm) to form  2 We say sequence  1 depends on sequence  2, written as:  1  R  2 We can apply transitive closure to :  1  R +  2 means there exist a 1, a 2, …, a n such that  1  R a 1  R a 2 …  R a n  R  2 Extend type dependency so: a type sequence depends on a type sequence R2R2 V1V1 V2V2 VmVm RnRn … R1R1 … … R2R2 RiRi RnRn … R1R1 … 

5 Suppose SoP ruleset has production R i  R (V 1 V 2 … V m ) Suppose state s contains these triple sequences (paths):  1 = (x 0 R 1 x 1 R 2 x 2 … x i-1 R i X i … x n-1 R n x n )  2 = (x 0 R 1 x 1 R 2 x 2 … x i-1 V 1 y 1 V 2 y 1 … y m-1 V m X i … x n-1 R n x n ) then we say  1 depends on  2, written as:  1  R  2 We can apply transitive closure to :  1  R +  2 means there exist A 1, A 2, …, A n such that  1  R A 1  R A 2 …  R A n  R  2 Extend tuple dependency so: a tuple sequence depends on a tuple sequence Note analogy to CFG productions and sentences

6 Tuple Length Equals Length of Its Lifted Path of Tubes Theorem. In a tubular state, if triple T depends on a sequence of triples ( 1  2 …  n ), that is, if T  ( 1  2 …  n ) (Note that each  i is a tube of T) then Len(T) = Len( 1 ) + Len( 2 ) + … + Len( n ) … T 11 22 nn Len(x t y) = def min number of P and C edges from x to y

7 Useless Productions Def. Suppose SoP ruleset has production R  (V 1 V 2 … V n ) If for every triple T = (x 0 R x n ) in every legal state there is no triple sequence  = (x 0 V 1 x 1, x 1 V 2 x 2, …, x n-1 V n x n ) such that T   then we say the production is useless. Omit this definition. Instead “useless” applies to constructive states??

8 Legality as Dependency Theorem. State s is legal iff for every triple T in s there exists triple sequence  such that T   Proof. To prove s is legal, we need to show L f (s) is true. We will re-state this successively: s  f(s) for every T in s, there is W in f(s) such that V=W for every T in s, there is  such that W is the composition of the triples in  for every T in s, there is  such that T  . QED Recall similar result: s is legal iff every triple of s is legal

9 Def. For a given SoP ruleset, type (variable) t is type recursive, or simply, recursive, if t transitively depends on itself, that is if t   t Example. t  t  v o P v  t Types t and v are both recursive Recursive Types

10 Def. For a given SoP ruleset, type (variable) t is (type) multi-recursive, if t transitively depends on a sequence that includes more than one instance of t: t   ( … t … t …) If type t is recursive, but not multi-recursive, we say it is linearly recursive. Example. t  (t P v P) v  (t P) So, types t and v are both recursive, e.g., t   (t P t P P) Multi-Recursive Types

11 Def. For a given SoP ruleset and a given state s, triple T is tuple recursive, or triple recursive, or simply recursive, if T   T Example. t  t v  v o t In state s, triple T = (a v a) is recursive because (a v a)   a v a) Triple V = (a v a) is also recursive. Recursive Triples t v a Legal state s a v a a t a   

12 Part 12. Phantoms and Recursive Dependency

13 Phantoms Have Recursive Dependency Theorem. Every phantom state contains a recursive triple T: T  + T Proof. Assume the contrary (assume a phantom p has no -recursion). Then p can be de-constructed (and then re-constructed) one triple at a time. So p is constructive, which is a contradiction.

14 Properties of Tuple Recursion Where there is tuple recursion, there exists a cycle of N triples: T 0 = (a 0 t 0 b 0 ), T 1 = (a 1 t 1 b 1 ), … T N = (a N t N b N ), that depend successively on the next triple in the cycle T 0  T 1  …  T N  T 0

15 Properties of Tuple Recursion When state s is tuple recursive, there exists a triple T 0 = (a 0 t 0 b 0 ) (node a 0 is connected by type t 0 to node b 0 ) and path of triples  such that T 0 transitively depends on path  T 0  +  where T 0 is an element of , that is, T 0  + ( … T 0 … )

16 Properties of Tuple Recursion When state is recursive we have this cycle of dependencies: T 0  E 0 T 1 F 0  T 1  E 1 T 2 F 1  … T i  E i T i+1 F i  … T N-1  E N-1 T N F N-1  T N  E N T 0 F N  where we are using the convention that Ei and Fi are sequences (really, paths) of triples. Note that if (a V b) and (c W) d are successive triples in a path of triples, then necessarily nodes b and c are identical: b = c. E N-1 T N F N-1 E N T 0 F N E 0 T 1 F 0 …   