6.S057: 6.S057: Verified Software Engineering

Problem Set 11

String edit distance

The deadline for this problem set is Friday, December 4 at 9pm.

Submit your work on Gradescope at Problem Set 11.

Please note the special Friday deadline for this last problem set.

Before you start this problem set

Please fill out a survey about the time you spent on Problem Set 10.

Download

The structure here follows that of previous psets: read pset11_definitions.dfy to see our supporting definitions on edit distances between strings, complete pset11.dfy with the annotations needed for the provided method, and use pset11_validator.dfy to confirm you’re done.

You may not change the implementation code

As on the previous problem set, you may not change the executable behavior of the method (nor may you add any preconditions).

pset11_helpers and pset11_hints

In this problem set we’re proving a classic algorithm for computing edit distances between strings. The proof entails a bunch of casework that we have provided in the “helpers” file! After you read pset11_definitions.dfy and the method code in pset11.dfy, think about how you might approach the proof. Then:

  • If you would like to use our lemmas, read pset11_helpers.dfy. It is already included and imported in the problem set file.

  • If you would like to try the proof on your own, comment out the include and import lines for the helpers :)

    Consult pset11_hints.dfy for suggestions if you get stuck: it has the lemma specifications but not their proofs.

Copyright 6.S057 course staff.