Add lemmas `elem_of_prefix` and `elem_of_suffix`
All threads resolved!
All threads resolved!
Added a lemma that captures that any element [x] that is in a prefix [l1] is also in the full list [l2].
The property is only trivial from the definition of l1 prefix_of l2
(i.e. ∃ l, l2 = l1 ++ l2
).
Adding the lemma thus avoids breaking abstraction.
Edited by Robbert Krebbers
Merge request reports
Activity
- Resolved by Jonas Kastberg
added 1 commit
- 47f70920 - Updated name/order to match existing lemmas and added suffix variant
- Resolved by Jonas Kastberg
added 1 commit
- 94befedc - Updated names of lemmas to be consistent with existing lemmas
mentioned in commit f23a05c3
Please register or sign in to reply