Question: # Constructor Theorems on Languages If you have a * goal * that is a language membership, eg , ` In w ( L 1
# Constructor Theorems on Languages
If you have a goal that is a language membership,
egIn w L L then you'll need to use a
constructor theorem, egappin
There is one constructor theorem per language:
charin
nilin
unioninl
unioninr
appin
Solve:tutorialvtutorialv
# Inversion Theorems on Languages
If you have an assumption that is a language membership
in one of the assumptions, egIn w L L
then you'll need to use an inversion theorem, egappininv
There is one inversion theorem per language:
charininv for a
appininv for L L
unionininv for L U L
use inversion H; subst; clear H for Pow
use startopow for L
Solve:tutorialvtutorialv
# Exercise
Objective: If w is in Language, then conclude
something about Language.
The technical point of this exercise is to remember
Inversion Theorems on Languages.
Any equivalence exercises where you show that a language
is equal to "fun w is a more general case.
For a guiding example, look at lspec, in one
of the directions you have that w is in L
and you have to show that "exists w w wa
## Recommended exercises
lspec
lspec
abbnotinl
# Exercise
Objective: Show that a word in in a language.
The language itself is composed of multiple language
combinators. The goal is to use Constructor Theorems.
## Recommended exercises
lspec
lspec
aabbinl
# Exercise
Objective: If w is not in Language, then
assume that w is in the language, and then
reach a contradiction.
Similarly to exercise you'll need Inversion
Theorems on Languages.
In terms of proof technique, you'll always try
to favor start by assumptions that lead to
an impossibility. You'll probably need to use
tactics such as inversion explosion principle
intuition, and contradiction.
## Recommended exercises
carnotinl
abbnotinl
# Exercise
Objective: show language equivalence through
rewriting rules.
In this case, because both languages consist
of combinators, you'll want to use theorems
for rewriting equalities. These theorems end
with rw
Search is your friend.
For instance, Search searches
for any rewrite rule that ends with the void
language
Do not open Equiv and do not use split
## Recommended exercises
Goal a U aa
# Exercise
Same as
# Exercise
Objective: language equivalence combines
showing that a word is in a language Exercise
and concluding something from knowing that a word is
in a language Exercise
Open Equiv You will want to use the theorems
applcharininv and applcharin
Practice Exercises and
# Exercise
Same as
# Exercise
Same as
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
