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
William Mansky
Iris
Commits
00d2fb63
Commit
00d2fb63
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Ensure that different `Cofe` proofs of `iProp` are convertible.
parent
8fa39f7c
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
iris/bi/interface.v
+7
-3
7 additions, 3 deletions
iris/bi/interface.v
tests/iprop.v
+5
-0
5 additions, 0 deletions
tests/iprop.v
with
12 additions
and
3 deletions
iris/bi/interface.v
+
7
−
3
View file @
00d2fb63
...
...
@@ -181,7 +181,7 @@ Structure bi := Bi {
bi_persistently
:
bi_car
→
bi_car
;
bi_later
:
bi_car
→
bi_car
;
bi_ofe_mixin
:
OfeMixin
bi_car
;
bi_cofe
:
Cofe
(
Ofe
bi_car
bi_ofe_mixin
);
bi_cofe
_aux
:
Cofe
(
Ofe
bi_car
bi_ofe_mixin
);
bi_bi_mixin
:
BiMixin
bi_entails
bi_emp
bi_pure
bi_and
bi_or
bi_impl
bi_forall
bi_exist
bi_sep
bi_wand
bi_persistently
;
bi_bi_later_mixin
:
BiLaterMixin
bi_entails
bi_pure
bi_or
bi_impl
...
...
@@ -191,8 +191,12 @@ Bind Scope bi_scope with bi_car.
Coercion
bi_ofeO
(
PROP
:
bi
)
:
ofe
:=
Ofe
PROP
(
bi_ofe_mixin
PROP
)
.
Canonical
Structure
bi_ofeO
.
Global
Instance
bi_cofe'
(
PROP
:
bi
)
:
Cofe
PROP
.
Proof
.
apply
bi_cofe
.
Qed
.
(** The projection [bi_cofe_aux] is not registered as an instance because it has
the wrong type. Its result type is unfolded, i.e., [Cofe (Ofe PROP ...)], and
thus should never be used. The instance [bi_cofe] has the proper result type
[Cofe (bi_ofeO PROP)]. *)
Global
Instance
bi_cofe
(
PROP
:
bi
)
:
Cofe
PROP
:=
bi_cofe_aux
PROP
.
Global
Instance
:
Params
(
@
bi_entails
)
1
:=
{}
.
Global
Instance
:
Params
(
@
bi_emp
)
1
:=
{}
.
...
...
This diff is collapsed.
Click to expand it.
tests/iprop.v
+
5
−
0
View file @
00d2fb63
...
...
@@ -17,3 +17,8 @@ Definition foo :=
(
sigT
(
A
:=
Type
->
Type
))
.
From
iris
.
base_logic
Require
Import
iprop
.
Lemma
bi_ofeO_iProp
Σ
:
bi_ofeO
(
iPropI
Σ
)
=
iPropO
Σ
.
Proof
.
reflexivity
.
Qed
.
Lemma
bi_cofe_iProp
Σ
:
bi_cofe
(
iPropI
Σ
)
=
@
uPred_cofe
(
iResUR
Σ
)
.
Proof
.
reflexivity
.
Qed
.
\ No newline at end of file
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