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
8d4fa046
Commit
8d4fa046
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Move some to_globalF stuff to global_functor.v.
parent
3c04addd
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
program_logic/ghost_ownership.v
+7
-7
7 additions, 7 deletions
program_logic/ghost_ownership.v
program_logic/global_functor.v
+5
-2
5 additions, 2 deletions
program_logic/global_functor.v
with
12 additions
and
9 deletions
program_logic/ghost_ownership.v
+
7
−
7
View file @
8d4fa046
...
...
@@ -6,20 +6,20 @@ Import uPred.
Definition
own
`{
inG
Λ
Σ
A
}
(
γ
:
gname
)
(
a
:
A
)
:
iPropG
Λ
Σ
:=
ownG
(
to_globalF
γ
a
)
.
Instance
:
Params
(
@
to_globalF
)
5
.
Instance
:
Params
(
@
own
)
5
.
Typeclasses
Opaque
to_globalF
own
.
Typeclasses
Opaque
own
.
(** Properties about ghost ownership *)
Section
global
.
Context
`{
inG
Λ
Σ
A
}
.
Context
`{
i
:
inG
Λ
Σ
A
}
.
Implicit
Types
a
:
A
.
(** * Transport empty *)
Instance
inG_empty
`{
Empty
A
}
:
Empty
(
projT2
Σ
inG_id
(
iPreProp
Λ
(
globalF
Σ
)))
:=
cmra_transport
inG_prf
∅.
Empty
(
projT2
Σ
(
inG_id
i
)
(
iPreProp
Λ
(
globalF
Σ
)))
:=
cmra_transport
inG_prf
∅.
Instance
inG_empty_spec
`{
Empty
A
}
:
CMRAUnit
A
→
CMRAUnit
(
projT2
Σ
inG_id
(
iPreProp
Λ
(
globalF
Σ
)))
.
CMRAUnit
A
→
CMRAUnit
(
projT2
Σ
(
inG_id
i
)
(
iPreProp
Λ
(
globalF
Σ
)))
.
Proof
.
split
.
-
apply
cmra_transport_valid
,
cmra_unit_valid
.
...
...
@@ -39,7 +39,7 @@ Proof. move=>a b [c ->]. rewrite own_op. eauto with I. Qed.
Lemma
own_valid
γ
a
:
own
γ
a
⊢
✓
a
.
Proof
.
rewrite
/
own
ownG_valid
/
to_globalF
.
rewrite
iprod_validI
(
forall_elim
inG_id
)
iprod_lookup_singleton
.
rewrite
iprod_validI
(
forall_elim
(
inG_id
i
)
)
iprod_lookup_singleton
.
rewrite
gmap_validI
(
forall_elim
γ
)
lookup_singleton
option_validI
.
(* implicit arguments differ a bit *)
by
trans
(
✓
cmra_transport
inG_prf
a
:
iPropG
Λ
Σ
)
%
I
;
last
destruct
inG_prf
.
...
...
@@ -61,7 +61,7 @@ Proof.
intros
Ha
.
rewrite
-
(
pvs_mono
_
_
(
∃
m
,
■
(
∃
γ
,
γ
∉
G
∧
m
=
to_globalF
γ
a
)
∧
ownG
m
)
%
I
)
.
-
rewrite
ownG_empty
.
eapply
pvs_ownG_updateP
,
(
iprod_singleton_updateP_empty
inG_id
);
eapply
pvs_ownG_updateP
,
(
iprod_singleton_updateP_empty
(
inG_id
i
)
);
first
(
eapply
updateP_alloc_strong'
,
cmra_transport_valid
,
Ha
);
naive_solver
.
-
apply
exist_elim
=>
m
;
apply
const_elim_l
=>
-
[
γ
[
Hfresh
->
]]
.
...
...
This diff is collapsed.
Click to expand it.
program_logic/global_functor.v
+
5
−
2
View file @
8d4fa046
...
...
@@ -25,9 +25,12 @@ Class inG (Λ : language) (Σ : gFunctors) (A : cmraT) := InG {
inG_id
:
gid
Σ
;
inG_prf
:
A
=
projT2
Σ
inG_id
(
iPreProp
Λ
(
globalF
Σ
))
}
.
Arguments
inG_id
{_
_
_}
_
.
Definition
to_globalF
`{
inG
Λ
Σ
A
}
(
γ
:
gname
)
(
a
:
A
)
:
iGst
Λ
(
globalF
Σ
)
:=
iprod_singleton
inG_id
{[
γ
:=
cmra_transport
inG_prf
a
]}
.
Definition
to_globalF
`{
i
:
inG
Λ
Σ
A
}
(
γ
:
gname
)
(
a
:
A
)
:
iGst
Λ
(
globalF
Σ
)
:=
iprod_singleton
(
inG_id
i
)
{[
γ
:=
cmra_transport
inG_prf
a
]}
.
Instance
:
Params
(
@
to_globalF
)
5
.
Typeclasses
Opaque
to_globalF
.
(** * Properties of to_globalC *)
Section
to_globalF
.
...
...
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