Question: I was able to do ex 2 , ex 3 , ex 4 , ex 5 . please do the rest. ( * ##################################################### ###
I was able to do ex ex ex ex please do the rest.
#####################################################
### PLEASE DO NOT DISTRIBUTE SOLUTIONS PUBLICLY ###
#####################################################
Set Default Goal Selector
Require Import Coq.Strings.Ascii.
Require Import Coq.Lists.List.
From Turing Require Import Lang.
From Turing Require Import Util.
Import LangNotations.
Import ListNotations.
Import Lang.Examples.
Open Scope langscope.
Open Scope charscope.
Show that any word that is in L is either empty or starts with a
Theorem ex:
forall w L w w exists w w a :: w
Proof.
Admitted.
Show that the following word is accepted by the given language.
Lemma binb:
Char bb
Proof.
unfold Char.
reflexivity.
Qed.
Lemma inbb:
In b; bPow Char b
Proof.
unfold In
a
apply powcons with w:bw:b
apply powcons with w:bw:
apply pownil.
apply binb
reflexivity.
apply binb
reflexivity.
Qed.
Theorem ex: In a; b; b; aaba
Proof.
unfold Star.
unfold In
unfold App.
exists a; b; ba
split.
simpl. reflexivity.
split.
exists ab;b split.
reflexivity.
split. reflexivity. exists apply inbb
reflexivity.
Qed.
Show that the following word is rejected by the given language.
Theorem ex: ~ In b; baba
Proof.
unfold not.
intros.
unfold In App in H
destruct H as ww H
destruct H as HaHb Hc
destruct Hb as HdHe Hf
destruct Hf
destruct H
unfold Char in H
subst.
inversion Ha
Qed.
Show that the following language is empty.
Theorem ex:
Proof.
apply apprvoidrw
Qed.
Rearrange the following terms. Hint use the distribution and absorption laws.
Theorem ex: U Nil U
Proof.
Admitted.
Show that the following langue only accepts two words.
Theorem ex: U fun w w ; w ;
Proof.
Admitted.
Theorem ex: ba U b U Nil Nil bb U a
Proof.
Admitted.
Theorem ex: ba U U Nil cba
Proof.
Admitted.
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
