Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
670f2330
Commit
670f2330
authored
1 year ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Improve tests from !921, based on suggestions by Paolo.
parent
f47867af
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/proofmode.ref
+1
-1
1 addition, 1 deletion
tests/proofmode.ref
tests/proofmode.v
+12
-12
12 additions, 12 deletions
tests/proofmode.v
with
13 additions
and
13 deletions
tests/proofmode.ref
+
1
−
1
View file @
670f2330
...
...
@@ -954,7 +954,7 @@ The command has indeed failed with message:
Tactic failure: sel_pat.parse: the term m
is expected to be a selection pattern (usually a string),
but has unexpected type nat.
"test_iIntros_let_fail"
"test_iIntros_let_
entails_
fail"
: string
The command has indeed failed with message:
Tactic failure: iStartProof: goal is a `let`, use `simpl`,
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
12
−
12
View file @
670f2330
...
...
@@ -878,7 +878,7 @@ Proof.
iIntros
"?"
.
done
.
Qed
.
Lemma
test_iPoseProof_let
P
Q
:
Lemma
test_iPoseProof_let
_entails
P
Q
:
(
let
R
:=
True
%
I
in
R
∗
P
⊢
Q
)
→
P
⊢
Q
.
Proof
.
...
...
@@ -886,14 +886,14 @@ Proof.
iPoseProof
(
help
with
"[$HP]"
)
as
"?"
.
done
.
Qed
.
Lemma
test_iPoseProof_let_wand
P
Q
:
(
let
R
:=
True
%
I
in
R
∗
P
⊢
Q
)
→
(
let
R
:=
True
%
I
in
R
∗
P
-∗
Q
)
→
P
-∗
Q
.
Proof
.
iIntros
(
help
)
"HP"
.
iPoseProof
(
help
with
"[$HP]"
)
as
"?"
.
done
.
Qed
.
Lemma
test_iPoseProof_let_
in_string
P
Q
:
Lemma
test_iPoseProof_let_
entails_pm_intro_pat
P
Q
:
(
let
R
:=
True
%
I
in
R
∗
P
⊢
Q
)
→
P
⊢
Q
.
Proof
.
...
...
@@ -901,21 +901,21 @@ Proof.
iPoseProof
(
help
with
"[$HP]"
)
as
"?"
.
done
.
Qed
.
Lemma
test_iIntros_let
P
:
∀
Q
,
let
R
:=
emp
%
I
in
P
-∗
R
-∗
Q
-∗
P
∗
Q
.
Lemma
test_iIntros_let
_entails
P
:
∀
Q
,
let
R
:=
emp
%
I
in
P
⊢
R
-∗
Q
-∗
P
∗
Q
.
Proof
.
iIntros
(
Q
R
)
"$ _ $"
.
Qed
.
Lemma
test_iIntros_let_wand
P
:
∀
Q
,
let
R
:=
emp
%
I
in
P
⊢
R
-∗
Q
-∗
P
∗
Q
.
∀
Q
,
let
R
:=
emp
%
I
in
P
-∗
R
-∗
Q
-∗
P
∗
Q
.
Proof
.
iIntros
(
Q
R
)
"$ _ $"
.
Qed
.
Lemma
lemma_for_test_apply_below_let
(
Φ
:
nat
→
PROP
)
:
Lemma
lemma_for_test_apply_
entails_
below_let
(
Φ
:
nat
→
PROP
)
:
let
Q
:=
Φ
5
in
Q
⊢
Q
.
Proof
.
iIntros
(?)
"?"
.
done
.
Qed
.
Lemma
test_apply_below_let
(
Φ
:
nat
→
PROP
)
:
Lemma
test_apply_
entails_
below_let
(
Φ
:
nat
→
PROP
)
:
Φ
5
-∗
Φ
5
.
Proof
.
iIntros
"?"
.
iApply
lemma_for_test_apply_below_let
.
done
.
Qed
.
Proof
.
iIntros
"?"
.
iApply
lemma_for_test_apply_
entails_
below_let
.
done
.
Qed
.
Lemma
lemma_for_test_apply_wand_below_let
(
Φ
:
nat
→
PROP
)
:
let
Q
:=
Φ
5
in
...
...
@@ -1791,8 +1791,8 @@ Proof.
Fail
iInduction
n
as
[|
n
]
"IH"
forall
m
.
Abort
.
Check
"test_iIntros_let_fail"
.
Lemma
test_iIntros_let_fail
P
:
Check
"test_iIntros_let_
entails_
fail"
.
Lemma
test_iIntros_let_
entails_
fail
P
:
let
Q
:=
(
P
∗
P
)
%
I
in
Q
⊢
Q
.
Proof
.
...
...
@@ -1802,7 +1802,7 @@ Abort.
Check
"test_iIntros_let_wand_fail"
.
Lemma
test_iIntros_let_wand_fail
P
:
let
Q
:=
(
P
∗
P
)
%
I
in
Q
⊢
Q
.
Q
-∗
Q
.
Proof
.
Fail
iIntros
"Q"
.
Abort
.
...
...
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