Skip to content
Snippets Groups Projects
Verified Commit f112bfcd authored by Sanjit Bhat's avatar Sanjit Bhat
Browse files

update changelog and add tests

parent 582db478
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,10 @@ lemma.
* Add support for compiling the packages with dune. (by Rodolphe Lepigre)
**Changes in `bi`:**
* For derived connectives, add TC hints to destruct matches. (by Sanjit Bhat)
## Iris 4.2.0 (2024-04-12)
The highlights of this release are:
......
......@@ -784,6 +784,13 @@ No applicable tactic.
: string
The command has indeed failed with message:
x is already used.
"test_TC_hint_for_connective_on_match"
: string
The command has indeed failed with message:
Cannot infer this placeholder of type "Persistent (match_foo b)" (no type
class instance found) in environment:
PROP : bi
b : bool
"elim_mod_accessor"
: string
1 goal
......
......@@ -1652,6 +1652,39 @@ Proof.
Fail iIntros (? x).
Abort.
Check "test_TC_hint_for_connective_on_match".
Lemma test_match_persistent :
Persistent ( b : bool, if b then False else False : PROP).
Proof. apply _. Qed.
Lemma test_match_affine : Affine ( b : bool, if b then False else False : PROP).
Proof. apply _. Qed.
Lemma test_match_absorbing :
Absorbing ( b : bool, if b then False else False : PROP).
Proof. apply _. Qed.
Lemma test_match_timeless :
Timeless ( b : bool, if b then False else False : PROP).
Proof. apply _. Qed.
Lemma test_match_plain `{!BiPlainly PROP} :
Plain (PROP:=PROP) ( b : bool, if b then False else False).
Proof. apply _. Qed.
Lemma test_match_list :
Persistent (PROP:=PROP)
( l : list nat, match l with _ => False end).
Proof. apply _. Qed.
(* From https://gitlab.mpi-sws.org/iris/iris/-/issues/576. *)
Lemma test_match_pair `{!Timeless (emp%I : PROP)} (m : gset (nat * nat)) :
Timeless ([ set] '(k1, k2) m, False : PROP).
Proof. apply _. Qed.
(* Don't want hint to unfold def's. *)
Definition match_foo (b : bool) : PROP := if b then False%I else False%I.
Lemma test_match_def_unfold_fail b :
Persistent (match_foo b).
Proof. Fail apply _. Abort.
End tests.
Section parsing_tests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment