Before we incorporated stdpp we've been writing developing our own library functions to complement the ones available in stdlib. last_error is one of them, and there are a couple of lemmas proved about it as well some usages throughout the codebase (including some in the indev repository).
Tasks:
Before we incorporated
stdppwe've been writing developing our own library functions to complement the ones available in stdlib.last_erroris one of them, and there are a couple of lemmas proved about it as well some usages throughout the codebase (including some in theindevrepository).Tasks:
Lib.ListExtras.last_errorwithstdpp.list.lastin moduleListExtras#39Refactor the
Lib.ListExtrasmodule to definelast_errorin terms oflastand change the existing lemmas aboutlast_errorto either be (re)definitions of existing lemmas aboutlastor by proving them using existing results aboutlastLib.ListExtras.last_errorwithstdpp.list.last(Phase II) #40(less important, but maybe good to have) Substitute the definitions obtained above with their proper names across the codebase (resisting the temptation to further refactor the code touched by this substitution :-)