Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
Michael Sammler
iris-coq
Commits
8a97c25f
Commit
8a97c25f
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
be more explicit about instance scope; move Hint to the lemma it uses
parent
d3414f13
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/base_logic/bi.v
+7
-4
7 additions, 4 deletions
theories/base_logic/bi.v
theories/base_logic/derived.v
+0
-3
0 additions, 3 deletions
theories/base_logic/derived.v
theories/base_logic/upred.v
+1
-1
1 addition, 1 deletion
theories/base_logic/upred.v
with
8 additions
and
8 deletions
theories/base_logic/bi.v
+
7
−
4
View file @
8a97c25f
...
...
@@ -2,7 +2,7 @@ From iris.bi Require Export derived_connectives updates plainly.
From
iris
.
base_logic
Require
Export
upred
.
Import
uPred_primitive
.
(** BI
and other MoSeL
instances for uPred. This file does *not* unseal. *)
(** BI instances for uPred. This file does *not* unseal. *)
Definition
uPred_emp
{
M
}
:
uPred
M
:=
uPred_pure
True
.
...
...
@@ -124,7 +124,7 @@ Proof.
-
exact
:
later_plainly_1
.
-
exact
:
later_plainly_2
.
Qed
.
Instance
uPred_plainlyC
M
:
BiPlainly
(
uPredSI
M
)
:=
Global
Instance
uPred_plainlyC
M
:
BiPlainly
(
uPredSI
M
)
:=
{|
bi_plainly_mixin
:=
uPred_plainly_mixin
M
|}
.
Lemma
uPred_bupd_mixin
M
:
BiBUpdMixin
(
uPredI
M
)
uPred_bupd
.
...
...
@@ -136,15 +136,18 @@ Proof.
-
exact
:
bupd_trans
.
-
exact
:
bupd_frame_r
.
Qed
.
Instance
uPred_bi_bupd
M
:
BiBUpd
(
uPredI
M
)
:=
{|
bi_bupd_mixin
:=
uPred_bupd_mixin
M
|}
.
Global
Instance
uPred_bi_bupd
M
:
BiBUpd
(
uPredI
M
)
:=
{|
bi_bupd_mixin
:=
uPred_bupd_mixin
M
|}
.
Instance
uPred_bi_bupd_plainly
M
:
BiBUpdPlainly
(
uPredSI
M
)
.
Global
Instance
uPred_bi_bupd_plainly
M
:
BiBUpdPlainly
(
uPredSI
M
)
.
Proof
.
exact
:
bupd_plainly
.
Qed
.
(** extra BI instances *)
Global
Instance
uPred_affine
:
BiAffine
(
uPredI
M
)
|
0
.
Proof
.
intros
P
Q
.
exact
:
pure_intro
.
Qed
.
(* Also add this to the global hint database, otherwise [eauto] won't work for
many lemmas that have [BiAffine] as a premise. *)
Hint
Immediate
uPred_affine
.
Global
Instance
uPred_plainly_exist_1
:
BiPlainlyExist
(
uPredSI
M
)
.
Proof
.
exact
:
@
plainly_exist_1
.
Qed
.
This diff is collapsed.
Click to expand it.
theories/base_logic/derived.v
+
0
−
3
View file @
8a97c25f
...
...
@@ -138,7 +138,4 @@ Global Instance uPred_ownM_sep_homomorphism :
Proof
.
split
;
[
split
;
try
apply
_|]
.
apply
ownM_op
.
apply
ownM_unit'
.
Qed
.
End
derived
.
(* Also add this to the global hint database, otherwise [eauto] won't work for
many lemmas that have [BiAffine] as a premise. *)
Hint
Immediate
uPred_affine
.
End
uPred
.
This diff is collapsed.
Click to expand it.
theories/base_logic/upred.v
+
1
−
1
View file @
8a97c25f
...
...
@@ -348,7 +348,7 @@ Definition unseal_eqs :=
uPred_exist_eq
,
uPred_internal_eq_eq
,
uPred_sep_eq
,
uPred_wand_eq
,
uPred_plainly_eq
,
uPred_persistently_eq
,
uPred_later_eq
,
uPred_ownM_eq
,
uPred_cmra_valid_eq
,
@
uPred_bupd_eq
)
.
Ltac
unseal
:=
(* Coq unfold is used to circumvent bug #5699 in rewrite /foo *)
Ltac
unseal
:=
rewrite
!
unseal_eqs
/=.
Section
primitive
.
...
...
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