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
e922a646
Commit
e922a646
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Tweak core.v
parent
fee229c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base_logic/lib/core.v
+10
-3
10 additions, 3 deletions
theories/base_logic/lib/core.v
with
10 additions
and
3 deletions
theories/base_logic/lib/core.v
+
10
−
3
View file @
e922a646
...
...
@@ -7,7 +7,7 @@ Import uPred.
in the shallow embedding. *)
Definition
coreP
{
M
:
ucmraT
}
(
P
:
uPred
M
)
:
uPred
M
:=
(
∀
(
Q
:
uPred
M
)
`
(
!
PersistentP
Q
,
!
P
-∗
Q
),
Q
)
%
I
.
(
∀
`
(
!
PersistentP
Q
,
P
⊢
Q
),
Q
)
%
I
.
Section
core
.
Context
{
M
:
ucmraT
}
.
...
...
@@ -23,11 +23,18 @@ Section core.
iIntros
(
HPQ
)
.
iApply
HQ
.
unshelve
iApply
(
"HCP"
$!
Q
)
.
done
.
Qed
.
Global
Instance
coreP_mono
:
Proper
((
⊢
)
==>
(
⊢
))
(
@
coreP
M
)
.
Proof
.
unfold
coreP
.
iIntros
(??
ENT
)
"H *"
.
unshelve
iApply
(
"H"
$!
Q
)
.
by
etrans
.
Qed
.
Global
Instance
coreP_proper
:
Proper
((
⊣⊢
)
==>
(
⊣⊢
))
(
@
coreP
M
)
.
Proof
.
intros
??
.
rewrite
!
equiv_spec
=>
-
[
A
B
]
.
split
;
rewrite
?A
//
?B
//.
Qed
.
Lemma
coreP_elim
P
:
PersistentP
P
→
coreP
P
-∗
P
.
Proof
.
iIntros
(?)
"HCP"
.
unshelve
iApply
(
"HCP"
$!
P
)
.
iIntros
"P"
.
done
.
Qed
.
End
core
.
Global
Opaque
coreP
.
\ 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