Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abel Nieto
Iris
Commits
9b1cb055
Commit
9b1cb055
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add a bunch of test cases for `iRevert`.
parent
9c43011e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/proofmode.ref
+38
-0
38 additions, 0 deletions
tests/proofmode.ref
tests/proofmode.v
+19
-1
19 additions, 1 deletion
tests/proofmode.v
with
57 additions
and
1 deletion
tests/proofmode.ref
+
38
−
0
View file @
9b1cb055
...
...
@@ -668,3 +668,41 @@ In nested Ltac calls to "iApply (open_constr)",
failed.
Tactic failure: iApply: Q
not absorbing and the remaining hypotheses not affine.
"iRevert_wrong_var"
: string
The command has indeed failed with message:
In nested Ltac calls to "iRevert ( (ident) )" and
"iForallRevert (ident)", last call failed.
Tactic failure: iRevert: k1 not in scope.
The command has indeed failed with message:
In nested Ltac calls to "iLöb as (constr) forall ( (ident) )",
"iLöbRevert (constr) with (tactic3)",
"iRevertIntros (constr) with (tactic3)", "iRevertIntros_go",
"tac" (bound to iRevertIntros "∗" with tac), "tac" (bound to iRevertIntros
"∗" with tac), "iRevertIntros (constr) with (tactic3)",
"iRevertIntros_go", "tac" (bound to iRevertIntros ( x1 ) "" with iLöbCore as
IH), "tac" (bound to iRevertIntros ( x1 ) "" with iLöbCore as IH),
"iRevertIntros ( (ident) ) (constr) with (tactic3)",
"iRevertIntros (constr) with (tactic3)", "iRevertIntros_go",
"tac" (bound to iRevert ( x1 ); tac; iIntros ( x1 )),
"tac" (bound to iRevert ( x1 ); tac; iIntros ( x1 )),
"iRevert ( (ident) )" and "iForallRevert (ident)", last call failed.
Tactic failure: iRevert: k1 not in scope.
"iRevert_dup_var"
: string
The command has indeed failed with message:
In nested Ltac calls to "iRevert ( (ident) (ident) )",
"iRevert ( (ident) )" and "iForallRevert (ident)", last call failed.
Tactic failure: iRevert: k not in scope.
"iRevert_dep_var_coq"
: string
The command has indeed failed with message:
In nested Ltac calls to "iRevert ( (ident) )", "iForallRevert (ident)" and
"revert (ne_var_list)", last call failed.
k is used in hypothesis Hk.
"iRevert_dep_var"
: string
The command has indeed failed with message:
In nested Ltac calls to "iRevert ( (ident) )" and
"iForallRevert (ident)", last call failed.
Tactic failure: iRevert: k is used in hypothesis "Hk".
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
19
−
1
View file @
9b1cb055
...
...
@@ -684,7 +684,6 @@ Lemma test_iDestruct_clear P Q R :
Proof
.
iIntros
"HP HQR"
.
iDestruct
"HQR"
as
"{HP} [HQ HR]"
.
done
.
Qed
.
End
tests
.
(** Test specifically if certain things print correctly. *)
...
...
@@ -909,4 +908,23 @@ Proof. iIntros "HP HQ". Fail iApply "HQ". Abort.
Check
"iApply_fail_not_affine_2"
.
Lemma
iApply_fail_not_affine_1
P
Q
R
:
P
-∗
R
-∗
(
R
-∗
Q
)
-∗
Q
.
Proof
.
iIntros
"HP HR HQ"
.
Fail
iApply
(
"HQ"
with
"HR"
)
.
Abort
.
Check
"iRevert_wrong_var"
.
Lemma
iRevert_wrong_var
(
k
:
nat
)
(
Φ
:
nat
→
PROP
)
:
Φ
(
S
k
)
.
Proof
.
Fail
iRevert
(
k1
)
.
Fail
iLöb
as
"IH"
forall
(
k1
)
.
Abort
.
Check
"iRevert_dup_var"
.
Lemma
iRevert_dup_var
(
k
:
nat
)
(
Φ
:
nat
→
PROP
)
:
Φ
(
S
k
)
.
Proof
.
Fail
iRevert
(
k
k
)
.
Abort
.
Check
"iRevert_dep_var_coq"
.
Lemma
iRevert_dep_var_coq
(
k
:
nat
)
(
Φ
:
nat
→
PROP
)
:
k
=
0
→
Φ
(
S
k
)
.
Proof
.
intros
Hk
.
Fail
iRevert
(
k
)
.
Abort
.
Check
"iRevert_dep_var"
.
Lemma
iRevert_dep_var
(
k
:
nat
)
(
Φ
:
nat
→
PROP
)
:
Φ
k
-∗
Φ
(
S
k
)
.
Proof
.
iIntros
"Hk"
.
Fail
iRevert
(
k
)
.
Abort
.
End
error_tests
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment