1
vote
Proving that a language whose strings have prime length is not context-free
Clearly $1^p$ belongs to $L$ for any prime $p$. If $L$ were regular, then, by the pumping lemma, for large enough prime $p$, you can write $1^p$ as $xyz$, where $y$ is non-empty and any string of the ...
1
vote
Accepted
Formalizing Real World Sentence In Intuitionistic Logic?
The two statements are also equivalent in intuitionist logic.
For suppose (1) holds. Now suppose $W \implies P$. Then $W \implies (P \lor M \lor I \lor D)$; contradiction. Thus, we must have $\neg (W \...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
formal-languages × 1963automata × 604
context-free-grammar × 421
regular-language × 405
computer-science × 310
logic × 244
regular-expressions × 144
formal-grammar × 125
discrete-mathematics × 114
turing-machines × 114
computability × 96
elementary-set-theory × 63
first-order-logic × 55
pumping-lemma × 55
computational-complexity × 49
combinatorics × 45
formal-systems × 40
solution-verification × 39
proof-writing × 37
abstract-algebra × 35
propositional-calculus × 35
model-theory × 32
group-theory × 27
induction × 27
predicate-logic × 27