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
48371b50
Commit
48371b50
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
Implement JH's idea of a "core of an assertion"
parent
cd9d4a5b
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
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
theories/base_logic/lib/core.v
+39
-0
39 additions, 0 deletions
theories/base_logic/lib/core.v
with
40 additions
and
0 deletions
_CoqProject
+
1
−
0
View file @
48371b50
...
...
@@ -84,6 +84,7 @@ theories/base_logic/lib/cancelable_invariants.v
theories/base_logic/lib/counter_examples.v
theories/base_logic/lib/fractional.v
theories/base_logic/lib/gen_heap.v
theories/base_logic/lib/core.v
theories/program_logic/adequacy.v
theories/program_logic/lifting.v
theories/program_logic/weakestpre.v
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/lib/core.v
0 → 100644
+
39
−
0
View file @
48371b50
From
iris
.
base_logic
Require
Import
base_logic
.
From
iris
.
proofmode
Require
Import
tactics
.
Import
uPred
.
(** The "core" of an assertion is its maximal persistent part.
It can be defined entirely within the logic... at least
in the shallow embedding. *)
Definition
coreP
{
M
:
ucmraT
}
(
P
:
uPred
M
)
:
uPred
M
:=
(
∀
(
Q
:
uPred
M
)
`
(
!
PersistentP
Q
,
!
P
-∗
Q
),
Q
)
%
I
.
Section
core
.
Context
{
M
:
ucmraT
}
.
Implicit
Types
P
Q
:
uPred
M
.
Lemma
coreP_intro
P
:
P
-∗
coreP
P
.
Proof
.
iIntros
"HP"
.
iIntros
(
Q
HQ
HPQ
)
.
by
iApply
HPQ
.
Qed
.
Global
Instance
coreP_persistent
P
:
PersistentP
(
coreP
P
)
.
Proof
.
iIntros
"HCP"
.
iApply
always_forall
.
iIntros
(
Q
)
.
iApply
always_forall
.
iIntros
(
HQ
)
.
iApply
always_forall
.
iIntros
(
HPQ
)
.
iApply
HQ
.
unshelve
iApply
(
"HCP"
$!
Q
)
.
done
.
Qed
.
Lemma
corP_elim
P
:
PersistentP
P
→
coreP
P
-∗
P
.
Proof
.
iIntros
(?)
"HCP"
.
unshelve
iApply
(
"HCP"
$!
P
)
.
iIntros
"P"
.
done
.
Qed
.
End
core
.
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