batteries
batteries copied to clipboard
feat: Add `String.isPrefixOf` theorems
This PR is a redo of #782, but adds the following:
- Auxiliary theorems used to prove the theorems below
- These were already in #782
- Proof of equivalence between
String.isPrefixOf s t
and∃ t, s = p ++ t
- (This is analogous to how
List.IsPrefix
is defined.)
- (This is analogous to how
- Proof of equivalence between
String.isPrefixOf s t
andList.isPrefixOf s.data t.data