Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
fe43c8df
Commit
fe43c8df
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add a test
parent
3e0e21a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/atomic.ref
+2
-0
2 additions, 0 deletions
tests/atomic.ref
tests/atomic.v
+12
-2
12 additions, 2 deletions
tests/atomic.v
with
14 additions
and
2 deletions
tests/atomic.ref
+
2
−
0
View file @
fe43c8df
The command has indeed failed with message:
Tactic failure: iAuIntro: spacial context empty, and emp not laterable.
1 goal
Σ : gFunctors
...
...
This diff is collapsed.
Click to expand it.
tests/atomic.v
+
12
−
2
View file @
fe43c8df
...
...
@@ -6,7 +6,7 @@ From iris.prelude Require Import options.
Unset
Mangle
Names
.
Section
definition
.
Section
general_bi_tests
.
Context
`{
BiFUpd
PROP
}
{
TA
TB
:
tele
}
(
Eo
Ei
:
coPset
)
.
(** We can quantify over telescopes *inside* Iris and use them with atomic
...
...
@@ -14,7 +14,17 @@ Section definition.
Definition
AU_tele_quantify_iris
:
Prop
:=
⊢
∀
(
TA
TB
:
tele
)
(
α
:
TA
→
PROP
)
(
β
Φ
:
TA
→
TB
→
PROP
),
atomic_update
Eo
Ei
α
β
Φ
.
End
definition
.
(** iAuIntro works with non-empty laterable spacial context without any further
assumptions. *)
Lemma
au_intro_1
(
P
:
PROP
)
`{
!
Laterable
P
}
(
α
:
TA
→
PROP
)
(
β
Φ
:
TA
→
TB
→
PROP
)
:
P
-∗
atomic_update
Eo
Ei
α
β
Φ
.
Proof
.
iIntros
"HP"
.
iAuIntro
.
Abort
.
(** But in an empty context, it fails, since [emp] now needs to be laterable. *)
Lemma
au_intro_2
(
α
:
TA
→
PROP
)
(
β
Φ
:
TA
→
TB
→
PROP
)
:
⊢
atomic_update
Eo
Ei
α
β
Φ
.
Proof
.
Fail
iAuIntro
.
Abort
.
End
general_bi_tests
.
Section
tests
.
Context
`{
!
heapGS
Σ
}
{
aheap
:
atomic_heap
Σ
}
.
...
...
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