-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e154b5f
commit c9ed329
Showing
3 changed files
with
168 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Require Import coqutil.Map.Interface coqutil.Map.Properties. | ||
Require Import coqutil.Tactics.Tactics. | ||
Require Import coqutil.Tactics.fwd. | ||
Require Import bedrock2.Map.Separation. | ||
Require Export bedrock2.Map.DisjointUnion. | ||
|
||
Module map. Section __. | ||
Context {key value} {map : map.map key value} {ok: map.ok map}. | ||
Context {key_eqb: key -> key -> bool} {key_eq_dec: EqDecider key_eqb}. | ||
|
||
Lemma split_alt: forall {m m1 m2: map}, map.split m m1 m2 <-> mmap.split m m1 m2. | ||
Proof. | ||
unfold map.split, mmap.split, mmap.du, map.du. split; intros; fwd. | ||
- eapply map.disjointb_spec in Hp1. rewrite Hp1. reflexivity. | ||
- split. 1: reflexivity. eapply map.disjointb_spec. assumption. | ||
Qed. | ||
End __. End map. |