Skip to content
Snippets Groups Projects

Add lemmas `elem_of_prefix` and `elem_of_suffix`

Merged Jonas Kastberg requested to merge jihgfee/stdpp:elem_of_prefix into master
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

Merge request pipeline #59886 passed

Merge request pipeline passed for 94befedc

Approval is optional

Merged by Robbert KrebbersRobbert Krebbers 3 years ago (Jan 12, 2022 3:13pm UTC)

Merge details

  • Changes merged into master with f23a05c3 (commits were squashed).
  • Did not delete the source branch.

Pipeline #59906 passed

Pipeline passed for f23a05c3 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • If you had the time to add the same lemma for suffix, that would be great. :) (but no big deal if not)

  • Jonas Kastberg added 1 commit

    added 1 commit

    • 47f70920 - Updated name/order to match existing lemmas and added suffix variant

    Compare with previous version

  • Jonas Kastberg added 1 commit

    added 1 commit

    • 94befedc - Updated names of lemmas to be consistent with existing lemmas

    Compare with previous version

  • Jonas Kastberg resolved all threads

    resolved all threads

  • Robbert Krebbers changed title from Added [prefix_elem_of] lemma to Add{+ lemmas elem_of_prefix and elem_of_suffix+}

    changed title from Added [prefix_elem_of] lemma to Add{+ lemmas elem_of_prefix and elem_of_suffix+}

  • Merging. Thanks!

  • mentioned in commit f23a05c3

  • Please register or sign in to reply
    Loading