Differences
This shows you the differences between two versions of the page.
sav08:homework12 [2008/05/14 20:08] vkuncak |
sav08:homework12 [2015/04/21 17:30] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Homework 12, Due May 21 ====== | ||
- | |||
- | ===== Problem 1 ===== | ||
- | |||
- | Write a regular expression in alphabet $\{x,y,z\} \to \{0,1\}$ denoting relation $z = x + y$ using [[:Regular expressions for automata with parallel inputs]]. Try to make your regular expression as concise and understandable as possible. | ||
- | |||
- | ===== Problem 2 ===== | ||
- | |||
- | In [[Quantifier elimination definition]] we noted that if the validity of first-order formulas in some theory is decidable, then we can extend the language of formulas so that we have quantifier elimination. Previously we also observed that quantifier interpolation implies the existence of interpolants (see the definition of [[interpolation for propositional logic]] as well as the [[Calculus of Computation Textbook]]). We next apply these observations to weak monadic second-order logic over strings described in [[Lecture23]]. | ||
- | |||
- | Extend the language of monadic second-order logic over strings with new predicate symbols and describe an algorithm that, given formulas $P(x,y)$ and $Q(y,z)$ in this extension (where $x$,$y$,$z$ are $n$-tuples of set variables) checks whether | ||
- | \[ | ||
- | \forall x,y,z. (P(x,y) \rightarrow Q(y,z)) | ||
- | \] | ||
- | holds, and, if it holds, finds an interpolant for $P(x,y)$ and $Q(y,z)$. | ||