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
abfe8672
Commit
abfe8672
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
explicit coercion > type ascription
parent
a8ce6616
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/one_shot.v
+1
-1
1 addition, 1 deletion
tests/one_shot.v
tests/one_shot_once.v
+1
-1
1 addition, 1 deletion
tests/one_shot_once.v
with
2 additions
and
2 deletions
tests/one_shot.v
+
1
−
1
View file @
abfe8672
...
@@ -46,7 +46,7 @@ Definition one_shot_inv (γ : gname) (l : loc) : iProp Σ :=
...
@@ -46,7 +46,7 @@ Definition one_shot_inv (γ : gname) (l : loc) : iProp Σ :=
Lemma
wp_one_shot
(
Φ
:
val
→
iProp
Σ
)
:
Lemma
wp_one_shot
(
Φ
:
val
→
iProp
Σ
)
:
(
∀
f1
f2
:
val
,
(
∀
f1
f2
:
val
,
(
∀
n
:
Z
,
□
WP
f1
#
n
{{
w
,
⌜
w
=
#
true
⌝
∨
⌜
w
=
#
false
⌝
}})
∗
(
∀
n
:
Z
,
□
WP
f1
#
n
{{
w
,
⌜
w
=
#
true
⌝
∨
⌜
w
=
#
false
⌝
}})
∗
□
WP
f2
#
()
{{
g
,
□
WP
(
g
:
val
)
#
()
{{
_,
True
}}
}}
-∗
Φ
(
f1
,
f2
)
%
V
)
□
WP
f2
#
()
{{
g
,
□
WP
(
of_
val
g
)
#
()
{{
_,
True
}}
}}
-∗
Φ
(
f1
,
f2
)
%
V
)
(* FIXME: Once we depend on Coq 8.13, make WP notation use [v closed binder]
(* FIXME: Once we depend on Coq 8.13, make WP notation use [v closed binder]
so that we can add a type annotation at the [g] binder here. *)
so that we can add a type annotation at the [g] binder here. *)
⊢
WP
one_shot_example
#
()
{{
Φ
}}
.
⊢
WP
one_shot_example
#
()
{{
Φ
}}
.
...
...
This diff is collapsed.
Click to expand it.
tests/one_shot_once.v
+
1
−
1
View file @
abfe8672
...
@@ -60,7 +60,7 @@ Qed.
...
@@ -60,7 +60,7 @@ Qed.
Lemma
wp_one_shot
(
Φ
:
val
→
iProp
Σ
)
:
Lemma
wp_one_shot
(
Φ
:
val
→
iProp
Σ
)
:
(
∀
(
f1
f2
:
val
)
(
T
:
iProp
Σ
),
T
∗
(
∀
(
f1
f2
:
val
)
(
T
:
iProp
Σ
),
T
∗
□
(
∀
n
:
Z
,
T
-∗
WP
f1
#
n
{{
w
,
True
}})
∗
□
(
∀
n
:
Z
,
T
-∗
WP
f1
#
n
{{
w
,
True
}})
∗
□
WP
f2
#
()
{{
g
,
□
WP
(
g
:
val
)
#
()
{{
_,
True
}}
}}
-∗
Φ
(
f1
,
f2
)
%
V
)
□
WP
f2
#
()
{{
g
,
□
WP
(
of_
val
g
)
#
()
{{
_,
True
}}
}}
-∗
Φ
(
f1
,
f2
)
%
V
)
(* FIXME: Once we depend on Coq 8.13, make WP notation use [v closed binder]
(* FIXME: Once we depend on Coq 8.13, make WP notation use [v closed binder]
so that we can add a type annotation at the [g] binder here. *)
so that we can add a type annotation at the [g] binder here. *)
⊢
WP
one_shot_example
#
()
{{
Φ
}}
.
⊢
WP
one_shot_example
#
()
{{
Φ
}}
.
...
...
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