Skip to content
Snippets Groups Projects

Provide "lookup" and commuting lemmas as equations that always apply, and fix some inconsistent lemma naming

Open Robbert Krebbers requested to merge ci/refactor_staging into master
2 files
+ 195
79
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -3761,7 +3761,7 @@ Section map_seq.
Proof.
intros. apply map_eq. intros j. destruct (decide (i = j)) as [->|?].
- rewrite lookup_insert_eq, lookup_map_seq, option_guard_True by lia.
by rewrite list_lookup_insert by lia.
by rewrite list_lookup_insert_eq by lia.
- rewrite lookup_insert_ne, !lookup_map_seq by done.
case_guard; [|done]. by rewrite list_lookup_insert_ne by lia.
Qed.
@@ -3892,7 +3892,7 @@ Section map_seqZ.
Proof.
intros. apply map_eq. intros j. destruct (decide (i = j)) as [->|?].
- rewrite lookup_insert_eq, lookup_map_seqZ, option_guard_True by lia.
by rewrite list_lookup_insert by lia.
by rewrite list_lookup_insert_eq by lia.
- rewrite lookup_insert_ne, !lookup_map_seqZ by done.
case_guard; [|done]. by rewrite list_lookup_insert_ne by lia.
Qed.
Loading