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
Simcha van Collem
Iris
Commits
71788212
Commit
71788212
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Seal off definition of iProp using a Module.
parent
2f9e4910
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program_logic/model.v
+22
-1
22 additions, 1 deletion
program_logic/model.v
with
22 additions
and
1 deletion
program_logic/model.v
+
22
−
1
View file @
71788212
...
...
@@ -6,6 +6,26 @@ From algebra Require Import cofe_solver.
COFEs to the category of CMRAs, which is instantiated with [laterC iProp]. The
[laterC iProp] can be used to construct impredicate CMRAs, such as the stored
propositions using the agreement CMRA. *)
Module
Type
iProp_solution_sig
.
Parameter
iPreProp
:
language
→
rFunctor
→
cofeT
.
Definition
iGst
(
Λ
:
language
)
(
Σ
:
rFunctor
)
:
cmraT
:=
Σ
(
laterC
(
iPreProp
Λ
Σ
))
.
Definition
iRes
Λ
Σ
:=
res
Λ
(
laterC
(
iPreProp
Λ
Σ
))
(
iGst
Λ
Σ
)
.
Definition
iResR
Λ
Σ
:=
resR
Λ
(
laterC
(
iPreProp
Λ
Σ
))
(
iGst
Λ
Σ
)
.
Definition
iWld
Λ
Σ
:=
gmap
positive
(
agree
(
laterC
(
iPreProp
Λ
Σ
)))
.
Definition
iPst
Λ
:=
excl
(
state
Λ
)
.
Definition
iProp
(
Λ
:
language
)
(
Σ
:
rFunctor
)
:
cofeT
:=
uPredC
(
iResR
Λ
Σ
)
.
Parameter
iProp_unfold
:
∀
{
Λ
Σ
},
iProp
Λ
Σ
-
n
>
iPreProp
Λ
Σ
.
Parameter
iProp_fold
:
∀
{
Λ
Σ
},
iPreProp
Λ
Σ
-
n
>
iProp
Λ
Σ
.
Parameter
iProp_fold_unfold
:
∀
{
Λ
Σ
}
(
P
:
iProp
Λ
Σ
),
iProp_fold
(
iProp_unfold
P
)
≡
P
.
Parameter
iProp_unfold_fold
:
∀
{
Λ
Σ
}
(
P
:
iPreProp
Λ
Σ
),
iProp_unfold
(
iProp_fold
P
)
≡
P
.
End
iProp_solution_sig
.
Module
Export
iProp_solution
:
iProp_solution_sig
.
Definition
iProp_result
(
Λ
:
language
)
(
Σ
:
rFunctor
)
:
solution
(
uPredCF
(
resRF
Λ
laterCF
(
laterRF
Σ
)))
.
Proof
.
...
...
@@ -17,7 +37,6 @@ Proof.
-
apply
rFunctor_ne
;
split
;
apply
laterC_map_contractive
=>
i
?;
by
apply
Hf
.
Qed
.
(* Solution *)
Definition
iPreProp
(
Λ
:
language
)
(
Σ
:
rFunctor
)
:
cofeT
:=
iProp_result
Λ
Σ
.
Definition
iGst
(
Λ
:
language
)
(
Σ
:
rFunctor
)
:
cmraT
:=
Σ
(
laterC
(
iPreProp
Λ
Σ
))
.
...
...
@@ -35,6 +54,8 @@ Proof. apply solution_unfold_fold. Qed.
Lemma
iProp_unfold_fold
{
Λ
Σ
}
(
P
:
iPreProp
Λ
Σ
)
:
iProp_unfold
(
iProp_fold
P
)
≡
P
.
Proof
.
apply
solution_fold_unfold
.
Qed
.
End
iProp_solution
.
Bind
Scope
uPred_scope
with
iProp
.
Instance
iProp_fold_inj
n
Λ
Σ
:
Inj
(
dist
n
)
(
dist
n
)
(
@
iProp_fold
Λ
Σ
)
.
...
...
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