Question: ( * * The following code implements a function that given a string it returns a regular expression that only accepts that string. Fixpoint r
The following code implements a function that given a string
it returns a regular expression that only accepts that string.
Fixpoint rword' l :
match l with
nil rnil
x :: l rchar x ;; rword' l
end.
Prove that function rword' is correct.
Note that you must copypaste the function to outside of the comment
and in your proof state: exists rword'.
The proof must proceed by induction.
Theorem ex:
forall l exists rword:list ascii regex Accept rword l fun w w l
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
