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
Yixuan Chen
Iris
Commits
8e1e9c03
Commit
8e1e9c03
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add tests.
parent
610ed564
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_iris.ref
+32
-0
32 additions, 0 deletions
tests/proofmode_iris.ref
tests/proofmode_iris.v
+9
-0
9 additions, 0 deletions
tests/proofmode_iris.v
with
41 additions
and
0 deletions
tests/proofmode_iris.ref
+
32
−
0
View file @
8e1e9c03
...
...
@@ -172,6 +172,38 @@ Tactic failure: iInv: invariant "H2" not found.
: string
The command has indeed failed with message:
Tactic failure: iMod: "H" not fresh.
"test_iIntros_lc"
: string
1 goal
Σ : gFunctors
invGS0 : invGS Σ
cinvG0 : cinvG Σ
na_invG0 : na_invG Σ
n, m : nat
============================
"Hlc1" : £ (S n)
"Hlc2" : £ m
--------------------------------------∗
£ (S n)
"lc_iSplit_lc"
: string
2 goals
Σ : gFunctors
invGS0 : invGS Σ
cinvG0 : cinvG Σ
na_invG0 : na_invG Σ
n, m : nat
============================
"Hlc1" : £ (S n)
--------------------------------------∗
£ (S n)
goal 2 is:
"Hlc2" : £ m
--------------------------------------∗
£ m
"test_iInv"
: string
1 goal
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode_iris.v
+
9
−
0
View file @
8e1e9c03
...
...
@@ -250,6 +250,15 @@ Section iris_tests.
iIntros
"H H'"
.
Fail
iDestruct
"H'"
as
">H"
.
Abort
.
(** Make sure that the splitting rule for [+] gets priority over the one for
[S]. See issue #470. *)
Check
"test_iIntros_lc"
.
Lemma
test_iIntros_lc
n
m
:
£
(
S
n
+
m
)
-∗
£
(
S
n
)
.
Proof
.
iIntros
"[Hlc1 Hlc2]"
.
Show
.
iExact
"Hlc1"
.
Qed
.
Check
"lc_iSplit_lc"
.
Lemma
lc_iSplit_lc
n
m
:
£
(
S
n
)
-∗
£
m
-∗
£
(
S
n
+
m
)
.
Proof
.
iIntros
"Hlc1 Hlc2"
.
iSplitL
"Hlc1"
.
Show
.
all
:
done
.
Qed
.
End
iris_tests
.
Section
monpred_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